:root {
    --primary-blue: #00A1E0;
    --primary-green: #8DC63F;
    --primary-pink: #E3007D;
    --primary-yellow: #F6A018;
    
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated Background (Curved Lines) --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: #ffffff;
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Base line style */
.line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 0.45;
}

/* Colors */
.line-blue  { stroke: var(--primary-blue); }
.line-pink  { stroke: var(--primary-pink); }
.line-green { stroke: var(--primary-green); }
.line-yellow { stroke: var(--primary-yellow); }

/* Looping draw animation per line */
.line-1  { stroke-width: 3.5; animation: drawLoop 6s 0s    ease-in-out infinite; }
.line-2  { stroke-width: 2.5; animation: drawLoop 6s 0.3s  ease-in-out infinite; }
.line-3  { stroke-width: 1.8; animation: drawLoop 6s 0.6s  ease-in-out infinite; }

.line-4  { stroke-width: 3.5; animation: drawLoop 7s 0.8s  ease-in-out infinite; }
.line-5  { stroke-width: 2.5; animation: drawLoop 7s 1.1s  ease-in-out infinite; }
.line-6  { stroke-width: 1.8; animation: drawLoop 7s 1.4s  ease-in-out infinite; }

.line-7  { stroke-width: 3.5; animation: drawLoop 8s 1.6s  ease-in-out infinite; }
.line-8  { stroke-width: 2.5; animation: drawLoop 8s 1.9s  ease-in-out infinite; }
.line-9  { stroke-width: 1.8; animation: drawLoop 8s 2.2s  ease-in-out infinite; }

.line-10 { stroke-width: 3.5; animation: drawLoop 7s 2.4s  ease-in-out infinite; }
.line-11 { stroke-width: 2.5; animation: drawLoop 7s 2.7s  ease-in-out infinite; }
.line-12 { stroke-width: 1.8; animation: drawLoop 7s 3.0s  ease-in-out infinite; }

/* Draw in → hold → draw out → loop */
@keyframes drawLoop {
    0% {
        stroke-dashoffset: 1200;
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    40% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
    60% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        stroke-dashoffset: -1200;
        opacity: 0;
    }
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    animation: fadeUp 1s ease-out forwards;
    margin: 2rem auto;
}

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

/* --- Logo --- */
.logo-wrapper {
    margin-bottom: 1rem;
}

.logo {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* --- Content --- */
.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.content-wrapper p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Countdown --- */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 110px;
    height: 110px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
}

.number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}

.label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Different colors for countdown numbers */
.countdown-item:nth-child(2) .number { color: var(--primary-yellow); }
.countdown-item:nth-child(3) .number { color: var(--primary-pink); }
.countdown-item:nth-child(4) .number { color: var(--primary-green); }

/* --- Social Media --- */
.social-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
}

.social-icon:nth-child(1):hover { background: #1877F2; border-color: #1877F2; } /* Facebook */
.social-icon:nth-child(2):hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
} /* Instagram */

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }

    .container {
        padding: 2rem 1.25rem;
        width: 95%;
        gap: 1.8rem;
        margin: 1.5rem auto;
    }

    .logo {
        max-width: 180px;
    }

    .logo-wrapper {
        margin-bottom: 0.5rem;
    }

    .content-wrapper h1 {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
    }

    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .countdown-wrapper {
        gap: 0.6rem;
    }

    .countdown-item {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    .number {
        font-size: 1.6rem;
    }

    .label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .logo {
        max-width: 150px;
    }

    .content-wrapper h1 {
        font-size: 1.35rem;
    }

    .content-wrapper p {
        font-size: 0.9rem;
    }

    .countdown-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .countdown-item {
        width: calc(50% - 0.25rem);
        height: 80px;
    }

    .number {
        font-size: 1.5rem;
    }
}
