/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
    /* Brand Colors extracted from mood board */
    --color-primary-dark: #22282D; /* Dark Slate / Charcoal */
    --color-secondary-dark: #586469; /* Slate Grey */
    --color-accent-warm: #8C867B; /* Warm Taupe */
    --color-bg-light: #E3DED8; /* Light Beige */
    --color-bg-white: #F9F8F6; /* Off-white for main background */
    --color-accent-green: #697262; /* Sage Green */
    --color-text-main: #22282D;
    --color-text-light: #586469;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(44, 50, 54, 0.08);
    --shadow-hover: 0 15px 40px rgba(44, 50, 54, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 4rem 0; /* Reduced from 100px to tighten up the vertical spacing globally */
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.btn-outline:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary-dark);
    letter-spacing: 2px;
}

.logo-text small {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--color-accent-warm);
    display: block;
    margin-top: 4px;
}

.navbar.scrolled .logo-text,
.navbar.scrolled .logo-text small {
    /* Optional: change colors if background was dark */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-dark);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent-green);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-white); /* Clean background */
    overflow: hidden; /* Hide overflowing background text */
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Huge text in the background */
.hero-bg-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13.5vw; /* Max size to fit on one line */
    line-height: 1;
    color: var(--color-bg-light);
    white-space: nowrap;
    width: 100%;
    z-index: 1;
    text-align: center;
    pointer-events: none;
}

.hero-bg-text-blue {
    color: rgba(58, 90, 110, 0.15); /* Subtle brand blue watermark */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-brain-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    animation: float 6s ease-in-out infinite;
    perspective: 1000px;
}

.hero-brain-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    transform-style: preserve-3d;
    transform: scale(1.35); /* Scale up visually without changing layout footprint */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: 2.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--color-accent-green);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-secondary-dark);
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Intro Statement
   ========================================================================== */
.intro-statement {
    background-color: var(--color-accent-green);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0; /* Override global section padding to make this banner thinner */
}

.intro-watermark {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 400px; 
    width: 35%;
    object-fit: cover;
    opacity: 0.15; /* Consistent opacity everywhere */
    filter: invert(1);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.intro-statement .container {
    position: relative;
    z-index: 2;
}

.intro-statement .lead-text {
    color: #ffffff;
}

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

.lead-text {
    font-size: 1.6rem;
    color: var(--color-secondary-dark);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
    font-family: var(--font-body);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-brand-blue);
    font-weight: 800;
    margin-bottom: 0.5rem; /* Pull divider closer */
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-accent-green));
    border-radius: 4px;
    margin: 0.5rem auto 1rem auto; /* Tighten spacing above and below divider */
}

.section-header p {
    margin-top: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--color-bg-white);
    padding-top: 1rem; /* Pull section much closer to the About section above it */
    padding-bottom: 6rem; /* Add extra space to clear the staggered cards at the bottom */
}

.services-interactive-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem; /* Increased gap to spread cards out horizontally */
    align-items: center;
    justify-items: center;
    margin-top: 4rem;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.services-center {
    text-align: center;
    position: relative;
    z-index: 1; /* Lowered so cards and lines can overlay it */
}

.services-center-img {
    width: 100%;
    max-width: 450px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.service-card-blue {
    /* True Glassmorphism Recipe - Green Gradient */
    background: linear-gradient(135deg, rgba(105, 114, 98, 0.8), rgba(105, 114, 98, 0.35));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 2rem; /* Increased padding slightly for wider card */
    width: 330px; /* Made significantly wider */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-blue:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.service-card-blue .service-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-accent-green); /* Updated to match green theme */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card-blue h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-card-blue p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Staggering the cards and pulling them inward to overlap the brain image */
.services-col:first-child .service-card-blue:first-child { transform: translateX(20px) translateY(-30px); }
.services-col:first-child .service-card-blue:last-child { transform: translateX(10px) translateY(30px); }
.services-col:last-child .service-card-blue:first-child { transform: translateX(-20px) translateY(-20px); }
.services-col:last-child .service-card-blue:last-child { transform: translateX(-10px) translateY(40px); }

/* ==========================================================================
   Services Accordion
   ========================================================================== */
.services-accordion-wrapper {
    margin-top: 5rem;
    text-align: center;
}

.accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.services-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.services-accordion-content.open {
    max-height: 1000px; /* large enough to fit content */
    opacity: 1;
}

.full-services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem;
    
    /* True Glassmorphism Recipe - Green Gradient */
    background: linear-gradient(135deg, rgba(105, 114, 98, 0.8), rgba(105, 114, 98, 0.35));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.full-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.full-services-list li i {
    color: #ffffff;
    font-size: 1.25rem;
    margin-top: 0.15rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   About Section (Overlap Layout)
   ========================================================================== */
.about-overlap {
    background-color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
}

.about-bg-object {
    position: absolute;
    top: 50%;
    left: -15vw;
    width: 60vw;
    max-width: 900px;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 1;
}

.about-overlap-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end; /* Push content to the right */
}

.about-overlap-content {
    width: 65%;
    padding-left: 2rem;
}

.about-main-headline {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-primary-dark);
    margin-bottom: 4rem;
    text-transform: none;
    letter-spacing: normal;
}

.about-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.col-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-green);
    margin-bottom: 1.5rem;
}

.about-two-col p {
    font-size: 0.95rem;
    color: var(--color-secondary-dark);
    line-height: 1.8;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.about-list i {
    color: var(--color-accent-green);
    font-size: 1.25rem;
}

/* ==========================================================================
   Contact / Lead Gen Section
   ========================================================================== */
.contact {
    background-color: var(--color-bg-light); /* Matches Reviews section background */
    position: relative;
    overflow: hidden;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-info > p {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #ffffff;
    background-color: var(--color-accent-green);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(118, 137, 115, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover i {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(118, 137, 115, 0.4);
}

.info-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* Floating Label Form */
.contact-form-wrapper {
    background: linear-gradient(135deg, var(--color-primary-dark), #3A5A6E);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 10;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-white);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-white);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    background: transparent;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--color-white);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--color-white);
    font-weight: 600;
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

.contact-form .btn {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border: none;
    margin-top: 1rem;
}

.contact-form .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-form .btn i {
    margin-left: 10px;
    transition: var(--transition-fast);
}

.contact-form .btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--color-accent-warm);
}

.footer-brand p {
    color: #ccc;
    max-width: 400px;
    margin-bottom: 2rem;
}

.footer-links p {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Service Lists (New)
   ========================================================================== */
.service-list {
    text-align: left;
    margin-top: 1.5rem;
}

.service-list li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-list li i {
    color: var(--color-accent-green);
    margin-top: 4px;
    font-size: 0.85rem;
}

.service-card:hover .service-list li {
    color: var(--color-bg-light);
}

.service-card:hover .service-list li i {
    color: var(--color-white);
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.philosophy {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,320 L250,150 L400,280 L700,50 L950,230 L1150,100 L1440,280 L1440,320 Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
    z-index: 0;
}

.philosophy .container {
    position: relative;
    z-index: 1;
}

.philosophy h2 {
    color: var(--color-bg-light);
}

.philosophy .divider {
    background-color: var(--color-accent-green);
}

.philosophy blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-white);
    font-style: italic;
}

.philosophy p {
    color: var(--color-bg-light);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* ==========================================================================
   Why Mobile Section
   ========================================================================== */
.why-mobile {
    background-color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.benefit-item i {
    font-size: 1.5rem;
    color: #ffffff;
    background-color: #3A5A6E;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(58, 90, 110, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover i {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(58, 90, 110, 0.3);
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
/* ==========================================================================
   Reviews Marquee
   ========================================================================== */
.reviews-section {
    background-color: var(--color-bg-light);
    padding: 2.5rem 0; /* Reduced from 5rem */
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.reviews-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.reviews-track {
    display: flex;
    gap: 1.5rem; /* Slightly tighter gap */
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    padding: 1rem;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem; /* Reduced */
    width: 280px; /* Reduced from 320px */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid var(--color-primary-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.review-card.highlight-card {
    background: var(--color-accent-green);
    border-top: 4px solid var(--color-primary-dark);
}

.review-card.highlight-card h4, 
.review-card.highlight-card p, 
.review-card.highlight-card .author-info strong, 
.review-card.highlight-card .author-info span {
    color: #ffffff;
}

.review-card.highlight-card .stars {
    color: #ffffff;
}

.review-card.highlight-card .quote-badge {
    background: var(--color-primary-dark);
    color: #ffffff;
}

.quote-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--color-accent-green);
    color: #ffffff;
    width: 26px; /* Reduced */
    height: 26px; /* Reduced */
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem; /* Reduced */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.review-card .stars {
    color: #FFD700;
    font-size: 0.85rem; /* Reduced */
    margin-bottom: 0.25rem; /* Reduced */
    letter-spacing: 1px;
}

.review-card h4 {
    font-size: 1rem; /* Reduced */
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.review-card p {
    font-size: 0.85rem; /* Reduced text */
    line-height: 1.4;
    color: var(--color-secondary-dark);
    flex-grow: 1;
    margin-bottom: 1rem; /* Reduced */
}

.review-author-block {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced */
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 0.75rem; /* Reduced */
}

.review-card.highlight-card .review-author-block {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.avatar {
    width: 30px; /* Smaller avatar */
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem; /* Reduced */
}

.review-card.highlight-card .avatar {
    background-color: #ffffff;
    color: var(--color-accent-green);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.8rem; /* Reduced */
    color: var(--color-primary-dark);
}

.author-info span {
    font-size: 0.7rem; /* Reduced */
    color: var(--color-secondary-dark);
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .about-container, .contact-container, .services-interactive-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active i::before {
        content: "\f00d"; /* FontAwesome X icon */
    }
    
    .hero h1 {
        font-size: 1.45rem; 
        margin-bottom: 0.5rem !important; /* Pull buttons much closer to title */
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 4px !important; /* Extremely tight gap between buttons */
        align-items: center; 
    }
    
    .hero-buttons .btn-large,
    .about-overlap .btn-large,
    .services-accordion-wrapper .btn-large {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
        width: 80%;
        max-width: 300px;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    /* Mobile Layout Optimizations */
    .nav-container {
        justify-content: center;
    }
    
    .hamburger {
        position: absolute;
        right: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .intro-statement.section-padding {
        padding: 1rem 0 !important; /* Shrink overall padding for mobile */
    }
    
    .intro-statement .lead-text {
        font-size: 1.1rem !important; /* Shrink text significantly for mobile */
        line-height: 1.4; /* Tighten line height slightly */
        padding: 0 1rem; /* Ensure it doesn't touch edges */
    }
    
    .hero {
        padding: 5rem 0 2rem;
        min-height: auto; /* Let it shrink if needed to keep buttons visible */
    }
    
    .hero-bg-text {
        font-size: 13.5vw; /* Max size to fit on screen */
        letter-spacing: 1px;
        top: 35%; /* Move up behind the brain */
    }
    
    .hero-brain-img {
        max-width: 180px; /* Smaller brain to save vertical space */
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        padding: 12px 24px; /* Shrunk button padding for mobile */
        font-size: 0.9rem; /* Shrunk button font size for mobile */
    }
    
    .services-interactive-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        row-gap: 12rem !important; /* Huge hole in the middle for the bigger brain */
        column-gap: 0.5rem !important; /* Tight column gap */
        align-items: center;
        padding: 0 0.5rem;
        position: relative !important;
    }
    
    .services-col {
        display: contents !important; /* Cards become direct grid children */
    }
    
    .services-col .service-card-blue {
        transform: none !important; /* Remove desktop staggered transforms */
        padding: 0.8rem !important; /* Small padding */
        text-align: center; /* Center text in tiny cards */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2 !important; /* Cards float above the brain */
        min-width: 0 !important;
        width: 100% !important;
        height: 70px !important; /* Fixed height so all cards match perfectly */
        box-sizing: border-box !important;
    }
    
    .service-card-blue .service-icon {
        display: none !important; /* Hide icons on mobile to make cards smaller */
    }
    
    .service-card-blue h3 {
        font-size: 0.75rem !important; /* Tiny font size */
        margin-bottom: 0 !important;
        line-height: 1.2;
    }
    
    .service-card-blue p {
        display: none !important; /* Completely hide description on mobile */
    }

    .services-center {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1 !important; /* Brain sits behind cards if they overlap */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 180px !important; /* Fixed width for center wrapper to match hero brain */
        height: auto !important;
    }
    
    .services-center-img {
        max-width: 180px !important; /* Exact brain size to match hero brain */
        width: 180px !important;
        margin: 0 !important;
    }
    
    .services-accordion-wrapper {
        margin-top: 2rem !important; /* Shrunk from 5rem to bring button closer to cards */
    }

    .services-accordion-wrapper .btn-large {
        white-space: nowrap !important; /* Force button text to stay on one line */
        width: auto !important; /* Let it widen if necessary to fit text */
        min-width: 80%;
    }
    
    .philosophy.section-padding {
        padding: 2rem 0 !important; /* Reduce vertical padding */
    }
    
    .philosophy blockquote {
        font-size: 1.25rem !important; /* Shrink massive quote */
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .philosophy p {
        font-size: 0.9rem !important; /* Shrink paragraph */
        line-height: 1.5 !important;
    }
    
    .why-mobile.section-padding {
        padding: 2rem 0 !important;
    }
    
    .why-mobile .section-header {
        margin-bottom: 1.5rem !important;
    }
    
    .benefits-grid {
        gap: 1.5rem !important; /* Shrunk gap */
    }
    
    .benefit-item i {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .benefit-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .benefit-item p {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }
    
    .contact-info h2 {
        font-size: 1.5rem !important; /* Shrunk massive heading */
    }
    
    .contact-info > p {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important; /* Tighter gap below intro paragraph */
    }
    
    .info-item {
        gap: 1rem !important; /* Tighter gap between icon and text */
        margin-bottom: 1.5rem !important; /* Tighter gap between contact items */
    }
    
    .info-item i {
        width: 45px !important; /* Shrunk huge 60px icons */
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .info-item h4 {
        font-size: 1.1rem !important;
    }
    
    .info-item p {
        font-size: 0.85rem !important;
    }
    
    footer {
        padding: 2rem 0 1.5rem !important; /* Shrunk from 4rem 0 2rem */
    }
    
    .footer-brand h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .about-overlap {
        padding: 2rem 0 !important; /* Shrunk from 5rem to remove massive top/bottom gaps */
    }
    
    .about-bg-object {
        opacity: 0.22; /* Increased from 0.1 to be more visible */
        width: 100%;
        left: -10vw;
    }
    
    .about-two-col {
        text-align: center;
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 2rem; /* Reduce gap between stacked items */
    }
    
    .section-header h2 {
        font-size: 1.3rem !important; /* Shrink to match other header */
        letter-spacing: 2px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-text {
        font-size: 1.2rem;
    }
    
    .review-card {
        width: 200px;
        padding: 0.8rem;
    }
    
    .review-card h4 {
        font-size: 0.9rem;
    }
    
    .review-card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .review-card .stars {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .review-card.highlight-card {
        transform: scale(1) translateY(-10px);
    }
    
    .reviews-section {
        display: none !important; /* Hide completely on mobile as requested */
    }
    
    .about-overlap-content {
        width: 100%;
        padding-left: 0;
    }
    
    .about-main-headline {
        font-size: 1.3rem !important; /* Shrunk from 1.6rem */
        text-align: center !important; /* Center the headline */
        margin-bottom: 1rem !important; /* Shrink gap below headline */
    }
    
    .about-separator {
        margin-bottom: 1.5rem !important; /* Shrink gap below separator */
    }
}

/* =========================================
   INTERNAL PAGE SPECIFIC STYLES
   ========================================= */

body.internal-page {
    background: var(--color-bg);
}

/* Make navbar text white on internal pages before scrolling */
body.internal-page .navbar:not(.scrolled) .nav-links a:not(.btn),
body.internal-page .navbar:not(.scrolled) .logo-text,
body.internal-page .navbar:not(.scrolled) .hamburger i {
    color: var(--color-white);
}

body.internal-page .navbar:not(.scrolled) .logo-text small {
    color: rgba(255, 255, 255, 0.8);
}

.internal-hero {
    padding: 180px 20px 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, #f0f4f8 100%);
    text-align: center;
}

.internal-hero-content h1 {
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.internal-hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.doctor-photo {
    position: relative;
}

.photo-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.doctor-bio h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.doctor-bio p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.doctor-bio strong {
    color: var(--color-primary);
}

.credentials-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.8);
}

.credential-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.credential-item span {
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .doctor-profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .internal-hero {
        padding: 150px 20px 60px;
    }
    
    .internal-hero-content h1 {
        font-size: 2.2rem;
    }
}

/* =========================================
   MODERN ABOUT HERO (EDITORIAL)
   ========================================= */

.about-modern-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #151a1d 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 280px 0; /* Huge padding at bottom for text */
}

.about-modern-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-modern-content {
    width: 100%;
    position: relative;
    z-index: 10;
}

.modern-headline {
    font-size: min(3.8vw, 3.5rem);
    white-space: nowrap;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 2.5rem;
}

.modern-bio-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 2.5rem;
    width: 60%;
    max-width: 800px;
}

.modern-bio-columns p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5db;
    margin-bottom: 1.5rem;
}

.modern-bio-columns strong {
    color: var(--color-white);
}

.modern-credentials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
}

.modern-credentials .credential-item {
    background: transparent;
    border: none;
    padding: 0;
    gap: 15px;
    color: var(--color-bg-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.modern-credentials .credential-item i {
    color: var(--color-accent-green);
    font-size: 1.3rem;
}

.modern-background-text {
    position: absolute;
    bottom: -5vh;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11vw;
    font-weight: 800;
    line-height: 1;
    color: var(--color-bg-light);
    opacity: 0.08;
    white-space: nowrap;
    z-index: 3;
    user-select: none;
    pointer-events: none;
    transform: scaleY(1.8);
    transform-origin: bottom center;
}

.modern-hero-image {
    position: absolute;
    top: 100px;
    right: 2%;
    height: auto;
    width: 38%;
    max-width: 650px;
    object-fit: contain;
    object-position: top right;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

@media (max-width: 1200px) {
    .modern-headline {
        font-size: 3rem;
    }
    .modern-hero-image {
        right: -5%;
        height: 80vh;
    }
}

@media (max-width: 900px) {
    .about-modern-content {
        width: 100%;
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column;
    }
    .modern-headline {
        order: 1;
        white-space: normal; /* Allow wrapping on small screens */
        font-size: 2.2rem !important; /* Shrink massive heading */
        margin-bottom: 1.5rem !important;
        line-height: 1.1;
    }
    .modern-bio-columns p {
        font-size: 0.95rem !important; /* Shrink bio text */
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    .modern-bio-columns {
        order: 2;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0;
        margin-bottom: 0 !important; /* Remove gap below bio */
    }
    .modern-background-text {
        display: none !important; /* Hide background text on mobile to save space */
    }
    .modern-hero-image {
        order: 3;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 1rem auto 1.5rem !important; /* Tighter margins around image */
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
        object-position: center !important;
    }
    .about-modern-hero {
        padding: 100px 0 2rem 0 !important; /* Slash the massive 280px bottom padding */
        min-height: auto;
    }
    .modern-credentials {
        order: 4;
        margin-top: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the credentials list */
        gap: 10px;
    }
    .modern-credentials .credential-item {
        font-size: 0.95rem !important; /* Shrink credential text */
        padding: 0 !important;
        gap: 10px !important;
    }
    .modern-credentials .credential-item i {
        font-size: 1.1rem !important; /* Shrink credential icon */
    }
    .about-modern-content .btn {
        order: 5;
        margin-top: 1.5rem !important; /* Pull button up closer to credentials */
        align-self: center;
        white-space: nowrap !important; /* Force single line */
        width: auto !important; /* Allow width to expand for text */
        min-width: 80%; /* But keep it at least 80% */
        font-size: 0.85rem !important; /* Match other mobile buttons */
        padding: 10px 24px !important;
    }
}
