/* ==========================================================================
   TECX SISTEMAS - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Custom Palettes --- */
:root {
    --bg-dark: #070709;
    --bg-card: rgba(20, 20, 25, 0.65);
    --bg-card-hover: rgba(30, 30, 38, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.4);
    
    /* Primary Modern Chrome & Ice-Cyan System */
    --color-primary: #ffffff; /* Stealth White */
    --color-primary-glow: rgba(255, 255, 255, 0.15);
    --color-ciano: #00f0ff; /* Ice Cyan */
    --color-ciano-glow: rgba(0, 240, 255, 0.35);
    --color-pink: #94a3b8; /* Steel Platinum */
    --color-green: #10b981; /* Emerald Green */
    --color-green-glow: rgba(16, 185, 129, 0.15);
    
    /* Text Color Palette */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Structural Constants */
    --header-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Container Limits */
    --container-width: 1200px;
}

/* --- Basic Reset & Standard Rules --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* --- Helper Classes & Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Ambient Glow Accents (Static / Animation Background) --- */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: -10vw;
    left: -10vw;
    background: rgba(255, 255, 255, 0.05);
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    top: 50vh;
    right: -15vw;
    background: var(--color-ciano);
    opacity: 0.08;
    animation: pulseGlow 18s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    bottom: -10vw;
    left: 20vw;
    background: rgba(148, 163, 184, 0.05);
    opacity: 0.05;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.1) translate(5%, 2%); opacity: 0.18; }
    100% { transform: scale(0.95) translate(-3%, -5%); opacity: 0.12; }
}

/* --- Glassmorphism Panels --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Buttons & Call to Actions --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: #ffffff;
    color: #050505;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: var(--color-ciano);
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

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

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

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 80%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    transform: scale(0.5);
}

.btn-glow:hover::after {
    opacity: 1;
    transform: scale(1);
}

.icon-arrow {
    transition: transform 0.3s ease;
}

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

/* --- HEADER / NAVIGATION SYSTEM --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(7, 7, 10, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-accent {
    background: linear-gradient(135deg, #ffffff, var(--color-ciano));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, var(--color-ciano));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #0d0e18;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
    z-index: 1010;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
    transform: translateX(-320px);
}

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

.drawer-header .close-btn {
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.drawer-link:hover {
    color: var(--text-primary);
    padding-left: 8px;
}

.drawer-cta {
    margin-top: 20px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

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

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
    display: inline-block;
    animation: blink 1.5s infinite;
}

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

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    max-width: 880px;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 720px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 56px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* --- SECTION DEFAULTS --- */
section {
    padding: 100px 0;
}

.section-header {
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 12px;
}

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

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

/* --- SERVICES GRID SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.hover-grow:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.service-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.purple-glow {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.ciano-glow {
    background: rgba(0, 240, 255, 0.15);
    color: var(--color-ciano);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.green-glow {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.pink-glow {
    background: rgba(148, 163, 184, 0.15);
    color: var(--color-pink);
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.15);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.service-features li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: var(--color-ciano);
    font-weight: 700;
}

/* --- PORTFOLIO DYNAMIC SYSTEM --- */
.portfolio-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
}

.repo-filter-full {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(5, 5, 10, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px 16px 50px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    border-color: var(--color-ciano);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.lang-pills-wrapper {
    width: 100%;
}

.lang-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pill:hover, .pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #070709;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* Portfolio Showcase Grid */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
    min-height: 260px;
}

/* Wide Showcase Card (Side-by-Side: Foto Real Inteira + Especificações) */
.portfolio-showcase-card {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 36px;
    background: rgba(13, 14, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    align-items: center;
}

.portfolio-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.12);
}

/* Estágio da Foto Real (Exibe a tela inteira sem cortes) */
.showcase-media-stage {
    width: 100%;
    height: 440px;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(18, 24, 48, 0.95) 0%, rgba(7, 8, 16, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    cursor: pointer;
}

.showcase-full-img {
    width: 100%;
    height: 100%;
    max-height: 408px;
    object-fit: contain; /* MOSTRA A FOTO REAL INTEIRA DO CELULAR OU DESKTOP SEM CORTAR */
    border-radius: 12px;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.85));
    transition: transform 0.4s ease;
}

.portfolio-showcase-card:hover .showcase-full-img {
    transform: scale(1.03);
}

.showcase-badge-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
}

.showcase-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--color-ciano);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.portfolio-showcase-card:hover .showcase-zoom-hint {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--color-ciano);
    color: #ffffff;
}

.showcase-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.empty-device-frame {
    width: 130px;
    height: 240px;
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
}

/* Coluna de Informações Comerciais ao Lado */
.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0;
}

.showcase-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.card-category-badge {
    padding: 5px 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-ciano);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
}

.showcase-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.showcase-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.showcase-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
}

.showcase-highlights li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-highlights li .check {
    color: var(--color-ciano);
    font-weight: bold;
}

.showcase-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-sm {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}



/* Skeleton Shimmer Loading Effeect */
.skeleton-card {
    height: 280px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(90deg, rgba(15,16,30,0.5) 25%, rgba(30,31,50,0.5) 50%, rgba(15,16,30,0.5) 75%);
    background-size: 200% 100%;
}

.shimmer {
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- BUDGET SIMULATOR SECTION --- */
.budget-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.budget-info {
    padding: 60px;
    background: linear-gradient(135deg, rgba(13, 14, 28, 0.7) 0%, rgba(6, 6, 12, 0.8) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.budget-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.calculator-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-step-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.budget-calculator {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calc-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.project-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.type-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.type-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.type-card.active {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--color-ciano);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.type-icon {
    font-size: 1.6rem;
}

.type-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.slider-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.addons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-md);
}

.addon-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.addon-checkbox-label input[type="checkbox"]::before {
    content: '✓';
    font-size: 0.8rem;
    font-weight: 800;
    color: transparent;
}

.addon-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.addon-checkbox-label input[type="checkbox"]:checked::before {
    color: #ffffff;
}

.addon-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Estimative Details Frame */
.budget-result-panel {
    padding: 30px;
    background: rgba(5,5,10,0.4);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
}

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.result-price-range {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-ciano);
    margin-bottom: 8px;
}

.result-deadline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

.calculator-actions {
    display: flex;
    gap: 16px;
}

.calc-input {
    flex: 1;
    background: rgba(5,5,10,0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    font-size: 0.9rem;
}

.calc-input:focus {
    border-color: var(--color-primary);
}

/* --- CONTACT & FORMS SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
}

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

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

.contact-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-bg.purple { background: rgba(139, 92, 246, 0.12); color: var(--color-primary); }
.contact-icon-bg.ciano { background: rgba(6, 182, 212, 0.12); color: var(--color-ciano); }
.contact-icon-bg.green { background: rgba(16, 185, 129, 0.12); color: var(--color-green); }

.contact-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-card-link {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card-link.text-dimmed {
    color: var(--text-secondary);
}

.contact-card-link:hover:not(.text-dimmed) {
    color: var(--color-primary);
}

/* Glass Form Styling */
.contact-form-panel {
    padding: 40px;
}

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

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

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(5,5,10,0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* --- FOOTER DESIGN --- */
.main-footer {
    background: #040407;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.83fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    font-size: 1.7rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.footer-link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-static-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ==========================================================================
   MODAL SYSTEMS: PROJECT DETAIL & PORTFOLIO ADMIN
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.admin-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 24px;
    background: #0d0e17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.12);
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal de Projeto: Layout Split Screen (Foto Real Inteira ao lado dos Detalhes) */
.project-modal.split-modal {
    position: relative;
    width: 100%;
    max-width: 1120px;
    max-height: 92vh;
    border-radius: 26px;
    background: #0b0c16;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.15);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .project-modal,
.modal-overlay.active .admin-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* Coluna 1 do Modal: Mídia em Destaque Integral (Sem Cortes) */
.modal-media-col {
    background: radial-gradient(circle at center, rgba(18, 25, 52, 0.95) 0%, rgba(6, 7, 15, 0.98) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.modal-photo-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-cover-img {
    max-height: 78vh;
    max-width: 100%;
    object-fit: contain; /* MOSTRA A TELA INTEIRA DO APP SEM NENHUM CORTE */
    border-radius: 16px;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.95));
}

.modal-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 30px;
}

.placeholder-tech-badge {
    padding: 6px 18px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ciano);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.placeholder-status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Coluna 2 do Modal: Informações Detalhadas & Ações */
.project-modal .modal-body {
    padding: 40px 40px 40px 32px;
    overflow-y: auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.modal-header-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.modal-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.modal-status-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
    white-space: nowrap;
}

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

.modal-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-highlights {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 18px 22px;
}

.modal-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-highlights-list li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-highlights-list li span.bullet {
    color: var(--color-ciano);
    font-weight: bold;
}

.modal-tech-stack {
    margin-bottom: 30px;
}

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

.modal-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* Admin Modal Specifics */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.admin-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-header-title svg {
    color: var(--color-ciano);
}

.admin-auth-view {
    padding: 40px 30px;
    text-align: center;
}

.admin-auth-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 12px;
}

.admin-auth-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.admin-auth-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Google Auth Button */
.google-auth-container {
    margin: 18px 0 14px 0;
    display: flex;
    justify-content: center;
}

.btn-google-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 340px;
}

.btn-google-auth:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

.admin-credentials-form {
    max-width: 340px;
    margin: 0 auto;
}

.admin-dashboard-view {
    padding: 28px;
}

.admin-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-ciano);
    color: #070709;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.admin-username {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.admin-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab.active {
    background: rgba(0, 240, 255, 0.15);
    color: var(--color-ciano);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab-help {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Detailed Project Editor Card in Admin */
.admin-project-card-edit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.admin-project-card-edit:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-project-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-project-main-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-thumb-preview {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #0f101d;
    border: 1px solid var(--border-color);
    display: block;
}

.project-thumb-placeholder {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    background: #0f101d;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
}

.admin-project-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.admin-input-control {
    background: rgba(5, 5, 12, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 100%;
    transition: var(--transition-smooth);
}

.admin-input-control:focus {
    border-color: var(--color-ciano);
}

.admin-image-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-file-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.admin-file-btn-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.admin-project-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.admin-native-techs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: #10b981;
}

input:checked + .slider-toggle:before {
    transform: translateX(22px);
}

.btn-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

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

/* ==========================================================================
   MASTER RESPONSIVE ARCHITECTURE (MOBILE-FIRST POLISH & VIEWPORTS)
   ========================================================================== */

/* --- Mobile Global & Reset Adjustments --- */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Ensure no background ambient glow expands viewport width */
.ambient-glow {
    max-width: 100vw;
    overflow: hidden;
}

/* --- Breakpoint: Laptops & Tablets Landscape (<= 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .portfolio-showcase-card {
        grid-template-columns: 380px 1fr;
        gap: 28px;
        padding: 24px;
    }

    .showcase-media-stage {
        height: 400px;
    }

    .budget-wrapper {
        grid-template-columns: 1fr;
    }

    .budget-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 44px 36px;
    }

    .budget-calculator {
        padding: 44px 36px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .project-modal.split-modal {
        grid-template-columns: 1fr;
        max-width: 94vw;
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-media-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 320px;
        padding: 24px 20px;
    }

    .modal-cover-img {
        max-height: 48vh;
    }

    .project-modal .modal-body {
        padding: 32px 24px;
        max-height: none;
        overflow: visible;
    }
}

/* --- Breakpoint: Tablets Portrait & Large Smartphones (<= 868px) --- */
@media (max-width: 868px) {
    :root {
        --header-height: 68px;
    }

    .main-header {
        height: var(--header-height);
    }

    .main-header.scrolled {
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-actions .btn {
        display: none; /* Mantém cabeçalho limpo no mobile com foco no menu drawer */
    }

    .portfolio-showcase-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
        border-radius: 20px;
    }

    .showcase-media-stage {
        height: 350px;
    }

    .showcase-full-img {
        max-height: 320px;
    }

    .showcase-title {
        font-size: 1.45rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }
}

/* --- Breakpoint: Standard Mobile Smartphones (<= 640px) --- */
@media (max-width: 640px) {
    /* Fluid Section Spacing */
    section {
        padding: 56px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .section-tagline {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 1.85rem;
        line-height: 1.22;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: 44px;
    }

    .badge-tech {
        font-size: 0.72rem;
        padding: 6px 14px;
        margin-bottom: 16px;
        max-width: 100%;
        text-align: center;
        letter-spacing: 0.04em;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7.8vw, 2.5rem);
        line-height: 1.18;
        margin-bottom: 16px;
        letter-spacing: -0.025em;
    }

    .hero-subtitle {
        font-size: 0.96rem;
        line-height: 1.58;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-ctas .btn {
        width: 100%;
        padding: 15px 22px;
        font-size: 0.98rem;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Hero Stats Grid (Organizado em 3 colunas compactas e elegantes) */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-item {
        padding: 0 4px;
    }

    .stat-num {
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
        margin-top: 4px;
        text-align: center;
    }

    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .service-icon-wrapper {
        width: 46px;
        height: 46px;
        margin-bottom: 20px;
    }

    .service-title {
        font-size: 1.22rem;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .service-features li {
        font-size: 0.82rem;
    }

    /* Portfolio Showcase Cards Mobile */
    .portfolio-grid {
        gap: 24px;
    }

    .portfolio-showcase-card {
        padding: 16px;
        border-radius: 18px;
        gap: 16px;
    }

    .showcase-media-stage {
        height: 300px;
        padding: 12px;
        border-radius: 14px;
    }

    .showcase-full-img {
        max-height: 276px;
        border-radius: 10px;
    }

    .showcase-badge-overlay {
        top: 12px;
        left: 12px;
    }

    .showcase-zoom-hint {
        bottom: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .showcase-content {
        gap: 14px;
        padding: 4px 0 0 0;
    }

    .showcase-title {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .showcase-desc {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .showcase-highlights {
        padding: 12px 14px;
        gap: 7px;
        border-radius: 10px;
    }

    .showcase-highlights li {
        font-size: 0.82rem;
        gap: 8px;
    }

    .showcase-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 6px;
    }

    .showcase-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 0.92rem;
    }

    /* Split Modal (Visualizador de App em Celular) */
    .modal-overlay {
        padding: 12px 8px;
    }

    .project-modal.split-modal {
        display: flex;
        flex-direction: column;
        width: 96vw;
        max-height: 94vh;
        border-radius: 20px;
        overflow: hidden;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
        z-index: 50;
    }

    .modal-media-col {
        min-height: 230px;
        max-height: 38vh;
        flex-shrink: 0;
        padding: 14px 12px;
        background: radial-gradient(circle at center, #10162f 0%, #06070f 100%);
    }

    .modal-cover-img {
        max-height: 34vh;
        max-width: 100%;
        border-radius: 12px;
    }

    .project-modal .modal-body {
        padding: 20px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        gap: 16px;
    }

    .modal-title {
        font-size: 1.32rem;
        line-height: 1.25;
    }

    .modal-description {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .modal-highlights {
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .modal-highlights li {
        font-size: 0.82rem;
    }

    .modal-tech-stack {
        margin-bottom: 20px;
    }

    .modal-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 14px;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Budget Section Mobile */
    .budget-wrapper {
        border-radius: 20px;
    }

    .budget-info {
        padding: 28px 18px;
    }

    .budget-title {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .budget-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .calculator-steps {
        gap: 16px;
    }

    .calc-step-item {
        gap: 12px;
    }

    .step-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .step-text {
        font-size: 0.85rem;
    }

    .budget-calculator {
        padding: 24px 16px;
        gap: 22px;
    }

    .project-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .type-card {
        padding: 12px 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .type-icon {
        font-size: 1.3rem;
    }

    .type-name {
        font-size: 0.78rem;
    }

    .addon-checkbox-label {
        padding: 12px 14px;
        border-radius: 10px;
        gap: 12px;
    }

    .addon-name {
        font-size: 0.82rem;
    }

    .budget-result-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .result-price-range {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .calculator-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .calc-input {
        width: 100%;
        font-size: 16px !important; /* Previne auto-zoom no Safari iOS */
        padding: 13px 16px;
        box-sizing: border-box;
    }

    .calculator-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Contact Section Mobile */
    .contact-grid {
        gap: 24px;
    }

    .contact-item-card {
        padding: 16px 14px;
        border-radius: 14px;
        gap: 14px;
    }

    .contact-icon-bg {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .contact-card-link {
        font-size: 0.95rem;
        word-break: break-all;
    }

    .contact-form-panel {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        font-size: 0.82rem;
    }

    .form-input {
        font-size: 16px !important; /* Previne auto-zoom no Safari iOS */
        padding: 13px 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .contact-form-panel .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .main-footer {
        padding-top: 56px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-brand-column {
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        text-align: center;
        font-size: 0.85rem;
    }

    .social-row {
        justify-content: center;
    }

    .footer-links-column {
        align-items: center;
        gap: 12px;
    }

    .footer-title {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 22px 0;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 0.75rem;
    }

    /* Admin Modal Mobile */
    .admin-modal {
        width: 96vw;
        max-height: 92vh;
        border-radius: 20px;
    }

    .admin-header {
        padding: 16px 20px;
    }

    .admin-dashboard-view {
        padding: 20px 16px;
    }

    .admin-tabs {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .admin-tab {
        padding: 6px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .admin-input-control {
        font-size: 16px !important;
    }

    .admin-project-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Mobile Drawer Polish */
    .mobile-drawer {
        width: min(300px, 84vw);
        padding: 30px 20px;
    }

    .drawer-link {
        font-size: 1.05rem;
        padding: 12px 0;
    }

    .drawer-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* --- Breakpoint: Extra Small Compact Phones (<= 380px) --- */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-stats {
        gap: 4px;
    }

    .stat-num {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.58rem;
    }

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

    .showcase-media-stage {
        height: 270px;
    }

    .showcase-full-img {
        max-height: 246px;
    }

    .modal-media-col {
        min-height: 200px;
        max-height: 35vh;
    }

    .modal-cover-img {
        max-height: 30vh;
    }

    .result-price-range {
        font-size: 1.55rem;
    }
}
