:root {
    --primary: #053F5C;
    /* Deep Navy */
    --secondary: #F7AD19;
    /* Golden Yellow */
    --primary-light: #9FE7F5;
    /* Light Cyan */
    --tertiary: #429EBD;
    /* Medium Cyan Blue */
    --white: #FFFFFF;
    --gray-bg: #F5F7FA;
    --gray-text: #5A6A7E;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
.logo,
.nav-links a,
.btn,
.faq-header {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Utilities */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--primary);
}

.divider.dashed {
    background-color: transparent;
    border-top: 1px dashed var(--primary);
}


/* Typography Overrides */
h1 {
    color: var(--primary);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

h3,
h4,
h5 {
    color: var(--primary);
    font-size: 1.2rem;
}

p {
    color: var(--gray-text);
    font-size: 1rem;
}

/* Specific exclusions */
.hero-text h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.hero-text p {
    color: var(--white);
}

.nav-links li a {
    color: var(--white);
}

/* Footer overrides */
.footer-col h3,
.footer-col h4 {
    color: var(--white);
}

/* Service card dark-theme inversions */
.service-card.theme-primary h3,
.service-card.bg-dark h3 {
    color: var(--white);
}

.service-card.theme-primary p,
.service-card.bg-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* Trust bar exclusions to match reference accurately */
.trust-info h3 {
    color: #1a202c;
    font-size: 2rem;
}

.trust-info h3 .stat-accent {
    color: var(--primary);
}

.trust-header h2 {
    color: #1a202c;
}

.trust-header h2 .highlight {
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--secondary);
}

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

.btn-invert {
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-invert:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background-color: rgba(5, 63, 92, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-container {
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100px;
    position: relative;
    transition: height 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
}

.nav-links li {
    height: 100%;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 29px;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
    transform: scaleX(1);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 63, 92, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes moveGlows {
    0% {
        background-position: 0% 0%, 100% 100%, 0% 100%;
    }

    50% {
        background-position: 100% 50%, 0% 0%, 100% 0%;
    }

    100% {
        background-position: 0% 100%, 50% 0%, 0% 0%;
    }
}

@keyframes floatParticles {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-500px) rotate(15deg);
    }
}

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding-top: 100px;
    align-items: center;
    background-color: var(--primary);
    /* Dynamic ambient lighting overlays for new color palette */
    background-image:
        radial-gradient(circle at 20% 40%, rgba(159, 231, 245, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(66, 158, 189, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(247, 173, 25, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary) 25%, var(--tertiary) 70%, var(--primary-light) 100%);
    overflow: hidden;
}

/* Subtle, drifting geometric dot texture to make the background feel alive */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    animation: floatParticles 80s linear infinite;
    background-color: transparent;
}

/* The slanted white floor from the reference */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: #fff;
    clip-path: polygon(0 90%, 100% 80%, 100% 100%, 0 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically to naturally overlap both blue wall and white floor */
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 2;
    /* Sits over the slanted floor */
    height: 100%;
}

/* Hero Collage Container */
.hero-collage {
    position: relative;
    width: 650px;
    height: 600px;
    max-width: 100%;
}

/* Individual Image Panels */
.collage-item {
    position: absolute;
    border: 8px solid var(--white);
    /* Distinct white border requested */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Extremely light elegant shadow */
    background: var(--white);
    opacity: 0;
    margin-top: 0;
    /* Transition isolated from transform to prevent animation snapping glitches */
    transition: box-shadow 0.4s ease-out, margin-top 0.4s ease-out;
    overflow: hidden;
}

.collage-item:hover {
    margin-top: -8px;
    /* Seamless lift upward */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    z-index: 10 !important;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collage-item:hover img {
    transform: scale(1.06);
    /* Sophisticated, smooth inner zoom */
}

/* Image Shapes and Positioning */
.item-1 {
    top: 5%;
    left: 8%;
    width: 40%;
    height: 50%;
    border-radius: 40px 100px 40px 40px;
    /* asymmetrical rounded styling */
    animation: fadeUp 1s ease 0.2s forwards;
    z-index: 2;
    transform: translateY(20px);
}

.item-2 {
    top: 15%;
    right: 5%;
    width: 45%;
    height: 55%;
    border-radius: 40px;
    animation: fadeUp 1s ease 0.4s forwards;
    z-index: 1;
    transform: translateY(20px);
}

.item-3 {
    bottom: -5%;
    left: 2%;
    width: 55%;
    height: 38%;
    border-radius: 30px 30px 30px 80px;
    animation: fadeUp 1s ease 0.6s forwards;
    z-index: 3;
    transform: translateY(20px);
}

/* Decorative graphic elements */
.deco-element {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.deco-1 {
    top: -5%;
    left: 45%;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: 4;
    animation-delay: 0.8s;
    color: var(--primary);
}

.deco-2 {
    top: 52%;
    left: 42%;
    width: 100px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 25px;
    z-index: 5;
    animation-delay: 1s;
    color: var(--white);
}

.deco-star-1,
.deco-star-2 {
    color: var(--secondary);
    font-size: 2rem;
}

.deco-star-1 {
    top: 45%;
    left: -5%;
    animation-delay: 1.1s;
}

.deco-star-2 {
    bottom: 25%;
    right: 25%;
    animation-delay: 1.2s;
}

.deco-circle-1 {
    bottom: 12%;
    right: 15%;
    width: 25px;
    height: 25px;
    background-color: var(--white);
    border-radius: 50%;
    animation-delay: 1.3s;
}

.deco-circle-2 {
    top: 8%;
    right: 10%;
    width: 15px;
    height: 15px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation-delay: 1.4s;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5% 4rem 10%;
    gap: 1.5rem;
    background-color: transparent;
    position: relative;
    z-index: 2;
    /* Move slightly upward per user request */
    margin-top: -80px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    /* Reduced from 5.5rem */
    line-height: 1.1;
    letter-spacing: 0px;
    font-weight: 800;
    color: var(--white);
    /* White here due to blue hero context */
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.hero-text p {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    border-left: none;
    /* Removing border to match reference exactly */
    padding-left: 0;
    max-width: 500px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-text a.btn {
    align-self: flex-start;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* Water Drop Scroll Button */
.scroll-down-btn {
    position: absolute;
    bottom: 20px;
    /* Moved downward to touch the bottom boundary closely */
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 10;
}

.water-drop-arrow {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: transparent;
    transition: transform 0.3s ease;
}

/* Background pseudo-element creates perfectly rotated traditional tear shape (point up) */
.water-drop-arrow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    /* Bluish color requested */
    /* Pointy edge top-left, rotated 45deg -> points UP */
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: -1;
    transition: all 0.3s ease;
}

.water-drop-arrow:hover {
    transform: translateY(5px);
    /* Interaction: pushes the drop downward */
}

.water-drop-arrow:hover::before {
    background-color: var(--secondary);
    /* Greenish hover */
    transform: rotate(45deg) scale(1.05);
    /* Slight expansion on hover */
}

.water-drop-arrow svg {
    position: relative;
    color: var(--white);
    width: 24px;
    height: 24px;
    margin: 0;
    /* Clear out old margins to prevent off-centering */
    /* Pull arrow slightly downwards visually into the 'fat' bulbous bottom of the teardrop */
    transform: translateY(2px);
    z-index: 1;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--white);
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.trust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.trust-header h2 .highlight {
    color: var(--primary);
}

.trust-header .btn {
    text-transform: none;
    padding: 0.8rem 2.5rem;
    font-weight: 500;
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2.2rem 2rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.trust-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E0;
    transform: translateY(-5px);
}

.trust-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black, #1a202c);
    line-height: 1;
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.trust-info h3 .stat-accent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.trust-info p {
    font-size: 0.95rem;
    color: var(--gray-text);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0px;
    margin: 0;
}

/* Services */
.services-section {
    padding: 6rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.section-title p {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary);
    /* Sub head green */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Removed staggered layout to keep boxes at the same height/level */

/* Unified Hover Lift Mechanism */
.service-card:hover {
    margin-top: -8px;
    /* Elegant lift independent from the translation shift! */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E0;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover !important;
    border: none;
    margin-bottom: 2rem;
    border-radius: 4px;
    background: transparent;
}

.service-card h3 {
    font-size: 1.5rem !important;
    color: var(--black, #1a202c) !important;
    text-transform: none;
    /* Modern sentence/title casing */
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--gray-text) !important;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--black, #1a202c) !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-family: var(--font-body) !important;
}

.link-btn:hover {
    text-decoration: none;
    opacity: 0.8;
}

.link-btn .arrow-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--secondary);
    /* Request: Give greenish color to buttons/icons */
    color: var(--white);
    border-radius: 4px;
}

/* Process */
/* Process Timeline */
.process-section {
    padding: 6rem 5%;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--gray-bg);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary);
    transform: translateX(-50%);
    z-index: 2;
    height: 0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 6rem;
    z-index: 3;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-side {
    width: 45%;
    opacity: 0.4;
    transition: all 0.5s ease;
    filter: grayscale(80%);
}

.timeline-item.active .timeline-side {
    opacity: 1;
}

.timeline-side.content-side {
    padding: 0 2rem;
}

.timeline-side.content-side h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-text);
    transition: color 0.5s ease;
}

.timeline-item.active .timeline-side.content-side h3 {
    color: var(--primary);
}

.timeline-side.text-right {
    text-align: right;
}

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

.timeline-item:nth-child(even) .timeline-icon {
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-icon {
    justify-content: flex-end;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid #ddd;
    color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    z-index: 3;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.timeline-item.active .timeline-dot {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.timeline-icon svg {
    width: 80px;
    height: 80px;
    color: var(--gray-text);
    stroke-width: 1.5;
    transition: color 0.5s ease;
}

.timeline-item.active .timeline-icon svg {
    color: var(--primary);
}

/* Requirements Node Line Infographic Section */
.requirements-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.infographic-3opts {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px; /* Spacer for the lines */
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.info-box {
    position: relative;
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 4rem 2rem 3rem; /* Extra top padding */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 3px solid var(--box-clr);
}

.top-node {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 4px solid var(--box-clr);
    border-radius: 50%;
    top: -12.5px; /* Centers cleanly over the 3px border */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.right-line {
    position: absolute;
    top: 50%;
    right: -63px; /* spans 60px gap perfectly + into border */
    width: 63px;
    height: 3px;
    background-color: var(--box-clr);
    transform: translateY(-50%);
    z-index: 10;
}

/* Connection dot hitting next box */
.right-line::after {
    content: '';
    position: absolute;
    right: 0px; 
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 3px solid var(--box-clr);
    border-radius: 50%;
}

.info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-icon svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.25;
    color: var(--box-clr);
}

.info-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--box-clr);
    letter-spacing: 0.5px;
}

.info-desc {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* Apply chosen company palette to specific boxes */
.color-1 { --box-clr: #053F5C; } /* Navy */
.color-2 { --box-clr: #429EBD; } /* Medium Cyan */
.color-3 { --box-clr: #F7AD19; } /* Golden Yellow */

/* Mobile Stacking behavior */
@media (max-width: 900px) {
    .infographic-3opts {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .info-box {
        width: 100%;
        max-width: 400px;
    }
    .right-line {
        top: auto;
        bottom: -43px;
        right: 50%;
        width: 3px;
        height: 43px;
        transform: translateX(50%);
    }
    .right-line::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 0px;
        transform: translateX(-50%);
    }
}

/* CTA Box */
.cta-section {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    background-color: var(--gray-bg);
}

.cta-box {
    border: 1px dashed var(--primary);
    background-color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.cta-box h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Global Footer Layout */
.footer {
    position: relative;
    background-color: var(--primary-light);
    padding: 8rem 5% 2rem;
    z-index: 1;
}

/* Water Wave Divider at the top of footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23F5F7FA" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05c38.3,29.07,91.86,39.31,141.33,39.31,111.47,0,195.1-66.52,311.95-66.52,109.15,0,196.15,62.13,303.11,62.13,111.23,0,194.27-58.42,295.92-58.42,39.11,0,76.51,7.21,100,10.74V0Z" fill="%23F5F7FA" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23F5F7FA"/></svg>');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

.footer-wrapper,
.footer-copyright {
    position: relative;
    z-index: 5;
}

.footer-wrapper {
    max-width: 1600px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Balanced 4-column row */
    gap: 3rem;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: var(--primary);
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.85;
}

.footer-col a:hover {
    color: var(--primary);
    opacity: 1;
    text-decoration: underline;
}

.footer-col ul {
    list-style: none;
}

.footer-copyright {
    max-width: 1600px;
    margin: 0 auto;
    border-top: 1px dashed rgba(5, 63, 92, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright p,
.footer-copyright a {
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.7;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: var(--primary);
    opacity: 1;
    text-decoration: underline;
}

/* Side Navigation */
.side-nav-wrapper {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-trigger {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    width: 50px;
    height: 70px;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1002;
}

.nav-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.side-nav {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0 16px 16px 0;
    padding: 2.5rem 2rem 2.5rem 60px;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-nav-wrapper:hover .side-nav {
    transform: translate(0, -50%);
}

.side-nav-wrapper:hover .nav-trigger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.side-nav-wrapper:hover .nav-trigger span:nth-child(2) {
    opacity: 0;
}

.side-nav-wrapper:hover .nav-trigger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-nav li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-text {
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-nav li a:hover .nav-text {
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive Styles */
@media(max-width: 1024px) {
    .section {
        padding: 5rem 5%;
    }

    .hero-text {
        padding-top: 100px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-container {
        max-width: 90%;
    }
}

@media(max-width: 900px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        height: auto;
        margin: 0.8rem 0;
        width: 100%;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 1.15rem;
        color: var(--white);
        width: 100%;
        justify-content: center;
    }

    .nav-links li a::after {
        display: none;
    }
}

@media(max-width: 768px) {
    .section {
        padding: 4rem 5%;
    }

    .side-nav-wrapper {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

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

    .trust-container {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 4rem 5%;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer {
        padding: 6rem 5% 2rem;
    }

    .trust-bar {
        padding: 4rem 5%;
    }

    .trust-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* THE PROCESS MOBILE FIX */
    .timeline-line,
    .timeline-progress {
        left: 30px;
        transform: none;
    }

    .timeline-item {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        padding-left: 75px;
        margin-bottom: 3.5rem;
        text-align: left !important;
        position: relative;
    }

    .timeline-side {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        opacity: 0.85;
        filter: none;
    }

    /* Standardizing mobile order for all steps */
    .timeline-side:not(.content-side) {
        order: -1; 
        margin-bottom: 0px;
    }
    
    .timeline-side.content-side {
        order: 2;
    }
    
    .timeline-item.active .timeline-side {
        opacity: 1;
    }

    .timeline-icon {
        justify-content: flex-start !important;
        margin-bottom: 0.5rem;
    }

    .timeline-icon svg {
        width: 50px;
        height: 50px;
    }

    .timeline-dot {
        position: absolute;
        left: 10px;
        top: 0;
        width: 42px;
        height: 42px;
        font-size: 1rem;
        z-index: 10;
        display: flex !important;
    }

    .timeline-side.content-side h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .section-title {
        margin-bottom: 2rem !important;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer {
        padding: 6rem 5% 2rem;
    }
}

@media(max-width: 480px) {
    .section {
        padding: 3rem 5%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-collage {
        transform: scale(0.65);
        height: 350px;
        margin-top: -20px;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}
/* Custom Modal Styles */
.custom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.custom-modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
    transform: translateY(0);
}

.custom-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-text);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.custom-modal-close:hover {
    color: var(--primary);
}

.custom-modal-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Swiper Custom Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--secondary) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}
