:root {
    --transition-speed: 0.6s;
    --footer-height: 300px; 
    --text-color: #e0f7fa; /* Light cyan-white */
    --accent-color: #4deeea; /* Bright glowing cyan */
    --bg-color: #05101a; /* Deep dark blue */
}

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

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Disable default scrolling */
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    padding-top: 10vh; /* Move text to the top third */
    /* De-blur Animation */
    filter: blur(20px);
    transform: scale(1.1); /* Prevent blurred edges */
    animation: deBlurHero 1.8s ease-out forwards;
}

/* Vignette Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 65%, rgba(5, 16, 26, 1.0) 100%); /* Pushed start to 65% */
    pointer-events: none;
    z-index: 1; /* Above image, below content */
}

@keyframes deBlurHero {
    from { 
        filter: blur(20px);
        transform: scale(1.1);
    }
    to { 
        filter: blur(0);
        transform: scale(1);
    }
}

/* Particle Animation */
.particle-container {
    position: absolute;
    top: 25%; /* Start at 25% height */
    left: 25%; /* Start at 25% width */
    width: 50%; /* Span 50% width */
    height: 50%; /* Span 50% height */
    bottom: auto; /* Remove bottom anchor */
    overflow: hidden;
    z-index: 2; 
    pointer-events: none;
    --timescale: 0.625s; /* Increased by 25% (0.5s * 1.25) */
    opacity: 0;
    animation: fadeInParticles 2s ease-out 1s forwards; /* 1s delay */
}

@keyframes fadeInParticles {
    to { opacity: 1; }
}

/* Boost Hero Content Z-Index to stay above particles */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 20px;
    /* Opacity handled by children */
}

.pt {
    display: block;
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    height: 50px;
    animation: moveUpDown calc(var(--timescale) * var(--yt)) infinite cubic-bezier(.45,.05,.55,.95) alternate;
    animation-delay: calc(-1s * var(--d, 0));
}

.pt b {
    display: block;
    /* Soft, small glow */
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(77,238,234,0.4) 40%, rgba(77,238,234,0) 70%);
    width: 8px;  /* Fixed small size */
    height: 8px; /* Fixed small size */
    border-radius: 50%;
    position: absolute;
    opacity: var(--o, 1);
    animation: 
        moveRightLeft calc(var(--timescale) * var(--xt)) infinite cubic-bezier(.45,.05,.55,.95) alternate,
        flicker calc(2s * var(--xd)) infinite alternate cubic-bezier(.45,.05,.55,.95);
    animation-delay: calc(-1s * var(--d, 0)), calc(-0.2s * var(--d, 0));
}

@keyframes moveUpDown {
    0% {}
    100% { transform: translateY(calc(50% * var(--yd, 3))); }
}

@keyframes moveRightLeft {
    0% { transform: translateX(calc(-50% * var(--xd, 3))); }
    100% { transform: translateX(calc(50% * var(--xd, 3))); }
}

@keyframes flicker {
    0% { opacity: calc(var(--o, 1) - 0.1); }
    100% { opacity: calc(var(--o, 1) + 0.1); }
}

@keyframes deBlurHero {
    from { 
        filter: blur(20px);
        transform: scale(1.1);
    }
    to { 
        filter: blur(0);
        transform: scale(1);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 20px;
    /* Opacity handled by children */
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif; /* Ensure Inter is used */
    opacity: 0;
    animation: fadeInText 3.5s ease-out 1.8s forwards;
}

.line-1, .line-2 {
    font-size: clamp(1.5rem, 3.75vw, 3rem); /* Reduced by ~25% from (2rem, 5vw, 4rem) */
    background: radial-gradient(circle, #90e0ef 0%, #007e97 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Stronger shadow for contrast */
    letter-spacing: 0em; /* Tighter tracking */
    padding-bottom: 0.1em;
    font-weight: 900;
}

.line-3 {
    font-size: clamp(2.6rem, 6.75vw, 4.8rem); /* Reduced by ~25% from (3.5rem, 9vw, 6.5rem) */
    /* Gradient from Dark Cyan (Top) to Bright White-Cyan (Bottom) */
    background: linear-gradient(180deg, #00b4d8 0%, #90e0ef 60%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 0 5px rgba(0, 180, 216, 0.4),
        0 0 10px rgba(77, 238, 234, 0.2);
    margin-top: 0.1em;
    letter-spacing: -0.06em; /* Very tight tracking */
    filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.6));
    padding-bottom: 0.1em;
    font-weight: 900;
    animation: magicalShimmer 3.75s ease-in-out infinite alternate; /* 50% slower (3s -> 4.5s) */
}

@keyframes magicalShimmer {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.6));
        text-shadow: 
            0 0 5px rgba(0, 180, 216, 0.4),
            0 0 10px rgba(77, 238, 234, 0.2);
    }
    100% {
        /* 25% less glow at max */
        filter: drop-shadow(0 0 10px rgba(77, 238, 234, 0.7)); /* Reduced from 12px/0.8 */
        text-shadow: 
            0 0 6px rgba(0, 180, 216, 0.5), /* Reduced from 8px/0.6 */
            0 0 12px rgba(77, 238, 234, 0.3); /* Reduced from 15px/0.4 */
    }
}

/* Fallback for Webkit text fill color to ensure gradient works */
@supports (-webkit-background-clip: text) {
    .line-3 {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}


.badge {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #4deefa;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: #e0f7fa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    box-shadow: 
        0 0 15px rgba(77, 238, 234, 0.2),
        inset 0 0 10px rgba(77, 238, 234, 0.1);
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeInText 2.5s ease-out 4.0s forwards; /* Much later delay (2s) */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.badge:hover {
    background: rgba(77, 238, 234, 0.2);
    box-shadow: 
        0 0 25px rgba(77, 238, 234, 0.4),
        inset 0 0 15px rgba(77, 238, 234, 0.2);
    transform: translateY(-2px);
}

/* Footer Section */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 16, 26, 0.85); /* Dark semi-transparent blue */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2;
    transform: translateY(100%); /* Initially hidden */
    transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 -4px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(77, 238, 234, 0); /* Initial glow state (invisible) */
    border-top: none; /* Removed cyan border */
}

.footer.active {
    transform: translateY(0); /* Slide up */
    box-shadow: 
        0 -4px 30px rgba(0, 0, 0, 0.4),
        0 -10px 40px rgba(77, 238, 234, 0.6); /* Stronger cyan glow */
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer h2 {
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 0 20px rgba(77, 238, 234, 0.4);
}

/* Form Styles */
.subscribe-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.input-group {
    display: flex;
    width: 100%;
    gap: 10px;
}

input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; /* Pill shape */
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="email"]:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(77, 238, 234, 0.2);
}

button {
    padding: 14px 32px;
    background: var(--accent-color);
    color: #05101a;
    border: none;
    border-radius: 30px; /* Pill shape */
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(77, 238, 234, 0.3);
}

button:hover {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(77, 238, 234, 0.6);
    transform: translateY(-1px);
}

button:disabled {
    background-color: #4a6c75;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.form-message {
    font-size: 0.9rem;
    min-height: 1.4em; /* Prevent layout shift */
    font-weight: 400;
}

.form-message.success {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(77, 238, 234, 0.3);
}

.form-message.error {
    color: #ff6b6b;
}

/* Copyright */
.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}
