/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--mystic-purple) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Elementos místicos dos Orixás */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--iemanja-blue) 0%, transparent 30%),
        radial-gradient(circle at 80% 30%, var(--oxossi-green) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, var(--iansa-purple) 0%, transparent 35%),
        radial-gradient(circle at 70% 70%, var(--oxum-yellow) 0%, transparent 20%);
    background-size: 300px 300px, 250px 250px, 350px 350px, 200px 200px;
    opacity: 0.1;
    animation: orixaFlow 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Padrão de estrelas místicas */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="stars"><stop offset="0%" stop-color="%23FFD700" stop-opacity="0.8"/><stop offset="100%" stop-color="%23FFD700" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="1" fill="url(%23stars)"/><circle cx="300" cy="200" r="1.5" fill="url(%23stars)"/><circle cx="500" cy="150" r="1" fill="url(%23stars)"/><circle cx="700" cy="300" r="1" fill="url(%23stars)"/><circle cx="200" cy="400" r="1.5" fill="url(%23stars)"/><circle cx="800" cy="200" r="1" fill="url(%23stars)"/><circle cx="400" cy="500" r="1" fill="url(%23stars)"/><circle cx="600" cy="400" r="1.5" fill="url(%23stars)"/><circle cx="900" cy="450" r="1" fill="url(%23stars)"/></svg>');
    background-size: 400px 400px;
    animation: starDance 30s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes orixaFlow {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-15px) rotate(2deg); }
    50% { transform: translateX(-10px) translateY(25px) rotate(-1deg); }
    75% { transform: translateX(15px) translateY(-20px) rotate(1deg); }
}

@keyframes starDance {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-400px) translateY(-400px); }
}

@keyframes lightningFlow {
    0%, 100% { opacity: 0.3; transform: translateX(0) translateY(0); }
    50% { opacity: 0.6; transform: translateX(20px) translateY(-20px); }
}

/* Variáveis CSS para cores místicas dos Orixás */
:root {
    /* Cores dos Orixás */
    --iemanja-blue: #1E90FF;
    --oxossi-green: #228B22;
    --iansa-purple: #8A2BE2;
    --oxum-yellow: #FFD700;
    --ogum-red: #DC143C;
    --oxala-white: #FFFFFF;
    --preto-velho-brown: #8B4513;
    --pomba-gira-black: #2F2F2F;
    
    /* Paleta principal mística */
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #FFD700;
    --mystic-purple: #6A0DAD;
    --mystic-blue: #4169E1;
    --mystic-green: #32CD32;
    --text-color: #FFFFFF;
    --text-dark: #333333;
    --shadow: rgba(26, 26, 46, 0.4);
    --background-color: #0f0f23;
    
    /* Cores legadas para compatibilidade */
    --xango-red: #B22222;
    --xango-white: #FFFAFA;
    --xango-gold: #DAA520;
    --dark-red: #800000;
    --medium-red: #A0522D;
    --light-red: #CD853F;
    --gold: #FFD700;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--mystic-purple) 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px var(--shadow);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px var(--accent-color));
    animation: mysticGlow 4s ease-in-out infinite;
}

@keyframes mysticGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 15px var(--accent-color)) hue-rotate(0deg); 
    }
    25% { 
        transform: scale(1.05) rotate(5deg); 
        filter: drop-shadow(0 0 20px var(--iemanja-blue)) hue-rotate(90deg); 
    }
    50% { 
        transform: scale(1.1) rotate(0deg); 
        filter: drop-shadow(0 0 25px var(--oxossi-green)) hue-rotate(180deg); 
    }
    75% { 
        transform: scale(1.05) rotate(-5deg); 
        filter: drop-shadow(0 0 20px var(--iansa-purple)) hue-rotate(270deg); 
    }
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

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

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

.login-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid transparent;
}

.login-btn:hover {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        linear-gradient(135deg, 
            var(--primary-color) 0%, 
            var(--secondary-color) 30%,
            var(--mystic-purple) 60%,
            var(--mystic-blue) 100%
        );
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Elementos místicos dos Orixás no hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--iemanja-blue) 0%, transparent 25%),
        radial-gradient(circle at 80% 30%, var(--oxossi-green) 0%, transparent 20%),
        radial-gradient(circle at 30% 80%, var(--iansa-purple) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, var(--oxum-yellow) 0%, transparent 15%);
    background-size: 250px 250px, 200px 200px, 300px 300px, 150px 150px;
    opacity: 0.2;
    animation: orixaEnergy 15s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="mysticalLight"><stop offset="0%" stop-color="%23FFD700" stop-opacity="0.6"/><stop offset="100%" stop-color="%23FFD700" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="url(%23mysticalLight)"/><circle cx="800" cy="300" r="2" fill="url(%23mysticalLight)"/><circle cx="400" cy="600" r="4" fill="url(%23mysticalLight)"/><circle cx="600" cy="100" r="2" fill="url(%23mysticalLight)"/><circle cx="100" cy="500" r="3" fill="url(%23mysticalLight)"/></svg>');
    background-size: 500px 500px;
    animation: mysticalFloat 25s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes orixaEnergy {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(15px) translateY(-10px) scale(1.05); }
    50% { transform: translateX(-10px) translateY(20px) scale(0.95); }
    75% { transform: translateX(20px) translateY(-15px) scale(1.02); }
}

@keyframes mysticalFloat {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(-500px) translateY(-500px) rotate(360deg); }
}

.hero-content {
    color: var(--white);
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px var(--shadow);
    background: linear-gradient(45deg, 
        var(--text-color), 
        var(--accent-color), 
        var(--iemanja-blue),
        var(--oxossi-green),
        var(--iansa-purple),
        var(--text-color)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: orixaTitle 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

@keyframes orixaTitle {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    border-bottom: 3px solid var(--accent-color);
    padding: 0.5rem 2rem;
    display: inline-block;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    border-radius: 25px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-symbols {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
    color: var(--gold);
    animation: pulse 2s infinite;
}

/* Seções */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold);
    text-shadow: 1px 1px 2px var(--shadow);
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.temple-description {
    text-align: center;
    margin-bottom: 50px;
}

.temple-intro {
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    backdrop-filter: blur(10px);
}

.temple-intro strong {
    color: var(--secondary-color);
}

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

.about-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

.about-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.about-card p {
    color: var(--white);
    line-height: 1.6;
}

/* History Section */
.history {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.8);
}

.history-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.history-text {
    color: var(--white);
}

.history-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.history-text h3:first-child {
    margin-top: 0;
}

.history-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.history-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mystical-symbol {
    width: 200px;
    height: 200px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

.mystical-symbol i {
    font-size: 4rem;
    color: var(--gold);
}

/* Schedule Section */
.schedule {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
}

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

.schedule-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.schedule-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.schedule-card .time {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.schedule-card .description {
    color: var(--white);
    line-height: 1.6;
}

/* Location Section */
.location {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.9);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--white);
}

.location-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.location-item h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--secondary-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--white);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    color: var(--white);
}

.contact-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 20px;
}

/* Contact Form */
.contact-form {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Crimson Text', serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--xango-white);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--xango-gold);
}

.btn-submit:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-color) 100%);
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--accent-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px var(--shadow);
    position: relative;
    z-index: 1;
}

.footer-section p,
.footer-section a {
    color: var(--xango-white);
    text-decoration: none;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-symbols {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    color: var(--white);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .history-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-card,
    .schedule-card,
    .contact-form {
        padding: 1.5rem;
    }
}