/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

/* Starfield container */
.starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual star styling */
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

/* Different star sizes for depth */
.star.small {
    width: 2px;
    height: 2px;
    opacity: 0.7;
    filter: blur(0px);
}

.star.medium {
    width: 3px;
    height: 3px;
    opacity: 0.9;
    filter: blur(0px);
}

.star.large {
    width: 4px;
    height: 4px;
    opacity: 1;
    filter: blur(0px);
}

/* Motion blur classes */
.star.moving {
    filter: blur(0.5px);
    opacity: 0.8;
}

.star.moving-fast {
    filter: blur(1px);
    opacity: 0.6;
}

/* Twinkling animation for some stars */
.star.twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Main container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Logo section */
.logo-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

/* Main content */
.main-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

/* Headline styling */
.headline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Subheadline */
.subheadline {
    font-size: 1.25rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 3rem;
    line-height: 1.6;
}


/* Subscription form */
.subscription-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #cccccc;
}

.email-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 140px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.6);
    background: #f0f0f0;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

/* Message styles */
.message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Footer */
.footer {
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.footer p {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Media Section */
.social-section {
    margin-top: 3rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Social link specific styles */
.social-link.youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.social-link.x:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .headline {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }
    
    .headline {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .glitch {
        animation: none;
    }
    
    .glitch::before,
    .glitch::after {
        display: none;
    }
}

/* Focus styles for keyboard navigation */
.email-input:focus,
.submit-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-unit {
        border-color: #ffffff;
    }
    
    .email-input {
        border-color: #ffffff;
    }
}
