:root {
    /* Enhanced Color Palette */
    --navy-dark: #0B1C2E;
    --navy: #1A416A;
    --navy-light: #2C5D8F;

    --gold: #F5DA98;
    --gold-dark: #C4A76A;

    --teal: #3E6760;
    --teal-light: #5C8F86;

    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-800: #343A40;

    /* Gradients */
    --gradient-navy: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #0B1C2E 0%, #1A416A 50%, #2C5D8F 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 9999px;

    /* Shadows - Deep & Soft */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(26, 65, 106, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(11, 28, 46, 0.35);
    --shadow-glow: 0 0 20px rgba(245, 218, 152, 0.3);

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--off-white);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    padding-top: 162px;
    /* Offset for fixed header with 130px logo */
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--navy-dark);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: #4A5568;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(245, 218, 152, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-4px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Cards */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--gold);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
    color: var(--navy);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--navy);
    color: var(--gold);
    transform: rotateY(180deg);
}

/* Navigation - Fixed Navy Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    gap: 0.5rem;
}

.logo-img {
    height: 130px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled .logo-img {
    height: 70px;
    /* Shrink logo on scroll for better UX */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    padding: 0.5rem 0;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    /* Fixed White */
    position: relative;
    font-size: 1rem;
    padding: 0.5rem 0;
    /* Add vertical padding for better hit area */
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Prevent underline on dropdown trigger */
.nav-dropdown .nav-link::after {
    display: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mega Footer Styles */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    margin-bottom: 1rem;
    font-family: inherit;
}

.footer-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Custom Utilities */
.bg-navy {
    background-color: var(--navy-dark);
    color: var(--white);
}

.glass-dark {
    background: rgba(11, 28, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--navy-dark);
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        color: var(--white) !important;
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

/* Hero Specifics */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 800px;
}

/* --- New Sections CSS --- */

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gold) 50%, transparent 50%);
    background-size: 20px 100%;
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    color: var(--navy);
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    background: var(--gold);
    color: var(--navy-dark);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    margin-top: 2rem;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: var(--gray-200);
    border-radius: 50%;
    position: absolute;
    top: -35px;
    left: 2rem;
    border: 4px solid var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-light);
    font-weight: bold;
    font-size: 1.5rem;
}

/* FAQ Accordion */
.accordion-item {
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--navy-dark);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--gray-100);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: 1.5rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- Responsive Helpers (New) --- */

/* Responsive Grid System */
.grid-2,
.grid-1-1-5 {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-1-1-5 {
    grid-template-columns: 1fr 1.5fr;
}

@media (max-width: 992px) {

    .grid-2,
    .grid-1-1-5 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Premium Hero Responsive Styles */
.premium-hero-box {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 4rem;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    max-width: 90%;
}

.premium-hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.premium-hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .premium-hero-box {
        padding: 1.5rem;
        width: 100%;
        border: none;
        /* Simplify on mobile */
        background: transparent;
        backdrop-filter: none;
    }

    .premium-hero-title {
        font-size: 2.5rem;
    }

    .premium-hero-text {
        font-size: 1rem;
    }
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

@media (max-width: 992px) {
    .contact-split-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Layout (Service Details) */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    /* Sidebar | Content */
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-layout aside {
        order: 2;
        /* Move sidebar to bottom on mobile */
    }

    /* Disable sticky on mobile since it is at the bottom */
    /* Disable sticky on mobile since it is at the bottom */
    .sidebar-layout aside .card {
        position: static !important;
    }
}

/* Z-Pattern Services Layout */
.z-pattern-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.z-pattern-item:last-child {
    margin-bottom: 0;
}

.z-pattern-item.reverse {
    direction: rtl;
    /* Flip the grid order visually */
}

.z-pattern-item.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.z-content {
    padding: 2rem;
}

.z-image {
    position: relative;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

.z-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.z-pattern-item:hover .z-image img {
    transform: scale(1.05);
}

.z-number {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: -1;
    opacity: 0.5;
}

@media (max-width: 992px) {

    .z-pattern-item,
    .z-pattern-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        /* Reset reverse on mobile */
        gap: 2rem;
        margin-bottom: 4rem;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ... existing code ... */

/* Modern Service Cards */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force exactly 3 columns */
    gap: 3rem;
}

@media (max-width: 1100px) {
    .modern-services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .modern-services-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.modern-service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.4s ease;
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: white;
}

.modern-service-card:hover::before {
    height: 100%;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--navy);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.modern-service-card:hover .service-icon-box {
    background: var(--navy-dark);
    color: var(--gold);
    box-shadow: var(--shadow-glow);
    transform: rotate(3deg) scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.service-desc {
    color: #666;
    margin-bottom: auto;
    /* Pushes button to bottom */
    padding-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: var(--gold-dark);
}

@media (max-width: 992px) {
    .modern-service-card {
        padding: 2rem;
    }
}

/* Interactive Tabs Layout */
.tabs-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    min-height: 600px;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.tab-btn {
    text-align: left;
    padding: 1.5rem 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-btn:hover {
    background: var(--off-white);
    transform: translateX(10px);
}

.tab-btn.active {
    background: var(--navy-dark);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateX(20px);
    border-color: var(--navy-dark);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    right: 2rem;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

/* Tab Content Animation */
.tab-content-wrapper {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeInRight 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-image {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--gray-100);
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .tabs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tabs-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }

    .tab-btn {
        min-width: 250px;
        scroll-snap-align: start;
        margin-right: 1rem;
    }

    .tab-btn:hover,
    .tab-btn.active {
        transform: none;
    }
}

/* Responsive Header Adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 80px;
    }

    main {
        padding-top: 114px;
    }
}


/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 9999;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--navy-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--off-white);
    color: var(--gold);
    padding-left: 2rem;
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        display: block;
    }

    /* Disable hover on mobile */
    .nav-dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-dropdown .has-dropdown {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        display: none;
        /* Hidden by default */
        position: static;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-left: 3px solid var(--gold);
    }

    /* Show when class is added by JS */
    .dropdown-content.show {
        display: block !important;
    }

    .dropdown-content a {
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover,
    .dropdown-content a:active {
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--gold);
    }
}