/* BASE VARIABLES */
:root {
    /* Colors */
    --accent-primary: #ff5e14; /* Vibrant Orange */
    --accent-hover: #e04e0e;
    --bkg-dark: #121418;
    --bkg-darker: #0c0d10;
    --bkg-card: #1e2025;
    --bkg-light: #f5f6f8;
    
    --text-main: #9ea4b0;
    --text-mutated: #6b7280;
    --text-heading-light: #ffffff;
    --text-heading-dark: #121418;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Visuals */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bkg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.dark-bg { background-color: var(--bkg-dark) !important; color: var(--text-main); }
.dark-bg h2, .dark-bg h3 { color: var(--text-heading-light); }

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: rgba(255, 94, 20, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.badge-accent {
    background-color: var(--accent-primary);
    color: #fff;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 14px rgba(255, 94, 20, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 94, 20, 0.6);
}

.btn-outline {
    background: rgba(12, 13, 16, 0.5);
    backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover {
    background: #fff;
    color: #121418;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-dark {
    background-color: var(--bkg-dark);
    color: #fff;
    border: 2px solid var(--bkg-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-dark:hover {
    background-color: var(--bkg-darker);
    border-color: var(--bkg-darker);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

/* NAVBAR (TOPBAR) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999 !important;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: rgba(18, 20, 24, 0.7); /* Background fixo visual para denotar prioridade na barra superior */
    backdrop-filter: blur(8px);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(18, 20, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.logo span { color: var(--accent-primary); }
.logo i { color: var(--accent-primary); font-size: 2rem;}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('./assets/hero2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Remover absolutamente todas as películas, textos e luzes virtuais que sobrepõem a visualização original da foto */
.hero-bg, 
.hero-overlay, 
.embers-container, 
.fire-glow, 
.hero-content {
    display: none !important;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(12,13,16,0.65) 0%, rgba(12,13,16,0.25) 100%);
    z-index: 1;
}

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

/* FIRE AND EMBERS ANIMATIONS */
.fire-glow {
    position: absolute;
    bottom: -15%;
    right: 5%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(255,94,20,0.6) 0%, rgba(255,100,50,0.2) 40%, rgba(255,94,20,0) 70%);
    animation: pulseFire 3s infinite alternate ease-in-out;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseFire {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.15); }
}

.embers-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: #ffcca8;
    border-radius: 50%;
    box-shadow: 0 0 15px 3px #ff5e14, 0 0 5px 1px #fff;
    opacity: 0;
    animation: floatEmber linear infinite;
}

@keyframes floatEmber {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    50% { transform: translateY(-40vh) translateX(-20px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-90vh) translateX(30px) scale(0.5); opacity: 0; }
}

.e1 { left: 10%; animation-duration: 5s; animation-delay: 0s; }
.e2 { left: 25%; animation-duration: 7s; animation-delay: 1.5s; width: 6px; height: 6px; }
.e3 { left: 40%; animation-duration: 6s; animation-delay: 3s; }
.e4 { left: 50%; animation-duration: 8s; animation-delay: 0.5s; width: 3px; height: 3px;}
.e5 { left: 65%; animation-duration: 4s; animation-delay: 2s; }
.e6 { left: 80%; animation-duration: 9s; animation-delay: 1s; width: 5px; height: 5px;}
.e7 { left: 90%; animation-duration: 6s; animation-delay: 4s; }
.e8 { left: 30%; animation-duration: 5.5s; animation-delay: 0.8s; }
.e9 { left: 55%; animation-duration: 7.5s; animation-delay: 2.5s; }
.e10 { left: 75%; animation-duration: 4.5s; animation-delay: 0.2s; width: 6px; height: 6px;}
.e11 { left: 20%; animation-duration: 8.5s; animation-delay: 3.5s; }
.e12 { left: 85%; animation-duration: 5.8s; animation-delay: 1.2s; }

.hero-content {
    margin-top: -5rem; /* Space for overhanging cards */
}

.hero-text {
    max-width: 700px;
}

.hero .subtitle {
    color: #cbd5e1;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero .title {
    color: #fff;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero .title span {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.hero p {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* CARDS SOBREPOSTOS NO HERO */
.hero-features {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    display: flex;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 10;
    width: 90%;
    max-width: 1100px;
}

.feature-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #fff;
    border-right: 1px solid #f1f5f9;
}

.feature-card:last-child { border-right: none; }

.feature-card.brand-color {
    background: var(--accent-primary);
    color: #fff;
}

.feature-card.brand-color p { color: rgba(255,255,255,0.8); }
.feature-card.brand-color .feature-icon i { color: #fff; }

.feature-icon i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.feature-info h3 {
    color: var(--text-heading-dark);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.feature-card.brand-color h3 { color: #fff; }

.feature-info p {
    font-size: 0.9rem;
    margin: 0;
}

/* SERVICES SECTION */
.services {
    padding-top: 6rem;
    background: #fff;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-heading-dark);
    margin-bottom: 3rem;
}

.dark-bg .section-header h2 {
    color: #fff;
}

.section-header h2 span {
    color: var(--accent-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    background: var(--bkg-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-item:hover {
    background: #fff;
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.service-item .icon-box i {
    font-size: 3rem;
    color: var(--accent-primary);
}

.service-item h3 {
    color: var(--text-heading-dark);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.link-btn i {
    transition: var(--transition);
}

.service-item:hover .link-btn i {
    transform: translateX(5px);
}

/* PRODUCTS SECTION */
.products {
    background: var(--bkg-darker) !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    background: var(--bkg-card);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,94,20,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-icon i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    display: inline-block;
    margin-bottom: 1.25rem;
}

.product-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* SHOWCASE SECTION */
.showcase {
    background: var(--bkg-light);
    color: var(--text-mutated);
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-reverse .showcase-image { order: -1; }
.showcase-reverse .showcase-content { order: 0; }

.showcase-content {
    margin-top: -5rem; /* Space for overhanging cards */
}

ul.specs-list {
    list-style: none;
    margin-top: 2rem;
}

.showcase-content h2 {
    font-size: 3.5rem;
    margin: 1rem 0;
    color: var(--text-heading-dark);
}

.showcase-content h2 span { color: var(--accent-primary); }

.showcase-content .lead {
    font-size: 1.1rem;
    color: var(--text-mutated);
    margin-bottom: 2.5rem;
}

.specs-list li {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.specs-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.spec-num {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.specs-list li h4 {
    color: var(--text-heading-dark);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.specs-list li.active h4 { color: var(--accent-primary); }

/* DARK SHOWCASE OVERRIDES */
.showcase.dark-bg {
    background: var(--bkg-dark);
    color: var(--text-main);
}
.showcase.dark-bg h2, .showcase.dark-bg h4 { 
    color: var(--text-heading-light); 
}
.showcase.dark-bg .lead {
    color: #94a3b8;
}
.showcase.dark-bg .specs-list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spec-detail p {
    font-size: 0.95rem;
}

.showcase-image .image-wrapper {
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
}

#showcase .showcase-image img {
    animation: slowSpin 40s linear infinite;
}

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

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,94,20,0.3) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    filter: blur(40px);
}

/* STATS */
.stats-section {
    background: #fff;
}
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-text h2 {
    font-size: 3rem;
    color: var(--text-heading-dark);
    margin-bottom: 1rem;
}
.stats-text h2 span { color: var(--accent-primary);}

.progress-item { margin-bottom: 1.5rem; }
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-heading-dark);
}
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0; /* Animated later via JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--bkg-light);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--text-heading-dark);
    margin: 1rem 0 0.5rem;
}

/* FOOTER */
.footer {
    padding-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 350px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul li a:hover { color: var(--accent-primary); padding-left: 5px;}

.footer-contact ul li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.footer-contact ul li i { color: var(--accent-primary); }

.footer-bottom {
    background: var(--bkg-darker);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ANIMATIONS AND RESPONSIVE */

/* Initially hidden items for scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left { transform: translateX(50px); }
.slide-right { transform: translateX(-50px); }

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0);
}

/* Hero entrance */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; opacity: 0; }

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

/* Media Queries */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
    .hero .title { font-size: 3.5rem; }
    .showcase-container, .stats-container {
        grid-template-columns: 1fr; gap: 3rem;
    }
    .footer-content { grid-template-columns: 1fr; gap: 2rem;}
    .services { padding-top: 6rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bkg-dark);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero .title { font-size: 2.5rem; }
    .hero-content { margin-top: 0; padding-top: 6rem; padding-bottom: 6rem;}
    .services { padding-top: 5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; margin-top: 3rem;}
    .stats-grid { grid-template-columns: 1fr; }
    .showcase-content h2 { font-size: 2.5rem; }
    
    .showcase-reverse .showcase-image { order: 0 !important; }
    .showcase-reverse .showcase-content { order: -1 !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero .title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { width: 100%; text-align: center; justify-content: center; padding: 1rem; }
    .section-padding { padding: 4rem 0; }
    .section-header h2 { font-size: 2.2rem; }
    .showcase-content { margin-top: 0; text-align: center; } 
    .showcase-content h2 { font-size: 2.2rem; margin-top: 0.5rem; }
    .stats-text h2 { font-size: 2.2rem; }
    .stat-box h3 { font-size: 2rem; }
    .feature-card { padding: 1.5rem 1rem; }
    .product-card { padding: 2rem 1rem; }
    
    .specs-list li { flex-direction: column; gap: 0.5rem; text-align: left; }
    .showcase-image img { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
}

/* Specific Optimizations for iPhone 17 Pro Max and Similar Huge Phones (< 440px) */
@media (max-width: 440px) {
    .container { padding: 0 1rem; }
    .section-padding { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.95rem; line-height: 1.15; margin-bottom: 2rem; }
    
    .hero { min-height: 85vh; }
    .hero .title { font-size: 1.8rem; }
    .hero p { font-size: 1rem; margin-bottom: 2rem; }
    
    .badge { font-size: 0.75rem; padding: 0.2rem 0.8rem; margin-bottom: 0.75rem; }

    .showcase-content h2 { font-size: 1.95rem; }
    .showcase-content .lead { font-size: 1rem; margin-bottom: 1.5rem; }
    
    .btn { padding: 0.75rem 1.25rem; font-size: 0.95rem; width: 100%; text-align: center; justify-content: center; }
    
    .products-grid { gap: 1rem; }
    .product-card { padding: 1.5rem 1rem; }
    .product-icon i { font-size: 2rem; margin-bottom: 1rem; }
    .product-card h3 { font-size: 1.15rem; }
    
    .footer-content { gap: 2rem; margin-bottom: 2.5rem; }
    .footer-brand p { font-size: 0.95rem; margin-top: 1rem; }
    .footer-contact h3 { font-size: 1.15rem; margin-bottom: 1rem; }
    .footer-contact ul li { font-size: 0.95rem; }
    .footer-bottom { font-size: 0.85rem; padding: 1rem 0; }
}
