/* ==========================================================================
   Design System & Root Variables
   ========================================================================== */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 24, 40, 0.75);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Background Ambient Glowing Orbs
   ========================================================================== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
}

.bg-glow-2 {
    bottom: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
    animation-delay: -5s;
}

.bg-glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    animation-delay: -9s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 40px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -20px) scale(0.95);
    }
}

/* ==========================================================================
   Main Layout & Glassmorphism Card
   ========================================================================== */
.container {
    width: 100%;
    max-width: 680px;
    z-index: 10;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-glass);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-cyan), transparent);
}

/* ==========================================================================
   Status Badge
   ========================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    opacity: 0.5;
    animation: pulseRing 1.8s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ==========================================================================
   Animated Maintenance Icon Header
   ========================================================================== */
.illustration-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear {
    position: absolute;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-large {
    font-size: 4.5rem;
    color: rgba(99, 102, 241, 0.8);
    animation: spinClockwise 15s linear infinite;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

.gear-small {
    font-size: 2.5rem;
    top: 5px;
    right: 5px;
    color: var(--accent-cyan);
    animation: spinCounterClockwise 9s linear infinite;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.wrench-icon {
    position: absolute;
    font-size: 2.2rem;
    color: #ffffff;
    z-index: 2;
    animation: floatWrench 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes floatWrench {
    0% { transform: translateY(-3px) rotate(-10deg); }
    100% { transform: translateY(5px) rotate(15deg); }
}

/* ==========================================================================
   Typography
   ========================================================================== */
.main-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 70%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

/* ==========================================================================
   Progress Section
   ========================================================================== */
.progress-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-label {
    color: var(--text-primary);
}

.progress-percentage {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.25rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 10px;
    position: relative;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: #ffffff;
    box-shadow: 0 0 15px 3px #ffffff;
    opacity: 0.6;
    border-radius: 50%;
}

.progress-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.task-item.completed {
    color: var(--accent-emerald);
}

.task-item.active {
    color: var(--accent-cyan);
    font-weight: 600;
}

.task-item.pending {
    color: var(--text-muted);
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */
.countdown-container {
    margin-bottom: 2.2rem;
}

.countdown-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.timer-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1.4rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.timer-box:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.timer-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    animation: blinkSeparator 1s infinite;
}

@keyframes blinkSeparator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==========================================================================
   Email Notification Section
   ========================================================================== */
.notify-container {
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2.5rem;
}

.notify-container h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.notify-container p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.notify-form {
    width: 100%;
}

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

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 8.5rem 0.95rem 3rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.input-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.submit-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.submit-btn:hover {
    transform: translateX(2px);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.6);
}

.submit-btn:active {
    transform: scale(0.97);
}

.toast-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeIn 0.4s ease forwards;
}

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

/* ==========================================================================
   Footer & Contact Buttons
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 600px) {
    .glass-card {
        padding: 2.2rem 1.4rem;
        border-radius: 20px;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .timer-box {
        min-width: 70px;
        padding: 0.7rem 0.8rem;
    }

    .timer-number {
        font-size: 1.7rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-group input {
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        border-radius: 12px;
    }

    .submit-btn {
        position: static;
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
