@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, rgba(0, 45, 120, 0.95), rgba(0, 120, 255, 0.85));
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('background.jpg') center/cover no-repeat fixed;
    background-attachment: fixed;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
    pointer-events: none;
    z-index: 0;
}

.preloader {
    position: fixed;
    inset: 0;
    background: #031533;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(255, 220, 71, 0.45));
    animation: logoPulse 1.8s ease-in-out infinite;
}

.loader-text {
    font-size: 0.95em;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    animation: blinkText 1.5s steps(2, end) infinite;
}

#main-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding-bottom: 120px;
}

#main-content.ready {
    opacity: 1;
    transform: translateY(0);
}

#hero-title,
#hero-name,
#hero-copy {
    opacity: 1;
    transform: translateY(0);
}

#quote-text {
    opacity: 1;
    display: block;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes blinkText {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes fadeMoveUp {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 220px;
    width: auto;
    height: 140px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.35));
}

.container {
    text-align: center;
    max-width: 1200px;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #f7f7f7;
    font-weight: 700;
}

h2 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 600;
}

h3 {
    font-size: 2.5em;
    color: #ffdc47;
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.time {
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 12px 10px;
    min-width: 75px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: pulseGlow 4s ease-in-out infinite;
    overflow: hidden;
}

.time::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 60%);
    opacity: 0.25;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.time:hover::before {
    transform: translateX(0);
}

.time:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.35);
}

.time span {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffdc47;
    display: block;
    animation: popPulse 6s ease-in-out infinite;
}

.time div {
    font-size: 0.75em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.9);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(255,255,255,0.08); }
    50% { box-shadow: 0 0 28px rgba(255,220,71,0.18); }
}

@keyframes popPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

blockquote {
    font-size: 1.25em;
    font-style: italic;
    margin: 40px 0;
    padding: 20px 25px;
    background-color: rgba(255,255,255,0.08);
    border-left: 4px solid rgba(255, 220, 71, 0.9);
    color: rgba(255,255,255,0.92);
    font-weight: 400;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 0.9em;
    color: #fff;
    font-weight: 300;
    text-align: center;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    z-index: 5;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .container {
        padding: 14px;
        margin: 10px;
    }

    .hero-logo {
        margin-bottom: 14px;
    }

    .logo {
        height: 80px;
        max-width: 120px;
    }

    h1 {
        font-size: 2.3em;
    }

    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.9em;
    }

    p {
        font-size: 1.05em;
        margin-bottom: 32px;
    }

    .countdown {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }

    .time {
        width: 55px;
        padding: 7px 5px;
    }

    .time span {
        font-size: 1.1em;
    }

    .time div {
        font-size: 0.65em;
        letter-spacing: 0.09em;
    }

    blockquote {
        font-size: 1.05em;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
        max-width: 90px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.7em;
    }

    p {
        font-size: 1em;
    }

    .time {
        min-width: 35px;
        width: 353px;
    }

    .time span {
        font-size: 0.8em;
    }

    .time div {
        font-size: 0.52em;
    }

    .countdown {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 14px;
    }

    blockquote {
        font-size: 0.95em;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .logo {
        height: 40px;
        max-width: 70px;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }

    .time {
        min-width: 30px;
        max-width: 45px;
        width: 30

    .time span {
        font-size: 0.7em;
    }

    .time div {
        font-size: 0.44em;
    }

    .countdown {
        gap: 1px;
        margin-bottom: 10px;
    }

    blockquote {
        font-size: 0.85em;
        padding: 10px;
    }
}