/* ==========================================================================
   DESIGN SYSTEM - NEURAL ASSET STRATEGY
   Elite B2B Executive Consulting Theme (Dark, High-Tech, Minimalist)
   ========================================================================== */

/* Google Font Import - outfit for headings, inter for body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark-base: #030712;
    --bg-dark-deep: #070a13;
    --bg-dark-card: rgba(12, 16, 28, 0.75);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(84, 210, 247, 0.3);
    
    --accent-blue-electric: #54d2f7;
    --accent-blue-deep: #0284c7;
    --accent-blue-glow: rgba(84, 210, 247, 0.15);
    
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
    
    /* Animation System */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-base);
    color: var(--color-text-primary);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-electric);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ==========================================================================
   BACKGROUND VISUAL EFFECTS (Grid overlay & Neural Canvas)
   ========================================================================== */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        radial-gradient(var(--bg-dark-base) 20%, transparent 20%),
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
    background-size: 24px 24px, 24px 24px;
    background-position: 0 0, 12px 12px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(3, 7, 18, 0.85);
    border-bottom: 1px solid rgba(84, 210, 247, 0.1);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem; /* Visual safety gap to ensure separation */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 110;
}

.logo-icon {
    transition: var(--transition-smooth);
}

.logo-wrapper:hover .logo-icon {
    transform: rotate(90deg);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-white) 60%, var(--accent-blue-electric) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem; /* Generous equal spacing between all menu items */
    margin: 0 auto; /* Centers the navigation menu perfectly in the header space */
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue-electric);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-nav {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    background: rgba(84, 210, 247, 0.1);
    color: var(--accent-blue-electric);
    border: 1px solid rgba(84, 210, 247, 0.2);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-nav:hover {
    background: var(--accent-blue-electric);
    color: var(--bg-dark-base);
    box-shadow: 0 0 20px rgba(84, 210, 247, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none !important;
    }
    
    .btn-nav {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex !important;
    }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-quick);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.mobile-nav-link:hover {
    color: var(--accent-blue-electric);
}

.btn-drawer {
    font-size: 1rem !important;
    padding: 1rem 2rem !important;
    border: 1px solid var(--accent-blue-electric) !important;
    color: var(--accent-blue-electric) !important;
    border-radius: 4px;
    margin-top: 1rem;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.1rem 2.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-blue-electric);
    color: var(--bg-dark-base);
    border: 1px solid var(--accent-blue-electric);
    box-shadow: 0 4px 20px rgba(84, 210, 247, 0.15);
}

.btn-primary:hover {
    background: var(--accent-blue-deep);
    border-color: var(--accent-blue-deep);
    box-shadow: 0 4px 30px rgba(84, 210, 247, 0.45);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: var(--transition-quick);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    z-index: 10;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 650px;
    background-image: url('assets/company-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12; /* Ajustada a opacidade para trabalhar com o mix-blend-mode */
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen; /* Elimina 100% dos fundos pretos/quadrados da imagem, fundindo apenas o brilho */
    filter: brightness(0.9) contrast(1.5) drop-shadow(0 0 35px rgba(84, 210, 247, 0.45)) blur(1px);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 48%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 48%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(84, 210, 247, 0.04);
    border: 1px solid rgba(84, 210, 247, 0.15);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(84, 210, 247, 0.15), transparent);
    animation: badge-shine 3s infinite linear;
}

@keyframes badge-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue-electric);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 2rem;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue-electric) 0%, var(--accent-blue-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(84, 210, 247, 0.15);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin-bottom: 3.5rem;
    font-weight: 400;
    line-height: 1.7;
}

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

/* ==========================================================================
   EXPERTISE SECTION (Nossos Serviços)
   ========================================================================== */
.expertise-section {
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue-electric);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 4rem;
    max-width: 600px;
}

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

/* Cards system */
.service-card {
    position: relative;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card.card-large {
    grid-column: span 2;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--x, 0px) var(--y, 0px), rgba(84, 210, 247, 0.05), transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(84, 210, 247, 0.2), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.7),
        0 0 40px -10px rgba(84, 210, 247, 0.1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 5;
}

.service-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(84, 210, 247, 0.05);
    border: 1px solid rgba(84, 210, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-bg {
    background: var(--accent-blue-electric);
    border-color: var(--accent-blue-electric);
    box-shadow: 0 0 15px rgba(84, 210, 247, 0.4);
}

.service-icon {
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    stroke: var(--bg-dark-base);
}

.service-pattern, .service-pattern-mini {
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.service-card:hover .service-pattern {
    transform: rotate(30deg) scale(1.1);
    opacity: 0.8;
}

.service-content {
    position: relative;
    z-index: 5;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.service-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.feat-icon {
    flex-shrink: 0;
}

.card-visual {
    margin-top: 2rem;
    border-radius: 6px;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-svg {
    overflow: visible;
}

.stats-badges-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: auto;
}

.stat-badge {
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-badge.highlight {
    border-color: rgba(84, 210, 247, 0.15);
    background: rgba(84, 210, 247, 0.02);
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue-electric);
}

.stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   ECOSYSTEM ARCHITECTURE SECTION
   ========================================================================== */
.architecture-section {
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark-base);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.architecture-content {
    display: flex;
    flex-direction: column;
}

.architecture-lead {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.architecture-lead strong {
    color: var(--color-white);
}

.architecture-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.arch-feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.arch-feature-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(84, 210, 247, 0.04);
    border: 1px solid rgba(84, 210, 247, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.arch-feature-item:hover .arch-feature-icon-bg {
    background: rgba(5, 150, 105, 0.1);
    border-color: #059669;
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
}

.arch-feature-item:hover .arch-feature-icon-bg svg {
    stroke: #34d399;
}

.arch-feature-text h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.arch-feature-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Architecture Visual Side */
.architecture-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.architecture-glow-box {
    position: relative;
    width: 100%;
    max-width: 620px;
    border-radius: 12px;
}

/* Advanced Ambient Glowing Layer */
.arch-glow-cyan {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 210, 247, 0.08) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    z-index: 1;
    pointer-events: none;
    filter: blur(10px);
}

.arch-glow-emerald {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    z-index: 1;
    pointer-events: none;
    filter: blur(10px);
}

.architecture-card {
    position: relative;
    z-index: 2;
    background: rgba(12, 16, 28, 0.85);
    border: 1px solid rgba(84, 210, 247, 0.15);
    border-radius: 12px;
    box-shadow: 
        0 30px 60px -25px rgba(0, 0, 0, 0.85),
        0 0 40px -15px rgba(84, 210, 247, 0.1);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.architecture-card:hover {
    border-color: rgba(52, 211, 153, 0.35); /* Emerald tint on hover */
    box-shadow: 
        0 40px 80px -30px rgba(0, 0, 0, 0.9),
        0 0 50px -10px rgba(5, 150, 105, 0.15);
    transform: translateY(-4px);
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    background: rgba(8, 11, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.window-dots {
    display: flex;
    gap: 0.45rem;
}

.window-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.window-dots .dot.red { background-color: #ef4444; opacity: 0.75; }
.window-dots .dot.yellow { background-color: #f59e0b; opacity: 0.75; }
.window-dots .dot.green { background-color: #10b981; opacity: 0.75; }

.window-title {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.badge-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34d399; /* Emerald */
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.btn-toggle-filter {
    background: rgba(84, 210, 247, 0.08);
    border: 1px solid rgba(84, 210, 247, 0.2);
    color: var(--accent-blue-electric);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-quick);
}

.btn-toggle-filter:hover {
    background: var(--accent-blue-electric);
    color: var(--bg-dark-base);
    box-shadow: 0 0 10px rgba(84, 210, 247, 0.3);
}

.architecture-img-container {
    padding: 2rem;
    background: #080c14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.architecture-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(3, 7, 18, 0.4) 100%);
    pointer-events: none;
    z-index: 3;
}

.architecture-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    z-index: 2;
    transition: var(--transition-smooth);
    
    /* Elegant filter: brightness, contrast, hue-rotation, saturation to blend perfectly */
    filter: brightness(0.95) contrast(1.05) saturate(1.1) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.architecture-img.inverted {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(1.1) saturate(1.2) drop-shadow(0 4px 12px rgba(0,0,0,0.5)) !important;
}

.architecture-card:hover .architecture-img {
    filter: brightness(1.02) contrast(1.1) saturate(1.2) drop-shadow(0 8px 24px rgba(84, 210, 247, 0.2));
    transform: scale(1.015);
}

.architecture-card:hover .architecture-img.inverted {
    filter: invert(0.9) hue-rotate(180deg) brightness(1.05) contrast(1.2) saturate(1.3) drop-shadow(0 8px 24px rgba(84, 210, 247, 0.3)) !important;
}

.card-footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    background: rgba(8, 11, 20, 0.95);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-icon {
    animation: beacon-pulse 2s infinite ease-in-out;
}

@keyframes beacon-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Lightbox Modal System */
.arch-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    z-index: 1010;
    width: 90%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-quick);
}

.lightbox-close:hover {
    color: var(--accent-blue-electric);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
    background: #080c14;
    padding: 1.5rem;
}

.lightbox-image.inverted {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(1.1) saturate(1.2) !important;
}

.lightbox-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: center;
}

/* ==========================================================================
   ABOUT FOUNDER SECTION (Sobre o Daniel)
   ========================================================================== */
.about-section {
    position: relative;
    z-index: 10;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1.05;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

.portrait-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 50%, rgba(84, 210, 247, 0.12), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.portrait-frame {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(10%) contrast(1.05);
    transition: var(--transition-smooth);
}

.portrait-card:hover .portrait-image {
    filter: grayscale(0%) contrast(1.02);
    transform: scale(1.02);
}

.portrait-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.7) 50%, transparent 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.overlay-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue-electric);
}

.overlay-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-description strong {
    color: var(--color-white);
}

.credentials-box {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cred-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cred-icon-bg {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(84, 210, 247, 0.05);
    border: 1px solid rgba(84, 210, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cred-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cred-details strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.cred-details span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.btn-linkedin {
    align-self: flex-start;
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border: 1px solid rgba(10, 102, 194, 0.2);
    font-size: 0.85rem;
    padding: 0.9rem 1.8rem;
}

.btn-linkedin:hover {
    background: #0a66c2;
    color: var(--color-white);
    border-color: #0a66c2;
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.3);
    transform: translateY(-2px);
}

.linkedin-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */
.stack-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, var(--bg-dark-base) 0%, rgba(7, 10, 19, 0.6) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
    text-align: center;
}

.stack-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
}

.stack-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.stack-tag:hover {
    background: rgba(84, 210, 247, 0.03);
    border-color: var(--accent-blue-electric);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px -5px rgba(84, 210, 247, 0.3);
}

/* ==========================================================================
   INTERACTIVE DIRECTORY DETAILS MODAL
   ========================================================================== */
.directory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 580px;
    z-index: 2;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-glow-border {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--accent-blue-electric) 0%, rgba(84, 210, 247, 0.1) 40%, rgba(5, 150, 105, 0.1) 60%, #059669 100%);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.modal-card {
    position: relative;
    background: var(--bg-dark-deep);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 3rem;
    z-index: 2;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-quick);
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--accent-blue-electric);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue-electric);
    background: rgba(84, 210, 247, 0.08);
    border: 1px solid rgba(84, 210, 247, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.modal-badge.concept {
    color: #34d399;
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
}

.modal-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-white);
}

.modal-body {
    margin-bottom: 2.5rem;
}

.modal-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.modal-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.5rem;
}

.modal-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue-electric);
}

.modal-badge.concept ~ .modal-body .stat-value {
    color: #34d399;
}

.modal-action-btn {
    width: 100%;
    padding: 1rem 2rem !important;
}

/* Styles for directory subtitles */
.stack-section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stack-section-heading.secondary-heading {
    margin-top: 3.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-card {
        padding: 2rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   CONTACT SECTION (Lead Capture)
   ========================================================================== */
.contact-section {
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark-deep);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 3.5rem;
    max-width: 480px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
}

.channel-link:not(.static):hover {
    color: var(--accent-blue-electric);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.channel-link:not(.static):hover .icon-circle {
    border-color: var(--accent-blue-electric);
    background: rgba(84, 210, 247, 0.05);
    box-shadow: 0 0 10px rgba(84, 210, 247, 0.2);
}

.channel-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-form-wrapper {
    position: relative;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.form-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(84, 210, 247, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.lead-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transition: var(--transition-smooth);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
}

.form-input, .form-textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: var(--color-white);
    transition: var(--transition-quick);
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue-electric);
    background: rgba(3, 7, 18, 0.8);
    box-shadow: 0 0 15px rgba(84, 210, 247, 0.15);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    border: none;
}

/* Success State Styles */
.form-success-message {
    position: relative;
    width: 100%;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.form-success-message.active {
    display: flex;
    animation: success-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes success-fade-in {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.success-graphic-container {
    width: 100%;
    max-width: 320px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(84, 210, 247, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(84, 210, 247, 0.1);
}

.success-graphic {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.form-success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.form-success-message p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 380px;
}

.btn-reset-form {
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark-base);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 6rem 0 3rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-link:hover {
    color: var(--accent-blue-electric);
    transform: translateX(2px);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-quick);
}

.social-icon:hover {
    border-color: var(--accent-blue-electric);
    background: rgba(84, 210, 247, 0.05);
    color: var(--accent-blue-electric);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.powered {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.powered a {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.powered a:hover {
    color: var(--accent-blue-electric);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 300px;
    background: rgba(12, 16, 28, 0.95);
    border: 1px solid var(--accent-blue-electric);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(84, 210, 247, 0.1);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    animation: toast-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes toast-slide-in {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.removing {
    animation: toast-slide-out 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-out {
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   ANIMATIONS & REVEAL CLASSES (JS Triggered)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes reveal-fade {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* Medium Devices (Tablets, small laptops) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .grid-2-col {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.card-large {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Small Devices (Mobile, portrait) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .btn-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .portrait-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .section-title {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .cred-item {
        text-align: left;
    }
    
    .btn-linkedin {
        align-self: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-subtitle {
        max-width: 100%;
    }
    
    .contact-channels {
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .brand-tagline {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   WHATSAPP NEURAL AGENT WIDGET
   ========================================================================== */
.whatsapp-agent-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

/* Floating button */
.wa-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(84, 210, 247, 0.2);
    box-shadow: 
        0 10px 30px -5px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(84, 210, 247, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    position: relative;
    transition: var(--transition-smooth);
    z-index: 1001;
    outline: none;
}

.wa-floating-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 
        0 15px 35px -5px rgba(16, 185, 129, 0.6),
        0 0 25px rgba(84, 210, 247, 0.2);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.wa-btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: wa-pulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark-base);
    animation: wa-bounce 1s infinite alternate;
}

@keyframes wa-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

.wa-icon {
    transition: var(--transition-smooth);
}

/* Chat Window */
.wa-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    border-radius: 12px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(84, 210, 247, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.wa-chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Chat Header */
.wa-chat-header {
    background: linear-gradient(90deg, #070a13 0%, rgba(12, 16, 28, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wa-header-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(84, 210, 247, 0.05);
    border: 1px solid rgba(84, 210, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-avatar-svg {
    stroke: var(--accent-blue-electric);
}

.wa-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #070a13;
}

.wa-header-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wa-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.wa-header-info span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.wa-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wa-btn-settings, .wa-btn-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.wa-btn-settings:hover, .wa-btn-close:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.wa-btn-close:hover {
    color: #ef4444;
}

/* Chat Messages */
.wa-chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(3, 7, 18, 0.4);
}

.wa-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.wa-msg-received {
    align-self: flex-start;
}

.wa-msg-sent {
    align-self: flex-end;
}

.wa-msg-bubble {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
}

.wa-msg-received .wa-msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border-top-left-radius: 2px;
}

.wa-msg-received .wa-msg-bubble strong {
    color: var(--color-white);
}

.wa-msg-sent .wa-msg-bubble {
    background: var(--accent-blue-electric);
    color: var(--bg-dark-base);
    font-weight: 500;
    border-top-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(84, 210, 247, 0.15);
}

.wa-msg-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.4rem;
    text-align: right;
}

.wa-msg-received .wa-msg-time {
    color: var(--color-text-muted);
}

.wa-msg-sent .wa-msg-time {
    color: rgba(3, 7, 18, 0.6);
}

/* Typing indicator */
.wa-typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.4rem 0;
}

.wa-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: wa-typing 1.4s infinite ease-in-out;
}

.wa-typing-dot:nth-child(1) { animation-delay: 0s; }
.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

/* Input Area */
.wa-chat-input-area {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#wa-chat-input {
    flex-grow: 1;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-quick);
}

#wa-chat-input:focus {
    border-color: var(--accent-blue-electric);
    box-shadow: 0 0 10px rgba(84, 210, 247, 0.1);
}

#wa-btn-send {
    background: var(--accent-blue-electric);
    border: none;
    color: var(--bg-dark-base);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-quick);
    flex-shrink: 0;
}

#wa-btn-send:hover {
    background: var(--accent-blue-deep);
    transform: scale(1.05);
}

/* Settings Overlay */
.wa-settings-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0b101b;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 1010;
}

.wa-settings-overlay.active {
    transform: translateY(0);
}

.wa-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-settings-header h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

.wa-settings-close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.wa-settings-overlay p {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.wa-key-input-row {
    display: flex;
    gap: 0.5rem;
}

.wa-key-input-row .form-input {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    flex-grow: 1;
}

.wa-key-input-row .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.wa-settings-help {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.wa-settings-help a {
    color: var(--accent-blue-electric);
    text-decoration: underline;
}


/* ==========================================================================
   COMPANY LOGO STYLING (Auto-Themed with Rotating Conic Gradient Ring)
   ========================================================================== */
.logo-circle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    z-index: 1;
}

.logo-circle-container::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--accent-blue-electric) 25%,
        transparent 50%,
        var(--accent-blue-electric) 75%,
        transparent 100%
    );
    animation: rotate-gradient 3.5s linear infinite;
    z-index: 2;
    border-radius: 50%;
}

.logo-circle-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark-base);
    border-radius: 50%;
    z-index: 3;
    transition: var(--transition-smooth);
}

.company-logo {
    position: relative;
    z-index: 4;
    height: 22px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: lighten;
    display: block;
    margin: 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Scroll adjustments */
.main-header.scrolled .logo-circle-container {
    width: 38px;
    height: 38px;
    padding: 2px;
}

.main-header.scrolled .logo-circle-container::after {
    inset: 1.5px;
}

.main-header.scrolled .company-logo {
    height: 18px;
}

/* Hover micro-interactions */
.logo-wrapper:hover .logo-circle-container {
    border-color: rgba(84, 210, 247, 0.35);
    box-shadow: 0 0 15px rgba(84, 210, 247, 0.25);
    transform: scale(1.05);
}

.logo-wrapper:hover .logo-circle-container::before {
    animation-duration: 1.5s; /* Accelerates gradient spin speed on hover! */
}

.logo-wrapper:hover .company-logo {
    transform: scale(1.04);
    filter: brightness(1.25) contrast(1.1);
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   BILINGUAL LANGUAGE TOGGLE SWITCH (PT/EN)
   ========================================================================== */
.lang-toggle-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 80px;
    height: 32px;
    transition: var(--transition-smooth);
}

.lang-toggle-container:hover {
    border-color: rgba(84, 210, 247, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(84, 210, 247, 0.05);
}

.lang-toggle-track {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.lang-option {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-muted);
    transition: var(--transition-quick);
}

.lang-option.active {
    color: var(--bg-dark-base);
}

.lang-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 26px;
    background: var(--accent-blue-electric);
    border-radius: 16px;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(84, 210, 247, 0.3);
}

.lang-toggle-container.en .lang-toggle-thumb {
    left: 40px;
}

/* Mobile responsive alignment in header and drawer */
.header-actions .lang-toggle-container {
    margin-left: 2.5rem;
    margin-right: 0.25rem;
}

.mobile-nav .lang-toggle-container {
    margin-bottom: 1.5rem;
    width: 100px;
    height: 36px;
}

.mobile-nav .lang-toggle-thumb {
    width: 46px;
    height: 30px;
}

.mobile-nav .lang-toggle-container.en .lang-toggle-thumb {
    left: 50px;
}

.mobile-nav .lang-option {
    font-size: 0.85rem;
}

/* Custom Header Responsiveness to prevent breaks on intermediate screens */
@media (max-width: 1200px) and (min-width: 992px) {
    .desktop-nav {
        gap: 1.25rem; /* Spacious but compact gap on medium screens */
        margin: 0 auto; /* Keep it perfectly centered in the layout */
    }
    
    .nav-link {
        font-size: 0.75rem; /* Make navigation text slightly smaller to fit perfectly */
    }
    
    .logo-text {
        font-size: 1.15rem; /* Slightly scale down logo text size */
    }
    
    .btn-nav {
        padding: 0.6rem 1.1rem; /* Compact padding for button */
        font-size: 0.75rem;
    }
    
    .header-actions .lang-toggle-container {
        margin-left: 1rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
}

/* ==========================================================================
   LEGAL TABS & SCROLLABLE BODY (LGPD MODAL)
   ========================================================================== */
.legal-card {
    padding: 2.5rem 3rem 2rem 3rem !important;
}

.legal-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.legal-tab-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-quick);
}

.legal-tab-btn:hover {
    color: var(--accent-blue-electric);
}

.legal-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue-electric);
    transition: var(--transition-smooth);
}

.legal-tab-btn.active {
    color: var(--color-white);
}

.legal-tab-btn.active::after {
    width: 100%;
}

.legal-scrollable-body {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 1rem;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    text-align: left;
    color: var(--color-text-secondary);
}

/* Custom Scrollbar for Legal Body */
.legal-scrollable-body::-webkit-scrollbar {
    width: 4px;
}

.legal-scrollable-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

.legal-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(84, 210, 247, 0.15);
    border-radius: 10px;
}

.legal-scrollable-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-electric);
}

.legal-scrollable-body h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.legal-scrollable-body p {
    margin-bottom: 1rem;
}

.legal-scrollable-body ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.legal-scrollable-body li {
    margin-bottom: 0.5rem;
    list-style-type: square;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   LEGAL MODAL (Terms of Use & Privacy Policy / LGPD)
   ========================================================================== */

/* Tab navigation */
.legal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.legal-tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-quick);
    white-space: nowrap;
}

.legal-tab-btn:hover {
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.legal-tab-btn.active {
    color: var(--accent-blue-electric);
    border-color: rgba(84, 210, 247, 0.25);
    background: rgba(84, 210, 247, 0.06);
}

/* Scrollable content area */
.legal-scrollable-body {
    overflow-y: auto;
    max-height: 340px;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(84, 210, 247, 0.2) transparent;
}

.legal-scrollable-body::-webkit-scrollbar {
    width: 4px;
}

.legal-scrollable-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(84, 210, 247, 0.2);
    border-radius: 2px;
}

/* Typography inside legal content */
.legal-scrollable-body h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-scrollable-body h4:first-child {
    margin-top: 0;
}

.legal-scrollable-body p {
    font-size: 0.83rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.legal-scrollable-body ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-scrollable-body ul li {
    font-size: 0.83rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.35rem;
    list-style-type: disc;
}

.legal-scrollable-body ul li strong {
    color: var(--color-text-primary);
}

.legal-scrollable-body a {
    color: var(--accent-blue-electric);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-update-date {
    margin-top: 1.5rem;
    font-size: 0.75rem !important;
    color: var(--color-text-muted) !important;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

/* Wider modal card for legal content */
.legal-card {
    max-width: 620px !important;
    width: 100% !important;
}

/* ==========================================================================
   COOKIE & LGPD CONSENT BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 90%;
    max-width: 420px;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 140;
    transform: translateY(150px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    overflow: hidden;
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(84, 210, 247, 0.25) 0%, transparent 40%, transparent 60%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.cookie-banner-content {
    position: relative;
    z-index: 2;
}

.cookie-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
    text-align: left;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cookie-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.cookie-btn.opt-out {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
}

.cookie-btn.opt-out:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.cookie-btn.opt-in {
    background: rgba(84, 210, 247, 0.1);
    border: 1px solid rgba(84, 210, 247, 0.2);
    color: var(--accent-blue-electric);
}

.cookie-btn.opt-in:hover {
    background: var(--accent-blue-electric);
    color: var(--bg-dark-base);
    box-shadow: 0 0 15px rgba(84, 210, 247, 0.35);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 1rem;
        right: 5%;
        width: 90%;
        max-width: none;
    }
}

/* ==========================================================================
   SMARTPHONE RESPONSIVENESS — Full mobile optimization
   Covers: iPhone SE (375px) → iPhone Pro Max (430px) → Android (360–480px)
   ========================================================================== */

/* ── Chat Widget: Full-screen on mobile ── */
@media (max-width: 600px) {
    /* Widget container positioned to leave room for safe area */
    .whatsapp-agent-widget {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* Floating button slightly smaller so it doesn't dominate the view */
    .wa-floating-btn {
        width: 52px;
        height: 52px;
    }

    .wa-icon {
        width: 24px;
        height: 24px;
    }

    /* Chat window: fills the screen, floats above content cleanly */
    .wa-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        height: 100dvh; /* Dynamic viewport height — accounts for browser chrome on iOS */
        border-radius: 0;
        z-index: 9999;
        transform: translateY(100%);
    }

    .wa-chat-window.active {
        transform: translateY(0);
    }

    /* Header inside chat slightly more compact */
    .wa-chat-header {
        padding: 1rem 1.25rem;
        padding-top: max(1rem, env(safe-area-inset-top)); /* iOS safe area support */
    }

    .wa-header-info h4 {
        font-size: 0.9rem;
    }

    .wa-header-info span {
        font-size: 0.7rem;
    }

    /* Messages area gets maximum vertical space */
    .wa-chat-messages {
        flex: 1;
        padding: 1rem;
        gap: 1rem;
    }

    /* Bubbles slightly smaller font for density */
    .wa-msg-bubble {
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
    }

    /* Input area fixed to the bottom, above system navigation */
    .wa-chat-input-area {
        padding: 0.85rem 1rem;
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    }

    #wa-chat-input {
        font-size: 0.9rem; /* Prevents iOS zoom on focus (must be ≥16px in some cases) */
        font-size: 16px;
    }
}

/* ── Header: compact for phones ── */
@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }

    .main-header {
        height: 64px;
    }

    .logo-circle-container {
        width: 36px;
        height: 36px;
    }

    .company-logo {
        height: 18px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    /* Language toggle on small screens — tighter */
    .lang-toggle-container {
        width: 80px;
    }
}

/* ── Hero Section: scale headline and watermark ── */
@media (max-width: 600px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* Watermark logo smaller so it doesn't compete with text on small screen */
    .hero-section::before {
        width: 320px;
        height: 320px;
        opacity: 0.09;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .badge-wrapper {
        margin-bottom: 1.75rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 0.85rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ── Section headings and cards ── */
@media (max-width: 600px) {
    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .portrait-card {
        max-width: 280px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .modal-card {
        padding: 1.5rem;
        margin: 0.75rem;
    }

    /* Legal modal */
    .legal-card {
        padding: 1.5rem !important;
    }

    .legal-scrollable-body {
        max-height: 260px;
    }
}

/* ── Cookie banner — tighter on very small phones ── */
@media (max-width: 380px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-text {
        font-size: 0.78rem;
    }

    .cookie-btn {
        font-size: 0.68rem;
        padding: 0.45rem 0.85rem;
    }
}

/* ── Extra small: iPhone SE, older Androids ── */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .wa-floating-btn {
        width: 48px;
        height: 48px;
    }

    .whatsapp-agent-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

