/* Global Styles */
@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'FC Vision';
    src: url('fonts/FCVision/FCVision-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary-red: #ee2a26;
    --primary-dark: #282828;
    --text-color: #282828;
    --white: #f2f2f3;
    --bg-grey: #f2f2f3;
    --font-main: 'Montserrat', 'FC Vision', sans-serif;
    --card-border: 4px solid #282828;
    --border-radius-large: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-grey);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Background Pattern (Halftone Effect) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creating a subtle dot pattern */
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Navbar */
.navbar-area {
    background-color: var(--primary-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Fix vertical alignment */
}

.nav-links a {
    color: #e2e2e2;
    /* Slightly brighter for better contrast on dark */
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    /* For underline effect */
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}


.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 0;
    /* No underline for active button */
}

.nav-links a.active {
    background-color: var(--primary-red);
    padding: 8px 20px;
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
}

/* Dropdown on Desktop (Hover) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-content {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(10px);
        transition: all 0.3s ease;
    }
}

/* Scrolled State */
.navbar-area.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(40, 40, 40, 0.95);
    /* Slightly transparent */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
    /* Above nav-links */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    nav {
        position: absolute;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: inline-block;
        padding: 10px 25px;
        width: auto;
        min-width: 150px;
    }

    .nav-links a.active {
        width: auto;
        display: inline-block;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Dropdown Adjustments */
    .dropdown {
        flex-direction: column;
        width: 100%;
    }

    .dropdown>a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.05);
        /* Slight highlight */
        box-shadow: none;
        transform: none;
        margin-top: 15px;
        padding: 5px 0;
        border-radius: 5px;
    }
}

/* Footer */
.site-footer {
    background-color: #282828;
    color: #ffffff;
    padding: 24px 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-right {
    display: contents;
}

.copyright {
    order: 1;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 10px;
    order: 2;
    margin-right: auto;
}

.footer-title {
    order: 3;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.icon-box {
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.icon-box:hover {
    transform: translateY(-2px);
}

.icon-box.facebook {
    background: var(--primary-red);
}

.icon-box.instagram {
    background: var(--primary-red);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .social-icons {
        margin-right: 0;
        order: 2;
    }

    .copyright {
        order: 3;
    }

    .footer-title {
        order: 1;
        margin-bottom: 5px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-dark);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 100%;
    /* Position below the link */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #e2e2e2 !important;
    /* Force color to be visible on dark bg */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400 !important;
}

.dropdown-content a:hover {
    background-color: var(--primary-red);
    color: var(--white) !important;
}

/* Shared Sponsors Section */
.sponsors-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.relative-container {
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.sponsors-badge-container {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    padding: 12px 50px;
    transform: rotate(-1.5deg);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    text-transform: none;
    border: none;
}

.sponsors-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.divider {
    height: 3px;
    width: 100%;
    background: var(--primary-dark);
    position: absolute;
    top: 105px;
    left: 0;
    z-index: 1;
}

.sponsors-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.sponsors-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.dot {
    width: 90px;
    height: 90px;
    background-color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dot img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sponsors-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0 10px;
    }

    .sponsors-row {
        display: contents;
    }

    .dot {
        width: 45px;
        height: 45px;
    }

    .sponsors-badge-container {
        padding: 8px 25px;
        font-size: 1.2rem;
    }

    .divider {
        top: 55px;
    }
}