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

:root {
    --cream: #fce6cd;
    --red: #c1272d;
    --red-dark: #8f1c21;
    --maroon: #5c1a1a;
    --gold: #d4a017;
}

html,
body {
    height: 100vh;
    width: 100vw;
}

body {
    font-family: "Segoe UI", Verdana, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--maroon);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== Hero Section ===== */
.hero {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2vh 5vw;
    gap: 3vw;
    overflow: hidden;
}

.hero-left {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2vh;
    animation: fadeInLeft 0.9s ease-out;
}

.tagline {
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: clamp(0.8rem, 1vw, 1rem);
}

.title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--maroon);
    font-weight: 900;
}

.title .highlight {
    color: var(--red);
    -webkit-text-stroke: 0.5px var(--maroon);
}

.title small {
    display: block;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.5vh;
}

.event-desc {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    margin-top: 1vh;
}

.competition {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    color: var(--red-dark);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.event-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--maroon);
    max-width: 40vw;
}

.event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    margin-top: 1.5vh;
}

.deadline {
    margin-top: 1vh;
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    font-weight: 700;
    color: var(--red-dark);
}

.info-pill {
    background-color: #fff;
    border: 2px solid var(--red);
    color: var(--red-dark);
    padding: 0.8vh 1.4vw;
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 1rem);
    white-space: nowrap;
}

/* ===== Register Button ===== */
.register-btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 2.5vh;
    padding: 1.8vh 3.2vw;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 800;
    text-decoration: none;
    border-radius: 0.8vw;
    box-shadow: 0 0.8vh 2vh rgba(193, 39, 45, 0.45);
    letter-spacing: 0.03em;
    animation: pulse 2.2s infinite;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-btn:hover {
    transform: translateY(-0.4vh) scale(1.03);
    box-shadow: 0 1.2vh 2.5vh rgba(193, 39, 45, 0.55);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    50% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0.8vh 2vh rgba(193, 39, 45, 0.45);
    }
    50% {
        box-shadow: 0 0.8vh 3vh rgba(193, 39, 45, 0.75);
    }
}

.contact-line {
    margin-top: 1.5vh;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

.contact-line a {
    color: var(--red-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

.terms {
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    color: #7a5c4a;
    font-style: italic;
}

.countdown {
    margin-top: 1.5vh;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 700;
    color: var(--red-dark);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 1vh 1.2vw;
    border-radius: 0.5vw;
}

/* ===== Hero Right / Image ===== */
.hero-right {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.9s ease-out;
}

.poster-img {
    width: 100%;
    max-width: 46vw;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 0.3vw;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    text-align: center;
    padding: 2vh 0;
    background-color: var(--maroon);
    color: var(--cream);
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
}

/* ===== Animations ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-3vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(3vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Tablet Responsive ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 2vh 6vw;
        gap: 1.5vh;
    }

    .hero-left,
    .hero-right {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        align-items: center;
        text-align: center;
    }

    .hero-left {
        align-items: center;
        gap: 0.8vh;
    }

    .event-sub {
        max-width: 100%;
    }

    .poster-img {
        max-width: 80vw;
        max-height: 36vh;
    }

    .event-info {
        justify-content: center;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 520px) {
    .hero {
        padding: 1.5vh 6vw;
        gap: 1vh;
    }

    .title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .competition {
        font-size: clamp(1.3rem, 7.5vw, 2rem);
    }

    .register-btn {
        width: 100%;
        text-align: center;
        padding: 1.6vh 4vw;
        margin-top: 1vh;
    }

    .poster-img {
        max-width: 90vw;
        max-height: 26vh;
    }

    .info-pill {
        font-size: 0.75rem;
        padding: 0.6vh 3vw;
    }

    .deadline,
    .contact-line,
    .terms,
    .countdown {
        margin-top: 0.6vh;
    }

    .footer {
        padding: 0.8vh 0;
    }
}
