:root {
    --c-bg: #FFF6E8;
    --c-yellow: #FFC247;
    --c-grey: #59595B;
    --c-dark-red: #B81D22;
    --c-red: #E52329;
    --c-white: #FFFFFF;
    --c-dark: #1A1A1A;
    
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--c-bg);
    color: var(--c-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    color: var(--c-dark-red);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--c-yellow);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.divider.light {
    background-color: var(--c-bg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 246, 232, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

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

.logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--c-dark-red);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--c-red);
}

/* Menu Toggle Button (Default Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1100;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--c-dark-red);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--c-red);
}

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

.menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--c-red);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #fffbf5 0%, var(--c-bg) 100%);
}

.hero-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: var(--c-yellow);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hero-main-logo {
    max-width: 100%;
    width: 480px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.subtitle {
    font-size: 1.4rem;
    color: var(--c-grey);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--c-red) 0%, var(--c-dark-red) 100%);
    color: var(--c-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(229, 35, 41, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(229, 35, 41, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--c-yellow);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: -1;
}

.pipoca-img {
    max-width: 100%;
    width: 380px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.wave-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 140px;
}

.wave-bottom .shape-fill {
    fill: var(--c-white);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

/* About Section */
.about-section {
    background-color: var(--c-white);
}

.about-grid {
    display: flex;
    gap: 4rem;
}

.about-text {
    font-size: 1.2rem;
    background: var(--c-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--c-yellow);
}

/* Numbers Section */
.numbers-section {
    background: linear-gradient(135deg, var(--c-dark-red) 0%, var(--c-red) 100%);
    color: var(--c-white);
    text-align: center;
}

.section-header.text-light h2 {
    color: var(--c-white);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.number-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.number-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--c-yellow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 194, 71, 0.4);
}

.number-card:hover::after {
    opacity: 1;
}

.card-pipoca-icon {
    width: 55px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.number-card:hover .card-pipoca-icon {
    transform: scale(1.2) rotate(15deg);
}

.number, .plus, .number-card p, .number-wrapper {
    position: relative;
    z-index: 1;
}

.number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.number-wrapper.stack {
    flex-direction: column;
    align-items: center;
}

.number-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--c-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
    display: inline-block;
}

.number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--c-yellow);
    line-height: 1;
}

.plus {
    font-size: 3rem;
    color: var(--c-yellow);
    font-weight: 800;
}

.number-card p {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Movie Section */
.movie-section {
    background-color: var(--c-bg);
}

.movie-content {
    background: var(--c-white);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.movie-gallery {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.movie-img {
    width: 80%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    display: block;
}

.movie-img:hover {
    transform: scale(1.05);
}

.movie-text h3 {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-dark-red);
    margin-bottom: 1.5rem;
}

.awards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.award-badge {
    background: var(--c-yellow);
    color: var(--c-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 194, 71, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.award-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--c-red);
    color: var(--c-white);
    box-shadow: 0 10px 25px rgba(229, 35, 41, 0.4);
}

/* Impact Section */
.impact-section {
    background-color: var(--c-white);
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.impact-card {
    background: var(--c-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: #fff;
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--c-red);
    transition: transform 0.3s ease, color 0.3s ease;
}

.impact-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--c-yellow);
}

/* Sponsor Section */
.sponsor-section {
    background-color: var(--c-bg);
}

.sponsor-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    background: var(--c-white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.sponsor-info {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.sponsor-visuals {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    width: 100%;
}

.sponsor-mascot-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-mascot {
    max-width: 100%;
    width: 250px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.sponsor-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-logo {
    max-width: 100%;
    width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* Institutional Section */
.institutional-section {
    background-color: var(--c-white);
}

.institutional-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inst-box {
    background: var(--c-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 6px solid var(--c-red);
    text-align: center;
}

/* Logos Bar */
.logos-bar {
    width: 100%;
    background-color: var(--c-white);
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-logo-bar {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 0 20px;
}

/* Footer */
footer {
    background: var(--c-dark-red);
    color: var(--c-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
    }
    
    .hero-text {
        align-items: center;
        text-align: center;
    }
    
    /* Responsive Navigation & Hamburger */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 246, 232, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        z-index: 999;
        gap: 1.5rem;
        align-items: center;
        border-bottom: 4px solid var(--c-yellow);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.2rem;
        color: var(--c-dark-red);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .sponsor-showcase {
        padding: 2rem;
    }
    
    .sponsor-visuals {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .sponsor-logo-box, .sponsor-mascot-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero-main-logo {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .movie-content {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pipoca-img {
        width: 200px;
    }

    .sponsor-showcase {
        padding: 2rem 1.5rem;
    }

    .sponsor-mascot {
        width: 100%;
        max-width: 200px;
    }

    .sponsor-logo {
        width: 100%;
        max-width: 400px;
    }

    .inst-box {
        padding: 2rem 1.5rem;
    }

    .logos-bar {
        padding: 2rem 0;
    }

    .number-card {
        padding: 1.5rem;
    }

    .wave-bottom svg {
        height: 50px;
    }

    .awards {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .sponsor-visuals {
        gap: 2rem;
    }

    .wave-bottom svg {
        height: 40px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--c-red);
    color: var(--c-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(229, 35, 41, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    background-color: var(--c-dark-red);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 35, 41, 0.45);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
}
