/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0f0f0f;
    overflow: hidden;
    height: 100vh;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Starry night sky container */
.starry-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

/* Canvas layers for procedural stars and effects */
.starry-sky canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    image-rendering: pixelated;
}

#starsCanvas { z-index: 0; }
#effectsCanvas { z-index: 0; }


@keyframes moveStars {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Main content container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    height: auto;
    z-index: 1;
    flex-direction: column;
    gap: 24px;
}

/* Logo styling */
.logo {
    max-width: min(40vw, 500px);
    max-height: min(40vh, 45vh);
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

/* CTA button styled to echo rounded organic logo feel */
.cta {
    padding: 14px 26px;
    border: none;
    border-radius: 0;
    background: #F1E6CA;
    color: #111;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(255,255,255,0.08), 0 0 0 2px rgba(255,255,255,0.15) inset;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
    position: relative;
    z-index: 10;
}
.cta:hover { transform: translateY(-2px) scale(1.02); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }

/* Donate Button */
.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c54d93 0%, #7e106c 100%);
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(190, 30, 142).3);
    position: relative;
    z-index: 10;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.donate-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.donate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
}

/* Audio Player */
.audio-player {
    margin-top: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.volume-icon {
    font-size: 16px;
    user-select: none;
}

.volume-slider {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #F1E6CA;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #F1E6CA;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.mute-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Event Info on Homepage */
.event-info {
    text-align: center;
    margin: 30px 0;
    color: #F1E6CA;
}

.event-edition {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #F1E6CA;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.event-date {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.event-location {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
}

.event-location:hover {
    color: #F1E6CA;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Consolidated in main responsive section below */

/* Clickable Address */
.clickable-address {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.clickable-address:hover {
    color: #F1E6CA;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(241, 230, 202, 0.5);
}

.clickable-address::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F1E6CA;
    transition: width 0.3s ease;
}

.clickable-address:hover::after {
    width: 100%;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.home-btn, .contact-btn, .share-btn {
    padding: 12px 24px;
    border: 2px solid #F1E6CA;
    background: transparent;
    color: #F1E6CA;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.home-btn:hover, .contact-btn:hover, .share-btn:hover {
    background: #F1E6CA;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 230, 202, 0.3);
}

.instagram-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.instagram-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    text-decoration: none;
    color: white;
}

.instagram-btn svg {
    width: 20px;
    height: 20px;
}

/* Map Section */
.map-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.map-section.active {
    opacity: 1;
    pointer-events: auto;
}

.map-container {
    width: 90%;
    max-width: 800px;
    height: 70%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.map-section.active .map-container {
    transform: scale(1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form Section */
.contact-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.contact-section.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-container {
    width: 90%;
    max-width: 500px;
    background: rgba(5, 8, 14, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.5s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.contact-section.active .contact-container {
    transform: scale(1);
}

.contact-container h2 {
    color: #F1E6CA;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #f3f0e6;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #F1E6CA;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(243, 240, 230, 0.6);
}

.contact-form button {
    padding: 15px 30px;
    background: #F1E6CA;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.contact-form button:hover {
    background: #e6d4b8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 230, 202, 0.3);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 30px 0;
    z-index: 1;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    background: transparent;
    padding: 0;
}

.footer-content p {
    margin: 5px 0;
}

.tos-link, .privacy-link, .thanks-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tos-link:hover, .privacy-link:hover, .thanks-link:hover {
    color: #F1E6CA;
}

.thanks-text {
    font-size: 11px;
    margin: 3px 0;
    color: #999;
}

.thanks-link {
    color: #ccc;
    font-weight: 600;
}

.content-with-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.image-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Removed image placeholder styles - using real images now */

/* Enhanced Logo Animation */
.logo {
    animation: logoGlow 4s ease-in-out infinite alternate, logoSpin 20s linear infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes logoSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Removed unused logoFloat animation */

/* About view */
#about {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
    padding: 20px;
    box-sizing: border-box;
}

#about.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.about-inner {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1.5px);
    color: #ffffff;
    border: 1px solid rgba(53, 53, 53, 0.5);
    text-align: center;
    overflow-y: auto;
}

.about-inner h1 { 
    font-size: 38px; 
    margin-bottom: 20px; 
    letter-spacing: 1px; 
}

.about-inner p { 
    line-height: 1.6; 
    margin-bottom: 20px;
}

.meta { 
    margin-top: 20px; 
    font-weight: 700; 
}

.meta .label { 
    color: #F1E6CA; 
    margin-right: 8px; 
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .cta { 
        padding: 12px 22px; 
        font-size: 14px; 
    }
    
    .logo {
        max-width: 70vw;
        max-height: 35vh;
    }
    
    .event-info {
        margin: 25px 0;
    }
    
    .event-edition {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .event-date {
        font-size: 18px;
    }
    
    .event-location {
        font-size: 16px;
    }
    
    .donate-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    #about {
        padding: 10px;
        align-items: flex-start;
    }
    
    .about-inner {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .about-inner h1 {
        font-size: 28px;
    }
    
    .about-inner p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .image-carousel {
        max-width: 300px;
        height: 200px;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cta { 
        padding: 8px 16px; 
        font-size: 12px; 
    }
    
    .event-info {
        margin: 15px 0;
    }
    
    .event-edition {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .event-date {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .event-location {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .donate-btn {
        padding: 8px 16px;
        font-size: 10px;
        gap: 4px;
    }
    
    #about {
        padding: 5px;
        align-items: flex-start;
    }
    
    .about-inner {
        padding: 15px 10px;
        max-height: 85vh;
    }
    
    .about-inner h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .about-inner p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .image-carousel {
        max-width: 250px;
        height: 140px;
        margin: 10px 0;
    }
    
    .meta {
        margin-top: 15px;
        font-size: 12px;
    }
    
    .action-buttons {
        gap: 6px;
        justify-content: center;
        margin-top: 15px;
    }
    
    .action-buttons button,
    .action-buttons a {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .footer {
        margin-top: 15px;
    }
    
    .footer-content {
        font-size: 10px;
    }
}

/* Removed all wheel-related styles - not used */

/* Coming Soon Page */
#comingSoon {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
    padding: 20px;
    box-sizing: border-box;
}

#comingSoon.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.coming-soon-container {
    text-align: center;
    color: #f3f0e6;
    max-width: 600px;
}

.coming-soon-container h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #F1E6CA;
}

.coming-soon-container p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-container {
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid #F1E6CA;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(241, 230, 202, 0.3) inset;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #F1E6CA;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(241, 230, 202, 0.1);
    transform: rotate(90deg);
}

.popup-content {
    text-align: center;
    color: #ffffff;
}

.popup-content h2 {
    color: #F1E6CA;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.popup-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-instagram-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    text-decoration: none;
    color: white;
}

.popup-instagram-btn svg {
    width: 20px;
    height: 20px;
}

.popup-close-btn {
    background: transparent;
    border: 2px solid #F1E6CA;
    color: #F1E6CA;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.popup-close-btn:hover {
    background: #F1E6CA;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 230, 202, 0.3);
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .popup-container {
        padding: 30px 25px;
        max-width: 400px;
    }
    
    .popup-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .popup-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .popup-instagram-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 25px 20px;
        width: 95%;
    }
    
    .popup-content h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .popup-content p {
        font-size: 12px;
    }
    
    .popup-instagram-btn {
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }
    
    .popup-close-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Removed legacy CSS layers; rendering handled entirely via canvas */
