/* =============================================================================
   GARAGEM OPENSOURCE - CSS CUSTOMIZATIONS
   Bootstrap Extension - Não substituição
   ============================================================================= */

/* VARIÁVEIS DE CORES GARAGEM */
:root {
    /* Cores específicas do Garagem */
    --garage-primary: #e74c3c;
    --garage-secondary: #ff6b5a;
    --garage-accent: #ff6b5a;
    --garage-dark: #0a0a0a;
    --garage-gray: #1a1a1a;
    --garage-lighter: #2d2d2d;
    --garage-text: #f8fafc;
    --garage-text-muted: #cbd5e1;
    
    /* Gradientes */
    --garage-gradient: linear-gradient(135deg, #e74c3c 0%, #ff6b5a 100%);
    --garage-gradient-hover: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

/* RESET GLOBAL - Mantém compatibilidade com Bootstrap */
* {
    box-sizing: border-box;
}

/* BODY - Tema Garagem */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--garage-dark);
    color: var(--garage-text);
    line-height: 1.6;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* CLASSES ESPECÍFICAS DO GARAGEM - Extensões do Bootstrap */

/* Cores de texto */
.text-garage-text { color: var(--garage-text) !important; }
.text-garage-text-muted { color: var(--garage-text-muted) !important; }
.text-garage-accent { color: var(--garage-accent) !important; }
.text-garage-secondary { color: var(--garage-secondary) !important; }

/* Backgrounds */
.bg-garage-dark { background-color: var(--garage-dark) !important; }
.bg-garage-gray { background-color: var(--garage-gray) !important; }
.bg-garage-lighter { background-color: var(--garage-lighter) !important; }

/* Gradientes */
.gradient-text {
    background: var(--garage-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HEADER */
.header-gradient {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-gradient.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--garage-dark) 0%, #1a1a1a 100%);
    position: relative;
    padding-top: 120px; /* Espaço para o header fixo */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* Menos padding em mobile */
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* NEURAL NETWORK - Apenas Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(80, 90, 100, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.neural-node:hover {
    transform: scale(1.5);
    background: rgba(231, 76, 60, 0.6);
    z-index: 1;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

/* HERO CONTENT - Sempre na frente */
.hero-section .container-xl {
    z-index: 10;
}

/* Disable neural network on mobile for performance */
@media (max-width: 767px) {
    .neural-network {
        display: none;
    }
}

/* STATS */
.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.pulse-glow {
    color: var(--garage-accent);
    animation: pulse 2s infinite;
}

/* BUTTONS - Customizações Bootstrap */
.btn-primary {
    background: var(--garage-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--garage-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--garage-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--garage-accent);
    color: var(--garage-accent);
}

/* CARDS - Customizações Bootstrap */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--garage-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FORMS */
.form-control {
    background: var(--garage-gray);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--garage-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--garage-lighter);
    border-color: var(--garage-accent);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    color: var(--garage-text);
}

.form-control::placeholder {
    color: var(--garage-text-muted);
}

/* SECTIONS */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* SIGNUP SECTION */
.signup-section-bg {
    background: var(--garage-gray);
}

.signup-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    max-width: 600px;
}

.signup-benefit-box {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--garage-accent);
    border-radius: 0.5rem;
    padding: 1rem;
}

.benefit-icon {
    background: var(--garage-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* LOGO */
.logo-real {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* FOUNDER AVATARS */
.founder-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* FOUNDER BIO - Responsivo */
.founder-bio p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .founder-bio p {
        -webkit-line-clamp: 3;
    }
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--garage-accent);
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--garage-text);
    text-decoration: none;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
}

.faq-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--garage-text);
}

.faq-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-content {
    padding: 1.5rem;
    max-height: 300px;
}

/* UTILITY CLASSES - Extensões responsivas */
.max-width-700 { max-width: 700px; }
.max-width-600 { max-width: 600px; }

.hero-subtitle, .opensource-subtitle, .garagem-subtitle, .courses-subtitle, .community-subtitle, .faq-subtitle {
    max-width: 700px;
}

/* NAV LINKS */
.nav-link {
    color: var(--garage-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* BACKDROP BLUR - Polyfill para navegadores antigos */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

/* TESTIMONIALS ESPECÍFICOS - para obrigado.html */
.success-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

@media (min-width: 768px) {
    .faixas-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (min-width: 1200px) {
    .faixas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faixa-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.faixa-card:nth-child(1) { animation-delay: 0.1s; }
.faixa-card:nth-child(2) { animation-delay: 0.2s; }
.faixa-card:nth-child(3) { animation-delay: 0.3s; }

.faixa-card:hover {
    transform: translateY(-5px);
    border-color: var(--garage-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faixa-card.destaque {
    border-color: var(--garage-accent);
    background: rgba(231, 76, 60, 0.1);
}

.faixa-card.destaque::before {
    content: "MAIS POPULAR";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--garage-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-bump {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--garage-accent);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.consultoria-options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.consultoria-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consultoria-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--garage-accent);
}

.consultoria-option input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
}

/* RESPONSIVE OVERRIDES - Garantindo responsividade */

/* Extra Small (Mobile) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .signup-card {
        margin: 0 1rem;
    }
    
    .faixas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small (Tablet Portrait) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium (Tablet Landscape) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

/* Large (Desktop) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

/* Extra Large (Large Desktop) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* ULTRAWIDE ADJUSTMENTS - Sem limitações rígidas */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1320px;
    }
}

@media (min-width: 1920px) {
    .container-xl {
        max-width: 1600px;
    }
    
    .section-padding {
        padding: 8rem 0;
    }
}

/* PRINT STYLES */
@media print {
    .neural-network,
    .btn,
    header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

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

/* FOOTER LINKS */
.footer-link {
    color: var(--garage-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--garage-accent);
}

/* BORDER UTILITY */
.border-garage-accent {
    border-color: var(--garage-accent) !important;
}

/* DARK MODE SUPPORT (Future-proofing) */
@media (prefers-color-scheme: light) {
    :root {
        --garage-dark: #ffffff;
        --garage-gray: #f8f9fa;
        --garage-text: #212529;
        --garage-text-muted: #6c757d;
    }
}