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

html {
    height: 100%;
    position: relative;
    overflow-x: clip;
    overflow-y: auto;
    
    /* Match your gradient's bottom color */
    background-color: #2c0903;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    opacity: 0.25;
    mix-blend-mode: soft-light;
    z-index: -1;
    pointer-events: none;
}

:root {
    --glare-tilt: 18deg;
    --glare-opacity: 0.32;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(
        180deg,
        #3a0473 0%,
        #5b11a0 15%,
        #2a0d47 35%,
        #150827 55%,
        #341114 70%,
        #4a1b0d 82%,
        #671f08 92%,
        #2c0903 100%
    );
    /* KEY FIX: Change fixed to scroll */
    background-attachment: scroll;
    background-color: #2c0903;
    color: white;
    /* Use dvh (dynamic viewport height) with fallback */
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    margin: 0;
    padding: 0;
    /* Repeat the gradient so it covers when scrolling */
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    background-size: 100% 100dvh;
}

/* Fix the pseudo-elements for mobile */
body::before {
    content: '';
    position: absolute; /* Change from fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 20%, rgba(138, 67, 229, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 70% 15%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 15% 35%, rgba(147, 51, 234, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 35%, rgba(126, 34, 206, 0.12) 0%, transparent 48%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: -25%;
    width: 150%;
    height: 60%;
    background: 
        radial-gradient(circle at 50% 95%, rgba(18, 0, 38, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 78% 80%, rgba(49, 0, 80, 0.3) 0%, transparent 48%),
        radial-gradient(circle at 20% 88%, rgba(6, 0, 11, 0.24) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}


@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



@keyframes glareDrift {
    0%, 100% {
        transform: translate3d(-12%, -8%, 0) rotate(var(--glare-tilt));
        opacity: calc(0.02 + var(--glare-opacity));
    }
    50% {
        transform: translate3d(8%, 6%, 0) rotate(var(--glare-tilt));
        opacity: calc(0.06 + var(--glare-opacity));
    }
}

/* Container needs to have background too as fallback */
.container {
    position: relative;
    z-index: 1;
    padding: 40px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

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

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.menu-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1002; /* keep dropdown anchored above surrounding content */
}

.menu-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.menu-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon span {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

/* Glassmorphism Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: -1;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-item:active {
    transform: translateX(2px) scale(0.98);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    opacity: 0.9;
}

.menu-item span {
    flex: 1;
}

/* Add subtle glow effect */
.menu-item:hover i {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-text .line-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text .line-2 {
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-text .line-2::before {
    content: '';
    width: 80px;
    height: 2px;
    background: white;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

footer {
    display: flex;
    justify-content: flex-end;
    padding: 40px 0;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 14px 28px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.about-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.about-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.about-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c97a2a;
    border-radius: 50%;
}

.about-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-title span {
    color: rgba(255, 255, 255, 0.5);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 300;
    color: #c97a2a;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Frame */
.video-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.video-inner {
    position: absolute;
    inset: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #c97a2a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.video-duration {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Shared Glass Isolation */
.about-content,
.video-frame,
.workflow-step,
.service-card,
.services-scroll-container,
.footer-top,
.footer-column {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.logo-track {
    position: relative;
    isolation: isolate;
}

.about-content::after,
.video-frame::after,
.workflow-step::after,
.logo-track::after {
    content: '';
    position: absolute;
    inset: -25%;
    background: linear-gradient(var(--glare-tilt), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    opacity: calc(0.04 + var(--glare-opacity));
    mix-blend-mode: screen;
    pointer-events: none;
    animation: glareDrift 30s ease-in-out infinite;
    will-change: transform, opacity;
}

.service-card:hover::after,
.workflow-step:hover::after,
.logo-track:hover::after,
.about-content:hover::after {
    opacity: calc(0.1 + var(--glare-opacity));
    filter: blur(1px);
}

@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-section {
        padding: 60px 24px;
    }
}

/* Services Section */
.services-section {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.services-wrapper {
    max-width: 1400px;
    width: 100%;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c97a2a;
    border-radius: 50%;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-title span {
    color: rgba(255, 255, 255, 0.5);
}

/* Glassmorphic Scrollbar Container */
.services-scroll-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 8px;
    backdrop-filter: blur(20px);
}

.services-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    border-radius: 24px 24px 0 0;
}

.services-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-scroll::-webkit-scrollbar {
    display: none;
}

/* Service Card */
.service-card {
    flex: 0 0 340px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    transform: translateY(var(--glass-elevate)) scale(var(--glass-scale));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    --glass-elevate: -12px;
    --glass-scale: 1.02;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 122, 42, 0.15);
    border: 1px solid rgba(201, 122, 42, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(201, 122, 42, 0.25);
    transform: scale(1.05);
}

.workflow-step:active {
    --glass-scale: 0.995;
}

.service-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.service-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.service-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-feature {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.scroll-track {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.scroll-thumb {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #c97a2a, #e8a54b);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.scroll-arrows {
    display: flex;
    gap: 10px;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-section {
        padding: 60px 24px;
    }

    .services-section {
        padding: 60px 24px;
    }

    .service-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    .hero-text .line-2::before {
        width: 40px;
    }

    header {
        margin-bottom: 40px;
    }

    .about-content {
        padding: 30px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .service-card {
        flex: 0 0 280px;
        padding: 30px 25px;
    }

    .scroll-track {
        width: 120px;
    }
}

/* Workflow Section */
.workflow-section {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.workflow-wrapper {
    max-width: 1400px;
    width: 100%;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.workflow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
    transform: translateY(var(--glass-elevate)) scale(var(--glass-scale));
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.workflow-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 38px 95px rgba(0, 0, 0, 0.55);
    --glass-elevate: -10px;
    --glass-scale: 1.015;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.step-icon i {
    color: rgba(255, 255, 255, 0.8);
}

.step-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: white;
}

.step-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero Card */
.hero-card,
.service-card,
.workflow-step,
.logo-slider {
    --glass-tilt-x: 0deg;
    --glass-tilt-y: 0deg;
    --glass-elevate: 0px;
    --glass-scale: 1;
}

.hero-card {
    padding: 50px;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(80,40,160,0.15) 0%, rgba(40,20,100,0.1) 100%);
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(var(--glass-elevate)) scale(var(--glass-scale));
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -40%;
    width: 60%;
    height: 160%;
    background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 60%, transparent 100%);
    opacity: 0.35;
    transform: rotate(15deg);
    filter: blur(10px);
    animation: glassSweep 14s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

@media (hover: hover) {
    .hero-card:hover {
        --glass-elevate: -18px;
        --glass-scale: 1.02;
        box-shadow: 0 55px 140px rgba(0, 0, 0, 0.65);
    }
}

@keyframes glassSweep {
    0% {
        transform: translateX(-150%) rotate(15deg);
        opacity: 0;
    }
    20% {
        opacity: 0.4;
    }
    50% {
        transform: translateX(150%) rotate(15deg);
        opacity: 0.15;
    }
    100% {
        transform: translateX(150%) rotate(15deg);
        opacity: 0;
    }
}

.hero-tags {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.hero-tag {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s;
}

.hero-tag:hover,
.hero-tag.active {
    color: white;
}

.hero-title {
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 300;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 30px;
    background: linear-gradient(180deg, white 30%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-primary {
    background: rgba(255,255,255,0.95);
    color: #1a1a2e;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

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

.btn-primary .arrow {
    width: 28px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* Decorative Stars */
.star-deco {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
}

.star {
    font-size: 80px;
}

.star-sm {
    font-size: 30px;
    margin-left: 60px;
    margin-top: -20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 24px;
    }

    .hero-card {
        padding: 30px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .star-deco {
        display: none;
    }
}

@media (max-width: 1024px) {
    .workflow-section {
        padding: 60px 24px;
    }

    .workflow-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        padding: 35px 25px;
    }
}

/* Clients Logo Slider Section */
.clients-section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.clients-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.logo-slider {
    margin: 60px auto 0;
    overflow: hidden;
    padding: 0 10px;
    position: relative;
    border-radius: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    min-height: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.3s ease;
    transform: translateY(var(--glass-elevate)) scale(var(--glass-scale));
    contain: layout;
}

.logo-slider:hover {
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    --glass-elevate: -8px;
}

body.is-touch .hero-card,
body.is-touch .workflow-step,
body.is-touch .logo-slider {
    --glass-elevate: -6px;
    --glass-scale: 1.01;
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.6);
}

body.is-touch .workflow-step::after,
body.is-touch .logo-track::after {
    opacity: calc(0.12 + var(--glare-opacity));
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 2, 8, 0.95) 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(5, 2, 8, 0.95) 100%);
}

.logo-track {
    display: flex;
    gap: 90px;
    padding: 0 40px;
    animation: scroll-logos 40s linear infinite;
    width: fit-content;
    will-change: transform;
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 80px;
    padding: 0 30px;
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.logo-slide:hover {
    transform: translateY(-6px);
}

.logo-slide img {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(154, 154, 154, 0.45)) brightness(0) invert(1) opacity(0.75);
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: drop-shadow(0 12px 30px rgba(154, 154, 154, 0.55)) brightness(1) opacity(1);
}

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

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

/* Enhanced Footer */
/* Extra insurance for the bottom gap */
.enhanced-footer {
    background: rgba(0, 0, 0, 0.6);
    background-color: #1a0a02;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10; /* Increase this from 1 to 10 */
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 20px); /* Add safe area for mobile */
}

.enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.footer-column a:hover {
    color: white;
    padding-left: 8px;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .clients-section {
        padding: 60px 24px;
    }

    .logo-slider {
        min-height: 120px;
        border-radius: 36px;
    }

    .logo-track {
        gap: 60px;
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .logo-slider {
        min-height: 105px;
        border-radius: 28px;
        padding: 0 4px;
    }

    .logo-slide {
        min-width: 140px;
        height: 70px;
        padding: 0 18px;
    }

    .logo-slide img {
        max-width: 110px;
        max-height: 44px;
    }

    .logo-track {
        gap: 32px;
    }

    .footer-wrapper {
        padding: 60px 24px 30px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    body {
        /* Ensure gradient covers full scroll height */
        background-size: 100% auto;
    }
    
    body::before,
    body::after {
        position: absolute;
    }
    
    /* Slower/simpler animation for performance */
   body::after {
        position: absolute;
        bottom: 0;
        left: -25%;
        width: 150%;
        height: 50%;
        opacity: 0.5;
    }
.enhanced-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    .footer-wrapper {
        padding-bottom: 40px;
    }


}

@media (max-width: 600px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background-attachment: scroll;
    }

    .container {
        padding: 20px;
    }

    .about-section,
    .workflow-section,
    .hero-section,
    .services-section,
    .clients-section {
        padding: 50px 16px;
    }

    .hero-tags {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .hero-title {
        font-size: clamp(38px, 12vw, 58px);
    }

    .logo-slider {
        min-height: 90px;
    }

    .logo-slide {
        min-width: 110px;
        padding: 0 12px;
    }

    .services-scroll {
        gap: 20px;
    }

    body::before,
    body::after {
        position: absolute;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after,
    .about-content::after,
    .video-frame::after,
    .workflow-step::after,
    .logo-track::after,
    .hero-card::after {
        animation: none;
    }

    .logo-track {
        animation-duration: 60s;
    }
}

/* All sections should have the fallback background color */
.about-section,
.workflow-section,
.hero-section,
.services-section,
.clients-section {
    background-color: transparent;
    position: relative;
}

/* Target Chrome Android specifically if needed */
@supports (height: 100dvh) {
    body, .container {
        min-height: 100dvh;
    }
}

/* ===== LOADING SCREEN ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
        135deg,
        #2a0d47 0%,
        #1a0527 50%,
        #2c0903 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 0.8s ease;
}

.loader-logo {
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(138, 67, 229, 0.6));
}

.loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(138, 67, 229, 0.8);
    border-right-color: rgba(255, 120, 68, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

