:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #1abc9c;
    --accent-glow: rgba(26, 188, 156, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Outfit', sans-serif;
}

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

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

/* Dynamic Background */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, #0f1c1a 0%, #050505 100%);
    z-index: -2;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Wrapper for perspective */
.wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphic Card */
.glass-card {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

/* Content specific styles */
.card-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px); /* 3D effect pop out */
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subheadline {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 20px var(--accent-glow);
}

.time-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: 10px;
    font-weight: 400;
}

.separator {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-color);
    opacity: 0.5;
    margin-top: -25px;
    animation: pulse 2s infinite;
}

/* Progress bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #3498db);
    box-shadow: 0 0 10px var(--accent-glow);
    border-radius: 2px;
    transition: width 1s linear;
}

/* Glowing Orbs for extra aesthetic */
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.top-left {
    top: -100px;
    left: -100px;
}

.bottom-right {
    bottom: -100px;
    right: -100px;
    background: #3498db;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(10px); }
}

@keyframes slideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Footer & Legal */
.bottom-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 10;
}

.contact-info, .legal-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link, .footer-btn {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-link:hover, .footer-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-dot {
    color: #555;
    font-size: 0.8rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay.active .modal-content {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    text-align: left;
    /* hide scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-body h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #fff;
}

.modal-text-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-text-content h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .countdown-container {
        gap: 10px;
    }
    .time-box {
        min-width: 60px;
    }
    .glass-card {
        padding: 40px 20px;
    }
    .separator {
        font-size: 1.5rem;
        margin-top: -20px;
    }
    .bottom-footer {
        flex-direction: column;
        gap: 5px;
        bottom: 10px;
    }
    .modal-content {
        padding: 30px 20px;
    }
}
