:root {
    --primary-blue: #062B44;
    --primary-blue-hover: #0A3D5E;
    --accent-cyan: #33FFEB;

    --bg-body: #FFFFFF;
    --section-alt: #F4F7FA;
    --card-bg: #FFFFFF;

    --title-color: #062B44;
    --text-main: #334155;
    --text-muted: #475569;
    --text-input: #0f172a; /* Darker for inputs */

    --border-color: rgba(6, 43, 68, 0.14);

    --shadow-md: 0 8px 24px rgba(2, 8, 23, 0.12);
    --shadow-lg: 0 18px 50px rgba(2, 8, 23, 0.18);
}

[data-theme="dark"] {
    --bg-body: #121212; /* Dark Gray scales */
    --section-alt: #1A1A1A;
    --card-bg: #1E1E1E;

    --title-color: #FFFFFF;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;

    --border-color: rgba(255, 255, 255, 0.1);
    --primary-blue: #000000; /* Header/Footer Black */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* nav 72px + folga 24px */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background-color: #2CEAD8;
    border-radius: 5px;
    border: 2px solid var(--bg-body);
}

body {
    font-family: "Inter", "Roboto", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: 800;
}

main {
    padding-top: 72px;
}

nav {
    background-color: var(--primary-blue) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    height: 72px;
    line-height: 72px;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
}

nav.nav-scrolled {
    background-color: rgba(6, 43, 68, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    height: 60px; /* Reduced height */
    line-height: 60px;
}

[data-theme="dark"] nav.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

nav .brand-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 72px;
    transition: height 0.3s ease;
    position: relative !important;
    left: auto !important;
    transform: none !important;
}

/* Global Button Styling - Flat & Modern */
.btn, .btn-large, .btn-small, .btn-flat, .btn-custom, button {
    border-radius: 50px !important;
    box-shadow: none !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.btn:hover, .btn-large:hover, .btn-small:hover, .btn-custom:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.btn-custom {
    background-color: var(--accent-cyan);
    color: var(--primary-blue);
    padding: 0 35px;
    height: 50px;
    line-height: 50px;
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    color: #fff !important;
}

.btn-ghost {
    background-color: transparent !important;
    border: 2px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
}

.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

[data-theme="dark"] .btn-primary {
    background-color: var(--accent-cyan) !important;
    color: var(--bg-body) !important;
}

/* Nav Scrolled - Logo Shrink */
nav.nav-scrolled .brand-logo {
    height: 60px !important;
}

nav.nav-scrolled .header-logo {
    height: 24px !important; /* Smaller than default 32px */
    transition: height 0.3s ease;
}

/* Sidenav Trigger */
nav .sidenav-trigger {
    height: 72px;
    line-height: 72px;
    margin: 0 18px;
    transition: all 0.3s ease;
}

nav.nav-scrolled .sidenav-trigger {
    height: 60px;
    line-height: 60px;
}

nav .sidenav-trigger i {
    height: 72px;
    line-height: 72px;
    font-size: 28px;
    color: #FFFFFF;
}

nav.nav-scrolled .sidenav-trigger i {
    height: 60px;
    line-height: 60px;
}

/* Hero Section Typography */
.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0 30px;
    height: 50px;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Divider Wave */
.section-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px; /* Ensure no gap - slightly more overlap */
    width: 100%;
    height: 80px; /* Taller wave for smoother transition */
    line-height: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.section-divider svg {
    display: block;
    width: calc(100% + 2px); /* Slight overflow to prevent side gaps */
    height: 100%;
    /* Removed transform scaleY(-1) to keep the mountain shape (rising wave) */
}

.fill-alt {
    fill: var(--section-alt);
}

.fill-body {
    fill: var(--bg-body);
}

.fill-footer {
    fill: var(--primary-blue);
}

/* Contact Section Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid .contact-card-wrapper:last-child {
        grid-column: span 2; /* Center the last item on tablet */
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid .contact-card-wrapper:last-child {
        grid-column: span 1;
    }
}

/* Unified Card Hover Effect */
.process-step, 
.project-card, 
.contact-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-step:hover, 
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    z-index: 10;
}

[data-theme="dark"] .process-step:hover, 
[data-theme="dark"] .project-card:hover, 
[data-theme="dark"] .contact-card:hover {
    border-color: #fff;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 16px; /* Slightly reduced for minimalism */
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    color: var(--text-main);
    width: 100%; /* Ensure it fills the grid cell */
}

/* Removed redundant hover block as it's covered above */

[data-theme="dark"] .contact-card:hover .icon-wrapper {
    background-color: #fff;
    color: var(--bg-body);
}

.contact-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--title-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color); /* Subtle border for icon */
}

.contact-card:hover .icon-wrapper {
    color: #fff;
    background-color: var(--primary-blue);
}

[data-theme="dark"] .contact-card:hover .icon-wrapper {
    background-color: #fff;
    color: var(--bg-body); /* Dark icon on white background */
}

.contact-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--title-color);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
/* Process/Stories Section */
.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

/* hover unificado no bloco acima (.process-step:hover com -10px) */

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(6, 43, 68, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

[data-theme="dark"] .step-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

.step-icon-wrapper i {
    font-size: 28px;
    color: var(--title-color);
}

.process-step h5 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-muted);
    opacity: 0.5;
}

.section-alt {
    background-color: var(--section-alt);
    padding-top: 10px; /* Minimal top padding */
    padding-bottom: 80px;
    position: relative; /* Ensure z-index works for dividers */
}

.section-body {
    position: relative;
    padding-top: 10px; /* Minimal top padding */
    padding-bottom: 80px;
}

/* Sections with waves need more bottom padding to prevent content swallowing */
.section-with-divider {
    padding-bottom: 120px !important;
}

/* Specific fix for Hero to ensure no band and proper spacing */
.hero {
    position: relative;
    min-height: 100vh; /* Occupy full vertical screen height */
    display: flex;
    align-items: center;
    padding: 0; /* Removed padding as requested */
    margin-top: -20px;
    background: linear-gradient(135deg, rgba(6, 43, 68, 0.95), rgba(6, 43, 68, 0.85)), url('../image/bg-hero-section.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #062B44;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85)), url('../image/bg-hero-section.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #000000;
}

/* Remove margins from first/last elements to strictly obey padding */
.section-alt > .container > *:first-child, 
.section-body > .container > *:first-child,
.section-alt > .container > .row:first-child, 
.section-body > .container > .row:first-child {
    margin-top: 0;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--title-color);
    margin-top: 0;
}

.section-subtitle {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Portfolio Swiper */
.swiper-container-wrapper {
    position: relative;
    padding: 0 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

/* Hover effects unified above */

.project-window {
    height: 320px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
    display: block;
}

.project-scroll-image {
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: top center;
    transition: background-position 3s ease-in-out;
}

.project-card:hover .project-scroll-image {
    background-position: bottom center;
}

.project-cover-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Projects Page Grid */
.container-wide {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 0;
}

.project-grid-item {
    width: 45%;
}

/* Maintain mobile friendliness while following instructions */
@media (max-width: 768px) {
    .project-grid-item {
        width: 48%; /* Keep 2 columns but slightly wider on tablets */
    }
}

@media (max-width: 480px) {
    .project-grid-item {
        width: 100%; /* Switch to 1 per row only on very small screens */
    }
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--title-color);
    margin: 0 0 8px;
}

.project-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(6, 43, 68, 0.08);
    color: var(--title-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .project-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.swiper-button-prev, .swiper-button-next {
    color: var(--primary-blue);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

[data-theme="dark"] .swiper-button-prev, 
[data-theme="dark"] .swiper-button-next {
    background: #333;
    color: #fff;
}

/* Contact Section */
.contact-card-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 43, 68, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-blue);
}

[data-theme="dark"] .contact-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.contact-text h6 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: var(--title-color);
}

.contact-text p {
    margin: 0;
    color: var(--text-muted);
}

.input-field {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    color: var(--text-input);
    font-weight: 500;
}

.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field textarea:focus {
    border-bottom: 1px solid var(--primary-blue) !important;
    box-shadow: 0 1px 0 0 var(--primary-blue) !important;
}

.input-field label {
    color: var(--text-muted);
}

.input-field label.active {
    color: var(--primary-blue) !important;
}

/* Dark Mode Form Overrides */
[data-theme="dark"] .input-field input[type=text],
[data-theme="dark"] .input-field input[type=email],
[data-theme="dark"] .input-field textarea {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #FFFFFF;
}

[data-theme="dark"] .input-field input:focus,
[data-theme="dark"] .input-field textarea:focus {
    border-bottom: 1px solid var(--accent-cyan) !important;
    box-shadow: 0 1px 0 0 var(--accent-cyan) !important;
}

[data-theme="dark"] .input-field label {
    color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .input-field label.active {
    color: var(--accent-cyan) !important;
}

.page-footer {
    background-color: var(--primary-blue) !important;
    margin-top: 0 !important;
    padding-top: 20px;
    padding-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-footer .col {
    padding: 0 8px !important;
}

.footer-logo {
    width: auto;
    height: 20px;
    margin-bottom: 20px;
    display: block;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 32px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    background-color: #20BA56;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: #FFFFFF;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@media (min-width: 601px) {
    .header-logo {
        height: 32px;
    }
    .footer-logo {
        height: 20px;
    }
}

@media (max-width: 600px) {
    .header-logo {
        height: 24px;
    }
    
    /* Ensure Logo is Left */
    nav .brand-logo {
        left: 20px !important; /* Add some margin */
        transform: none !important;
        justify-content: flex-start !important;
        width: auto !important;
        position: absolute;
        top: 0;
    }

    /* Ensure Menu Trigger is Right */
    nav .sidenav-trigger {
        height: 72px;
        line-height: 72px;
        display: flex;
        align-items: center;
        margin: 0;
        position: absolute;
        right: 0; 
        left: auto;
        top: 0;
        z-index: 1000;
        padding-right: 15px;
    }

    /* Handle reduced size on scroll for mobile too */
    nav.nav-scrolled .sidenav-trigger {
        height: 60px;
        line-height: 60px;
    }
    
    nav.nav-scrolled .brand-logo {
        height: 60px;
    }
    
    nav.nav-scrolled .header-logo {
        height: 20px; /* Even smaller for mobile */
    }

    .section-divider {
        height: 100px; /* Smaller wave on mobile */
    }

    .section-with-divider {
        padding-bottom: 140px !important;
    }
    
    /* Reduce sizes for mobile */
    .hero-title {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .process-container {
        flex-direction: column;
    }
    .process-connector {
        transform: rotate(90deg);
        height: 40px;
    }
    .contact-card-wrapper {
        padding: 24px;
    }
    
    .swiper-container-wrapper {
        padding: 0 30px; /* Less padding on mobile */
    }
    .swiper-button-prev {
        left: -5px !important;
    }
    .swiper-button-next {
        right: -5px !important;
    }
}

/* ============================================
   Page Loader — Tech style
   ============================================ */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

/* --- Ícone SVG --- */
.loader-svg {
    width: 100px;
    height: auto;
    overflow: visible;
}

/* Círculo grande — circunferência ≈ 2π×60 ≈ 377px
   Traça em segmentos como se estivesse sendo "compilado" */
.loader-draw-big {
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    animation: loaderDrawBig 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
@keyframes loaderDrawBig {
    to { stroke-dashoffset: 0; }
}

.loader-fill-big {
    opacity: 0;
    animation: loaderFadeIn 0.35s ease-out 1s forwards;
}

/* Círculo pequeno — circunferência ≈ 2π×22 ≈ 138px */
.loader-draw-small {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    animation: loaderDrawSmall 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.95s forwards;
}
@keyframes loaderDrawSmall {
    to { stroke-dashoffset: 0; }
}

.loader-fill-small {
    opacity: 0;
    animation: loaderFadeIn 0.3s ease-out 1.35s forwards;
}

/* Scan line que varre o ícone de cima a baixo */
.loader-scan {
    animation: loaderScanMove 1.0s linear 0.1s forwards;
}
@keyframes loaderScanMove {
    0%   { transform: translateY(-80px); opacity: 0.9; }
    80%  { opacity: 0.7; }
    100% { transform: translateY(80px);  opacity: 0; }
}

/* Brilho de corners — os 4 cantos do bounding-box piscam */
.loader-corner {
    opacity: 0;
    animation: loaderCornerBlink 0.25s ease-out forwards;
}
.loader-c1 { animation-delay: 0.15s; }
.loader-c2 { animation-delay: 0.25s; }
.loader-c3 { animation-delay: 0.35s; }
.loader-c4 { animation-delay: 0.45s; }

@keyframes loaderCornerBlink {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0.35; }
}

/* Pulso suave nos traços enquanto o texto carrega */
.loader-draw-big,
.loader-draw-small {
    animation-fill-mode: forwards;
}
.loader-draw-big {
    animation:
        loaderDrawBig  0.9s cubic-bezier(0.4,0,0.2,1) 0.15s forwards,
        loaderGlow     1.6s ease-in-out 1.1s infinite;
}
.loader-draw-small {
    animation:
        loaderDrawSmall 0.45s cubic-bezier(0.4,0,0.2,1) 0.95s forwards,
        loaderGlow      1.6s ease-in-out 1.4s infinite;
}
@keyframes loaderGlow {
    0%,100% { stroke-opacity: 1; }
    50%     { stroke-opacity: 0.35; }
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

/* --- Texto ".visualcore" abaixo do ícone --- */
.loader-wordmark {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--title-color);
    overflow: hidden;
}

/* O ponto e cada letra entram em cascata com clip */
.loader-wordmark .lw-dot {
    color: #33FFEB;
    opacity: 0;
    transform: translateY(12px);
    animation: loaderLetterIn 0.25s ease-out 1.1s forwards;
}

.loader-wordmark .lw-char {
    opacity: 0;
    transform: translateY(12px);
    display: inline-block;
    animation: loaderLetterIn 0.22s ease-out forwards;
}

/* delays em cascata — 10 letras de "visualcore" após o ponto */
.lw-c0  { animation-delay: 1.18s; }
.lw-c1  { animation-delay: 1.26s; }
.lw-c2  { animation-delay: 1.34s; }
.lw-c3  { animation-delay: 1.42s; }
.lw-c4  { animation-delay: 1.50s; }
.lw-c5  { animation-delay: 1.58s; }
.lw-c6  { animation-delay: 1.66s; }
.lw-c7  { animation-delay: 1.74s; }
.lw-c8  { animation-delay: 1.82s; }
.lw-c9  { animation-delay: 1.90s; }

@keyframes loaderLetterIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Cursor piscante no fim do texto */
.loader-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #33FFEB;
    margin-left: 3px;
    vertical-align: middle;
    opacity: 0;
    animation:
        loaderFadeIn   0.1s ease-out 1.95s forwards,
        loaderCursorBlink 0.7s step-end  2.1s infinite;
}
@keyframes loaderCursorBlink {
    0%,100% { opacity: 1; }
    50%     { opacity: 0; }
}

/* Sidenav Theme Support */
.sidenav {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Stats Section Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat-icon {
    background: rgba(51, 255, 235, 0.15); /* Brighter cyan background for dark theme */
}

.stat-icon i {
    font-size: 30px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

[data-theme="dark"] .stat-icon i {
    color: var(--accent-cyan); /* Bright cyan icon for dark theme */
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.sidenav li > a {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidenav li > a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidenav li > a > i,
.sidenav li > a > i.material-icons {
    color: var(--text-muted) !important;
}

/* Dark Mode Sidenav Specifics */
[data-theme="dark"] .sidenav li > a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Image Effects */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10;
    margin-top: 20px;
}

/* Ensure wrapper doesn't overflow or cause scroll issues on mobile if too big */
@media (max-width: 600px) {
    .hero-image-wrapper {
        margin-top: 40px;
        transform: scale(0.9);
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: heroFloat 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-lottie {
    position: relative;
    z-index: 2;
    animation: heroFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-image:hover, .hero-lottie:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.3) 0%, rgba(6, 43, 68, 0) 70%);
    z-index: 1;
    filter: blur(30px);
    border-radius: 50%;
    animation: heroPulse 5s ease-in-out infinite alternate;
    pointer-events: none;
}

[data-theme="dark"] .hero-backdrop {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes heroFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes heroPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

/* ============================================
   Hero SVG — Marca se desenhando (self-draw)
   ============================================ */

.hero-icon-svg {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* flutua suavemente após o desenho terminar */
    animation: heroFloat 6s ease-in-out 3.8s infinite;
}

.vc-hero-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 12px rgba(51, 255, 235, 0.15));
}

/*
 * Círculo grande: circunferência ≈ 2π × 148 ≈ 930px
 * Traça do início: dashoffset vai de 930 → 0
 */
.vc-draw-big {
    stroke-dasharray: 930;
    stroke-dashoffset: 930;
    animation: vcDrawBig 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes vcDrawBig {
    to { stroke-dashoffset: 0; }
}

/*
 * Círculo pequeno: circunferência ≈ 2π × 55 ≈ 346px
 * Começa após o grande terminar (~1.9s total)
 */
.vc-draw-small {
    stroke-dasharray: 346;
    stroke-dashoffset: 346;
    animation: vcDrawSmall 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.9s forwards;
}

@keyframes vcDrawSmall {
    to { stroke-dashoffset: 0; }
}

/* Fills surgem em fade após o respectivo traço terminar */
.vc-fill-big {
    opacity: 0;
    animation: vcFadeIn 0.8s ease-out 1.6s forwards;
}

.vc-fill-small {
    opacity: 0;
    animation: vcFadeIn 0.6s ease-out 2.7s forwards;
}

@keyframes vcFadeIn {
    to { opacity: 1; }
}

/* Partículas aparecem depois que tudo foi desenhado */
.vc-particle {
    opacity: 0;
    animation: vcParticleFade 3.2s ease-in-out infinite;
}

/* stagger de entrada: começam após ~3.2s */
.vc-p1 { animation-delay: 3.2s; animation-duration: 3.4s; }
.vc-p2 { animation-delay: 3.6s; animation-duration: 4.2s; }
.vc-p3 { animation-delay: 3.9s; animation-duration: 3.8s; }
.vc-p4 { animation-delay: 4.3s; animation-duration: 5.1s; }
.vc-p5 { animation-delay: 3.5s; animation-duration: 4.6s; }

@keyframes vcParticleFade {
    0%   { opacity: 0;   transform: translateY(0); }
    40%  { opacity: 0.7; transform: translateY(-9px); }
    100% { opacity: 0;   transform: translateY(0); }
}

/* Pulso suave contínuo no círculo grande após o desenho */
.vc-draw-big {
    animation:
        vcDrawBig 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
        vcStrokePulse 4s ease-in-out 3.8s infinite;
}

@keyframes vcStrokePulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.55; }
    100% { opacity: 1; }
}

/* ============================================
   Seção Produtos — cards no index.html
   ============================================ */

.products-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
}

.product-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(51,255,235,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-icon i {
    font-size: 34px;
    color: var(--primary-blue);
}

[data-theme="dark"] .product-card-icon i {
    color: var(--accent-cyan);
}

.product-card-body {
    min-width: 0;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--title-color);
    margin: 0;
}

.product-badge {
    display: inline-block;
    background: var(--accent-cyan);
    color: #062B44;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 50px;
}

.product-card-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.product-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag-chip {
    display: inline-block;
    background: rgba(6,43,68,0.07);
    color: var(--title-color);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

[data-theme="dark"] .product-tag-chip {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.product-card-cta {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .product-card {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
    }
    .product-card-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .product-card {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 20px;
    }
    .product-card-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .product-card-icon i { font-size: 26px; }
    .product-card-name { font-size: 1.25rem; }
}
