/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #734CD0;
    --primary-dark: #432582;
    --bg-dark: #000000;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --gray-light: #dfe2f5;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}


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


html {
    scroll-behavior: smooth;
    font-size: 16px;
}


body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


ul {
    list-style: none;
}


/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
}


.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}


.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 0 auto 20px;
    border-radius: 2px;
}


.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}


.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(115, 76, 208, 0.3);
}


.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}


.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}


.btn-register,
.btn-learn-more {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 999px;
    /* fully rounded */
    margin-top: 15px;
    border: none;
    /* no border artifact */
    box-shadow: none;
    /* if you had any */
}


.btn-register:hover,
.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(115, 76, 208, 0.3);
}


/* ===================================
   Navigation Bar
   ==============================:===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* no space between logos */
}

.nav-logo img {
    height: 50px;
    transition: var(--transition);
    display: block;
}

/* optional: tweak individual MGM logo size if needed */
.nav-logo-mgm img {
    height: 50px;
}

.navbar.scrolled .nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.btn-sponsor {
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    border: 2px solid transparent;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)),
        linear-gradient(135deg, #734CD0, #432582);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-sponsor:hover,
.btn-sponsor.active {
    background: linear-gradient(135deg, #8557e0, #5b3499);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(115, 76, 208, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

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

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

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

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

/* responsive tweaks */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 30px 0;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }
}



/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(115,76,208,0.1)"/></svg>');
    opacity: 0.3;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}


.hero-logo {
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}


.hero-logo img {
    max-width: 500px;
    margin: 0 auto;
    filter: none;
}


.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}


.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--gray-light);
    margin-bottom: 10px;
}


.hero-date {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}


.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}


.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}


.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}


/* ===================================
   About Section
   =================================== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}


.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}


.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}


.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}


.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}


.about-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}


.about-card p {
    font-family: 'Inter', sans-serif;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}


.about-image {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}


.about-image img {
    width: 100%;
    transition: var(--transition);
}


.about-image:hover img {
    transform: scale(1.05);
}


.image-caption {
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
}


/* ===================================
   Events & Competitions Section
   =================================== */
.events {
    padding: 100px 0;
    background: var(--white);
}


.subsection {
    margin-bottom: 80px;
}


.subsection-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}


.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}


.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}


.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}


.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}


.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.8;
}


.event-card:hover .card-image img {
    transform: scale(1.1);
}


.card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    /* remove any bg */
}


.card-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 6px 18px;
    border-radius: 999px;
    position: relative;
    z-index: 2;
    /* above image */
}


.card-content {
    padding: 30px;
}


.card-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}


.card-content p {
    font-family: 'Inter', sans-serif;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}


.event-big-card .card-image {
    height: 300px;
}


/* ===================================
   Timeline Section
   =================================== */
.timeline {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--white);
}


.timeline .section-title {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
}


.timeline .section-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--gray-light);
}


.timeline-container {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
}


.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transform: translateX(-50%);
}


.timeline-item {
    margin-bottom: 60px;
    position: relative;
}


.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 20px rgba(115, 76, 208, 0.5);
}


.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


.timeline-item:nth-child(odd) .timeline-content {
    direction: rtl;
}


.timeline-date {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.date-day {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    display: block;
    color: var(--primary-color);
}


.date-month {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin: 5px 0;
}


.date-year {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    display: block;
}


.timeline-info {
    direction: ltr;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}


.timeline-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}


.timeline-info p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-light);
    line-height: 1.8;
}


/* Countdown */
.countdown-section {
    margin-top: 80px;
    text-align: center;
}


.countdown-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}


.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}


.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 15px;
    min-width: 120px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.countdown-value {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    display: block;
    color: var(--primary-color);
}


.countdown-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 10px;
    display: block;
}


/* ===================================
   Contact/Footer Section
   =================================== */
.contact {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.footer-description,
.contact-person p,
.footer-organized-by {
    font-family: 'Inter', sans-serif;
    color: var(--gray-light);
    line-height: 1.6;
}

.footer-description.short {
    margin-top: 0.5rem;
}

.contact-person {
    border: 1px solid rgba(115, 76, 208, 0.4);
    border-radius: 14px;
    padding: 18px;
    background: rgba(115, 76, 208, 0.08);
}

.contact-person h3,
.contact-person p {
    margin: 0;
}

.contact-person h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-person a {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.contact-person a:hover {
    color: var(--primary-dark);
}

.footer-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}

.footer-quick-links li {
    list-style: none;
}

.footer-quick-links a {
    font-family: 'Inter', sans-serif;
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-quick-links a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.footer-logos img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: none;
    max-width: none;
}

.social-links-footer {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-organized-by strong {
    color: var(--white);
}

.footer-bottom {
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-light);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        top: 10px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 30px 0;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-logo img {
        max-width: 300px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .timeline-container::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        direction: ltr;
    }

    .countdown-item {
        padding: 20px 30px;
        min-width: 100px;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-logos {
        justify-content: flex-start;
    }

    .footer-logos img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        max-width: 250px;
    }

    .footer-logos img {
        height: 50px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .events-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item {
        padding: 15px 20px;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}