:root {
    --primary-yellow: #FFD700;
    --primary-orange: #FF8C00;
    --accent-red: #D80621;
    --br-green: #009c3b;
    --br-blue: #002776;
    --bg-dark: #0a0c10;
    --text-light: #f4f5f7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations  */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Bandeirinhas */
.bandeirinhas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1001;
    pointer-events: none;
    overflow: hidden;
}

.bandeirinhas-thread {
    width: 100%;
    height: 2px;
    background: #555;
    position: relative;
    top: 10px;
    display: flex;
    justify-content: space-around;
}

.bandeirinhas-thread::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* Creating bandeirinhas with CSS */
}

/* Custom Bandeirinhas Generation */
.bandeirina {
    width: 20px;
    height: 30px;
    flex-shrink: 0;
    background: var(--color);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
    animation: swing 2s ease-in-out infinite;
    transform-origin: top;
}

/* Navbar */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hamburger button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0.5rem;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.35s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
}

.logo img {
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Lang switch buttons */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
}

.lang-switch button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.lang-switch button.active {
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
}

.lang-switch button:hover {
    color: var(--primary-yellow);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.back-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 156, 59, 0.1) 0%, transparent 50%);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.festive-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title span {
    font-family: 'Lobster', cursive;
    color: var(--primary-yellow);
    font-size: 6rem;
    background: linear-gradient(to right, var(--primary-yellow), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #ccc;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--primary-yellow);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-red));
    color: white;
    box-shadow: 0 10px 30px rgba(216, 6, 33, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(216, 6, 33, 0.4);
}

/* Vendor CTA Section */
.vendor-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, rgba(216, 6, 33, 0.08) 100%);
    border-top: 1px solid rgba(255, 140, 0, 0.15);
    border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

.vendor-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    flex-wrap: wrap;
}

.vendor-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.vendor-text {
    flex: 1;
    min-width: 200px;
}

.vendor-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary-yellow);
}

.vendor-text p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-vendor {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow));
    color: #0a0c10;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-vendor:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.35);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: #050608;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-yellow);
}

.section-title.center {
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 2rem;
}

.festive-list {
    list-style: none;
}

.festive-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.festive-list li i {
    color: var(--br-green);
}

/* Bonfire Animation */
.bonfire-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.bonfire {
    position: relative;
    width: 200px;
    height: 200px;
}

.flame {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
    background: linear-gradient(to top, var(--accent-red), var(--primary-orange), var(--primary-yellow));
    border-radius: 50% 50% 20% 20%;
    filter: blur(10px);
    animation: flicker 0.2s infinite alternate;
}

.flame:nth-child(2) {
    width: 70px;
    height: 120px;
    animation-delay: 0.1s;
    opacity: 0.8;
}

.flame:nth-child(3) {
    width: 120px;
    height: 100px;
    animation-delay: 0.05s;
    opacity: 0.6;
}

@keyframes flicker {
    from {
        transform: translateX(-50%) scale(1);
    }

    to {
        transform: translateX(-50%) scale(1.1) rotate(2deg);
    }
}

.logs {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #4a2c1d;
    border-radius: 10px;
}

/* Details Section */
.details {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.details-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile menu dropdown styles (hidden on desktop) */
.mobile-menu {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {

    /* Show hamburger button */
    .menu-toggle {
        display: flex;
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none;
    }

    /* Mobile collapsible dropdown */
    .mobile-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(10, 12, 16, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .mobile-menu.open {
        max-height: 500px;
    }

    .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    .mobile-menu ul a {
        text-decoration: none;
        color: var(--text-light);
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.2s;
    }

    .mobile-menu ul a:hover {
        color: var(--primary-yellow);
    }

    .mobile-lang {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .mobile-lang button {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: color 0.2s;
        padding: 0;
    }

    .mobile-lang button.active {
        color: var(--primary-yellow);
        border-bottom: 2px solid var(--primary-yellow);
    }

    /* Hero offset for fixed header */
    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-title span {
        font-size: 3.2rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vendor-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .details-card {
        padding: 2rem 1.5rem;
    }
}


.detail-box {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.detail-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.detail-box i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.detail-box h3 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-banner {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.cta-banner p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-yellow);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.social-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-yellow);
    transform: scale(1.2);
}

/* =====================
   Past Festivals Section
   ===================== */
.past-festivals {
    padding: 8rem 0;
    background: #050608;
}

.past-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.past-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.past-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.1);
}

.past-year {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow));
    color: #0a0c10;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 1px;
}

.past-date {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.past-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.past-photo,
.past-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.4s ease;
}

.past-video {
    opacity: 0;
    pointer-events: none;
}

.past-video.visible {
    opacity: 1;
    pointer-events: auto;
}

.past-photo.hidden {
    opacity: 0;
    pointer-events: none;
}

.media-switch {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.media-btn {
    background: rgba(10, 12, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.media-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: var(--primary-orange);
    color: var(--primary-yellow);
}

.media-btn.active {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow));
    color: #0a0c10;
    border-color: transparent;
}

/* Responsive past grid */
@media (max-width: 768px) {
    .past-grid {
        grid-template-columns: 1fr;
    }
}