@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    color: #f5f1e8;
}

h1, h2, .nav-links a, .apply-btn {
    font-family: 'Cinzel', serif;
}

/* HERO */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* NAVBAR */

.navbar {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 25px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 105px;
    height: auto;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e6c36a;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: #f5f1e8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.apply-btn {
    background: #5f0b0b;
    color: #f5f1e8;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 5;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 90px;
    font-weight: 800;
    color: #f5f1e8;
    letter-spacing: 2px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.event-date {
    font-size: 18px;
}

.location {
    color: #f5f1e8;
    text-decoration: underline;
}

/* COUNTDOWN */

.countdown {
    margin-top: 25px;
    display: flex;
    gap: 22px;
    justify-content: center;
}

.countdown div {
    min-width: 95px;
    padding: 16px 18px;
    background: rgba(15, 15, 15, 0.55);
    border: 1px solid rgba(184, 155, 94, 0.45);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.countdown span {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 800;
    color: #f5f1e8;
}

.countdown p {
    margin-top: 4px;
    font-size: 12px;
    color: #d6c7a1;
}

/* SMOOTH ANIMATION */

.hero-title,
.hero-date,
.hero-location,
.countdown {
    opacity: 0;
    transform: translateY(24px);
    animation: smoothReveal 1.2s ease forwards;
}

.hero-title { animation-delay: 3.4s; }
.hero-date { animation-delay: 4s; }
.hero-location { animation-delay: 4.4s; }
.countdown { animation-delay: 4.8s; }

@keyframes smoothReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* APPLY PAGE */

.apply-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(8, 0, 0, 0.72), rgba(8, 0, 0, 0.88)),
        url("../assets/images/red-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f5f1e8;
}

.apply-section {
    min-height: calc(100vh - 120px);
    padding: 70px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apply-section h1 {
    font-family: 'Cinzel', serif;
    font-size: 58px;
    letter-spacing: 4px;
    color: #c9a24d;
    margin-bottom: 14px;
}

.apply-subtitle {
    color: #e8ddc5;
    margin-bottom: 45px;
    font-size: 17px;
}

.apply-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.apply-card {
    position: relative;
    min-height: 340px;
    padding: 38px 22px;
    text-decoration: none;
    color: #f5f1e8;
    background: rgba(10, 0, 0, 0.38);
    border: 1px solid rgba(201, 162, 77, 0.55);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(2px);
    transition: 0.35s ease;
}

.apply-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 162, 77, 0.28);
}

.apply-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 0, 0, 0.5);
    border-color: #d8b15a;
}

.apply-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    margin-bottom: 18px;
    color: #f3e7c4;
    text-align: center;
    position: relative;
    z-index: 3;
}

.apply-card p {
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    color: #ddd0b2;
    position: relative;
    z-index: 3;
}

.price {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 800;
    color: #d4af37;
    position: relative;
    z-index: 3;
}

.knight-image {
    position: fixed;
    right: -140px;
    bottom: -40px;
    width: 980px;
    height: auto;
    opacity: 0.52;
    pointer-events: none;
    z-index: 1;
    filter: brightness(0.72) contrast(1.08) saturate(0.95);
    mask-image: linear-gradient(to left, black 52%, rgba(0,0,0,0.72) 74%, rgba(0,0,0,0.15) 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 52%, rgba(0,0,0,0.72) 74%, rgba(0,0,0,0.15) 92%, transparent 100%);
}

/* VIDEO */

.hero-video-container{
    position:absolute;
    inset:0;
    overflow:hidden;
    z-index:1;
}

.hero-video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* MOBILE */

@media (max-width:768px){

    .hero{
        min-height:100vh;
        overflow:hidden;
        background:black;
    }

    .hero-video-container{
        position:absolute;
        inset:0;
        overflow:hidden;
    }

    .hero-video{
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center;
    }

    .navbar{
        padding:18px 20px;
        gap:12px;
    }

    .logo img{
        width:60px;
    }

    .logo-text{
        display:none;
    }

    .nav-links{
        display:none;
    }

    .apply-btn{
        padding:12px 18px;
        font-size:12px;
    }

    .hero-content{
        padding:120px 20px 40px;
    }

    .hero-title{
        font-size:58px;
        line-height:0.95;
        text-align:center;
    }

    .hero-date{
        font-size:18px;
        text-align:center;
    }

    .hero-location{
        font-size:16px;
        text-align:center;
    }

    .countdown{
        grid-template-columns:1fr 1fr;
        gap:18px;
        width:100%;
    }

    .countdown div{
        padding:30px 10px;
    }

    .countdown span{
        font-size:52px;
    }
}

    .countdown p {
        font-size: 14px;
    }

    .apply-page .navbar {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .apply-page .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
    }

    .apply-page .nav-links a {
        font-size: 13px;
    }

    .apply-section {
        padding: 28px 7% 70px;
        min-height: auto;
    }

    .apply-section h1 {
        font-size: 34px;
        line-height: 1.15;
        letter-spacing: 2px;
    }

    .apply-subtitle {
        font-size: 17px;
        line-height: 1.35;
        margin-bottom: 34px;
    }

    .apply-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 100%;
    }

    .apply-card {
        min-height: 360px;
        padding: 42px 24px;
    }

    .apply-card h2 {
        font-size: 24px;
    }

    .apply-card p {
        font-size: 18px;
    }

    .price {
        font-size: 30px;
    }

    .knight-image {
        right: -170px;
        bottom: 0;
        width: 720px;
        opacity: 0.35;
        z-index: 0;
    }

    /* MOBILE FINAL POSITIONING */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 18px !important;
        align-items: center !important;
    }

    .logo img {
        width: 54px !important;
    }

    .nav-links {
        gap: 8px 13px !important;
    }

    .nav-links a {
        font-size: 10px !important;
    }

    .apply-btn {
        font-size: 11px !important;
        padding: 10px 14px !important;
    }

    .hero-content {
        padding-top: 135px !important;
        justify-content: flex-start !important;
        gap: 9px !important;
    }

    .hero-title {
        font-size: 40px !important;
        line-height: 1 !important;
        margin-top: 42px !important;
    }

    .event-date {
        font-size: 18px !important;
    }

    .location {
        font-size: 18px !important;
    }

    .countdown {
        max-width: 340px !important;
        gap: 10px !important;
        margin-top: 18px !important;
    }

    .countdown div {
        min-height: 95px !important;
        padding: 12px 6px !important;
    }

    .countdown span {
        font-size: 34px !important;
    }

    .countdown p {
        font-size: 14px !important;
    }
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

@media (max-width:768px){
    .desktop-video {
        display: none !important;
    }

    .mobile-video {
        display: block !important;
    }
}


/* DESKTOP / MOBILE VIDEO CONTROL FIX */
.desktop-video {
    display: block !important;
}

.mobile-video {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none !important;
    }

    .mobile-video {
        display: block !important;
    }
}