:root {
    --primary-color: #2D6A4F;
    --secondary-color: #40916C;
    --accent-color: #D8F3DC;
    --text-color: #333333;
    --light-bg: #F8F9FA;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 80px; /* Added to prevent navbar overlap */
}

/* Enhanced Navbar Styles with Scroll Effects */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    background-color: rgba(45, 106, 79, 0.1) !important;
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(45, 106, 79, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: all 0.4s ease;
    transform: scale(1);
}

.navbar.scrolled .navbar-brand img {
    transform: scale(0.9);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link:focus {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 60%;
}

.navbar.scrolled .nav-link {
    padding: 0.4rem 1rem !important;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(216, 243, 220, 0) 70%);
    opacity: 0.3;
    z-index: 0;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(64, 145, 108, 0) 70%);
    opacity: 0.2;
    z-index: 0;
}
/* Gallery Grid */
.gallery-grid {
    --s: 250px; /* control the size */
    --g: 15px;  /* control the gap */
    --f: 1.2;   /* control the scale factor */

    display: grid;
    gap: var(--g);
    grid-template-columns: repeat(auto-fill, minmax(var(--s), 1fr));
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(0);
    will-change: transform;
    background: white;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45,106,79,0.3) 0%, rgba(45,106,79,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.95) saturate(0.9);
    transform-origin: center center;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45,106,79,0.2);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    color: white;
    font-size: 2.5rem;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
}

.gallery-item:hover i {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    opacity: 1;
}

/* Caption effect */
.gallery-item .caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    text-align: center;
    transition: bottom 0.4s ease;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-item:hover .caption {
    bottom: 0;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover h2::after {
    width: 120px;
}

/* Lightbox Modal */
.modal-lightbox .modal-dialog {
    max-width: 90%;
    margin: 2rem auto;
}

.modal-lightbox .modal-content {
    background: transparent;
    border: none;
}

.modal-lightbox .modal-body {
    padding: 0;
    text-align: center;
}

.modal-lightbox img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.modal-lightbox .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    opacity: 1;
    padding: 10px;
    border-radius: 50%;
}

/* Desktop Dropdown Styles */
@media (min-width: 992px) {
    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 0.5rem 0;
        transition: all 0.3s ease;
        opacity: 0;
        display: block;
        visibility: hidden;
        transform: translateY(10px);
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background-color: var(--accent-color);
        color: var(--primary-color);
        transform: translateX(5px);
    }
}

/* Mobile Dropdown Styles */

/* Modern Hero Section with Fixed Spacing */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/hero_area/moon-light.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0 7rem; /* Reduced top padding since we have body padding-top */
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Counteracts the body padding */
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding-top: 20px; /* Extra space above text */
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.competition-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: white;
}

.competition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.competition-card:hover .card-img-container img {
    transform: scale(1.05);
}

.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.competition-card:hover .view-btn {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.card-date {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}

.btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-body {
    padding: 0;
}

.modal-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 30px;
    transform: rotate(45deg);
    top: 10%;
    left: -75px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border: 20px solid var(--secondary-color);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 20px;
    top: 40%;
    right: 10%;
    transform: rotate(15deg);
}

/*Sponsor*/
.sponsor-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.sponsor-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: currentColor;
}

.sponsors-wrap {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sponsors-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sponsors-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sponsors-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.sponsors-logo:hover img {
    filter: grayscale(0%);
}

.text-sponsor {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    display: block !important;
}

/* Sponsor Tier Colors */
.official-sponsor .sponsor-title {
    color: var(--primary-color);
}

.aurora-sponsor .sponsor-title {
    color:rgb(101, 240, 212);
}

.diamond-sponsor .sponsor-title {
    color:rgb(101, 130, 160);
}

.platinum-sponsor .sponsor-title {
    color:rgb(148, 148, 148);
}

.media-sponsor .sponsor-title {
    color: rgb(255, 0, 64);
}

@media (max-width: 992px) {
    .hero-section {
        padding: 5rem 0 5rem;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .dropdown-header {
        color: var(--accent-color);
        padding-left: 1.5rem;
        font-size: 0.8rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .sponsors-logo {
        height: 120px;
        padding: 1rem;
    }

    .gallery-grid {
        --s: 200px;
        --g: 12px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .gallery-item i {
        font-size: 2rem;
    }
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 90%;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
}

.contact-card p {
    margin-bottom: 5px;
}

.contact-card strong {
    color: var(--secondary-color);
}

.contact-card .icon {
    position: absolute;
    right: 30px;
    top: 30px;
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.7;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    position: relative;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.map-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-info h2 span {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.map-info h3 {
    color: var(--primary-color);
    margin-top: 25px;
    font-weight: 700;
}

.map-info p {
    margin-bottom: 5px;
}

/* Footer */

.social-links a {
    color: white;
    font-size: 1.3rem;
    margin: 0 10px;
}

.back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: fixed;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 4rem 0 4rem;
        margin-top: -70px;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
        padding-top: 15px;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .sponsors-logo {
        height: 100px;
    }

    .gallery-grid {
        --s: 160px;
        --g: 10px;
    }

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

    .gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        margin-top: -60px;
        padding: 3rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        padding-top: 10px;
    }
    
    .hero-section h1::after {
        width: 80px;
        bottom: -10px;
    }
    
    .sponsors-logo {
        height: 80px;
        padding: 0.5rem;
    }

    .gallery-grid {
        --s: 140px;
        --g: 8px;
    }

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

    .gallery-item i {
        font-size: 1.8rem;
    }
}

