:root {
    /* Brand Colors */
    --primary-red: #c70319;
    --secondary-red: #991415;
    --accent-yellow: #ffbd59;
    --white: #ffffff;
    
    /* UI Colors */
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --gray: #888888;
    
    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Permanent Marker', cursive;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Custom Fun Cursor - Pizza */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px;'><text y='24'>🍕</text></svg>") 16 16, auto;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 800;
}

.accent {
    color: var(--accent-yellow);
    font-family: var(--font-accent);
    font-weight: normal;
    font-size: 1.2em;
}

.text-center { text-align: center; }
.text-dark { color: var(--text-dark); }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.w-100 { width: 100%; }

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: var(--transition);
    /* Custom Fun Cursor - Hand */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px;'><text y='24'>👆</text></svg>") 16 0, pointer;
}

a:hover {
    color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary, .filter-btn, .lang-btn, .hamburger {
    /* Custom Fun Cursor - Hand for all buttons */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px;'><text y='24'>👆</text></svg>") 16 0, pointer;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-red);
    box-shadow: 0 0 15px rgba(199, 3, 25, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.glow-effect {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(199, 3, 25, 0.2); }
    to { box-shadow: 0 0 20px rgba(199, 3, 25, 0.8); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Para a logo absoluta funcionar */
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px; /* Ajuste para descer um pouco a logo */
    z-index: 1001; /* Ficar acima da navbar */
}

.logo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background-color: var(--primary-red); /* Fundo caso a logo seja transparente */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--gray);
    color: var(--text-light);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: var(--font-main);
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 2rem 2rem;
    overflow: hidden;
}

/* Background em Vídeo - Crossfade */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 1 segundo de crossfade */
}

.hero-video.active {
    opacity: 0.5; /* Escurece o vídeo para o texto aparecer bem */
}

/* Background com movimento (Ken Burns effect) - Usado como fallback */
.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate ease-in-out;
    opacity: 0.5; /* Só aparece se o vídeo não carregar */
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

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

/* Floating Pizzas Animation */
.floating-pizzas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pizza-float {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    border-radius: 50%; /* Just in case jpgs are used */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); /* Optional: adds a nice shadow */
}

.float-1 { top: 15%; left: 10%; animation: floatRotate 20s infinite linear; }
.float-2 { bottom: 20%; right: 5%; width: 300px; height: 300px; animation: floatRotate 25s infinite linear reverse; }
.float-3 { top: 40%; right: 20%; width: 150px; height: 150px; animation: floatRotate 15s infinite linear; }

@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Page Switcher */
.page-switcher {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.btn-switcher {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.btn-switcher.active {
    background-color: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(199, 3, 25, 0.6);
}

.btn-switcher:not(.active) {
    background-color: #111;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-switcher:not(.active):hover {
    background-color: #333;
    transform: scale(1.05);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--darker-bg);
}

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

.section-title {
    font-size: 3rem;
    color: var(--primary-red);
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-accent);
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

/* Placeholders */
.photo-capa-placeholder,
.photo-lado-preto-placeholder,
.photo-lado-branco-placeholder,
.photo-cima-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    border: 2px dashed #444;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.photo-capa-placeholder {
    height: 400px;
}

.placeholder-text {
    font-family: var(--font-accent);
    color: var(--gray);
    font-size: 1.5rem;
    transform: rotate(-10deg);
}

/* Menu Section */
.menu-section {
    padding: 6rem 0;
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--gray);
    color: var(--gray);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

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

.menu-item {
    background-color: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-red);
}

.menu-item-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    /* Cima photo styling - round mask */
    border-radius: 50%;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-img {
    transform: rotate(15deg) scale(1.05);
}

.menu-item h3 {
    font-family: var(--font-accent);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 60px;
}

.menu-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.allergens-badge {
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.price {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.menu-item .price {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 1.2rem;
    padding: 8px 20px;
    border-bottom-left-radius: 15px;
    box-shadow: -2px 2px 15px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Extras */
.menu-extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.extras-card {
    background-color: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.category-title {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
}

.topping-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.topping-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #ccc;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 0.3rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.border-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #ccc;
}

/* Allergens */
.allergen-info {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 10px;
}

.allergen-key {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #bbb;
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.allergen-num {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

/* Showcase Gallery */
.showcase-split {
    display: flex;
    height: 60vh;
}

.showcase-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.dark-bg {
    background-color: #000;
}

.light-bg {
    background-color: #f4f4f4;
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.showcase-content h3 {
    font-family: var(--font-accent);
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--primary-red);
}

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

.footer-brand h2 {
    font-family: var(--font-accent);
    color: var(--white);
    margin-bottom: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.social-icon:hover {
    color: var(--accent-yellow);
}

.footer h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.legal-links a {
    color: #666;
}
.legal-links a:hover {
    color: var(--white);
}

/* Scroll Animations */
.scroll-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.1, 0.5, 0.2, 1);
}

.scroll-anim-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-anim-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Initial load animation */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .menu-extras-grid {
        grid-template-columns: 1fr;
    }
    .showcase-split {
        flex-direction: column;
        height: auto;
    }
    .showcase-half {
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-primary {
        display: none; /* simple mobile nav for now */
    }
    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-switcher {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-switcher {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
