@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

header {
    background-color: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

header:hover {
    background-color: rgba(130, 130, 130, 0.6);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 80px;
    width: 200px;
}

.nav-center {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    padding: 0;
    margin-right: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem; 
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #358856;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
    border-radius: 5px;
}

.event-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.event-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/herobg.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.event-hero > * {
    position: relative;
    z-index: 2;
}

.event-hero-content {
    text-align: center;
}

.event-hero h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 100px;
}

.gallery-section {
    padding: 50px 0;
    background: linear-gradient(185deg, #f0f4f8 0%, white 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

#searchInput {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #25523B;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #333;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.gallery-container {
    display: grid;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: blur(4px);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    pointer-events: none;
}

.modal-gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    animation: fadeIn 0.3s ease-out;
}

.gallery-details {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: #ffffff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    overflow: hidden;
    flex-direction: column;
    animation: popIn 0.3s ease-out forwards;
}

.details-content {
    padding: 40px;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
}

.close-gallery-details {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
}

.close-gallery-details:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

#details-title {
    font-weight: 600;
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    padding-right: 40px;
}

#details-description {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.details-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.details-images::-webkit-scrollbar {
    height: 8px;
}

.details-images::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.details-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.details-images::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.details-img {
    height: 300px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    scroll-snap-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.details-img:hover {
    transform: scale(1.02);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
}

.pagination-container button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.pagination-container button:hover {
    background-color: #f0f0f0;
}

.pagination-container button.active {
    background-color: #358856;
    color: white;
    border-color: #25523B;
}

.pagination-container button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    color: #999;
}

.advertisement {
    text-align: center;
    padding: 20px 0;
}

.ad-container {
    position: relative;
    display: inline-block;
    width: 300px;
    height: auto;
}

.ad-container img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px 20px;
    background-color: #333;
    color: #fff;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-section {
    flex: 1;
    margin: 10px;
    text-align: center;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #f2f2f2;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 5px 0;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-logo {
    width: 200px;
    margin-top: 40px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.sponsor-logo {
    width: 100px;
    margin-top: 10px;
}

.footer-ramp-icons {
    position: relative;
    height: 60px;
    width: 100%;
    background: transparent;
    z-index: 2;
}

.ramp-icon {
    position: absolute;
    bottom: 0;
    width: auto;
    height: 200px;
    z-index: 3;
}

.ramp-icon.left {
    left: 0;
}

.ramp-icon.right {
    right: 0;
}

.ramp-icon.center {
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 200px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
        margin-right: 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }

    .nav-center {
        position: static;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 30px 0;
        gap: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 999;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .event-hero h2 {
        font-size: 3.5rem;
    }

    .gallery-container {
        width: 95%;
    }
    
    .gallery-details {
        width: 95%;
        padding: 15px;
    }

    .details-content {
        padding: 25px;
    }
    
    #details-title {
        font-size: 1.5rem;
    }
    
    #details-description {
        font-size: 0.95rem;
    }

    .details-img {
        height: 220px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .ramp-icon {
        width: 60px;
    }

    .ramp-icon.center {
        width: 70px; 
    }
}