/* ARQUIVO: assets/css/style.css */

:root {
    --bg-main: #090c15;
    --bg-deep: #05070d;
    --bg-secondary: #111827;
    --bg-panel: rgba(17, 24, 39, 0.66);
    --bg-panel-strong: rgba(17, 24, 39, 0.82);
    --bg-soft: rgba(255, 255, 255, 0.04);
    --bg-card: rgba(17, 24, 39, 0.62);
    --bg-card-soft: rgba(255, 255, 255, 0.035);
    --primary: #8b5cf6;
    --primary-strong: #7c3aed;
    --primary-hover: #7c3aed;
    --primary-soft: rgba(139, 92, 246, 0.14);
    --primary-glow: rgba(139, 92, 246, 0.34);
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.12);
    --secondary: #22d3ee;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --border-subtle: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(139, 92, 246, 0.28);
    --border-primary: rgba(139, 92, 246, 0.28);
    --glass-bg: rgba(17, 24, 39, 0.65);
    --glass-bg-soft: rgba(255, 255, 255, 0.04);
    --blur-glass: blur(18px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.20);
    --shadow-card: 0 20px 55px rgba(0, 0, 0, 0.38);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background:
        radial-gradient(circle at 16% 10%, rgba(139, 92, 246, 0.16), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(34, 211, 238, 0.09), transparent 26%),
        linear-gradient(135deg, #05070d 0%, #090c15 44%, #0b1020 100%);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 44%, transparent 88%);
    opacity: 0.24;
}

h1, h2, h3, h4, .btn-primary, .btn-secondary, .navbar, .floating-nav {
    font-family: 'Poppins', 'Roboto', sans-serif;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: #05080f;
}

/* Componentes Universais */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .badge {
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 2.2rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    display: table;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Utilitários */
.w-100 { width: 100%; justify-content: center; }
.mt-auto { margin-top: auto; }
.mt-4 { margin-top: 1.5rem; }
.text-highlight { color: var(--primary); font-weight: 600; }

/* Navbar principal: a versão final fica no bloco de redesign no fim do arquivo. */
#header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    background: transparent;
}

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

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(9, 12, 21, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem; 
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-text .highlight {
    background: linear-gradient(120deg, #f8fafc, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.8;
}

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

.hero-specialties {
    display: flex;
    gap: 0.8rem;
    margin-top: 2.5rem;
    flex-wrap: nowrap; 
}

.specialty-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1rem;
    border-radius: 50px; 
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 0.8rem; 
    font-weight: 500;
    white-space: nowrap; 
    transition: var(--transition);
}

.specialty-item i {
    color: var(--primary);
    font-size: 1rem;
}

.specialty-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end; 
}

.image-frame img {
    width: 100%;
    max-width: 480px; 
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5); 
}

/* =========================================
   SEÇÃO SOBRE E SKILLS (GLASSMORPHISM)
   ========================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.glass-panel {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    height: 100%;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.1);
}

.bio-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.bio-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-card strong {
    color: var(--primary);
    font-weight: 600;
}

.bio-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-num {
    font-size: 2.2rem;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1;
}

.stat-num i {
    color: var(--primary);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.skills-card {
    display: flex;
    flex-direction: column;
}

.modern-tabs-wrapper {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.modern-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.modern-tabs {
    display: flex;
    width: max-content;
    min-width: 100%;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: white;
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skills-content {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
    width: 100%;
}

.tab-pane.active {
    display: block;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item i {
    font-size: 2.8rem;
    transition: transform 0.3s;
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.premium-hover:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
}
.premium-hover:hover span { color: var(--text-main); }

.db-hover:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}

.infra-hover:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.1);
}

.tools-hover:hover {
    background: rgba(236, 72, 153, 0.05);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.1);
}

/* =========================================
   SEÇÃO DE SERVIÇOS (PREMIUM GLASS)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(15, 19, 31, 0.6); /* Fundo escuro premium */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borda super sutil */
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: rgba(139, 92, 246, 0.08); /* Fundo do ícone */
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1; /* Faz o cartão esticar para todos terem a mesma altura */
}

/* Efeito Hover (Glow Roxo Premium) */
.service-card:hover {
    transform: translateY(-8px);
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.service-card:hover i {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

/* =========================================
   PORTFÓLIO (LIVE SCROLL EFFECT)
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(15, 19, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Container do Efeito Live */
.project-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.project-img-scroll {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: background-position 4s ease-in-out; /* Velocidade do scroll */
}

/* Quando passa o mouse, a imagem "desce" até o fim */
.project-card:hover .project-img-scroll {
    background-position: bottom center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    background: white;
    color: black;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .view-project {
    transform: translateY(0);
}

/* Detalhes do Projeto */
.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.cat-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.internal-tag {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.link-btn {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-btn:hover {
    color: white;
    transform: translateX(5px);
}

/* Fallback do markup antigo (caso ainda use .project-img com <img>) */
.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
}

.project-links a {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.status-tag {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 500;
}

.project-card.show {
    animation: fadeIn 0.5s ease forwards;
}

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

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    font-family: serif;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.client-header img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.client-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.client-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* =========================================
   FAQ (GLASSMORPHISM PREMIUM)
   ========================================= */
.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: rgba(15, 19, 31, 0.6); /* Fundo escuro vítreo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05); /* Leve brilho no hover */
}

.faq-question span i {
    margin-right: 12px;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
}

.toggle-icon {
    color: var(--text-muted);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 2rem 1.8rem 2rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-answer strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Estado Ativo (Quando a aba é aberta) */
.faq-item.active {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.15);
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 400px; /* Altura suficiente para o texto caber */
}

/* =========================================
   CONTATO (VISUAL PREMIUM E GLASSMORPHISM)
   ========================================= */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* Coluna da Esquerda: Informações */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(15, 19, 31, 0.6); /* Fundo escuro vítreo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.15);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--primary);
}

/* Coluna da Direita: Formulário Premium */
.contact-form {
    background: rgba(15, 19, 31, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.3); /* Fundo dos inputs mais escuro */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.5); /* Cor suave para os placeholders */
}

.contact-form input:hover, 
.contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1); /* Anel de foco roxo */
}

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

.contact-form .btn-primary {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

/* =========================================
   FOOTER GERAL
   ========================================= */
#main-footer {
    background-color: #030408;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 6rem;
    text-align: left;
}

.footer-cta {
    background: linear-gradient(135deg, #090c15 0%, #171131 100%);
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-middle {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 70px; 
    width: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.brand-desc {
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.8;
}

.footer-nav h4, .footer-contact h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: block;
    text-align: left;
}

.footer-nav h4::after, .footer-contact h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-nav ul li, .footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-nav a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.footer-contact li {
    gap: 15px;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    justify-content: flex-start;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.footer-bottom {
    background-color: #020305;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   ELEMENTOS FLUTUANTES E MODAIS
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    z-index: 2000;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 12, 21, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-secondary);
    width: 90%;
    max-width: 850px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    height: 65vh;
    background-color: #f8fafc;
}

.modal-header, .modal-footer {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.modal-footer {
    border-bottom: none;
    border-top: 1px solid var(--border-subtle);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* =========================================
   BLOG (GLASSMORPHISM PREMIUM)
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(15, 19, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
    height: 100%; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.blog-img {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.blog-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    width: max-content;
}

.blog-content h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content .mt-auto {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   MEDIA QUERIES (DEIXADO PARA O FINAL PARA SOBRESCREVER CORRETAMENTE)
   ========================================= */
@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-specialties {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    /* Fix global para scroll horizontal no mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0 1.2rem;
    }

    .section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .hero-specialties {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-frame img {
        width: 280px;
        height: 280px;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }

    /* ABOUT LAYOUT FIX (A MÁGICA QUE IMPEDE VAZAMENTO) */
    .about-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr); 
        gap: 2rem;
        width: 100%;
    }

    .glass-panel {
        padding: 2rem 1.2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .card-heading, .bio-text p {
        text-align: left;
    }

    .bio-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
        margin: 1.5rem 0;
    }

    .stat-item {
        align-items: center;
    }

    .about-bio .btn-primary {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* A MÁGICA DO SWIPE (SCROLL SÓ NAS ABAS) */
    .modern-tabs-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .modern-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .modern-tabs {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 0 0 auto; 
        white-space: nowrap;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Tech grid (2 colunas exatas) */
    .tech-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .tech-item {
        padding: 1.2rem 0.5rem;
        gap: 0.8rem;
    }
    
    .tech-item i {
        font-size: 2.2rem; 
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    .services-grid, 
    .projects-grid, 
    .testimonials-grid, 
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-form {
        padding: 2rem;
    }
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }
    .faq-answer p {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    .service-card {
        padding: 2.5rem 1.8rem;
    }

    /* =========================================
       FOOTER MOBILE FIX (MELHORIA APLICADA AQUI)
       ========================================= */
    .footer-cta {
        padding: 3rem 0;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .footer-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .footer-middle {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Coluna única perfeita */
        gap: 2.5rem;
        text-align: center;
    }

    .footer-nav h4, .footer-contact h4 {
        text-align: center;
    }

    .footer-nav h4::after, .footer-contact h4::after {
        margin: 10px auto 0;
    }

    .footer-nav ul li, .footer-contact ul li {
        justify-content: center; /* Centraliza os links */
    }

    .social-links {
        justify-content: center; /* Centraliza os ícones sociais */
    }

    .brand-desc {
        margin: 1rem auto;
        max-width: 100%;
    }

    .bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* =========================================
   MODERNIZAÇÃO PORTFÓLIO / CMS
   ========================================= */
:root {
    --accent-cyan: #38bdf8;
    --success: #10b981;
    --danger: #ef4444;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.75);
    outline-offset: 3px;
}

.hero-buttons {
    flex-wrap: wrap;
}

.hero-specialties {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.specialty-item {
    min-height: 42px;
}

.case-facts {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.case-facts div {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(9, 12, 21, 0.34);
}

.case-facts strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.case-facts span {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.case-status {
    text-transform: capitalize;
}

.case-hero {
    min-height: 92vh;
    padding-top: 150px;
}

.case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.case-copy h1 {
    margin: 1rem 0;
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1;
}

.case-copy p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.case-media {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(15, 19, 31, 0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.case-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.case-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.case-module {
    min-height: 190px;
}

.contact-form select {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1rem;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(9, 12, 21, 0.72);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-feedback {
    display: none;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.form-feedback.success {
    display: block;
    color: var(--success);
    border: 1px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.form-feedback.error {
    display: block;
    color: var(--danger);
    border: 1px solid var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 900px) {
    .case-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .case-hero {
        min-height: auto;
        padding-top: 125px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   REDESIGN VISUAL PUBLICO - MAIO/2026
   ========================================= */
.section-lead {
    max-width: 760px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
}

.eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--cyan);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navbar premium sem barra de fundo */
#header,
.site-header {
    top: 0;
    padding: 0;
}

.floating-nav {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 18px 28px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: padding 0.22s ease;
}

.site-header.scrolled .floating-nav {
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 150px;
}

.nav-logo img {
    width: auto;
    height: clamp(42px, 4.3vw, 56px);
    max-width: 178px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.20));
    transition: height 0.22s ease, filter 0.22s ease;
}

.site-header.scrolled .nav-logo img {
    height: clamp(38px, 3.8vw, 50px);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nav-glass-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(17, 24, 39, 0.45);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.nav-glass-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 7px;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transition: transform 0.22s ease;
}

.nav-glass-link:hover,
.nav-glass-link:focus-visible,
.nav-glass-link.active {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.nav-glass-link:hover::after,
.nav-glass-link:focus-visible::after,
.nav-glass-link.active::after {
    transform: scaleX(1);
}

.site-header.scrolled .nav-glass-link,
.site-header.scrolled .nav-lang {
    background: rgba(17, 24, 39, 0.68);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 255px;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 14px;
    color: rgba(203, 213, 225, 0.62);
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-lang a {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-lang a:hover,
.nav-lang a:focus-visible,
.nav-lang a.active {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.48);
}

.nav-project-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(167, 139, 250, 0.36);
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-project-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: transform 0.46s ease;
}

.nav-project-btn:hover,
.nav-project-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(139, 92, 246, 0.38), 0 0 24px rgba(34, 211, 238, 0.10);
}

.nav-project-btn:hover::before,
.nav-project-btn:focus-visible::before {
    transform: translateX(120%);
}

.mobile-nav-actions,
.mobile-menu-toggle {
    display: none;
}

/* Hero com módulos técnicos */
.hero-section {
    padding-top: 128px;
    min-height: 100vh;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 88px 0 auto;
    height: 45vh;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 20%, rgba(139, 92, 246, 0.22), transparent 32%),
        radial-gradient(circle at 78% 16%, rgba(34, 211, 238, 0.12), transparent 30%);
    opacity: 0.85;
    z-index: -1;
}

.hero-text h1 {
    max-width: 720px;
}

.hero-description {
    color: var(--text-soft);
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    border-radius: 14px;
}

.hero-specialties {
    display: grid;
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    gap: 0.75rem;
    max-width: 610px;
}

.specialty-item {
    min-height: 56px;
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.specialty-item i {
    color: var(--cyan);
}

.specialty-item:hover {
    transform: translateY(-3px);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(255, 255, 255, 0.018)),
        rgba(15, 23, 42, 0.72);
    border-color: rgba(139, 92, 246, 0.30);
}

.hero-image {
    position: relative;
}

.hero-visual-shell {
    position: relative;
    width: min(100%, 510px);
    margin-left: auto;
}

.hero-visual-shell::before {
    content: "";
    position: absolute;
    inset: -18px -16px 54px 34px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.16), transparent 42%),
        linear-gradient(315deg, rgba(34, 211, 238, 0.10), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    filter: blur(0.2px);
}

.image-frame {
    position: relative;
    padding: 0.65rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(8, 12, 24, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow-card), 0 0 40px rgba(139, 92, 246, 0.12);
}

.image-frame img {
    max-width: none;
    width: 100%;
    border-radius: 22px;
}

.hero-system-panel {
    position: absolute;
    left: -38px;
    right: 28px;
    bottom: -34px;
    padding: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
        rgba(5, 7, 13, 0.86);
    border: 1px solid rgba(139, 92, 246, 0.24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 28px rgba(139, 92, 246, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.panel-header,
.infra-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: var(--cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.system-flow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.system-flow span {
    padding: 0.34rem 0.58rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.system-flow i {
    color: var(--primary);
    font-size: 0.72rem;
}

.system-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.system-metrics div {
    padding: 0.72rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.system-metrics strong,
.system-metrics span {
    display: block;
}

.system-metrics strong {
    color: #ffffff;
    font-size: 1rem;
}

.system-metrics span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Sobre e Stack */
.about-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.55fr);
    align-items: start;
}

.glass-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--bg-card);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-card);
}

.stack-highlights {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.stack-highlights span {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.stack-highlights i {
    color: var(--cyan);
    margin-top: 0.2rem;
}

.stack-showcase {
    display: grid;
    gap: 1rem;
}

.stack-intro {
    padding: 2rem;
}

.stack-intro h3 {
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
}

.stack-intro p {
    color: var(--text-muted);
    line-height: 1.7;
}

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

.stack-card {
    position: relative;
    overflow: hidden;
    padding: 1.3rem;
    min-height: 235px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.stack-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.12), transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.08), transparent 34%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.stack-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32), 0 0 24px rgba(139, 92, 246, 0.10);
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-card-header {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.stack-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.stack-card h4 {
    font-size: 1rem;
    margin-bottom: 0.24rem;
}

.stack-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.stack-chip-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.stack-chip-list span {
    padding: 0.34rem 0.58rem;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.stack-card-infrastructure,
.stack-card-devops {
    border-color: rgba(34, 211, 238, 0.14);
}

/* Infraestrutura */
.infrastructure-section {
    position: relative;
    overflow: hidden;
}

.infrastructure-section::before {
    content: "";
    position: absolute;
    inset: 8% auto auto 50%;
    width: min(760px, 88vw);
    height: min(760px, 88vw);
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.10), transparent 64%);
}

.infra-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 1.5rem;
    align-items: stretch;
}

.infra-architecture-card,
.infra-tech-panel {
    position: relative;
    overflow: hidden;
}

.infra-architecture-card {
    padding: 1.8rem;
}

.infra-tech-panel {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-card);
}

.infra-map-header strong {
    color: #ffffff;
    font-size: 0.72rem;
}

.infra-layer-list {
    position: relative;
    display: grid;
    gap: 0.8rem;
}

.infra-layer-list::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 20px;
    width: 1px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.7), rgba(139, 92, 246, 0.58), rgba(34, 211, 238, 0.35));
    opacity: 0.58;
}

.infra-layer {
    position: relative;
    display: grid;
    grid-template-columns: 42px 46px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.085);
}

.infra-layer-number {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    border-radius: 12px;
    background: rgba(9, 12, 21, 0.86);
    border: 1px solid rgba(34, 211, 238, 0.20);
}

.infra-node-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.infra-layer-content > span {
    display: inline-flex;
    margin-bottom: 0.22rem;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.infra-layer h3 {
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.infra-layer p,
.infra-tech-copy p,
.infra-card p {
    color: var(--text-muted);
    line-height: 1.55;
}

.infra-layer p {
    font-size: 0.88rem;
}

.infra-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.75rem;
}

.infra-mini-tags em {
    padding: 0.28rem 0.48rem;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.infra-connector {
    display: none;
}

.infra-tech-copy {
    padding: 0.25rem 0.35rem 0.2rem;
}

.infra-tech-copy h3 {
    font-size: 1.18rem;
    margin-bottom: 0.42rem;
}

.infra-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.infra-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 132px;
    padding: 0.9rem;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(2, 6, 23, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.infra-card > i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.infra-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.24rem;
}

.infra-card p {
    font-size: 0.8rem;
}

.infra-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.infra-principles span {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-height: 72px;
    padding: 0.9rem;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.infra-principles i {
    color: var(--cyan);
    margin-top: 0.16rem;
}

/* Serviços mais comerciais */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 1.35rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.service-card::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.68), rgba(34, 211, 238, 0.42), transparent);
    opacity: 0.75;
}

.service-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    color: var(--cyan);
    font-size: 1.45rem;
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.service-card h3 {
    font-size: 1.18rem;
}

.service-card p {
    color: var(--text-soft);
}

.service-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-deliverables li {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.28);
}

.service-card:hover .service-icon {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.28);
}

/* Portfólio com case principal */
.projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.project-card {
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        rgba(15, 23, 42, 0.58);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.project-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(330px, 0.96fr) minmax(0, 1.04fr);
    min-height: 520px;
    border-color: rgba(139, 92, 246, 0.26);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34), 0 0 36px rgba(139, 92, 246, 0.12);
}

.project-card-featured .project-img-container {
    height: 100%;
    min-height: 430px;
}

.project-card-featured .project-img-scroll {
    background-size: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.44rem 0.72rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(34, 211, 238, 0.58));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.project-architecture {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.32);
    border: 1px solid rgba(34, 211, 238, 0.14);
}

.project-architecture strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--cyan);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-architecture div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-architecture span {
    padding: 0.32rem 0.55rem;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
}

.case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-facts div {
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.30);
}

.tags span {
    border-radius: 999px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fbbf24;
}

@media (max-width: 1120px) {
    .floating-nav {
        gap: 14px;
        padding-inline: 20px;
    }

    .nav-logo {
        min-width: 122px;
    }

    .nav-glass-link {
        padding-inline: 13px;
        font-size: 0.78rem;
    }

    .nav-actions {
        min-width: 225px;
        gap: 9px;
    }

    .nav-project-btn {
        padding-inline: 16px;
    }

    .infra-cards,
    .infra-principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .floating-nav {
        justify-content: space-between;
        gap: 1rem;
        padding: 14px 18px;
    }

    .nav-logo {
        min-width: 0;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.62rem;
        padding: 0.8rem;
        border-radius: 20px;
        background:
            radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
            rgba(5, 7, 13, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.11);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.50);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        animation: fadeIn 0.24s forwards;
    }

    .nav-glass-link {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding-inline: 1rem;
        font-size: 0.92rem;
    }

    .nav-actions > .nav-lang,
    .nav-actions > .nav-project-btn {
        display: none;
    }

    .mobile-nav-actions {
        display: grid;
        gap: 0.62rem;
        margin-top: 0.2rem;
    }

    .mobile-nav-actions .nav-lang,
    .mobile-nav-actions .nav-project-btn {
        width: 100%;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.055);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        cursor: pointer;
    }

    .about-layout,
    .infra-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-system-panel {
        left: 20px;
        right: 20px;
    }

    .project-card-featured {
        grid-template-columns: 1fr;
    }

    .project-card-featured .project-img-container {
        min-height: 330px;
    }
}

@media (max-width: 768px) {
    #header,
    .site-header {
        padding: 0;
    }

    .floating-nav {
        padding: 10px 12px;
    }

    .nav-logo img {
        height: 44px;
        max-width: 138px;
    }

    .site-header.scrolled .nav-logo img {
        height: 40px;
    }

    .nav-links {
        top: 66px;
        left: 0.75rem;
        right: 0.75rem;
    }

    .nav-lang {
        min-height: 40px;
    }

    .nav-lang a {
        font-size: 0.62rem;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 38px;
    }

    .hero-section {
        padding-top: 116px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: left;
        width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(2.12rem, 10vw, 2.7rem);
    }

    .hero-subtitle {
        font-size: 1.12rem;
    }

    .hero-buttons {
        justify-content: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .hero-specialties,
    .stack-grid,
    .projects-grid,
    .case-facts {
        grid-template-columns: 1fr;
    }

    .hero-visual-shell {
        width: 100%;
        margin: 0 auto;
    }

    .image-frame img {
        width: 100%;
        height: auto;
        max-height: 380px;
    }

    .hero-system-panel {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: -16px;
    }

    .system-flow {
        gap: 0.42rem;
    }

    .glass-panel,
    .stack-intro,
    .service-card,
    .infra-architecture-card,
    .infra-tech-panel {
        padding: 1.45rem;
        border-radius: 18px;
    }

    .bio-stats {
        align-items: stretch;
    }

    .stack-card {
        min-height: auto;
    }

    .infra-layer {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .infra-layer .infra-node-icon {
        display: none;
    }

    .infra-layer-list::before {
        left: 18px;
    }

    .infra-cards,
    .infra-principles {
        grid-template-columns: 1fr;
    }

    .project-card-featured {
        grid-column: span 1;
        min-height: auto;
    }

    .project-card-featured .project-img-container,
    .project-img-container {
        min-height: 0;
        height: 230px;
    }
}

@media (max-width: 420px) {
    .floating-nav {
        padding-inline: 10px;
    }

    .nav-logo img {
        height: 40px;
        max-width: 118px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .system-metrics,
    .infra-card {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-project-btn::before {
        display: none;
    }
}
