/* ==========================================
   HERO SECTION - HORIZONTAL SCROLL TRANSITION
   ========================================== */

.hero-section-parallax {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/* Background Layer with Parallax */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    will-change: transform;
}

.hero-bg-layer .hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
}

.hero-bg-layer .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    z-index: 1;
}

/* Services Background Layer (reveals from below during horizontal scroll) */
.services-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    will-change: transform, opacity;
    transform: translateY(100vh);
    opacity: 0;
}

.services-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Hero Content Layer (Fades on scroll) */
.hero-content-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.hero-content-layer .hero-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content-layer .hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-content-layer .hero-title .title-line {
    display: block;
    will-change: transform, opacity;
}

.hero-content-layer .hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-content-layer .hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-content-layer .hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Horizontal Services Wrapper */
.services-horizontal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    will-change: opacity;
}

.services-horizontal-scroller {
    display: flex;
    gap: 4rem;
    padding: 0 10vw;
    padding-left: calc(300vw + 10vw); /* 3 card widths (3 x 100vw) + original padding */
    will-change: transform;
}

/* Service Cards (Horizontal Scroll) */
.service-card {
    min-width: 450px;
    max-width: 450px;
    height: 550px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
    will-change: transform;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.service-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-features li {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.card-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

/* Scroll Progress Indicator */
.scroll-progress-indicator {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.scroll-progress-indicator.active {
    opacity: 1;
}

.progress-hint {
    font-size: 0.75rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* ==========================================
   SERVICES SECTION - HORIZONTAL SCROLL PARALLAX
   ========================================== */

.services-parallax {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow-x: hidden;
}

.services-sticky-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.services-scroll-wrapper {
    display: flex;
    will-change: transform;
    height: 100%;
    align-items: center;
    padding: 0 5vw;
    gap: 5vw;
}

/* Section Intro Panel */
.service-intro-panel {
    min-width: 90vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    width: fit-content;
}

.section-title-huge {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseX 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
}

@keyframes pulseX {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.7; }
}

/* Service Cards */
.service-card-parallax {
    min-width: 500px;
    max-width: 500px;
    height: 600px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card-parallax:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-card-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card-parallax:hover::before {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.service-icon-float {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.service-icon-float svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card-parallax h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.service-card-parallax p {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    color: #cbd5e1;
    font-size: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

/* ==========================================
   CONTACT SECTION - 3D PARALLAX
   ========================================== */

.contact-parallax {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Parallax Background Layers */
.contact-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.layer-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: floatLayer1 20s ease-in-out infinite;
}

.layer-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation: floatLayer2 25s ease-in-out infinite;
}

.layer-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatLayer3 30s ease-in-out infinite;
}

@keyframes floatLayer1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 50px); }
}

@keyframes floatLayer2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 60px); }
}

@keyframes floatLayer3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.1); }
}

/* Contact Content */
.contact-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    padding: 6rem 4rem;
}

.contact-header-float {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title-massive {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.section-subtitle-large {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Cards - 3D Tilt Effect */
.contact-cards-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.contact-card-3d {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.contact-card-3d:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.contact-card-3d:hover .card-shine {
    left: 100%;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.6s ease;
}

.contact-card-3d:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-link {
    font-size: 1.125rem;
    color: #3b82f6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #60a5fa;
}

.card-hint {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-card-3d:hover .card-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links */
.social-links-float {
    text-align: center;
}

.social-heading {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #3b82f6;
    transition: fill 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover svg {
    fill: white;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    /* Hero Section Mobile - Disable Horizontal Scroll */
    .hero-content-layer .hero-container {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 2rem;
    }

    .hero-content-layer .hero-visual {
        order: -1;
    }

    .hero-content-layer .hero-title {
        font-size: 2.5rem;
    }

    .hero-content-layer .hero-description {
        font-size: 1rem;
    }

    .hero-content-layer .hero-buttons {
        flex-direction: column;
    }

    /* Hide horizontal scroll on mobile */
    .services-horizontal-wrapper {
        display: none !important;
    }

    .scroll-progress-indicator {
        display: none !important;
    }

    /* Reset padding for mobile if scroller is used elsewhere */
    .services-horizontal-scroller {
        padding-left: 2rem;
    }

    .services-scroll-wrapper {
        padding: 0 2rem;
        gap: 3rem;
    }

    .service-intro-panel {
        min-width: 85vw;
        padding: 0 2rem;
    }

    .section-title-huge {
        font-size: 3rem;
    }

    .service-card-parallax {
        min-width: 85vw;
        max-width: 85vw;
        height: auto;
        min-height: 500px;
        padding: 2rem;
    }

    .service-number {
        font-size: 4rem;
        top: 1rem;
        right: 1rem;
    }

    .service-icon-float {
        width: 60px;
        height: 60px;
    }

    .service-icon-float svg {
        width: 30px;
        height: 30px;
    }

    .service-card-parallax h3 {
        font-size: 1.5rem;
    }

    .service-card-parallax p {
        font-size: 1rem;
    }

    .contact-content-wrapper {
        padding: 4rem 2rem;
    }

    .section-title-massive {
        font-size: 2.5rem;
    }

    .contact-cards-stack {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-icons-grid {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .section-title-huge {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card-parallax {
        padding: 1.5rem;
    }

    .section-title-massive {
        font-size: 2rem;
    }

    .section-subtitle-large {
        font-size: 1rem;
    }

    .contact-card-3d {
        padding: 2rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================
   MOBILE-FIRST SERVICES SECTION
   Mobile-friendly vertical stack, no animations
   ========================================== */

/* Hide mobile services on desktop */
.services-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Show mobile services on mobile */
    .services-mobile {
        display: block;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
        padding: 4rem 0;
        min-height: auto;
    }
    
    .services-mobile-container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .services-badge {
        display: inline-block;
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 1.5rem;
    }
    
    .services-title {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.1;
        color: #fff;
        margin-bottom: 1rem;
    }
    
    .services-subtitle {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 3rem;
        line-height: 1.6;
    }
    
    .services-grid-mobile {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-mobile-card {
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(30px);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 20px;
        padding: 2rem;
        transition: all 0.3s ease;
    }
    
    .service-mobile-card:active {
        transform: scale(0.98);
        border-color: rgba(59, 130, 246, 0.4);
    }
    
    .service-mobile-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .service-mobile-icon svg {
        width: 32px;
        height: 32px;
        color: #3b82f6;
        stroke-width: 2;
    }
    
    .service-mobile-card h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.75rem;
    }
    
    .service-mobile-card p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .service-mobile-features {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .service-mobile-features li {
        background: rgba(59, 130, 246, 0.1);
        color: #60a5fa;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 500;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2.5rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .service-mobile-card {
        padding: 1.5rem;
    }
    
    .service-mobile-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-mobile-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-mobile-card h3 {
        font-size: 1.25rem;
    }
    
    .service-mobile-card p {
        font-size: 0.938rem;
    }
    
    .service-mobile-features li {
        font-size: 0.813rem;
        padding: 0.4rem 0.875rem;
    }
}

