:root{
    --dark:#1a1a1a;
    --neon:#CEFB04;
    --muted:#313131;
    --text:#F7F6F7;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family: 'Satoshi', system-ui, Arial, sans-serif;color:var(--text);overflow-x: hidden;}

/* Background with overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--dark); /* Fallback */
    /* Adjusted overlay opacity to be slightly more transparent so the image shows through better */
    background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%), url('bg_hero.png') center/cover no-repeat;
    z-index: -2;
    filter: contrast(1.1) saturate(1.1);
}

/* Scanline effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: -1;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Human Model Styling */
.cs-human-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0; /* Behind text (z-index 1), in front of bg */
    height: 90vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    overflow: hidden;
}

.cs-human {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Cyberpunk treatment: Grayscale, high contrast, slightly dark to let text pop */
    filter: grayscale(100%) contrast(1.2) brightness(0.7) drop-shadow(0 0 20px rgba(206, 251, 4, 0.1));
    opacity: 0; /* Hidden for GSAP */
    transform: translateY(50px);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.cs-main{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content: center; padding:2rem;position:relative}

/* Logo Positioning: Top Left, Fixed */
.cs-header {
    position: absolute; /* Removed from flow */
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 100;
}

/* Removed backdrop as requested */
.cs-header::before {
    display: none;
}

.cs-logo {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    height: 60px; /* Decreased size */
    width: auto;
    display: block;
    margin: 0;
    filter: drop-shadow(0 0 10px rgba(206, 251, 4, 0.3));
}

.cs-hero{max-width:1000px;text-align:center;width:100%;margin-top:0; position: relative; z-index: 1;}
.cs-hero-content{padding:0 2rem 2rem;}

/* Bold Typography */
.cs-title{
    font-family:'Monument Extended',sans-serif;
    font-size:clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin:0 0 1.5rem;
    color:var(--neon);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(206, 251, 4, 0.4);
    opacity: 0; /* Hidden for GSAP */
    transform: translateY(20px);
    position: relative;
}

/* Glitch Effect */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark); /* Matches background to hide original text parts */
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(34px, 9999px, 11px, 0); }
    5% { clip: rect(78px, 9999px, 96px, 0); }
    10% { clip: rect(12px, 9999px, 5px, 0); }
    15% { clip: rect(56px, 9999px, 23px, 0); }
    20% { clip: rect(89px, 9999px, 4px, 0); }
    25% { clip: rect(2px, 9999px, 87px, 0); }
    30% { clip: rect(67px, 9999px, 32px, 0); }
    35% { clip: rect(9px, 9999px, 54px, 0); }
    40% { clip: rect(45px, 9999px, 12px, 0); }
    45% { clip: rect(23px, 9999px, 76px, 0); }
    50% { clip: rect(87px, 9999px, 34px, 0); }
    55% { clip: rect(12px, 9999px, 65px, 0); }
    60% { clip: rect(54px, 9999px, 21px, 0); }
    65% { clip: rect(98px, 9999px, 43px, 0); }
    70% { clip: rect(32px, 9999px, 89px, 0); }
    75% { clip: rect(65px, 9999px, 12px, 0); }
    80% { clip: rect(21px, 9999px, 54px, 0); }
    85% { clip: rect(76px, 9999px, 98px, 0); }
    90% { clip: rect(43px, 9999px, 32px, 0); }
    95% { clip: rect(89px, 9999px, 65px, 0); }
    100% { clip: rect(12px, 9999px, 21px, 0); }
}

.cs-desc{
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color:var(--text);
    opacity: 0; /* Hidden for GSAP */
    max-width: 600px;
    margin:0 auto 3rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    transform: translateY(20px);
    
    /* Cyberpunk HUD Styling */
    position: relative;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(206, 251, 4, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Corner Accents */
.cs-desc::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--neon);
    border-left: 2px solid var(--neon);
    transition: all 0.3s ease;
}

.cs-desc::after {
    content: "";
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
    transition: all 0.3s ease;
}

.cs-desc:hover::before,
.cs-desc:hover::after {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* Form Styling */
.cs-form{
    display:flex;
    gap:0;
    justify-content:center;
    align-items:stretch;
    margin:0 auto;
    max-width: 500px;
    opacity: 0; /* Hidden for GSAP */
    transform: translateY(20px);
}

.cs-form input{
    background:rgba(255,255,255,0.05);
    border:1px solid var(--muted);
    border-right: none;
    padding:1.2rem 1.5rem;
    color:var(--text);
    min-width:260px;
    flex:1;
    outline:none;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.cs-form input:focus{
    background: rgba(206, 251, 4, 0.05);
    border-color: var(--neon);
}

.cs-form input::placeholder{color:rgba(247, 246, 247, 0.3);}

.btn-send{
    background:var(--neon);
    color:var(--dark);
    border:none;
    padding:1.2rem 2rem;
    font-family: 'Monument Extended', sans-serif;
    font-weight:800;
    font-size: 0.9rem;
    cursor:pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.btn-send:hover{
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transform: translateX(5px);
}

.btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cs-success{
    margin-top:2rem;
    color:var(--neon);
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cs-socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0; /* Hidden for GSAP */
    transform: translateY(20px);
}

.social-link {
    color: var(--text);
    transition: all 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--neon);
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(206, 251, 4, 0.5));
}

/* Dynamic Beam Animation */
.cs-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(206, 251, 4, 0.02) 40%,
        rgba(206, 251, 4, 0.1) 50%,
        rgba(206, 251, 4, 0.02) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: beam-sweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes beam-sweep {
    0% { left: -150%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.sr-only{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

@media (max-width:640px){
    /* Prevent scrolling on mobile */
    html, body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Switch to vertical background on mobile */
    body::before {
        background-image: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%), url('bg_mobile.png');
    }

    .cs-header{margin-bottom: 0;}
    /* Adjust logo for mobile */
    .cs-logo{
        height: 50px;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .cs-hero{margin-top: 1rem;}
    .cs-form{flex-direction:column; gap: 1rem;}
    .cs-form input{width:100%; border-right: 1px solid var(--muted);}
    .btn-send{width:100%;}
    
    /* Adjust glitch effect for mobile */
    .cs-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Fix piled up text on mobile */
    .cs-hero-content {
        padding: 0 1rem 2rem; /* Reduce container padding */
    }
    
    .cs-desc {
        padding: 1rem; /* Reduce box padding */
        font-size: 0.9rem; /* Slightly smaller text */
        width: 100%;
        margin-bottom: 2rem;
    }
}
