/* ========================================
   BRASIL SOLAR - CUSTOM STYLES
   ======================================== */

:root {
    --primary: #F9B000;
    --primary-dark: #D79A00;
    --primary-light: #FFC940;
    --accent: #009BB3;
    --accent-light: #00C5E3;
    --dark: #00666F;
    --dark-deep: #004850;
    --light: #F8FAFC;
    --cream: #FFF9E6;
    --blue-light: #E6F7FA;
    --hero-overlay-opacity: 0.70;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #F9B000 0%, #FFC940 100%);
    --gradient-accent: linear-gradient(135deg, #009BB3 0%, #00666F 100%);
    --gradient-sunset: linear-gradient(135deg, #F9B000 0%, #009BB3 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Hero Section com Gradiente Azul */
.hero-section {
    min-height: 600px;
    position: relative;
}

/* Background Gradiente Azul */
.hero-bg-gradient {
    background: linear-gradient(
        135deg,
        #009BB3 0%,
        #00A8C5 25%,
        #008DA8 50%,
        #00666F 75%,
        #004850 100%
    );
    z-index: 0;
}

/* Padrão de textura sutil (opcional) */
.hero-bg-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }
}

/* ========================================
   MINI SLIDESHOW DE PROJETOS (Seção Sobre)
   ======================================== */
.projects-slideshow-container {
    position: relative;
    overflow: hidden;
}

.project-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: scale(1.05);
}

.project-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Botões de navegação */
.project-nav-btn {
    cursor: pointer;
    border: none;
    backdrop-filter: blur(10px);
}

.project-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Indicadores */
.project-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.project-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
    border: 1px solid white;
}

.project-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Responsivo */
@media (max-width: 768px) {
    .project-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .project-indicator {
        width: 6px;
        height: 6px;
    }
    
    .project-indicator.active {
        width: 18px;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Botões - Estados hover melhorados */
button,
a {
    transition: all 0.3s ease;
}

/* Formulário - Melhorias de acessibilidade */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 155, 179, 0.1);
}

/* Menu mobile - Transição suave */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Cards hover effect */
.hover\:shadow-md {
    transition: box-shadow 0.3s ease;
}

/* Scroll to top button (opcional) */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: #1e293b;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 30;
    transition: all 0.3s ease;
}

#scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#scroll-to-top.visible {
    display: flex;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Links - estilo global */
a {
    text-decoration: none;
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #mobile-menu,
    #scroll-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Acessibilidade - Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loader (caso necessário) */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes adicionais */
.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-cream {
    background-color: var(--cream);
}

.bg-blue-light {
    background-color: var(--blue-light);
}

.text-accent {
    color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

.text-dark {
    color: var(--dark);
}

.bg-dark {
    background-color: var(--dark);
}

/* Gradientes */
.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.gradient-sunset {
    background: var(--gradient-sunset);
}

/* Hover effects melhorados */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(249, 176, 0, 0.4);
}

/* Cards com cor */
.card-primary {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
    border-left: 4px solid var(--primary);
}

.card-accent {
    background: linear-gradient(135deg, #E6F7FA 0%, #FFFFFF 100%);
    border-left: 4px solid var(--accent);
}

/* Ajustes para telas pequenas */
@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.75rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Container max-width customizado */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sombras customizadas */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gradientes */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--dark) 100%);
}