/* Base Settings and Tokens */
:root {
    /* Colors - Sleek Dark Theme */
    --bg-main: #09090b; /* Zinc 950 */
    --bg-alt: #18181b; /* Zinc 900 */
    --bg-card: #27272a; /* Zinc 800 */
    --bg-card-hover: #3f3f46; /* Zinc 700 */
    
    --text-main: #f4f4f5; /* Zinc 50 */
    --text-muted: #a1a1aa; /* Zinc 400 */
    
    --accent-1: #8b5cf6; /* Violet */
    --accent-2: #06b6d4; /* Cyan */
    --accent-whatsapp: #25D366; 
    
    --glow-color: rgba(139, 92, 246, 0.15);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --section-spacing: 100px;
    
    /* Transitions */
    --transit: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.section-header .divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    margin: 0 auto 24px;
    border-radius: 2px;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transit);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-color);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}

.w-100 {
    width: 100%;
}

/* --- Components --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transit);
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo span {
    color: var(--accent-2);
}

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

.nav-links a:not(.btn-outline) {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transit);
}

.nav-links a:not(.btn-outline):hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset nav */
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Sobre Mim */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sobre-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.sobre-text .leadText {
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transit);
}

.stat-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255,255,255,0.05);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 16px;
}

.stat-box h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transit);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.card-image-placeholder {
    width: 100%;
    height: 250px;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.card-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    animation: placeholderShine 3s infinite;
}

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

.card-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

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

.card-tags span {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-2);
    font-weight: 500;
}

/* Servicos */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.servico-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 32px 24px;
    border-radius: 16px;
    transition: var(--transit);
    position: relative;
    overflow: hidden;
}

.servico-card.hover-glow:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

.servico-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-2);
    font-size: 1.8rem;
    transition: var(--transit);
}

.servico-card:hover .icon-wrapper {
    background: var(--accent-2);
    color: #fff;
}

.servico-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.servico-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Diferenciais */
.diferenciais-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dif-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.dif-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.dif-item {
    display: flex;
    gap: 20px;
}

.dif-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    font-size: 1.5rem;
}

.dif-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.dif-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contato */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--bg-alt);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    overflow: hidden;
    padding: 0; /* padding handled inside items or container */
}

.contato-info {
    padding: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
}

.contato-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.contato-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    transition: var(--transit);
}

.whatsapp-card:hover {
    background: rgba(37, 211, 102, 0.15);
    transform: translateX(5px);
}

.wa-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.wa-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.wa-text strong {
    font-size: 1.1rem;
    color: #fff;
}

.contato-form-wrapper {
    padding: 60px;
    background: var(--bg-card);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transit);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.05);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 4px;
}

.footer-brand span {
    color: var(--accent-2);
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
    .sobre-content,
    .diferenciais-wrapper,
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .contato-info, .contato-form-wrapper {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden for mobile, in a real app add a toggle */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .content-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
