/* Root variables for colors */
:root {
    --primary-color: #3982B6;
    --secondary-color: #d0d8e6;
    --background-color: #E5F3FE;
    --text-color: #333;
    --lighttext-color: white;
    --asegrey-color:#667987;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', sans-serif;
    background-color: #FBF4E6;
    color: #000000;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    height: auto;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FBF4E6;
    color: #000000;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    height: auto;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* This makes the main content area flexible */
}

header {
    background-color: var(--background-color);
    padding: 20px;
    border-bottom: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 30px;
}

.logo p {
    color: var(--text-color);
    padding-left: 15px;
}

/* Style for the word 'Designase' */
.design {
    color: var(--primary-color); /* Color for 'Design' part */
}

.ase {
    color: var(--asegrey-color); /* Color for 'ase' part */
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--lighttext-color);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 4px;
    background-color: var(--primary-color); /* Same color as the Designase logo */
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: var(--background-color);
        position: absolute;
        top: 60px;
        right: 20px;
        left: 20px;
        width: 80%;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 15px 30px; /* Increase padding to give more space for the lozenge shape */
        width: 100%; /* Full width for better alignment */
        display: block; /* Ensure the links are displayed as blocks to occupy full width */
        text-align: center; /* Center text */
        border-radius: 30px; /* Keep lozenge shape */
    }

    .hamburger {
        display: flex; /* Show the hamburger only on small screens */
    }

    /* Show the menu when it’s toggled */
    nav ul.show {
        display: block;
    }

    .form-container {
        padding-left: 0px;
        padding-right: 0px;
    }

    .intro {
        padding-left: 0px;
        padding-right: 0px;
    }


}

/* Smooth transitions */
nav ul {
    transition: display 0.3s ease;
}

.intro {
    display: flex;
    padding-top: 30px;
    padding-bottom: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text-section {
    width: 80%;
}

.text-section h2 {
    color: var(--primary-color);
    font-size: 30px;
}

.text-section p {
    margin: 15px 0;
    line-height: 1.5;
    padding-left: 20px;
    padding-right: 20px;
}

.video-section {
    background-color: var(--secondary-color);
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
    color: var(--text-color);
}

.features {
    display: flex;
    flex-wrap: wrap; /* Allows boxes to wrap onto the next line */
    justify-content: space-around;
    background-color: var(--background-color);
    padding: 0px 0;
    /*margin-top: 30px;*/
}

.feature {
    text-align: center;
    padding: 20px; /* Space inside the box */
    border-radius: 10px; /* Rounded corners, optional if you want sharp corners */
    width: 200px; /* Fixed width */
    height: 200px; /* Fixed height to maintain square shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold; /* Makes the text bold */
    box-sizing: border-box; /* Ensures padding is included in width/height */
    margin: 10px; /* Spacing between boxes */
    text-decoration: none; /* Ensure no underline is applied */
}

.feature.active {
    background-color: var(--primary-color); /* Color for the active state */
    color: var(--lighttext-color); /* Text color for the active state */
}

.feature:not(.active) {
    background-color: var(--secondary-color); /* Default color for inactive state */
    color: var(--text-color)
}

.feature:not(.active):hover {
    background-color: var(--asegrey-color); /* Background color when hovering over non-active */
    color: var(--lighttext-color); /* Text color when hovering over non-active */
}


.feature p {
    margin: 0; /* Remove default margin from paragraphs */
    text-decoration: none; /* Ensure no underline is applied */
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow the footer content to wrap on smaller screens */
    background-image: url(../images/header/headerbg.jpg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: #FBF4E6;
    padding: 10px 20px; /* Add padding for spacing */
    height: auto; /* Allow the height to adjust automatically based on content */
    min-height: 150px;
    box-sizing: border-box; /* Ensure padding is included in the height */
    position: relative;
}

.footer-left, .footer-right {
    flex: 1; /* Let the items take equal space */
    min-width: 200px; /* Ensure the footer items don’t get too narrow */
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

footer a.social-link {
    color: #FBF4E6;
    text-decoration: none;
    font-weight: bold;
}

footer a.social-link:hover {
    color: #FBF4E6;
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 991px) {
    footer {
        flex-direction: column; /* Stack the footer content vertically */
        text-align: center;
    }

    .footer-right {
        text-align: center; /* Center the LinkedIn link on small screens */
        margin-top: 10px;
    }

    .footer-left {
        text-align: center;
    }
}

.about-us {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--background-color); /* Matching the overall page background */
}

.about-content {
    background-color: var(--primary-color); /* Blue box background */
    padding: 20px;
    border-radius: 15px;
    width: 60%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for more depth */
    color: var(--lighttext-color);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.contact-content {
    background-color: var(--primary-color); /* Blue box background */
    padding: 20px;
    border-radius: 15px;
    width: 60%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for more depth */
    color: var(--lighttext-color);
}

.contact-content p {
    margin-bottom: 0px;
    font-size: 18px;
    line-height: 1.2;
}

.services {
    display: flex;
    flex-direction: row; /* Change this from column to row */
    justify-content: space-between; /* Distribute the boxes evenly */
    gap: 10px; /* Keep the gap between the boxes */
    padding: 10px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

@media (max-width: 991px) {
    .services {
        flex-direction: column; /* Stack the boxes vertically on smaller screens */
    }

    .text-section {
        width: 100%;
    }

    .about-content {
        background-color: var(--primary-color); /* Blue box background */
        padding: 20px;
        border-radius: 15px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for more depth */
        color: var(--lighttext-color);
    }

    .contact-content {
        background-color: var(--primary-color); /* Blue box background */
        padding: 20px;
        border-radius: 15px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for more depth */
        color: var(--lighttext-color);
    }

}

.service-selector {
    display: flex;
    justify-content: space-between; /* Spread the boxes evenly across the page */
    gap: 10px; /* Add spacing between the boxes */
    margin-bottom: 0px; /* Adjust as needed for spacing */
}

@media (max-width: 991px) {
    .service-selector {
        flex-direction: column; /* Stack vertically on small screens */
    }

    .form-container {
        background-color: var(--lighttext-color);
        padding: 0px;
        margin: 0px 0;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 60%;
        justify-content: center;
        align-items: center;
    }
}

.service-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.blue-box-wrapper, .gray-box-wrapper {
    margin-bottom: 0px; /* Space between boxes and titles */
}

.box-title {
    font-size: 18px; /* Adjust font size as needed */
    color: var(--text-color); /* Black color */
    margin-bottom: 10px; /* Space between title and box */
    margin-top: 20px;
}

.service-box {
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers the text vertically */
}

.gray-box {
    background-color: var(--asegrey-color);
    color: var(--lighttext-color);
    position: relative;
    padding-left: 20px; /* Space for bullets */
}

.blue-box {
    background-color: var(--primary-color);
    color: var(--lighttext-color);
    position: relative;
    padding-left: 20px; /* Space for bullets */
}

.service-box ul {
    list-style-type: disc; /* Adds bullet points */
    margin: 0;
    padding-left: 20px; /* Space for bullets */
}

.service-box li {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.5;
    text-indent: -23px; /* Negative indent to align text with bullet point */
    padding-left: 20px; /* Space for bullets */
}


.button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 30px; /* Adjust this value as needed to control vertical placement */
    padding-bottom: 20px;
}

.center-button {
    background-color: var(--primary-color); /* Blue button */
    color: var(--lighttext-color); /* White text */
    padding: 15px 30px; /* Button padding */
    text-decoration: none; /* Remove underline from the link */
    border-radius: 5px; /* Optional: Rounded corners */
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease; /* Optional: smooth hover transition */
}

.center-button:hover {
    background-color: var(--text-color); /* Darker blue on hover */
}

.video-container {
    position: relative;
    width: 40%; /* Adjust width as needed */
    height: 30vh;
    overflow: hidden;
    background: #000;
    border-radius: 8px; /* Optional: Rounded corners */
    margin: 0 auto; /* This centers the video container */
    padding: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Create a 12-column grid */
    grid-auto-rows: minmax(150px, auto);
    gap: 20px; /* Gap between the images */
    position: relative;
    height: auto; /* Adjust height as needed */
    padding: 20px;
}
    
.img-container img {
    width: 100%; /* or any width you want */
    height: auto; /* This ensures the aspect ratio is preserved */
    max-height: 200px;
    object-fit: contain; /* This makes sure the image fits within its container without distortion */
}    
  
/* Position each image manually on the grid */
.image-container img:nth-child(1) {
    grid-column: 1 / 5; /* Span from column 1 to 5 */
    grid-row: 1 / 3;    /* Span from row 1 to 3 */
}

.image-container img:nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 2 / 5;
}

.image-container img:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1 / 4;
}

.image-container img:nth-child(4) {
    grid-column: 3 / 8;
    grid-row: 4 / 6;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Container */
.form-container {
    background-color: var(--lighttext-color);
    padding: 30px;
    margin: 0px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 60%;
    justify-content: center;
    align-items: center;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--asegrey-color);
}


/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

label {
    font-size: 16px;
    color: var(--asegrey-color);
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

textarea {
    resize: none;
}

/* Submit Button */
button[type="submit"] {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--lighttext-color);
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .form-container {
        padding: 20px;
    }

    button[type="submit"] {
        width: 100%;
    }

    .form-container {
        background-color: var(--lighttext-color);
        padding: 30px;
        margin: 50px 0;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
    }
}




@media (max-width: 991px) {
    /* Stack the service selector boxes vertically */
    .service-selector {
        flex-direction: column; /* Stack the boxes vertically */
        align-items: center;    /* Center them */
        gap: 10px;              /* Add some space between the boxes */
    }

    /* Ensure the feature boxes are full width on narrow screens */
    .feature {
        width: 100%;
        height: auto; /* Remove fixed height to allow dynamic height */
        padding: 10px; /* Reduce padding */
        text-align: center;
        font-size: 16px; /* Adjust font size for readability */
        margin: 5px 0; /* Add smaller margins for spacing */
        cursor: pointer; /* Add a pointer cursor for better UX */
    }

    /* Adjust the blue and gray boxes to fit narrow screens */
    .service-row {
        flex-direction: column;  /* Stack the blue and gray boxes vertically */
        align-items: stretch;    /* Make sure they stretch to fit */
    }

    .service-box {
        width: 100%;             /* Make the blue and gray boxes full width */
        margin-bottom: 20px;     /* Add space between them */
        padding: 15px;           /* Adjust padding for better readability */
    }

    .box-title {
        font-size: 20px;         /* Reduce the font size for smaller screens */
        margin-bottom: 10px;
    }
    
    /* Adjust button and text section paddings */
    .text-section {
        padding: 10px;           /* Reduce padding on small screens */
    }

    .button-container {
        padding: 10px 0;         /* Reduce button container padding */
    }
}

.rotating-container {
    position: relative;
    width: 60%;
    height: 200px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
  }
  
  .sentence {
    position: absolute;
    opacity: 0;
    transform: rotateY(90deg); /* Start with sentences rotated */
    transition: transform 1s, opacity 1s;
    font-size: 1.5rem; /* Adjust as needed */
  }
  
  .sentence.active {
    opacity: 1;
    transform: rotateY(0deg); /* Bring the active sentence into view */
  }
  
  .sentence.inactive {
    transform: rotateY(-90deg); /* Rotate out previous sentences */
    opacity: 0;
  }

/* ============================================
   Styles migrated from theme.css for home.html
   ============================================ */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #000000;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.15;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 11px; }

strong, b {
  color: #C6BBBB;
}

a {
  color: var(--primary-color);
}

a:hover, a:focus {
  outline: none;
}

.unstyled {
  padding: 0;
  margin: 0;
  list-style: none;
}

.gap-15 { height: 15px; }
.gap-30 { height: 30px; }

/* Buttons */
.btn {
  border-radius: 2px;
  border-width: 2px;
  font-family: 'Montserrat', sans-serif;
  border-color: transparent;
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  border-color: transparent;
}

.btn-outline {
  border-color: #FBF4E6;
  background: #d4a017;
  color: #FBF4E6;
}

.btn-outline:hover,
.btn-outline.active {
  border-color: #FBF4E6;
  color: #FBF4E6;
  background: #d4a017;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4), 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 18px;
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease, visibility 2s ease;
  pointer-events: none;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
}

.floating-nav.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-logo {
  display: block;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.floating-logo:hover {
  transform: scale(1.05);
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 200px;
  background-color: transparent;
  border-radius: 4px;
  padding: 8px;
  transition: background-color 0.5s ease;
  box-sizing: border-box;
}

/* Logo background: blue on light sections (type-2), transparent on blue/hero sections */
.floating-logo.light-section .logo-container {
  background-color: var(--primary-color); /* Blue background on off-white sections */
}

.floating-logo.hero-section .logo-container,
.floating-logo.blue-section .logo-container {
  background-color: transparent; /* Transparent on hero image and blue sections */
}

.logo-image {
  height: 48px; /* Logo height within padded container */
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* Narrow mode - ensure logo fills container properly */
@media (max-width: 768px) {
  .logo-image {
    height: 48px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center center;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.floating-burger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  transition: transform 0.3s ease;
}

.floating-burger:hover {
  transform: scale(1.1);
}

.floating-burger.active {
  transform: rotate(90deg);
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease, background-color 0.3s ease;
  margin: 0;
  flex-shrink: 0;
}

.floating-burger.light .burger-line {
  background-color: var(--primary-color);
}

.floating-burger.dark .burger-line {
  background-color: #FBF4E6;
}

.floating-burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.floating-burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.floating-burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* When menu is open (active), close button should always be blue 
   since menu background is always off-white */
.floating-burger.active .burger-line {
  background-color: var(--primary-color) !important;
}

.floating-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  /* Fallback for browsers without backdrop-filter support */
  background-color: rgba(251, 244, 230, 0.99);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  max-width: 100vw;
}

.floating-menu.open {
  width: 300px;
}

.floating-menu-list {
  list-style: none;
  padding: 100px 40px 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: transparent;
}

.floating-menu-list li {
  background-color: transparent;
}

.floating-menu-link {
  display: block;
  padding: 15px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.floating-menu-link:hover,
.floating-menu-link.active {
  background-color: var(--primary-color);
  color: #FBF4E6;
  transform: translateX(5px);
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  padding: 15px 30px;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  background: #d4a017;
  color: #FBF4E6;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid #FBF4E6;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-cta-newsletter {
  bottom: 95px; /* Position above the enquiry button */
  background: #C6BBBB;
}

.floating-cta-newsletter:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(198, 187, 187, 0.4), 0 0 0 3px rgba(198, 187, 187, 0.2);
}

.floating-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4), 0 0 0 3px rgba(212, 160, 23, 0.2);
  color: #FBF4E6;
}

/* Contact Form Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex;
  opacity: 1;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fallback for browsers without backdrop-filter support */
  background-color: rgba(0, 0, 0, 0.7);
}

/* Enhanced backdrop with blur for supported browsers */
@supports (backdrop-filter: blur(4px)) {
  .floating-menu {
    background-color: rgba(251, 244, 230, 0.98);
    backdrop-filter: blur(10px);
  }
  
  .newsletter-popup-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }
}

.contact-modal-content {
  position: relative;
  background-color: #FBF4E6;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
  transform: scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--primary-color);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-modal-close:hover {
  background-color: rgba(57, 130, 182, 0.1);
  transform: rotate(90deg);
}

.contact-form-container h2,
.contact-success-message h2 {
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 10px;
  margin-top: 0;
}

.contact-form-container p,
.contact-success-message p {
  color: #667987;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #C6BBBB;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #000000;
  background-color: #FFFFFF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(57, 130, 182, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn-cancel {
  background-color: #C6BBBB;
  color: #FBF4E6;
  border: 2px solid #C6BBBB;
  padding: 12px 25px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background-color: #a89d9d;
  border-color: #a89d9d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 187, 187, 0.3);
}

.btn-submit {
  background-color: var(--primary-color);
  color: #FBF4E6;
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-submit:hover {
  background-color: #d4a017;
  border-color: #d4a017;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4), 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.contact-success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #d4a017;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #FBF4E6;
  font-weight: bold;
}

.contact-success-message h2 {
  color: var(--primary-color);
}

.contact-success-message p {
  color: #667987;
  margin-bottom: 30px;
}

.contact-success-message .btn-submit {
  margin: 0 auto;
}

/* Header/Navigation - Old styles (can be removed if not needed elsewhere) */
.header {
  position: relative;
}

.header .navbar {
  background: #FBF4E6;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}

.navbar-fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  background: #FBF4E6;
}

.navbar-default {
  background-color: #FBF4E6;
  border-color: transparent;
}

.navbar-header {
  float: left;
}

.navbar-brand {
  float: left;
  padding: 15px;
  font-size: 18px;
  line-height: 20px;
  height: 50px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-toggle {
  position: relative;
  float: right;
  padding: 9px 10px;
  margin-top: 8px;
  margin-right: 15px;
  margin-bottom: 8px;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #000;
  margin: 4px 0;
}

.navbar-nav {
  margin: 0;
  list-style: none;
}

.navbar-nav > li {
  float: left;
}

.navbar-nav > li > a {
  padding: 15px;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
}

.navbar-nav > li > a:hover {
  color: var(--primary-color);
}

.navbar-nav > .active > a {
  color: var(--primary-color);
  background-color: transparent;
}

.navbar-right {
  float: right;
}

.navbar-collapse {
  overflow-x: visible;
  padding-right: 15px;
  padding-left: 15px;
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-responsive-collapse {
  display: none;
}

.hidden-xs {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.navbarcentre {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container and Grid */
.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large desktop - part of wide mode */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.row {
  margin-left: -15px;
  margin-right: -15px;
  max-width: calc(100% + 30px);
  box-sizing: border-box;
}

.row:before,
.row:after {
  display: table;
  content: " ";
}

.row:after {
  clear: both;
}

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
}

.col-lg-6 {
  width: 50%;
}

.col-lg-8 {
  width: 66.66666667%;
}

.col-lg-4 {
  width: 33.33333333%;
}

.col-md-4 {
  width: 33.33333333%;
}

.text-center {
  text-align: center;
}

.visible-xs,
.visible-sm {
  display: none;
}

/* Sections */
.section {
  padding: 50px 0;
  max-width: 100%;
  overflow-x: hidden;
}

.section.type-1 {
  background: #C6BBBB;
  color: #000000;
}

.section.type-1 h1,
.section.type-1 h2,
.section.type-1 h3,
.section.type-1 h4,
.section.type-1 h5,
.section.type-1 h6,
.section.type-1 strong,
.section.type-1 b {
  color: #FBF4E6;
}

.section.type-1 h4 {
  color: var(--primary-color);
}

.section.type-2 {
  background: #FBF4E6;
}

.section.type-3 {
  background: #C6BBBB;
}

.section.type-4 {
  background: var(--primary-color);
}

.section.big {
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.section.splash {
  background: url(../images/header/headerbg.jpg) fixed no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Fix fixed background on mobile devices */
@media (max-width: 768px) {
  .section.splash {
    background-attachment: scroll;
  }
}

.section.splash h1 {
  width: 80%;
  margin: 0 auto 40px;
  color: #FBF4E6;
  font-size: 36px;
  line-height: 1.4;
}

.section.splash h2 {
  width: 80%;
  margin: 0 auto 40px;
  color: #FBF4E6;
}

.section-headlines {
  margin-bottom: 30px;
  text-align: center;
}

.section-headlines > h2 {
  font-size: 28px;
  padding-bottom: 30px;
}

.section-headlines > h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
  letter-spacing: 2px;
  word-spacing: 5px;
  padding-top: 20px;
}

.section-headlines > h5 {
  font-size: 3em;
  color: #FBF4E6;
}

.section-headlines > div {
  line-height: 1.8;
}

.section-headlines p {
  width: 80%;
  margin: 0 auto 40px;
}

/* What we do content sections */
.what-we-do-content {
  padding: 20px 50px;
}

/* Vertically center the image column in wide mode */
@media (min-width: 992px) {
  #blank-section-1 .row {
    display: flex;
    align-items: center;
  }
  
  .row .col-lg-6:last-child.what-we-do-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.what-we-do-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}

.what-we-do-content p:last-child {
  margin-bottom: 0;
}

.what-we-do-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive adjustments for what we do section */
/* Tablet mode - stack columns vertically */
@media (min-width: 769px) and (max-width: 991px) {
  #blank-section-1 .row {
    flex-direction: column;
  }
  
  #blank-section-1 .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .what-we-do-content {
    padding: 20px 25px;
    margin-bottom: 20px;
  }
}

/* About Us content sections */
.about-us-content {
  padding: 20px 50px;
}

.about-us-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}

.about-us-content p:last-child {
  margin-bottom: 0;
}

.about-us-content .team_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Responsive adjustments for about us section */
@media (max-width: 991px) {
  .about-us-content {
    padding: 20px 25px;
    margin-bottom: 20px;
  }
}

/* Narrow mode - make founder image fill frame */
@media (max-width: 768px) {
  .team-avatar-wrapper {
    width: auto;
    height: auto;
    padding: 0;
    display: inline-block;
    line-height: 0;
  }
  
  .team-avatar {
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
  }
}

/* Splash Block */
.splash-block {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  overflow: hidden;
}

.splash-block:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}

.centered {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  width: 100%;
  padding: 100px 0;
}

.splash-block p {
  color: #FBF4E6 !important;
  font-size: 20px;
}

/* Jumper */
.jumper {
  height: 0;
  position: relative;
  top: -50px;
}

/* Image Container */
.ImageContainer {
  padding-bottom: 100px;
}

.ImageContainer img {
  max-width: 100%;
  height: auto;
}

/* Button Container */
.buttoncontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 70px;
}

/* Grid/MixItUp */
.mixitup {
  width: 100%;
}

#Grid {
  font-size: 0;
  line-height: 0;
  text-align: justify;
  display: inline-block;
  width: 100%;
}

#Grid:after {
  content: '';
  display: inline-block;
  width: 100%;
}

#Grid .mix {
  opacity: 0;
  display: none;
  width: 20%;
  vertical-align: top;
  font-size: 14px;
}

#Grid .mix > div .media-thumb {
  position: relative;
  overflow: hidden;
}

#Grid .mix > div .media-thumb img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

#Grid .mix > div .media-thumb:hover .media-desc {
  opacity: 1;
}

#Grid .mix > div .media-desc {
  opacity: 0;
  background: #d4a017;
  color: #C6BBBB;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  line-height: 20px;
  transition: opacity 0.3s linear;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#Grid .mix > div .media-desc > div {
  width: 100%;
  padding: 20px;
}

#Grid .mix > div .media-desc b {
  color: #FBF4E6;
  font-size: 25px;
  text-align: center;
}

/* Tablet mode */
@media (min-width: 769px) and (max-width: 991px) {
  #Grid .mix {
    width: 33.333333%;
  }
}

/* Narrow mode */
@media (max-width: 768px) {
  #Grid .mix {
    width: 100%;
  }
}

/* Features */
.features {
  margin-bottom: 30px;
}

.features img {
  max-width: 100%;
  height: auto;
}

/* Accordion/Panels */
.panel-group {
  margin-bottom: 20px;
}

.panel-group .panel {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.panel-group .panel + .panel {
  border-top: 1px solid #FBF4E6;
  margin-top: 0;
  padding-top: 10px;
}

.panel-group .panel-heading {
  padding: 0 0 10px;
  background-color: transparent;
  border: none;
}

.panel-group .panel-body {
  padding: 5px 0 15px;
  border-top: 0 !important;
}

.panel-title {
  font-size: 18px;
  margin: 0;
}

.panel-title a {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  color: inherit;
}

.panel-title a i {
  color: #C6BBBB;
  font-size: 14px;
  height: 23px;
  line-height: 23px;
  float: left;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.panel-title a .icon-minus {
  display: none;
}

.panel-title a.collapsed .icon-minus {
  display: block;
}

.panel-title a.collapsed .icon-plus {
  display: none;
}

.panel-collapse {
  overflow: hidden;
}

.panel-collapse.collapse {
  display: none;
}

.panel-collapse.collapse.in {
  display: block;
}

/* Team */
.team_item {
  margin-bottom: 30px;
  text-align: center;
}

.team_body {
  padding: 25px 15px 31px 15px;
}

.team_item .img_block {
  margin: 0;
  padding-top: 20px;
}

.team_item a {
  text-decoration: none;
}

.team_item .img_block img {
  max-width: 100%;
  width: auto;
  margin: auto;
}

/* Team avatar wrapper - matching testimonial style */
.team-avatar-wrapper {
  margin: 0 auto 15px auto;
  display: inline-block;
  border: 3px solid var(--primary-color);
  border-radius: 8px;
  background-color: #f5f5f5;
  overflow: hidden;
  line-height: 0;
  vertical-align: top;
}

.team-avatar {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  vertical-align: top;
}

.team_body h5.team-name {
  line-height: 20px;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: none;
}

.team_body h6.team-role {
  line-height: 20px;
  font-size: 1em;
  font-weight: 300;
  color: var(--asegrey-color);
  padding: 0;
  margin: 0 0 20px 0;
  font-style: italic;
}

.team_body p {
  margin-bottom: 30px;
}

/* Contact Section */
.section-contact .address-row {
  display: table;
  width: 100%;
}

.section-contact .address-sign {
  display: table-cell;
  width: 30px;
  opacity: 0.3;
}

.section-contact .address-info {
  display: table-cell;
}

.section-contact .address-info b {
  color: #FBF4E6;
  display: block;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-image: url(../images/header/headerbg.jpg);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #FBF4E6;
  padding: 10px 20px;
  height: auto;
  min-height: 120px;
  box-sizing: border-box;
  position: relative;
}

.footer-left,
.footer-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-left p {
  margin: 5px 0;
}

.footer-right {
  text-align: right;
}

.footer-right .social-link {
  margin-top: 10px;
}

footer a.social-link {
  color: #FBF4E6;
  text-decoration: none;
  font-weight: bold;
}

footer a.social-link:hover {
  color: #FBF4E6;
  text-decoration: underline;
}

/* Responsive - Floating Navigation */
@media (max-width: 768px) {
  .floating-nav {
    padding: 15px 20px;
  }

  .logo-container {
    height: 56px;
    min-width: 200px; /* Match wide mode width */
    padding: 4px; /* Reduced padding to give more space for logo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .logo-image {
    height: 48px !important; /* Match wide mode logo size to fill container properly */
    width: auto !important;
    max-width: none !important; /* Remove width constraint so logo can fill container */
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .floating-menu.open {
    width: 280px;
  }

  .floating-menu-list {
    padding: 50px 20px 20px;
    gap: 5px;
  }

  .floating-menu-link {
    font-size: 16px;
    padding: 8px 15px;
  }
}

/* Tablet mode - between 768px and 991px */
@media (min-width: 769px) and (max-width: 991px) {
  .floating-menu-list {
    padding: 60px 25px 25px;
    gap: 6px;
  }

  .floating-menu-link {
    font-size: 17px;
    padding: 9px 15px;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .floating-cta-newsletter {
    bottom: 80px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Reduce bottom padding on sections in narrow mode (except hero section) */
  .section:not(.splash) {
    padding-bottom: 30px;
  }
  
  .navbar-nav {
    float: none;
  }

  .navbar-nav > li {
    float: none;
  }

  .navbar-nav > li > a {
    padding: 10px 15px;
  }

  .navbar-collapse {
    max-height: 340px;
    overflow-y: auto;
  }

  .navbar-responsive-collapse {
    display: block;
  }

  .hidden-xs {
    display: none !important;
  }

  .visible-xs {
    display: block !important;
  }

  .section.splash h1 {
    width: 80%;
    margin: 0 auto 40px;
    font-size: large;
  }

  .section.splash h2 {
    width: 80%;
    margin: 0 auto 40px;
    font-size: large;
  }

  .section-headlines > h4 {
    font-size: 2em;
  }

  .col-lg-6,
  .col-lg-8,
  .col-lg-4,
  .col-md-4 {
    width: 100%;
    float: none;
  }

  .ImageContainer {
    padding-bottom: 30px;
    width: 100%;
    text-align: center;
  }

  img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 40px;
  }

  /* Exclude floating logo from general img rules */
  .logo-image {
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    height: 48px !important;
    width: auto !important;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
    margin-top: 10px;
    padding: 0px;
  }

  .footer-left {
    text-align: center;
    padding: 0px;
  }
}

@media (max-width: 991px) {
  .visible-sm {
    display: block !important;
  }
}

/* Client Testimonials Section */
#blank-section-3.section.type-4 {
  background: url(../images/header/headerbg.jpg) fixed no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Who We Work With Section */
#blank-section-2.section.type-4 {
  background: url(../images/header/headerbg.jpg) fixed no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Fix fixed background on mobile devices */
@media (max-width: 768px) {
  #blank-section-3.section.type-4,
  #blank-section-2.section.type-4 {
    background-attachment: scroll;
  }
}

.section.type-4 .section-headlines > h4 {
  color: #FBF4E6;
}

/* Who We Work With Section */
.who-we-work-with-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.who-card {
  /* Fallback for browsers without backdrop-filter support */
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Enhanced background with backdrop-filter for supported browsers */
@supports (backdrop-filter: blur(10px)) {
  .who-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
}

.who-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.who-question {
  font-size: 1.2em;
  line-height: 1.6;
  color: #FBF4E6;
  margin: 0;
  font-weight: 400;
}

/* Who We Work With Popup */
.who-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.who-popup.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.who-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fallback for browsers without backdrop-filter support */
  background-color: rgba(0, 0, 0, 0.7);
}

/* Enhanced backdrop with blur for supported browsers */
@supports (backdrop-filter: blur(4px)) {
  .who-popup-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }
}

.who-popup-content {
  position: relative;
  background: url(../images/header/headerbg.jpg) no-repeat;
  background-size: 200% auto;
  background-position: center center;
  background-attachment: local;
  border-radius: 12px;
  padding: 40px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.who-popup.active .who-popup-content {
  transform: scale(1);
}

.who-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #FBF4E6;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10002;
}

.who-popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.who-popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  color: #FBF4E6;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 600;
}

.who-popup-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.who-popup-image-container {
  width: 100%;
  text-align: center;
}

.who-popup-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.who-popup-text {
  font-size: 1.1em;
  line-height: 1.5;
  color: #FBF4E6;
  text-align: justify;
}

.who-popup-text p {
  margin-bottom: 25px;
}

.who-popup-text p:last-child {
  margin-bottom: 0;
}

/* Responsive Who We Work With */
/* Tablet mode - keep 2 columns but adjust spacing */
@media (min-width: 769px) and (max-width: 991px) {
  .who-we-work-with-grid {
    gap: 25px;
    padding: 35px 20px;
  }
}

/* Narrow mode */
@media (max-width: 768px) {
  .who-we-work-with-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px;
  }

  .who-card {
    padding: 30px 20px;
    min-height: auto;
  }

  .who-question {
    font-size: 1.1em;
  }

  .who-popup-content {
    padding: 30px;
    max-width: 95%;
    background-size: 300% auto;
  }

  .who-popup-title {
    font-size: 1.6em;
  }

  .who-popup-text {
    font-size: 1em;
  }

  .who-popup-body {
    gap: 20px;
  }
}

.testimonials-container {
  padding: 40px 0;
  position: relative;
}


.testimonials-wrapper {
  min-height: 600px;
  /* Ensure wrapper maintains hover area even when columns move */
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
  align-items: center;
  justify-items: center;
  transition: gap 0.5s ease;
}

.testimonials-wrapper.columns-separated .client-logos-grid {
  gap: 60px 80px; /* Keep same gap, no column separation */
}

.client-logo-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 20px;
  margin: -20px;
  /* Expand hover area to prevent flickering when logo moves */
}

/* Hover effect on client logos */
.client-logo-item:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.client-logo-item:hover .client-logo {
  filter: brightness(1.1);
}

/* Disabled items should not have hover effect */
.client-logo-item[data-disabled="true"] {
  cursor: default;
  opacity: 0.5;
}

.client-logo-item[data-disabled="true"]:hover {
  transform: none;
  opacity: 0.5;
}

/* Column animations - disabled for all screen sizes */
.testimonials-wrapper.hover-left .client-logo-item[data-column="left"],
.testimonials-wrapper.hover-right .client-logo-item[data-column="left"],
.testimonials-wrapper.hover-left .client-logo-item[data-column="right"],
.testimonials-wrapper.hover-right .client-logo-item[data-column="right"] {
  transform: scale(1.1); /* Use hover scale instead of translate */
}

/* Ensure disabled items don't animate */
.testimonials-wrapper.hover-left .client-logo-item[data-disabled="true"][data-column="left"],
.testimonials-wrapper.hover-right .client-logo-item[data-disabled="true"][data-column="left"],
.testimonials-wrapper.hover-left .client-logo-item[data-disabled="true"][data-column="right"],
.testimonials-wrapper.hover-right .client-logo-item[data-disabled="true"][data-column="right"] {
  transform: none;
}

.client-logo {
  max-width: 100%;
  height: 102px;
  width: auto;
  object-fit: contain;
}

/* Testimonial Popup Container */
.testimonial-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.testimonial-popup-container.active {
  display: flex;
  opacity: 1;
  pointer-events: none; /* Don't block hover events - only popup itself captures them */
}

.testimonial-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none; /* Allow hover events to pass through on wide screens */
}

/* Enhanced backdrop with blur for supported browsers */
@supports (backdrop-filter: blur(4px)) {
  .testimonial-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
  }
}

/* Testimonial Popup */
.testimonial-popup {
  position: relative;
  width: 600px;
  max-width: 90vw;
  min-height: 500px;
  background: #FBF4E6;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease 0.2s, visibility 0.4s ease 0.2s;
  z-index: 10001;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Ensure smooth transitions without interruption */
.client-logo-item,
.client-logos-grid {
  will-change: transform, opacity;
}

.testimonial-popup-container.active .testimonial-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.testimonial-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--primary-color);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex; /* Show close button on all screen sizes */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001;
}

.testimonial-close:hover {
  background-color: rgba(57, 130, 182, 0.1);
  transform: rotate(90deg);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.testimonial-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  min-height: 150px;
  position: relative;
}

.testimonial-logo-container {
  flex: 0 0 calc(50% - 15px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 15px;
}

.testimonial-logo {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.testimonial-contact-container {
  flex: 0 0 calc(50% - 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-left: 15px;
}

.testimonial-bottom {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.testimonial-avatar-wrapper {
  margin: 0 auto 15px auto;
  display: inline-block;
  border: 3px solid var(--primary-color);
  border-radius: 8px;
  background-color: #f5f5f5;
  overflow: hidden;
  line-height: 0;
  vertical-align: top;
  width: max-content;
  height: max-content;
  padding: 0;
}

.testimonial-avatar {
  max-width: 100px;
  width: auto;
  height: auto;
  display: block;
  object-position: center center;
  margin: 0;
  padding: 0;
}

.testimonial-name {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 5px 0;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.testimonial-role {
  font-size: 1em;
  color: var(--asegrey-color);
  margin: 0;
  font-style: italic;
  text-align: center;
}

.testimonial-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  text-align: justify;
  width: 100%;
  font-style: italic;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Responsive adjustments for testimonials */
/* Tablet mode - use narrow mode approach (no column animations) */
@media (min-width: 769px) and (max-width: 991px) {
  .client-logos-grid {
    gap: 40px 30px;
  }

  /* Disable column animations on tablet screens */
  .testimonials-wrapper.columns-separated .client-logos-grid {
    gap: 40px 30px;
  }

  .testimonials-wrapper.hover-left .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-left .client-logo-item[data-column="right"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="right"] {
    transform: none;
  }

  .client-logo {
    height: 82px;
  }

  /* On tablet screens, backdrop should be clickable to close popup */
  .testimonial-backdrop {
    pointer-events: auto;
  }

  .testimonial-popup-container.active {
    pointer-events: auto; /* Allow backdrop clicks on tablet screens */
  }

  .testimonial-popup {
    width: 90vw;
    max-height: 75vh;
    height: auto;
    min-height: 400px;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Show close button on tablet screens */
  .testimonial-close {
    display: flex;
  }

  .testimonial-content {
    gap: 20px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }

  .testimonial-top {
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .testimonial-bottom {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
  }

  .testimonial-logo-container {
    width: 100%;
    text-align: center;
  }

  .testimonial-logo {
    max-height: 80px;
  }

  .testimonial-contact-container {
    align-items: center;
    text-align: center;
  }

  .testimonial-name,
  .testimonial-role {
    text-align: center;
  }

  .testimonial-avatar-wrapper {
    margin-bottom: 15px;
  }

  .testimonial-avatar {
    max-width: 85px;
    width: auto;
    height: auto;
  }
}

/* Narrow mode */
@media (max-width: 768px) {
  .client-logos-grid {
    gap: 40px 30px;
  }

  /* Disable column animations on narrow screens */
  .testimonials-wrapper.columns-separated .client-logos-grid {
    gap: 40px 30px;
  }

  .testimonials-wrapper.hover-left .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-left .client-logo-item[data-column="right"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="right"] {
    transform: none;
  }

  .client-logo {
    height: 82px;
  }

  /* On narrow screens, backdrop should be clickable to close popup */
  .testimonial-backdrop {
    pointer-events: auto;
  }

  .testimonial-popup-container.active {
    pointer-events: auto; /* Allow backdrop clicks on narrow screens */
  }

  .testimonial-popup {
    width: 90vw;
    max-height: 75vh;
    height: auto;
    min-height: 400px;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Show close button on narrow screens */
  .testimonial-close {
    display: flex;
  }

  .testimonial-content {
    gap: 20px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }

  .testimonial-top {
    flex-shrink: 0;
  }

  .testimonial-bottom {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 5px;
    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
  }

  /* Custom scrollbar styling for testimonial text - Webkit browsers (Chrome, Safari, Edge) */
  .testimonial-bottom::-webkit-scrollbar {
    width: 6px;
  }

  .testimonial-bottom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .testimonial-bottom::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
  }

  .testimonial-bottom::-webkit-scrollbar-thumb:hover {
    background: #2a6a94;
  }

  .testimonial-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .testimonial-logo-container {
    width: 100%;
    text-align: center;
  }

  .testimonial-logo {
    max-height: 80px;
  }

  .testimonial-contact-container {
    align-items: center;
    text-align: center;
  }

  .testimonial-name,
  .testimonial-role {
    text-align: center;
  }

  .testimonial-avatar-wrapper {
    margin-bottom: 15px;
  }

  .testimonial-avatar {
    max-width: 85px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 480px) {
  .client-logos-grid {
    gap: 30px 20px;
  }

  .testimonials-wrapper.columns-separated .client-logos-grid {
    gap: 30px 20px;
  }

  /* Disable column animations on small screens */
  .testimonials-wrapper.hover-left .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="left"],
  .testimonials-wrapper.hover-left .client-logo-item[data-column="right"],
  .testimonials-wrapper.hover-right .client-logo-item[data-column="right"] {
    transform: none;
  }

  .client-logo {
    height: 62px;
  }

  .testimonial-popup {
    width: 95vw;
    min-height: 350px;
    padding: 20px;
  }

  .testimonial-logo {
    max-height: 60px;
  }

  .testimonial-avatar-wrapper {
    margin-bottom: 15px;
  }

  .testimonial-avatar {
    max-width: 70px;
    width: auto;
    height: auto;
  }

  .testimonial-name {
    font-size: 1.1em;
  }

  .testimonial-text {
    font-size: 0.9em;
  }
}

/* Services Section */
.services-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.service-item {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  cursor: pointer;
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: transparent;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
}

.service-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.service-icon img {
  max-width: 240px;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-item:active {
  transform: translateY(-3px);
  border-color: var(--asegrey-color);
}

.service-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* Service Popup */
.service-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-popup.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.service-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fallback for browsers without backdrop-filter support */
  background-color: rgba(0, 0, 0, 0.7);
}

/* Enhanced backdrop with blur for supported browsers */
@supports (backdrop-filter: blur(4px)) {
  .service-popup-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }
}

.service-popup-content {
  position: relative;
  background-color: #FBF4E6;
  border-radius: 12px;
  padding: 40px;
  max-width: 963px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.service-popup.active .service-popup-content {
  transform: scale(1);
}

.service-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--primary-color);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10002;
}

.service-popup-close:hover {
  background-color: rgba(57, 130, 182, 0.1);
  transform: rotate(90deg);
}

.service-popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  color: var(--primary-color);
  margin: 0 0 25px 0;
  text-align: center;
}

.service-popup-body {
  font-size: 1.1em;
  line-height: 1.5;
  color: #000000;
  text-align: justify;
}

.service-popup-body p {
  margin-bottom: 25px;
  color: #000000;
}

.service-popup-body p:last-child {
  margin-bottom: 0;
}

.service-popup-body ul {
  margin: 20px 0;
  padding-left: 25px;
}

.service-popup-body li {
  margin-bottom: 12px;
  color: #000000;
}

.service-popup-body li strong {
  font-weight: 700;
  color: #000000;
}

/* Responsive Services */
/* Tablet mode - keep horizontal layout but adjust sizing */
@media (min-width: 769px) and (max-width: 991px) {
  .services-grid {
    gap: 25px;
  }

  .service-item {
    min-width: 220px;
    max-width: 300px;
  }
}

/* Narrow mode */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .service-item {
    max-width: 100%;
    width: 100%;
  }

  .service-popup-content {
    padding: 30px;
    max-width: 95%;
  }

  .service-popup-title {
    font-size: 1.6em;
  }

  .service-popup-body {
    font-size: 1em;
  }
}
