/* ============================================
   VARIÁVEIS CSS - MODO CLARO (PADRÃO)
   ============================================ */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --accent-color: #ff6b35;
    --accent-light: #ff6b35;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: #ffffff;
    --section-bg-light: #ffffff;
    --section-bg-dark: #f8f9fa;
    --transition-speed: 0.3s;
}

/* ============================================
   VARIÁVEIS CSS - MODO ESCURO
   ============================================ */
body.dark-mode {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --accent-color: #ff6b35;
    --accent-light: #ff6b35;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #ffffff;
    --border-color: #444444;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --navbar-bg: #ffffff;
    --section-bg-light: #1a1a1a;
    --section-bg-dark: #2d2d2d;
}

/* ============================================
   RESET E ESTILOS GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

/* ============================================
   BOTÃO FLUTUANTE DE TEMA
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: all var(--transition-speed) ease;
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--card-shadow);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-custom {
    background: var(--navbar-bg) !important;
    box-shadow: 0 2px 8px var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.navbar-custom .navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 28px;
    color: var(--accent-color);
}

.brand-text {
    color: var(--primary-color);
}

.navbar-custom .nav-link {
    color: var(--text-primary) !important;
    margin-left: 20px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--text-primary) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23212529' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-light);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-color);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section .container-fluid {
    width: 100%;
    padding: 0 15px;
}

.hero-section .row {
    width: 100%;
    margin: 0;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-image-container {
    animation: fadeInRight 0.8s ease 0.4s both;
}

.placeholder-image {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 80px;
    transition: all var(--transition-speed) ease;
}

.placeholder-image:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.placeholder-image p {
    font-size: 16px;
    margin-top: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-primary:focus {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
    color: white;
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */
.quem-somos-section {
    background-color: var(--section-bg-light);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

.nossas-solucoes-section {
    background-color: var(--section-bg-dark);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

.nossos-trabalhos-section {
    background-color: var(--section-bg-light);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

.quem-faz-section {
    background-color: var(--section-bg-dark);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

.contato-section {
    background-color: var(--section-bg-light);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

/* ============================================
   CABEÇALHO DE SEÇÃO
   ============================================ */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    transition: color var(--transition-speed) ease;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   SUBSECTION HEADER
   ============================================ */
.subsection-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.subsection-header i {
    font-size: 28px;
    color: var(--accent-color);
}

.subsection-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background-color: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--transition-speed) ease;
    height: 100%;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--card-shadow);
    border-color: var(--accent-light);
}

.service-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-card .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.placeholder-image-large {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 60px;
    transition: all var(--transition-speed) ease;
}

.placeholder-image-large:hover {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    transform: translateY(-5px);
}

.placeholder-image-large p {
    font-size: 16px;
    margin-top: 15px;
    color: var(--text-secondary);
}

.placeholder-portfolio {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 60px;
    transition: all var(--transition-speed) ease;
}

.placeholder-portfolio:hover {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    transform: translateY(-5px);
}

.placeholder-portfolio p {
    font-size: 16px;
    margin-top: 15px;
    color: var(--text-secondary);
}

.placeholder-team {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 60px;
    transition: all var(--transition-speed) ease;
}

.placeholder-team:hover {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    transform: translateY(-5px);
}

.placeholder-team p {
    font-size: 16px;
    margin-top: 15px;
    color: var(--text-secondary);
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.contact-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

.contact-card i {
    font-size: 40px;
    color: var(--accent-color);
}

.contact-card h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin: 10px 0 0 0;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--accent-color);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    text-align: center;
    border-top: 3px solid var(--accent-color);
    transition: all var(--transition-speed) ease;
}

.footer p {
    margin: 0;
    transition: color var(--transition-speed) ease;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

p {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-header h3 {
        font-size: 1.4rem;
    }

    .placeholder-image {
        max-width: 100%;
        height: 250px;
        font-size: 50px;
    }

    .placeholder-image-large {
        height: 300px;
        font-size: 50px;
    }

    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-custom .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar-custom .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .subsection-header {
        flex-direction: column;
        text-align: center;
    }

    .subsection-header i {
        font-size: 24px;
    }

    .subsection-header h3 {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}
