/*
 * A Fantástica Aventura do Circo - Main Styles
 * Escola Maria Cacko Ballet Infantil
 *
 * Colors:
 * - Lilás Encantado: #BD78C8 (Primary)
 * - Rosa Doce: #F9C3D4
 * - Amarelo Circo: #F9E79F
 * - Azul Céu: #B2E0F3
 * - Branco Neve: #FFFFFF
 * - Roxo Profundo: #5B2A8A
 */

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --color-primary: #BD78C8;
    --color-primary-dark: #A45EB0;
    --color-secondary: #F9C3D4;
    --color-accent: #F9E79F;
    --color-blue: #B2E0F3;
    --color-white: #FFFFFF;
    --color-dark: #5B2A8A;

    /* Typography */
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Quicksand', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(91, 42, 138, 0.1);
    --shadow-md: 0 4px 12px rgba(91, 42, 138, 0.15);
    --shadow-lg: 0 8px 24px rgba(91, 42, 138, 0.2);
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

.highlight-text {
    font-size: 2rem;
    color: var(--color-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 2rem;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 6rem;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--color-dark);
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-dark);
    font-size: 2.4rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    perspective: 1000px; /* For 3D effects */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform-style: preserve-3d;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transform: translateZ(-10px) scale(1.1); /* Parallax effect */
    transition: transform 0.5s ease;
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 276 276" fill="none"><circle cx="138" cy="138" r="5" fill="white" fill-opacity="0.8"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
    transform: translateZ(-5px) scale(1.05); /* Parallax effect */
    animation: twinkle 4s ease-in-out infinite;
}

/* Floating elements for dynamic background */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(2px);
}

.star-1 {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-2 {
    width: 40px;
    height: 40px;
    background-color: var(--color-blue);
    top: 25%;
    right: 15%;
    animation: float 6s ease-in-out infinite 1s;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.circle-1 {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary);
    bottom: 20%;
    left: 20%;
    animation: float 10s ease-in-out infinite 2s;
    border-radius: 50%;
}

.circle-2 {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    bottom: 30%;
    right: 25%;
    animation: float 7s ease-in-out infinite 1.5s;
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 850px;
    padding: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    overflow: hidden;
    border: 3px solid var(--color-primary);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-blue));
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
    animation: gradientBG 15s ease infinite;
}

.logo-container {
    margin: 0 auto var(--spacing-md);
    transform: translateY(-10px);
    animation: float 5s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(91, 42, 138, 0.3));
}

.mascot-container {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    position: relative;
}

.mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(91, 42, 138, 0.2));
}

.hero-title {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 4.8rem;
    text-shadow: 2px 2px 0 var(--color-primary-dark);
    transform: translateZ(5px);
}

.hero-subtitle {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.hero-content .btn-primary {
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 0 var(--color-primary-dark), 0 10px 20px rgba(91, 42, 138, 0.2);
}

.hero-content .btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 7px 0 var(--color-primary-dark), 0 12px 25px rgba(91, 42, 138, 0.3);
}

.hero-content .btn-primary:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 0 var(--color-primary-dark), 0 5px 10px rgba(91, 42, 138, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    background-color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(91, 42, 138, 0.3);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-divider {
    height: 4px;
    width: 80px;
    background-color: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-text {
    flex: 1;
}

.about-animation {
    flex: 1;
    max-width: 500px;
}

/* ===== Date & Location Section ===== */
.date-location-section {
    background-color: var(--color-blue);
    position: relative;
}

.date-location-content {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.date-box, .location-box {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.icon-container {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-white);
    font-size: 3.6rem;
}

.date, .time, .address {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== Tickets Section ===== */
.tickets-section {
    background-color: var(--color-white);
}

.tickets-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-size: 2rem;
}

.ticket-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.ticket-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.ticket-card.featured {
    border-color: var(--color-primary);
    position: relative;
    z-index: 2;
    transform: scale(1.05);
}

.ticket-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.4rem;
}

.ticket-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.ticket-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-xs);
}

.ticket-content {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.ticket-features {
    margin-bottom: var(--spacing-md);
}

.ticket-features li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-features li i {
    color: var(--color-primary);
}

.ticket-price {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    display: block;
}

.price-detail {
    font-size: 1.4rem;
    color: #666;
}

.ticket-card .btn-primary,
.ticket-card .btn-secondary {
    width: 100%;
}

.ticket-notes {
    text-align: center;
    font-size: 1.6rem;
    color: #666;
}

.ticket-notes p {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ticket-notes i {
    color: var(--color-primary);
}

/* ===== Schedule Section ===== */
.schedule-section {
    background-color: var(--color-secondary);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2.4rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--color-white);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--color-white);
}

.timeline-date {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--color-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mascot-footer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.mascot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.footer-info {
    text-align: center;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}
