/* ==========================================================================
   OTA - Over The Air Landing Page Stylesheet
   ========================================================================== */

/* Variables & Design System */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0d14;
    --bg-secondary: #121622;
    --bg-glass: rgba(18, 22, 34, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --logo-text-color: #ffffff;
    --logo-subtext-color: #718096;
    
    --primary-grad: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-glow: rgba(0, 242, 254, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --accent-green: #00ff87;
    --accent-purple: #7f00ff;
    --card-hover-bg: rgba(255, 255, 255, 0.02);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --logo-text-color: #1a202c;
    --logo-subtext-color: #4a5568;
    
    --primary-grad: linear-gradient(135deg, #00abc0 0%, #0070f3 100%);
    --accent-glow: rgba(0, 112, 243, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    
    --accent-green: #10b981;
    --accent-purple: #6200ea;
    --card-hover-bg: rgba(0, 0, 0, 0.01);
}

/* CSS variables directly affecting SVG elements */
body {
    --logo-text-color: #ffffff;
    --logo-subtext-color: #a1a8b5;
}
body.light-theme {
    --logo-text-color: #1a202c;
    --logo-subtext-color: #4a5568;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    height: 48px;
    width: auto;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.nav-link:hover {
    opacity: 1;
    color: #4facfe;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2px;
}

body.light-theme .lang-selector {
    background: rgba(0, 0, 0, 0.03);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    background: var(--primary-grad);
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.4);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: #4facfe;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, var(--accent-glow), transparent 45%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #00f2fe;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
}

body.light-theme .hero-tagline {
    color: #0070f3;
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 30%, #a1c4fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .hero-title {
    background: linear-gradient(135deg, #1a202c 30%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta-wrapper {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-block {
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 10px 30px rgba(79, 172, 254, 0.2));
}

/* Hero Animations */
@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.rotating-ring {
    transform-origin: center;
    animation: rotateClockwise 25s linear infinite;
}

.rotating-ring-reverse {
    transform-origin: center;
    animation: rotateCounterClockwise 15s linear infinite;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glass);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #4facfe;
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.15);
}

.service-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.service-svg-asset {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.service-card:hover .service-svg-asset {
    transform: scale(1.08);
}

.service-card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 10% 80%, var(--accent-glow), transparent 45%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact-info {
    max-width: 500px;
}

.contact-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.2);
}

.contact-detail-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-glass);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.01);
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.ms-2 {
    margin-left: 8px;
}

/* Footer Section */
.footer {
    padding: 60px 0 30px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-desc {
    max-width: 450px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.copyright {
    opacity: 0.8;
}

.corporate-info {
    text-align: right;
    opacity: 0.7;
    font-size: 12px;
    line-height: 1.5;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin: 0 auto 32px auto;
    }
    
    .hero-svg {
        max-width: 280px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-info {
        max-width: 100%;
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-desc {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .corporate-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        display: none; /* Em projetos mobile reais teríamos um menu hambúrguer, mas simplificaremos para fins comerciais */
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .section-title, .contact-title {
        font-size: 30px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
