﻿:root {
    /* Color Palette based on User Request */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --primary-color: #011f4b;
    --primary-hover: #022a61;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(1, 31, 75, 0.05);
    --shadow-md: 0 10px 30px rgba(1, 31, 75, 0.08);
    --shadow-lg: 0 20px 40px rgba(1, 31, 75, 0.12);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Standard Scrolling Setup */
.container {
    width: 100%;
}

.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 100px 10%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff; /* White initially */
    letter-spacing: -1px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff; /* White initially */
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

@keyframes spinOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-links a:hover, .navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
    animation: spinOnce 0.6s ease-in-out;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 320px;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 1rem;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-primary) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
    animation: none; /* Disable spin on dropdown items */
}

.dropdown-content a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color) !important;
    animation: none; /* Disable spin on hover for items */
}

.dropdown-content a strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.dropdown-content a span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
}

.arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    /* Base background in case video fails to load */
    background: var(--bg-color);
}

.has-video-bg {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text looks better over dark videos */
}

/* Video overlay for better text readability */
.has-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 31, 75, 0.4); /* Dark blue overlay */
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2; /* Put text above video and overlay */
}

.text-center {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Override primary color for video */
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Services Section */
#services {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-visual {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--primary-color), rgba(1, 31, 75, 0.4));
    animation: morph 8s ease-in-out infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    opacity: 0.8;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, rgba(1, 31, 75, 0.1), rgba(1, 31, 75, 0.8));
    animation-delay: -4s;
    backdrop-filter: blur(10px);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    justify-content: space-between;
    padding-top: 10vh;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.2);
}

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

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

footer {
    padding: 2rem 0;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
.reveal-text, .fade-in, .slide-up, .slide-out-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-text {
    transform: translateY(30px);
}

.slide-up {
    transform: translateY(50px);
}

.slide-out-right {
    transform: translateX(-100px);
    z-index: 1;
}

/* When visible */
.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Header Contact & Modal Additions */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
}

.navbar.scrolled .nav-phone {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.btn-black {
    background-color: #0d0d0d;
    color: #ffffff !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-main);
}

.btn-black:hover {
    background-color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

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

.modal-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.highlight-green {
    color: #ffffff;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.modal-form textarea {
    border-radius: 15px;
    resize: none;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit-modal {
    background-color: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    font-family: var(--font-main);
}

.btn-submit-modal:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

.modal-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
    text-align: center;
}

.modal-footer-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

/* Inner Page Specific Styles */
.inner-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011f4b 0%, #03396c 100%);
    color: white;
    padding-top: 100px; /* Offset for navbar */
}

.bg-light {
    background-color: var(--bg-secondary);
}

.bg-dark {
    background-color: var(--dark-color);
    color: #ffffff;
}

.bg-dark h2, .bg-dark p {
    color: #ffffff;
}

.dark-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-card h3 {
    color: #ffffff;
}

.dark-card p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.tech-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-section {
    padding-bottom: 0; /* Let footer handle bottom spacing */
}

/* Split Section */
.split-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 6rem 10%;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: var(--bg-secondary); /* Give it a solid background so text hides behind it */
    padding: 2rem;
    border-radius: 12px;
}

.split-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.split-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.bullet-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.bullet-list li::before {
    content: "\2022";
    color: var(--primary-color);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -0.4rem;
}

.bullet-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
/* Mobile Process Carousel (Hidden on Desktop) */
.mobile-process-img { display: none; }
.carousel-nav { display: none; }

@media (max-width: 1024px) {
    #about {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .panel {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    .split-section {
        flex-direction: column;
        padding: 4rem 5%;
        gap: 2rem;
    }
}

/* Mobile Process Carousel (Hidden on Desktop) */
.mobile-process-img { display: none; }
.carousel-nav { display: none; }

@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
    .nav-links, .nav-contact {
        display: none;
    }
    
    .nav-phone {
        display: none !important;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 45vw; /* Roughly half/third of the screen depending on device */
        min-width: 220px;
        background: var(--bg-color);
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
        border-bottom-left-radius: 12px;
        transition: width 0.3s ease;
    }
    
    .nav-links.active:has(.dropdown:hover),
    .nav-links.active:has(.dropdown:focus-within) {
        width: 85vw;
        max-width: 400px;
    }

    .nav-links.active a {
        color: var(--text-primary);
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: 100%;
        padding: 0 0 0 1rem;
        display: none;
        opacity: 1;
        border: none;
    }
    
    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
        display: flex;
        transform: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 101;
    }
    
    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: #ffffff;
        transition: 0.3s;
    }
    
    .navbar.scrolled .menu-toggle span {
        background: var(--primary-color);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #ffffff;
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #ffffff;
    }
    
    .navbar.scrolled .menu-toggle.active span {
        background: var(--primary-color) !important;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .panel {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* Development Process Animation Section */
.process-section {
    background: radial-gradient(circle at center, rgba(128,128,128,0.08) 0%, var(--bg-color) 70%);
    position: relative;
    padding-bottom: 5rem;
}

.process-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.process-steps {
    flex: 1;
    padding: 10vh 0;
}

.process-step {
    min-height: 50vh;
    opacity: 0.2;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(-20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-step.active {
    opacity: 1;
    transform: translateX(0);
}

.process-step .step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-visuals {
    flex: 1;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 20vh;
    height: 60vh;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.process-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-img.before {
    transform: translateY(60px);
}

.process-img.after {
    transform: translateY(-60px);
}

.process-img.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

/* Mobile Process Carousel (Hidden on Desktop) */
.mobile-process-img { display: none; }
.carousel-nav { display: none; }

@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
    /* Adjust desktop visuals for mobile fixed top layout */
    .process-visuals {
        display: block !important;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .process-visuals .sticky-container {
        position: relative !important;
        top: 0 !important;
        height: 300px !important;
        width: 100% !important;
        margin: 0 auto;
        max-width: 300px;
    }

            .process-container {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
    }
    
    .process-steps {
        padding: 0;
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    /* Horizontal scroll track */
    .process-scroll-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 2rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }

    /* Snap cards */
    .process-step {
        min-width: 85vw;
        scroll-snap-align: center;
        opacity: 1 !important; 
        transform: none !important; 
        min-height: auto;
        margin-bottom: 0 !important;
    }

    /* Inline mobile image */
    .mobile-process-img {
        display: none !important;
    }
    
    /* Carousel Navigation */
    .carousel-nav {
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .carousel-arrow {
        background: var(--text-primary);
        color: white;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }
    
    .carousel-arrow:hover {
        background: var(--primary-color);
    }
}









/* Inner Hero Buttons (Dark Background Adjustments) */
.inner-hero .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color) !important;
    border-color: #ffffff;
}

.inner-hero .btn-primary:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

.inner-hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.inner-hero .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color) !important;
    border-color: #ffffff;
}

/* CTA Section Adjustments */
.cta-section.panel {
    min-height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

/* Internal Page Gap Fixes */
.page-content .panel:not(.inner-hero) {
    min-height: auto !important;
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
    justify-content: flex-start;
}
.page-content .cta-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Logo Subtitle Styling */
.logo-container {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 101; /* Above mobile menu */
}

.logo-subtitle {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 4px;
    transition: var(--transition);
    opacity: 0.9;
}

.navbar.scrolled .logo-subtitle {
    color: var(--text-secondary);
}

/* Site Footer */
.site-footer {
    width: 100%;
    margin-top: 200px;
    padding: 6rem 5% 2rem;
    text-align: left;
    
    /* Default: Internal Pages (White Background -> Blue Footer) */
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-brand p, 
.site-footer .footer-links a, 
.site-footer .footer-bottom p {
    color: #ffffff;
}

.site-footer .footer-links h4, 
.site-footer .footer-brand .logo, 
.site-footer .footer-brand .logo-subtitle {
    color: #ffffff;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Home Page Specifics (Blue Background -> White Footer) */
.home-page .site-footer {
    background-color: #ffffff;
    color: #333333;
    border-top: none;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.home-page .site-footer .footer-brand p, 
.home-page .site-footer .footer-links a, 
.home-page .site-footer .footer-bottom p {
    color: #333333;
    font-weight: 500;
}

.home-page .site-footer .footer-links h4, 
.home-page .site-footer .footer-brand .logo,
.home-page .site-footer .footer-brand .logo-subtitle {
    color: var(--primary-color);
}

.home-page .site-footer .footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-brand .logo-subtitle {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.6;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
.logo-container {
    position: relative;
    z-index: 105;
    cursor: pointer;
}





/* Split Hero Background Styling */
.split-hero {
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .split-hero .hero-content.text-left {
        max-width: 100% !important;
        text-align: center;
    }
    .split-hero .hero-buttons {
        justify-content: center !important;
    }
    .hero-bg-overlay {
        display: none !important;
    }
    .split-hero .hero-bg-image {
        background-size: cover;
        background-position: center bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, black 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, black 100%);
    }
}


/* Split Hero Mask */
.hero-bg-image {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, black 80%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 40%, black 80%);
}




/* Utility Classes */
.mb-8 {
    margin-bottom: 2rem;
}

/* CTA Arrow Animation */
.cta-arrow {
    display: inline-block;
    width: 130px;
    height: 30px;
    animation: arrowBounce 1.5s infinite ease-in-out;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
}







/* Bouncing Down Arrow */
.bounce-arrow-down {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Specific Hero Button Styles */
#hero .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff;
}

#hero .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color) !important;
}

