/* CSS Custom Properties for Theme */
:root {
    --bg-dark: #0a0a0f;
    --bg-dark-accent: #0f0f18;
    --primary-color: #8b5cf6; /* Vibrant violet */
    --secondary-color: #3b82f6; /* Premium blue */
    --accent-color: #ec4899; /* Radiant pink */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --neon-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Interactive Particle Canvas Backing */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto; /* Allow mouse interactivity */
}

/* Glowing Ambient Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: pulseOrbs 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes pulseOrbs {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    100% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.25;
    }
}

/* Main Container Setup */
.main-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Header & Logo styling */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
    position: relative;
    user-select: none;
}

.logo-accent {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    margin-right: 2px;
}

/* Main Content Styles */
.content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3.5rem 0;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

/* Countdown Timer styling */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    width: 100%;
    max-width: 650px;
}

.countdown-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.8rem 1rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.countdown-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 35px 0 rgba(139, 92, 246, 0.15);
}

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

.countdown-card .number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.countdown-card .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Newsletter Subscription Section */
.subscription-section {
    width: 100%;
    max-width: 520px;
}

.subscribe-form {
    width: 100%;
    position: relative;
}

.input-group {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

.input-group:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: var(--neon-shadow), 0 8px 32px 0 var(--glass-shadow);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.input-group input::placeholder {
    color: #575775;
}

.input-group button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: var(--transition-smooth);
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.input-group button:active {
    transform: translateY(1px);
}

.input-group button .icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.input-group button:hover .icon {
    transform: translateX(4px);
}

/* Status message */
.form-message {
    font-size: 0.9rem;
    margin-top: 0.8rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-smooth);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #10b981; /* Emerald green */
}

.form-message.error {
    color: #ef4444; /* Vivid red */
}

/* Footer Section */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.network-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(20%) brightness(90%);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.social-icon:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.1);
}

.copyright {
    font-size: 0.8rem;
    color: #4b5563;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* CSS Animations for entry load */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.6s;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-up-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.2s;
}

.animate-slide-up-delayed-more {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.4s;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.3s;
}

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

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-card {
        padding: 1.5rem 0.8rem;
    }
    
    .countdown-card .number {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        gap: 1rem;
        padding: 0;
    }
    
    .input-group input {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 30px;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .input-group button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-radius: 30px;
    }
}
