/* NEXUS Estúdio Digital - System Stylesheet */

/* ==========================================
   1. RESET & BASICS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Cores Primárias - Brightened Slate-Blue Theme */
    --bg-deep: #0c1020;
    --bg-dark: #141a2f;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Neon Accents */
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.2);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.2);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.2);
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(26, 34, 58, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(0, 0, 0, 0.35);
    
    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 2px solid var(--bg-deep);
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ==========================================
   2. BACKGROUND EFFECTS & GLOWS
   ========================================== */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.bg-glow-cyan {
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
}

.bg-glow-purple {
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    width: 500px;
    height: 500px;
    top: 300px;
    right: -100px;
}

.bg-glow-blue {
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    width: 550px;
    height: 550px;
    bottom: -100px;
    left: 20%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* Cursor Customizado (Hidden on touch screens) */
@media (pointer: fine) {
    .custom-cursor {
        width: 8px;
        height: 8px;
        background: #fff;
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
    }
    .custom-cursor-glow {
        width: 36px;
        height: 36px;
        border: 1px solid var(--cyan);
        background: rgba(0, 242, 254, 0.03);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9998;
        transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    }
}

/* ==========================================
   3. TYPOGRAPHY & BUTTONS
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #030712;
    border: none;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.35);
}

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

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

.btn-nav {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    color: #030712;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-nav svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

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

/* ==========================================
   4. GLASSMORPHISM LAYOUT ELEMENTS
   ========================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
}

/* ==========================================
   5. NAVBAR / HEADER
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 7, 18, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: height var(--transition-normal), background var(--transition-normal), border var(--transition-normal);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(3, 7, 18, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-svg {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo-svg {
    height: 52px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width var(--transition-normal);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* Mobile Nav Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    transition: right var(--transition-normal);
    border-left: 1px solid var(--glass-border);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--cyan); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.stat-card {
    text-align: left;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-num-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    color: var(--cyan);
}

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

/* ==========================================
   7. DASHBOARD VISUAL HERO MOCKUP
   ========================================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform var(--transition-slow);
    margin-top: -65px; /* Eleva o mockup verticalmente no layout desktop */
}

.dashboard-mockup:hover {
    transform: rotateY(-2deg) rotateX(4deg) translateY(-5px);
}

.dash-header {
    height: 40px;
    background: rgba(3, 7, 18, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.dash-dots {
    display: flex;
    gap: 6px;
}

.dash-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #eab308; }
.dash-dots span:nth-child(3) { background: #22c55e; }

.dash-title {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-weight: 500;
}

.avatar {
    width: 20px;
    height: 20px;
    background: var(--purple);
    border-radius: 50%;
    display: block;
}

.dash-body {
    display: flex;
    height: 310px;
}

.dash-sidebar {
    width: 48px;
    background: rgba(3, 7, 18, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 16px;
}

.side-item {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: block;
}

.side-item.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.dash-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px;
    position: relative;
}

.widget.shadow-glow {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.widget-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.widget-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
    font-family: var(--font-heading);
}

.widget-trend {
    font-size: 0.65rem;
    font-weight: 700;
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.widget-trend.green {
    color: #22c55e;
}

.dash-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chart-legend {
    display: flex;
    gap: 10px;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.cyan { background: var(--cyan); }
.legend-dot.purple { background: var(--purple); }

.chart-canvas {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.chart-line-1 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 5s linear forwards infinite;
}

.chart-line-2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash-2 6s linear forwards infinite;
}

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

@keyframes dash-2 {
    to {
        stroke-dashoffset: 0;
    }
}

.pulsing-dot-1 {
    animation: pulse-glow-1 2s infinite;
}

.pulsing-dot-2 {
    animation: pulse-glow-2 2s infinite alternate;
}

@keyframes pulse-glow-1 {
    0% { r: 5px; opacity: 0.7; }
    50% { r: 9px; opacity: 1; }
    100% { r: 5px; opacity: 0.7; }
}

@keyframes pulse-glow-2 {
    0% { r: 4px; opacity: 0.6; }
    100% { r: 7px; opacity: 1; }
}

/* ==========================================
   8. SERVICES GRID SECTION
   ========================================== */
.services-section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

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

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

.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    border-radius: 50%;
    pointer-events: none;
    transition: transform var(--transition-normal);
}

.service-card[data-category="design"] .card-glow {
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
}

.service-card[data-category="marketing"] .card-glow {
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .card-glow {
    transform: scale(1.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 28px;
    transition: var(--transition-normal);
}

.service-card[data-category="design"] .card-icon {
    color: var(--purple);
}

.service-card[data-category="marketing"] .card-icon {
    color: var(--blue);
}

.service-card:hover .card-icon {
    background: var(--cyan);
    color: #030712;
    box-shadow: 0 0 20px var(--cyan);
}

.service-card[data-category="design"]:hover .card-icon {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 20px var(--purple);
}

.service-card[data-category="marketing"]:hover .card-icon {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 20px var(--blue);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.feat-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
}

.service-card[data-category="design"] .feat-dot {
    background: var(--purple);
}

.service-card[data-category="marketing"] .feat-dot {
    background: var(--blue);
}

.card-action {
    margin-top: auto;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.card-link:hover {
    color: var(--cyan);
}

.service-card[data-category="design"] .card-link:hover {
    color: var(--purple);
}

.service-card[data-category="marketing"] .card-link:hover {
    color: var(--blue);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   9. PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    padding: 100px 0;
    position: relative;
}

.portfolio-carousel-wrapper {
    position: relative;
    width: 100%;
}

.portfolio-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 34, 58, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-nav-btn svg {
    width: 20px;
    height: 20px;
}

.portfolio-nav-btn:hover {
    background: var(--purple);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.portfolio-nav-btn.disabled {
    opacity: 0.15;
    pointer-events: none;
}

.portfolio-prev {
    left: -25px;
}

.portfolio-next {
    right: -25px;
}

/* Scroll adjustments to prevent clipping */
@media (max-width: 1200px) {
    .portfolio-prev {
        left: -10px;
    }
    .portfolio-next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .portfolio-nav-btn {
        display: none;
    }
}

.portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    align-items: stretch; /* Garante que todos os cards tenham a mesma altura */
}

.portfolio-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.portfolio-item {
    flex: 0 0 calc(20% - 26px);
    min-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.portfolio-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-svg {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.portfolio-image-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-details-wrapper {
    padding: 20px 8px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.portfolio-explanation {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto; /* Empurra a descrição para o rodapé do card */
}

.portfolio-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.portfolio-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* ==========================================
   10. TIMELINE / PROCESSO (Interactive)
   ========================================== */
.process-section {
    padding: 100px 0;
    position: relative;
}

.timeline-container {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    padding: 20px 0;
}

/* Central vertical progress line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%; /* Driven by GSAP ScrollTrigger */
    background: linear-gradient(to bottom, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
}

.timeline-step {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    z-index: 2;
}

.timeline-step:nth-child(even) {
    justify-content: flex-end;
}

.step-marker {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.step-content {
    width: 44%;
    padding: 30px;
}

.timeline-step.active .step-marker {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.timeline-step.active .step-num {
    color: var(--cyan);
}

.timeline-step:nth-child(even).active .step-marker {
    border-color: var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
}

.timeline-step:nth-child(even).active .step-num {
    color: var(--purple);
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

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

/* ==========================================
   11. CONTACT FORM & INPUTS
   ========================================== */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.method-icon svg {
    width: 20px;
    height: 20px;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.method-details strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-form-container {
    padding: 40px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Glow on Button Hover inside Form */
.btn-block {
    width: 100%;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.btn-primary:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================
   12. FOOTER
   ========================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 7, 18, 0.6);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group h4 {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.link-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--cyan);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   13. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        width: 100%;
    }
    
    .hero-visual {
        perspective: none;
    }
    
    .dashboard-mockup {
        transform: none !important;
        max-width: 550px;
        margin-top: 20px; /* Margem positiva ao empilhar no mobile */
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    

    
    /* Timeline Mobile adjustments */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 40px;
    }
    
    .timeline-step:nth-child(even) {
        justify-content: flex-start;
    }
    
    .step-marker {
        left: 20px;
        transform: translate(-50%, 0);
        top: 0;
    }
    
    .step-content {
        width: 100%;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}

/* ==========================================
   14. BOA VISTA PISCINA MINI MOCKUP (HERO)
   ========================================== */
.piscina-mockup {
    background: #0b111a !important;
    border-color: rgba(0, 242, 254, 0.12) !important;
}

.dash-address-bar {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    width: 60%;
    justify-content: center;
}

.lock-icon {
    width: 10px;
    height: 10px;
    color: #22c55e;
}

.dash-refresh svg {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

.piscina-body {
    display: flex;
    flex-direction: column;
    background: #070a10;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.piscina-hero {
    background: linear-gradient(180deg, #091a33 0%, #060e1d 100%);
    padding: 35px 20px 25px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 2px solid #00f2fe;
}

.piscina-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    opacity: 0.12;
}

.piscina-waves .wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V0C26.9,8.75,53.8,17.51,80.66,26.27,148.56,48.43,218.4,66.86,321.39,56.44Z' fill='%2300f2fe'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: wave-move 12s linear infinite;
}

.piscina-waves .wave2 {
    bottom: 1px;
    opacity: 0.4;
    animation: wave-move 8s linear infinite reverse;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.piscina-hero-content {
    position: relative;
    z-index: 2;
}

.piscina-logo {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: #00f2fe;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 6px;
}

.piscina-hero-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.piscina-hero-content p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    margin: 0 auto 16px;
    line-height: 1.4;
}

.piscina-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all var(--transition-fast);
}

.piscina-whatsapp-btn svg {
    width: 12px;
    height: 12px;
}

.piscina-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
    background: #2cd46e;
}

.piscina-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 12px;
    background: #070a10;
}

.piscina-service-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
}

.piscina-icon-circle {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.piscina-service-item h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.piscina-service-item p {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 1.25;
}

/* ==========================================
   15. WHATSAPP CHAT MOCKUP (CONTACT SECTION)
   ========================================== */
.whatsapp-chat-mockup {
    display: flex;
    flex-direction: column;
    height: 380px;
    background: #05080f;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.whatsapp-chat-mockup .chat-header {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-mockup .chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.whatsapp-chat-mockup .chat-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-chat-mockup .chat-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.whatsapp-chat-mockup .chat-online-status {
    font-size: 0.7rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.whatsapp-chat-mockup .chat-online-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

.whatsapp-chat-mockup .chat-body {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
}

.whatsapp-chat-mockup .chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.whatsapp-chat-mockup .chat-bubble.received {
    background: #111827;
    color: var(--text-primary);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.whatsapp-chat-mockup .chat-bubble.sent {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.15);
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.whatsapp-chat-mockup .chat-footer {
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.btn-whatsapp-chat {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #22c55e;
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-whatsapp-chat svg {
    width: 16px;
    height: 16px;
}

.btn-whatsapp-chat:hover {
    background: #2cd46e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

/* ==========================================
   16. WHATSAPP CLICKABLE CTA METHODS
   ========================================== */
.method-item.link-method {
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.method-item.link-method:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
}

.method-item.link-method:hoverStrong {
    color: #22c55e !important;
}

.whatsapp-icon {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

.method-item.link-method:hover .whatsapp-icon {
    background: #22c55e !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

