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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   EPIC 6.0 COLOR PALETTE
   =================================== */
:root {
    --dark-purple: #4A148C;
    --blue: #1565C0;
    --brown: #6D4C41;
    --yellow: #F9A825;
    --maroon: #880E4F;
    --dark-red: #B71C1C;
    --olive-brown: #827717;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

/* ===================================
   HEADER (STICKY NAVIGATION)
   =================================== */
.header {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: none;
}

.header-container {
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(74, 20, 140, 0.88);
    border-radius: 999px;
    overflow: hidden;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 2px;
}

.logo img {
    height: 70px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   SECTION: HERO
   Background image only, no content
   =================================== */
.hero {
    width: 100%;
    height: 120vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #651639
}

/* Desktop background (≥768px) */
@media (min-width: 768px) {
    .hero {
        background-image: url('Background/Homepage/Dekstop.png');
    }
}

/* Mobile background (<768px) */
@media (max-width: 767px) {
    .hero {
        background-position: center top;
        background-repeat: no-repeat;
        height: 110vh;
        background-image: url('Background/Homepage/Hp.png');
    }
}

/* ===================================
   SECTION: MASCOT
   Background image only, no content
   =================================== */
.mascot {
    width: 100%;
    height: 140vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #651639
}

/* Desktop background (≥768px) */
@media (min-width: 768px) {
    .mascot {
        background-image: url('Background/Pagemascot/Page\ Mascot\ \(Dekstop\).jpg');
    }
}

/* Mobile background (<768px) */
@media (max-width: 767px) {
    .mascot {
        background-position: center top;
        background-repeat: no-repeat;
        height: 100vh;
        background-image: url('Background/Pagemascot/Page\ Mascot\ \(Mobile\).JPG');
    }
}

/* ===================================
   SECTION: REGISTRATION
   Background + Content Grid
   =================================== */
.registration {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #651639
}

.reg-wrapper {
    padding: 15rem 0 4rem;
}

/* scroll container */
.reg-scroll {
    overflow-x: auto;
    padding: 0 2rem;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE & Edge lama */
}

.reg-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* horizontal track */
.reg-track {
    display: flex;
    gap: 0.25rem;
    width: max-content;
    scroll-snap-type: x mandatory;
    padding: 0 2rem;
}

/* image item */
.reg-item {
    scroll-snap-align: center;
    flex-shrink: 0;
}

.reg-item img {
    height: 260px;
    width: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* hover desktop */
.reg-item:hover img {
    transform: scale(1.05);
}

.reg-item {
    text-align: center;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.reg-label {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reg-item:hover img {
    transform: scale(1.05);
}

.reg-item:hover .reg-label {
    color: #F9A825;
    /* kuning EPIC */
}

.escolate-options {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sub-btn {
    background: var(--yellow);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* Desktop background (≥768px) */
@media (min-width: 768px) {
    .registration {
        background-image: url('Background/Registration/Desktop\ background.jpg');
    }
}

/* Mobile background (<768px) */
@media (max-width: 767px) {
    .registration {
        height: 100vh;
        background-image: url('Background/Registration/HP\ background.jpg');
    }

    .reg-item img {
        height: 300px;
    }

    .reg-label {
        font-size: 1.25rem;
    }
}


/* ===================================
   FOOTER (CONTACT PERSON)
   Solid background, NOT an image
   =================================== */
.footer {
    width: 100%;
    background: var(--dark-purple);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===================================
   SOCIAL MEDIA ICONS
   =================================== */
.social-media {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-link {
    font-size: 40px;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.fa-instagram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%, #fdf497 5%,
            #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-tiktok {
    color: #000;
}

.fa-whatsapp {
    color: #25D366;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ===================================
   PARTNERSHIP BUTTONS
   =================================== */
.partnership-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.partnership-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.partnership-btn:nth-child(1) {
    background: var(--yellow);
    color: var(--white);
}

.partnership-btn:nth-child(2) {
    background: var(--blue);
    color: var(--white);
}

.partnership-btn:nth-child(3) {
    background: var(--maroon);
    color: var(--white);
}

.partnership-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */
@media (max-width: 767px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .nav::before {
        content: "";
        position: absolute;
        top: 32px;
        left: 32px;

        width: 120px;
        height: 40px;

        background-image: url("Logo-Epic.PNG");
        background-size: 75px;
        background-repeat: no-repeat;
        background-position: left center;
    }

    .nav {
        position: fixed;
        top: 12px;
        right: -100%;
        width: calc(100% - 24px);
        height: calc(100vh - 24px);
        background: rgba(74, 20, 140, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 120px 32px 32px;
        gap: 24px;
        border-radius: 24px 0 0 24px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }

    .nav.active {
        right: 12px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .footer-title {
        font-size: 2rem;
    }

    .social-media {
        gap: 1.5rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .partnership-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .partnership-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===================================
   RESPONSIVE DESIGN - SMALL MOBILE
   =================================== */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 1.75rem;
    }
}