/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Cores personalizadas */
:root {
    --purple-primary: #8B5CF6;
    --purple-light: #A78BFA;
    --purple-dark: #6D28D9;
    --purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 50%, #C4B5FD 100%);
    --purple-gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.16);
    --shadow-xl: 0 16px 48px rgba(139, 92, 246, 0.2);
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #8B5CF6 50%, #A78BFA 75%, #C4B5FD 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: fadeInDown 1s ease-out;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0.95;
    letter-spacing: 0.01em;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem 2.5rem;
}

.hero-section .btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botão roxo personalizado */
.btn-purple {
    background: var(--purple-gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-purple::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: left 0.5s;
}

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

.btn-purple:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 50%, #A78BFA 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
}

.btn-purple:active {
    transform: translateY(-1px) scale(0.98);
}

/* Texto roxo */
.text-purple {
    color: var(--purple-primary) !important;
}

/* Títulos de seção */
.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--purple-dark);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--purple-gradient);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

/* Cards */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(139, 92, 246, 0.3);
}

.card-body {
    padding: 2rem;
}

.card .display-4 {
    transition: all 0.3s ease;
}

.card:hover .display-4 {
    transform: scale(1.1);
    color: var(--purple-primary) !important;
}

/* Formulário */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15), 0 4px 12px rgba(139, 92, 246, 0.1);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Seções */
section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* Rodapé */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--purple-gradient);
}

footer p {
    font-family: 'Playfair Display', serif;
}

/* Alertas personalizados */
.alert {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    border-left: 4px solid #48bb78;
    color: #22543d;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(229, 62, 62, 0.1) 100%);
    border-left: 4px solid #f56565;
    color: #742a2a;
}

/* Ícones */
.bi {
    vertical-align: -0.125em;
    transition: transform 0.3s ease;
}

.card:hover .bi {
    transform: scale(1.2) rotate(5deg);
}

/* Background roxo */
.bg-purple {
    background-color: var(--purple-primary) !important;
}

/* Animações de entrada */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave melhorado */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Efeitos de loading */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Melhorias gerais */
.text-muted {
    color: #718096 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

