/**
 * ESTILO DA PÁGINA TEMPORÁRIA - ESCOLA DE DANÇA
 * 
 * Paleta de Cores:
 * - Primary (Turquesa): #00b098
 * - Secondary (Azul): #215585
 * - Accent: Branco (#ffffff)
 * 
 * Princípios Aplicados:
 * - Design Responsivo: Mobile-first approach com breakpoints estratégicos
 * - Acessibilidade: Contraste adequado, foco visível, labels semânticos
 * - Performance: Uso de transform/opacity para animações (GPU acceleration)
 * - Modularidade: Classes reutilizáveis e bem nomeadas (BEM-like)
 */

/* ==================== RESET E CONFIGURAÇÕES GLOBAIS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Cores */
    --color-primary: #00b098;
    --color-secondary: #215585;
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-text-dark: #2c3e50;
    --color-text-light: #6c757d;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 176, 152, 0.9) 0%, rgba(33, 85, 133, 0.9) 100%);
    
    /* Sombras (Material Design inspired) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Tipografia */
    --font-primary: 'Poppins', sans-serif;
    --font-decorative: 'Dancing Script', cursive;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== ESTILOS BASE ==================== */
body {
    font-family: var(--font-primary);
    background: var(--color-light-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== DECORAÇÃO DE FUNDO ==================== */
/**
 * Círculos animados no fundo para criar profundidade visual
 * Uso de blur para efeito glassmorphism sutil
 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* ==================== CONTAINER PRINCIPAL ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==================== HEADER E LOGO ==================== */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease;
}

.logo-container {
    display: inline-block;
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.logo {
    margin-bottom: -20%;
    margin-top: -20%;
    max-width: 600px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
.content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

/* Título Principal */
.main-title {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.title-subtitle {
    display: block;
    font-family: var(--font-decorative);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-secondary);
    font-weight: 400;
}

/* Descrição */
.description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ==================== CARDS DE FEATURES ==================== */
/**
 * Grid responsivo que adapta de 1 coluna (mobile) para 3 colunas (desktop)
 * Cards com hover effects para melhor interatividade
 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    filter: grayscale(0.3);
    transition: filter var(--transition-normal);
}

.feature-card:hover .feature-icon {
    filter: grayscale(0);
}

.feature-card h3 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== SEÇÃO DE CONTATO ==================== */
.contact-section {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

/* ==================== FORMULÁRIO ==================== */
/**
 * Formulário com validação visual e feedback imediato
 * Inputs com estados bem definidos (normal, focus, error)
 */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    background: var(--color-light-bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(0, 176, 152, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Validação de inputs */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-primary);
}

/* ==================== BOTÃO DE SUBMIT ==================== */
/**
 * Botão com gradient animado e efeitos de hover sofisticados
 * Uso de pseudo-elemento para efeito de brilho
 */
.submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ==================== MENSAGEM DE SUCESSO ==================== */
.success-message {
    display: none;
    background: linear-gradient(135deg, #00b098 0%, #00d4b8 100%);
    color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-top: var(--spacing-md);
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    animation: slideInUp 0.5s ease;
}

.success-message.show {
    display: flex;
}

.success-icon {
    font-size: 1.5rem;
    animation: scaleIn 0.5s ease;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding-top: var(--spacing-xl);
    animation: fadeIn 1s ease 1s backwards;
}

/* Links Sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.copyright {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ==================== RESPONSIVIDADE ==================== */
/**
 * Mobile-first approach com breakpoints progressivos
 * Ajustes de espaçamento e tipografia para diferentes viewports
 */

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo {
        max-width: 150px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-section {
        padding: var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .logo-container {
        padding: var(--spacing-sm);
    }
    
    .logo {
        max-width: 120px;
    }
    
    .contact-section {
        padding: var(--spacing-md);
        border-radius: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== ACESSIBILIDADE ==================== */
/**
 * Melhorias para navegação por teclado e leitores de tela
 */

/* Foco visível para elementos interativos */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Redução de movimento para usuários com preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste para melhor legibilidade */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

