/* ==========================================================================
   Nexorus Softech DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* 1. VARIABLES & CUSTOM PROPERTIES */
:root {
    /* Color Tokens (Strictly as specified) */
    --navy:       #0F3057;   /* Primary brand, nav, buttons, dark sections */
    --light-gray: #D1D5DB;   /* Borders, dividers, card strokes */
    --mid-gray:   #A3A3A3;   /* Body text, secondary text, icons */
    --off-white:  #F8F9FA;   /* Page bg, card bg, alternating sections */
    --white:      #FFFFFF;

    /* Theme Overrides & Helpers */
    --navy-hover: #081d36;
    --navy-transparent: rgba(15, 48, 87, 0.08);
    --border-color-alpha: rgba(209, 213, 219, 0.4);

    /* Animation Tokens */
    --transition-duration: 0.25s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --max-width: 1200px;
    --header-height: 160px;
    --header-height-scrolled: 120px;
}

/* 2. BASE STYLES & RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--white);
    color: var(--mid-gray);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    color: var(--navy);
    font-weight: 400; /* Serif displays look best with natural weight */
    line-height: 1.2;
}

/* Common Layout Containers */
.max-width-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 100px 0; /* min 80px vertical */
    position: relative;
}

/* 3. BUTTONS & INTERACTIVE ELEMENTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-ease);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px; /* Strict 8px radius for buttons */
}

/* Navbar CTA & Get Started */
.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    padding: 12px 24px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Explore Services */
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 12px 24px;
}

.btn-secondary:hover {
    background-color: var(--navy-transparent);
    transform: translateY(-1px);
}

/* CTA Banner Button */
.btn-tertiary {
    background-color: var(--white);
    color: var(--navy);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
}

.btn-tertiary:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 4. SECTION 1: STICKY NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--light-gray);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-duration) var(--transition-ease);
}

/* Scroll Effect added via JS */
.navbar.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
    /* Helps prevent blurriness when scaled down */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    justify-self: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--mid-gray);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

/* Simple hover underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--navy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-duration) var(--transition-ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: flex;
    align-items: center;
    justify-self: end;
}

.nav-btn {
    padding: 10px 22px; /* strict padding as specified */
}

/* Hide mobile nav CTA wrapper on desktop */
.nav-cta-mobile-wrapper {
    display: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color var(--transition-duration) var(--transition-ease);
}

.menu-toggle:hover {
    background-color: var(--navy-transparent);
}

/* 5. SECTION 2: HERO */
.hero-section {
    background-color: var(--off-white);
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-top: 20px;
}

.badge-pill-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 550px;
    margin-bottom: -15px;
}

.badge-pill {
    background-color: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(15, 48, 87, 0.15);
    animation: float-badge 3s ease-in-out infinite alternate;
}

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

.hero-heading {
    font-size: 48px;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtext {
    font-size: 16px;
    color: var(--mid-gray);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
}

/* Right Column (Hero Image & Badge) */
.hero-image-column {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.hero-image-card {
    width: 100%;
    height: 400px; /* strict ~400px tall */
    border-radius: 200px 200px 12px 12px; /* Arched top */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 48, 87, 0.08);
    border: 1px solid var(--light-gray);
    background-color: var(--white);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-ease);
}

.hero-image-card:hover .hero-img {
    transform: scale(1.05);
}

/* Floating Card Bottom-Right */
.floating-badge-card {
    position: absolute;
    bottom: 24px;
    right: -24px;
    background-color: var(--white);
    border-radius: 8px; /* strict 8px radius */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color-alpha);
    animation: float-badge-reverse 3s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes float-badge-reverse {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}

.floating-badge-icon-bg {
    width: 32px;
    height: 32px;
    background-color: var(--navy-transparent);
    color: var(--navy);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-badge-content {
    display: flex;
    flex-direction: column;
}

.floating-badge-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.floating-badge-desc {
    font-size: 9px;
    font-weight: 600;
    color: var(--mid-gray);
    letter-spacing: 0.8px;
    line-height: 1.1;
}

/* 6. SECTION 3: Precision Services */
.services-section {
    background-color: var(--off-white);
}

.section-header {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 28px; /* strict 28px */
    color: var(--navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--mid-gray);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; /* strict 24px gap */
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray); /* strict 1px solid --light-gray */
    border-radius: 10px; /* strict 10px radius */
    padding: 28px; /* strict 28px padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all var(--transition-duration) var(--transition-ease);
    border-top: 3px solid transparent; /* default top border to prevent shift on hover */
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper {
    color: var(--navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-title {
    font-size: 18px; /* strict 18px */
    color: var(--navy);
    margin-bottom: 14px;
}

.service-card-desc {
    font-size: 14px; /* strict 14px */
    color: var(--mid-gray);
    line-height: 1.6;
}

/* Hover effects */
.service-card:hover {
    border-top: 3px solid var(--navy); /* strict top border 3px solid --navy */
    transform: translateY(-4px); /* strict slight translateY(-4px) */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* strict box-shadow */
}

/* 7. SECTION 4: HOW IT WORKS */
.process-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 48, 87, 0.88);
    z-index: 0;
}

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

.process-section .section-title,
.process-section .section-subtitle,
.process-section .step-title,
.process-section .step-desc {
    color: var(--white);
}

.process-steps-wrapper {
    position: relative;
    width: 100%;
    margin-top: 60px;
}

.process-connecting-line {
    position: absolute;
    top: 30px; /* Centered relative to 60px circle height */
    left: 15%;
    right: 15%;
    height: 2px;
    border-top: 2px dashed rgba(255, 255, 255, 0.3); /* strict dashed line */
    z-index: 1;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 2;
    gap: 24px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number-circle {
    width: 60px; /* strict 60px */
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    background-color: var(--accent-color); /* accent color bg to stand out */
    color: var(--white); /* strict white number */
    font-weight: 700; /* strict DM Sans bold */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(15, 48, 87, 0.15);
}

.step-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; /* strict DM Sans semibold */
    font-size: 16px;
    color: var(--navy); /* strict --navy */
    margin-bottom: 12px;
}

.step-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* strict 13px */
    color: var(--mid-gray); /* strict --mid-gray */
    max-width: 160px; /* strict max-width 160px */
    line-height: 1.5;
}

/* 8. SECTION 5: VERTICAL EXPERTISE (3-column dark full-width) */
.expertise-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

/* Dark navy overlay */
.expertise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 48, 87, 0.88);
    z-index: 1;
}

/* 3-column grid */
.expertise-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Pill columns */
.expertise-pills {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.expertise-pills-left {
    align-items: flex-end;
}
.expertise-pills-right {
    align-items: flex-start;
}
.pill-row {
    display: flex;
    gap: 12px;
}
.expertise-pill {
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}
.expertise-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

/* Center column */
.expertise-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expertise-heading {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.expertise-subtext {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--light-gray);
    max-width: 520px;
    line-height: 1.7;
}



/* 9. NEW SECTION: LATEST INSIGHTS */
.insights-section {
    background-color: var(--off-white);
    padding: 80px 0;
}

.insights-header {
    text-align: left;
    margin-bottom: 36px;
}

.insights-title {
    font-size: 30px; /* DM Serif Display, 30px, --navy */
    color: var(--navy);
    margin-bottom: 12px;
}

.insights-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; /* DM Sans, 14px, --mid-gray */
    color: var(--mid-gray);
    line-height: 1.5;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.insight-image-area {
    position: relative;
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.insight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-img {
    transform: scale(1.04);
}

.insight-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--navy);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(15, 48, 87, 0.25);
}

.insight-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-card-title {
    font-size: 17px; /* DM Serif Display, 17px, --navy */
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.insight-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* DM Sans, 13px, --mid-gray */
    color: var(--mid-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.insight-read-more {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* DM Sans, 13px, --navy */
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-duration) var(--transition-ease);
}

.insight-read-more:hover {
    text-decoration: underline;
}

/* 10. SECTION 7: PRODUCTS */
.products-section {
    background-color: var(--white);
    padding: 100px 0;
    text-align: center;
}

/* 11. SECTION 8: CTA BANNER */
.cta-banner-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2240 100%); /* strict --navy with subtle gradient to #0a2240 */
    padding: 100px 0;
    text-align: center;
}

.cta-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-heading {
    font-size: 38px; /* strict 38px */
    color: var(--white); /* strict white */
    margin-bottom: 16px;
}

.cta-subtext {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; /* strict 15px */
    color: var(--light-gray); /* strict --light-gray */
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.6;
}

/* 12. SECTION 9: FOOTER */
.site-footer {
    background-color: var(--navy); /* strict --navy */
    color: var(--white);
    padding: 80px 0 40px; /* strict 80px vertical minimum */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr; /* 4 columns */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    background-color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col-title {
    font-size: 11px; /* strict 11px */
    font-weight: 700;
    color: var(--white); /* strict white */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* strict letter-spacing 1.5px */
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px; /* strict 13px */
    color: var(--light-gray); /* strict --light-gray */
    transition: color var(--transition-duration) var(--transition-ease);
}

.footer-links a:hover {
    color: var(--white); /* strict hover: white */
}

/* Divider bottom */
.footer-divider {
    height: 1px;
    background-color: rgba(209, 213, 219, 0.2); /* strict thin --light-gray/20 divider */
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 12px; /* strict 12px */
    color: var(--mid-gray); /* strict --mid-gray */
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icon-link {
    color: var(--mid-gray); /* strict --mid-gray */
    transition: color var(--transition-duration) var(--transition-ease);
    display: flex;
    align-items: center;
}

.social-icon-link:hover {
    color: var(--white); /* strict hover: white */
}

/* 13. ANIMATION STYLES (Dynamic Design System) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet and Laptop Viewports */
@media (max-width: 1024px) {
    section {
        padding: 80px 0; /* Minimum vertical padding */
    }

    .hero-heading {
        font-size: 42px;
    }

    .expertise-heading {
        font-size: 38px;
    }

    .expertise-section {
        padding: 50px 40px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .expertise-pills-left,
    .expertise-pills-right {
        align-items: center;
    }

    .expertise-pills-left {
        order: 2;
    }
    .expertise-center {
        order: 1;
    }
    .expertise-pills-right {
        order: 3;
    }

    .pill-row {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }
}

/* Mobile & Small Tablet Viewports */
@media (max-width: 991px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
    }

    /* Toggle Mobile Navigation View */
    .menu-toggle {
        display: block;
    }

    .nav-links-wrapper {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--light-gray);
        padding: 30px 24px;
        flex-direction: column;
        align-items: center;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .navbar.scrolled .nav-links-wrapper {
        top: var(--header-height-scrolled);
    }

    .nav-links-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav-cta {
        display: none; /* Hide primary button on header for mobile layout placement */
    }

    /* Mobile nav CTA styling */
    .nav-cta-mobile-wrapper {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 24px;
    }

    .nav-cta-mobile {
        display: inline-block;
        width: 100%;
        max-width: 220px;
    }

    /* Hero section stacked */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text-column {
        align-items: center;
    }

    .badge-pill-container {
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-buttons {
        justify-content: center;
    }

    .hero-image-column {
        margin-top: 20px;
    }

    /* Services Layout Stacked */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphone Portrait Viewports */
@media (max-width: 768px) {
    section {
        padding: 60px 0; /* Balanced padding for small screens */
    }

    .hero-heading {
        font-size: 36px;
    }

    .hero-image-card {
        height: 350px;
    }

    .floating-badge-card {
        right: 0;
        bottom: 12px;
    }

    .section-title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Timeline Process Steps (Vertical Conversion) */
    .process-connecting-line {
        left: 30px; /* Position next to left-aligned circle */
        top: 30px;
        bottom: 30px;
        width: 2px;
        height: auto;
        border-top: none;
        border-left: 2px dashed rgba(255, 255, 255, 0.3);
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
        position: relative;
    }

    .step-number-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-desc {
        max-width: 100%;
    }

    /* Vertical Expertise section */
    .expertise-section {
        padding: 40px 20px;
    }
    .expertise-heading {
        font-size: 30px;
    }
    .expertise-subtext {
        font-size: 14px;
    }
    .expertise-pill {
        padding: 8px 18px;
        font-size: 13px;
    }

    /* Testimonials stack */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Section text resize */
    .cta-heading {
        font-size: 30px;
    }

    /* Footer Responsive Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ==========================================================================
   FOUNDER SECTION MERGED STYLES
   ========================================================================== */

/* ==========================================================================
   FOUNDER PAGE — STYLES
   Uses design tokens from style.css (:root variables)
   ========================================================================== */

/* ——————————————————————————————————————————
   1. FOUNDER HERO
   —————————————————————————————————————————— */
.founder-hero {
    padding: 140px 0 100px;
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.founder-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 48, 87, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.founder-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.founder-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.founder-eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(15, 48, 87, 0.08);
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.founder-name {
    font-family: 'DM Serif Display', serif;
    font-size: 46px;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 20px;
}

.founder-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    max-width: 820px;
    margin: 0 auto 20px;
}

/* About Highlights Grid */
.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 24px;
    text-align: left;
}

.about-highlight-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(15, 48, 87, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 48, 87, 0.08);
}

.about-card-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'DM Serif Display', serif;
    margin-bottom: 6px;
}

.about-card-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
}

.about-card-desc {
    font-size: 14px;
    color: var(--mid-gray);
    line-height: 1.6;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

@media (max-width: 868px) {
    .about-highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Social Buttons */
.founder-social-links {
    display: flex;
    gap: 14px;
}

.founder-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid var(--light-gray);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--white);
}

.founder-social-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 48, 87, 0.18);
}

.founder-social-btn svg {
    transition: fill 0.3s ease;
}

.founder-social-btn:hover svg {
    fill: var(--white);
}

/* Founder Image */
.founder-hero-image {
    display: flex;
    justify-content: center;
}

.founder-image-frame {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.founder-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 60px rgba(15, 48, 87, 0.15);
    position: relative;
    z-index: 2;
}

.founder-image-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid rgba(15, 48, 87, 0.12);
    z-index: 1;
}


/* ——————————————————————————————————————————
   2. FOUNDER BIO
   —————————————————————————————————————————— */
.founder-bio {
    padding: 100px 0;
    background-color: var(--white);
}

.founder-bio-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: start;
}

.founder-section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 38px;
    color: var(--navy);
    margin-bottom: 32px;
}

.founder-story p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 20px;
}

.founder-story p:last-child {
    margin-bottom: 0;
}

/* Highlight Cards */
.founder-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--off-white);
    border-radius: 16px;
    border: 1px solid rgba(209, 213, 219, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 48, 87, 0.08);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 48, 87, 0.08), rgba(15, 48, 87, 0.03));
    color: var(--navy);
    flex-shrink: 0;
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-number {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--navy);
    line-height: 1.1;
}

.highlight-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--mid-gray);
    font-weight: 500;
}


/* ——————————————————————————————————————————
   3. VISION QUOTE
   —————————————————————————————————————————— */
.founder-vision {
    position: relative;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.founder-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 48, 87, 0.92);
    z-index: 1;
}

.founder-vision-container {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.vision-quote-icon {
    margin-bottom: 24px;
    color: var(--white);
}

.vision-quote {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 28px;
    border: none;
    padding: 0;
}

.vision-cite {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--light-gray);
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.5px;
}


/* ——————————————————————————————————————————
   4. VALUES / GUIDING PRINCIPLES
   —————————————————————————————————————————— */
.founder-values {
    padding: 100px 0;
    background-color: var(--off-white);
}

.founder-values-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--mid-gray);
    max-width: 480px;
    margin: -16px auto 56px;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    background: var(--white);
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(209, 213, 219, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(15, 48, 87, 0.1);
}

.value-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 48, 87, 0.07), rgba(15, 48, 87, 0.02));
    color: var(--navy);
    margin-bottom: 24px;
}

.value-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 14px;
}

.value-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
}

/* Active nav link indicator */
.nav-link.active {
    color: var(--navy);
    font-weight: 600;
}


/* ——————————————————————————————————————————
   5. RESPONSIVE
   —————————————————————————————————————————— */

/* Tablet */
@media (max-width: 1024px) {
    .founder-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .founder-hero-text {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}


/* ——————————————————————————————————————————
   3. VISION QUOTE
   —————————————————————————————————————————— */
.founder-vision {
    position: relative;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.founder-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 48, 87, 0.92);
    z-index: 1;
}

.founder-vision-container {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.vision-quote-icon {
    margin-bottom: 24px;
    color: var(--white);
}

.vision-quote {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 28px;
    border: none;
    padding: 0;
}

.vision-cite {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--light-gray);
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.5px;
}


/* ——————————————————————————————————————————
   4. VALUES / GUIDING PRINCIPLES
   —————————————————————————————————————————— */
.founder-values {
    padding: 100px 0;
    background-color: var(--off-white);
}

.founder-values-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--mid-gray);
    max-width: 480px;
    margin: -16px auto 56px;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    background: var(--white);
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(209, 213, 219, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(15, 48, 87, 0.1);
}

.value-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 48, 87, 0.07), rgba(15, 48, 87, 0.02));
    color: var(--navy);
    margin-bottom: 24px;
}

.value-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 14px;
}

.value-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
}

/* Active nav link indicator */
.nav-link.active {
    color: var(--navy);
    font-weight: 600;
}


/* ——————————————————————————————————————————
   5. RESPONSIVE
   —————————————————————————————————————————— */

/* Tablet */
@media (max-width: 1024px) {
    .founder-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .founder-hero-text {
        order: 1;
    }

    .founder-hero-image {
        order: 0;
    }

}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .founder-image-frame {
        width: 280px;
    }
    
    .founder-image-accent {
        top: 10px;
        left: 10px;
    }
}

/* ==========================================================================
   HERO 2X2 GRID IMAGES
   ========================================================================== */

.hero-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.hero-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(15, 48, 87, 0.15);
    border: 1px solid var(--light-gray);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 48, 87, 0.22);
}

.hero-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .hero-grid-container {
        max-width: 420px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-grid-container {
        max-width: 320px;
        gap: 8px;
    }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(15, 48, 87, 0.7); /* Navy blue overlay */
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-title {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.modal-submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-size: 1rem;
}
