/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #111;
    color: #f4f4f4;
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4da6ff;
}

/* --- Sections Setup --- */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 80px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h2 i {
    font-size: 1.8rem;
}

/* --- Cover Section (Top) --- */
#home {
    width: 100%;
    padding-top: 65px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

/* --- Photos Section (Gallery) --- */
.gallery-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-photo-wrapper {
    position: relative;
    width: 100%;
    height: 65vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#main-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    cursor: pointer;
    z-index: 10;
}

.nav-zone.left { left: 0; }
.nav-zone.right { right: 0; }

.thumbnail-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.thumbnail-row::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb:hover, .thumb.active {
    opacity: 1;
    border: 2px solid #4da6ff;
}

/* --- Local Section --- */
.local-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    align-items: center;
}

.local-layout>div {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
}

.local-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.widget-wrapper {
    width: 100%;
    max-width: 469px;
    overflow: hidden;
}

.widget-wrapper iframe {
    max-width: 100%;
}

/* --- Map Styles --- */
.map-container-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 50px;
}

.map-box {
    position: relative; 
    width: 100%;
    height: 500px; 
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); 
    overflow: hidden; 
    background-color: #000; 
}

#map { 
    height: 100%; 
    width: 100%; 
}

#image-view {
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#locationImage {
    max-width: 90%;
    max-height: 75%;
    border-radius: 8px;
    object-fit: contain; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

#imageCaption {
    color: #fff;
    font-size: 22px;
    margin-top: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #4da6ff;
}

/* --- Contests Section --- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Contact Section --- */
#contact {
    background-image: url('contact.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: #f4f4f4;
    font-size: 2.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #4da6ff;
    transform: translateY(-5px);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    section { padding: 60px 10px 30px; }
    h2 { font-size: 1.5rem; margin-bottom: 1rem; }
    .gallery-container { gap: 8px; }
    .main-photo-wrapper { height: 35vh; min-height: 250px; }
    .thumbnail-row { padding-bottom: 5px; }
    .thumb { width: 70px; height: 50px; }
    .local-layout { gap: 20px; }
    .social-links { gap: 25px; }
    .social-links a { font-size: 2rem; }
    .map-box { height: 400px; }
}
