:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FECA57;
    --pink-color: #FF9FF3;
    --blue-color: #45B7D1;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    padding-top: 80px; /* Espaço para o navbar fixo */
}

/* Cursor personalizado - apenas para desktop */
@media (min-width: 768px) {
    body {
        cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23FF6B6B"/><text x="12" y="16" text-anchor="middle" fill="white" font-size="12">🎉</text></svg>'), auto;
    }
}

/* Header Flutuante Fixo */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.8)); }
}

/* Hero Section 3D */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 50px 0 50px; /* Ajustado para trabalhar com navbar fixo */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(254, 202, 87, 0.3) 0%, transparent 50%);
    animation: heroAnimation 6s ease-in-out infinite;
}

@keyframes heroAnimation {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    33% { transform: translateX(-20px) translateY(20px) scale(1.05); }
    66% { transform: translateX(20px) translateY(-20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 107, 107, 0.5),
        0 0 30px rgba(255, 107, 107, 0.3);
    animation: textFloat 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #FFE5E5;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carrossel de Mídia */
.media-carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-top: 2rem;
    background: #000;
}

.media-carousel-container .carousel-inner {
    height: 600px;
}

.media-carousel-container .carousel-item {
    height: 600px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-carousel-container .carousel-item img,
.media-carousel-container .carousel-item video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-indicators {
    bottom: -30px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Legendas do carrossel abaixo */
.carousel-caption {
    position: static !important;
    padding: 1rem 0;
    color: white;
    text-align: center;
}

.carousel-caption h5 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Botão de som do vídeo */
.video-sound-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sound-toggle:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-item {
    position: relative;
}

/* Botões 3D */
.btn-3d {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 40px);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.btn-3d:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
}

/* Cards Flutuantes */
.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.floating-card:hover::before {
    left: 100%;
}

.floating-card:hover {
    transform: translateY(-20px);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Seção de Temas Interativa */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.theme-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.theme-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), transparent);
    z-index: 2;
    transition: all 0.3s ease;
}

.theme-card:hover::before {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
}

.theme-card:hover {
    transform: scale(1.05) rotateZ(2deg);
}

.theme-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 3;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.theme-card:hover .theme-content {
    transform: translateY(0);
}

/* Produtos com Animações */
.product-showcase {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-item {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.product-item:hover::after {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.product-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Seção de Contato Moderna */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

/* Partículas Animadas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 10px; height: 10px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 15px; height: 15px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { width: 12px; height: 12px; left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { width: 18px; height: 18px; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-100px) rotate(180deg); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Menos padding em mobile */
    }

    .hero-section {
        padding: 30px 0 30px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .theme-card {
        height: 250px;
    }

    .floating-card {
        padding: 1.5rem;
    }

    .product-item {
        margin-bottom: 2rem;
    }

    .btn-3d {
        margin: 5px;
    }

    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .media-carousel-container .carousel-inner {
        height: 400px !important;
    }

    .media-carousel-container .carousel-item {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .media-carousel-container .carousel-inner {
        height: 300px !important;
    }

    .media-carousel-container .carousel-item {
        height: 300px !important;
    }
}

/* Melhorias para tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* Animações extras */
@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}