/* Core Styling Configurations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    height: 100vh;
    height: 100dvh; /* Smart mobile viewport height support */
    width: 100%;
    overflow: hidden;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
}

/* Semi-transparent graphic overlay to preserve layout readability */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Global Content Layout Structure */
.main-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.main-content-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

/* Center Landing Area Title styles (PRESERVED - UNTOUCHED) */
.coming-soon-container {
    text-align: center;
    padding: 0 20px;
}

.coming-soon-container h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.coming-soon-container .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

/* Hamburger Action Anchor Element */
.menu-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.27, 1.55);
}

/* Transform Hamburger bars into 'X' when menu logic evaluates to true */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Fixed Menu Drawer Layout with multi-browser transparency support */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100%;
    height: 100dvh;
    background: rgba(15, 15, 15, 0.50);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer.active {
    right: 0;
}

/* Menu Typography Link Styling */
.nav-links {
    list-style: none;
    text-align: center;
    width: 100%;
    padding: 0 40px;
}

.nav-links li {
    margin: 20px 0;
}

.nav-link-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 700; /* UPDATED to bold for high legibility */
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link-item:hover {
    color: #e0e0e0;
    letter-spacing: 3px;
}

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

/* Scrollable Isolated Content Container Layout */
.content-view-inner {
    width: 100%;
    max-width: 800px;
    height: 100%;
    height: 100dvh;
    padding: 120px 40px 60px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Butter-smooth scrolling on mobile Safari */
}

/* Separate isolated content segment blocks visibility controller toggle */
.content-block {
    display: none;
    animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-block.active {
    display: block;
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Independent Text Element Typography rules */
.content-block h2 {
    font-size: 3rem;
    font-weight: 700; /* UPDATED to bold */
    letter-spacing: 2px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 700; /* UPDATED to bold */
    margin-bottom: 24px;
    color: #e0e0e0;
}

.content-block p.credits {
    margin-top: 40px;
    font-size: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding-left: 20px;
    color: #b0b0b0;
    font-weight: 700; /* Inherits and enforces bold */
}

/* Creators & Sponsors Profiles formatting */
.profile-card {
    margin-bottom: 45px;
}

.profile-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.profile-card blockquote {
    font-style: italic;
    font-weight: 700; /* UPDATED to bold-italic */
    font-size: 1.1rem;
    color: #cccccc;
    border-left: 2px solid #ffffff;
    padding-left: 15px;
    margin-bottom: 15px;
}

.profile-card a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 700; /* UPDATED to bold */
    transition: opacity 0.2s ease;
}

.profile-card a:hover {
    opacity: 0.8;
}

.sponsor-card {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 30px;
}

.sponsor-card:last-of-type {
    border-bottom: none;
}

.divider-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 50px 0 30px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

/* Permanent Location layout container */
.permanent-location-block {
    margin: 40px 0;
    background: transparent;
    border: none;
    padding: 0;
}

.permanent-location-block h3 {
    font-size: 1.4rem;
    font-weight: 700; /* UPDATED to bold */
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.location-link {
    margin-bottom: 20px;
}

.location-link a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 700; /* UPDATED to bold */
    transition: opacity 0.2s ease;
}

.location-link a:hover {
    opacity: 0.8;
}

/* Interactive QR Code elements */
.qr-code-container {
    margin-top: 25px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.sol-qr-image {
    max-width: 220px;
    height: auto;
    border: 10px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.qr-caption {
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 700; /* UPDATED to bold-italic */
    color: #aaaaaa;
}

/* Temporary Locations Timeline Schedule Substyles */
.locations-timeline {
    margin-top: 50px;
}

.locations-timeline h3 {
    font-size: 1.5rem;
    font-weight: 700; /* UPDATED to bold */
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #ffffff;
}

.timeline-list {
    list-style: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.timeline-list li {
    position: relative;
    margin-bottom: 35px;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 50%;
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 5px;
    font-weight: 700; /* UPDATED to bold */
}

.timeline-title {
    display: block;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-desc {
    display: block;
    font-size: 1rem;
    color: #cccccc;
    font-weight: 700; /* UPDATED to bold */
    line-height: 1.5;
}

/* Dynamic Photo Gallery Grid optimized for 7 items */
.fancy-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Makes the 7th image gracefully span full width in a 2-column layout */
.fancy-gallery-grid .gallery-item:nth-child(7) {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

/* Adjust aspect ratio of the full-width item slightly so it doesn't look too stretched */
.fancy-gallery-grid .gallery-item:nth-child(7) {
    aspect-ratio: 8 / 3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.zoom-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

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

/* Advanced Photo Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 110;
}

.lightbox-close:hover {
    color: #cccccc;
}

#lightboxCaption {
    width: 90%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 700; /* UPDATED to bold */
}

/* Contact Hyperlinks styles */
.statement-highlight {
    font-size: 1.3rem !important;
    color: #ffffff !important;
    margin: 30px 0;
    font-weight: 700 !important; /* UPDATED to bold */
}

.mail-container a {
    color: #ffffff;
    font-size: 1.7rem;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
    font-weight: 700; /* UPDATED to bold */
}

.mail-container a:hover {
    opacity: 0.7;
}

/* Content Panel Clear View Control Action Button */
.close-content-btn {
    position: absolute;
    top: 30px;
    left: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 6;
}

.close-content-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Device Media Viewports Adaptability optimization */
@media (max-width: 768px) {
    body, .main-content-wrapper, .nav-drawer, .content-view-inner, .lightbox-modal {
        height: 100vh;
        height: -webkit-fill-available; /* Hard reset height for mobile browsers */
    }
    
    .coming-soon-container h1 { font-size: 2.5rem; }
    .coming-soon-container .subtitle { font-size: 1rem; }
    
    .nav-drawer { 
        max-width: 100%; 
        right: -100%; 
        background: rgba(15, 15, 15, 0.95) !important; /* Higher opacity to prevent background clipping on mobile menu open */
    }
    
    .nav-link-item { font-size: 1.4rem; }
    .nav-links li { margin: 15px 0; }
    
    /* Ensure padding is optimal and allows easy scrolling without clipping content elements */
    .content-view-inner { 
        padding: 90px 20px 80px 20px; 
    }
    
    .content-block h2 { font-size: 2.2rem; }
    .close-content-btn { left: 20px; top: 20px; font-size: 2.5rem; }
    .menu-toggle { top: 20px; right: 20px; }
    .timeline-list { padding-left: 15px; }
    .timeline-list li::before { left: -20px; }
    .mail-container a { font-size: 1.3rem; }
    
    /* Elegant and solid Single-Column Stack layout for 7 images on phone */
    .fancy-gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    .fancy-gallery-grid .gallery-item:nth-child(7) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
    .sol-qr-image { max-width: 180px; }
    
    /* Lock lightbox layouts so they never break parent containers */
    .lightbox-modal {
        box-sizing: border-box;
    }
    .lightbox-content { 
        max-width: 95%;
        max-height: 70%;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
    }
}