/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-primary: #040511;
    --bg-secondary: #08091a;
    --accent-purple: #7928ca;
    --accent-cyan: #00dfd8;
    --accent-pink: #ff007f;
    --text-primary: #ffffff;
    --text-secondary: #a3a8cc;
    --glass-bg: rgba(10, 11, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 30px rgba(121, 40, 202, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Background Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all; /* Allow interaction */
}

/* Glassmorphism Container */
.maintenance-container {
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 2;
    margin: auto;
    animation: fadeIn 1s ease-out;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                var(--glow-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    z-index: 3;
}

/* Animated Logo/Icon */
.logo-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    opacity: 0.25;
    filter: blur(8px);
    animation: pulseGlow 3s infinite alternate;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    position: relative;
    z-index: 2;
}

.wrench-icon {
    width: 36px;
    height: 36px;
    animation: floatAndRotate 6s ease-in-out infinite;
}

/* Typography & Content */
.badge {
    background: rgba(121, 40, 202, 0.15);
    border: 1px solid rgba(121, 40, 202, 0.3);
    color: #dfb2ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(121, 40, 202, 0.1);
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 35px auto;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 480px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-percentage {
    color: var(--accent-cyan);
    font-weight: 700;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    box-shadow: 0 0 12px rgba(0, 223, 216, 0.5);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 45px;
    width: 100%;
    max-width: 480px;
}

.countdown-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.countdown-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.countdown-item:hover .countdown-card {
    transform: translateY(-5px);
    border-color: rgba(0, 223, 216, 0.3);
    box-shadow: 0 12px 30px rgba(0, 223, 216, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.countdown-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff, #dcdff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.countdown-label {
    margin-top: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Subscription Form */
.notify-container {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 35px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.notify-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: -0.01em;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.input-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.notify-form input[type="email"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 16px 16px 48px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.notify-form input[type="email"]:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 223, 216, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.notify-form input[type="email"]:focus + .input-icon {
    color: var(--accent-cyan);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 14px;
    padding: 16px 28px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 40, 202, 0.4), 
                0 0 12px rgba(255, 0, 127, 0.2);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.btn-submit.loading .loading-spinner {
    display: block;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.form-message {
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-smooth);
}

.form-message.success {
    color: #4ade80;
    opacity: 1;
}

.form-message.error {
    color: #f87171;
    opacity: 1;
}

/* Footer & Social Media */
.footer-container {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

#social-fb:hover {
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
    color: #1877f2;
}

#social-tw:hover {
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
    color: #1da1f2;
}

#social-ig:hover {
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.4);
    color: #e1306c;
}

#social-in:hover {
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.2);
    border-color: rgba(10, 102, 194, 0.4);
    color: #0a66c2;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(163, 168, 204, 0.5);
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    from {
        transform: scale(0.96);
        opacity: 0.2;
    }
    to {
        transform: scale(1.04);
        opacity: 0.35;
    }
}

@keyframes floatAndRotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(8deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) rotate(-8deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsiveness */
@media (max-width: 580px) {
    body {
        padding: 15px;
    }
    
    .glass-card {
        padding: 35px 20px;
        border-radius: 24px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-card {
        border-radius: 12px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
        margin-top: 6px;
    }
    
    .notify-container {
        padding: 20px 16px;
    }
}

@media (min-width: 480px) {
    .notify-form {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-submit {
        margin-top: 0;
    }
}
