/* CSS Variables & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette (Default: Dark Mode) */
    --color-bg: #000000;
    --color-bg-elevated: #0a0a0a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-glass: rgba(0, 0, 0, 0.5);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #737373;
    
    /* ATUALIZADO: Brand Colors (Nova Paleta Verde) */
    --color-brand-primary: #10b981;    /* Verde Esmeralda Principal */
    --color-brand-secondary: #059669;   /* Verde Esmeralda Escuro */
    --color-brand-accent: #a3e635;     /* Verde-Limão (Neon) */
    --color-brand-neon: #a3e635;       /* Verde-Limão (Neon) */

    /* Valores RGB para usar com transparência (rgba) */
    --color-brand-primary-rgb: 16, 185, 129;
    --color-brand-secondary-rgb: 5, 150, 105;
    
    /* ATUALIZADO: Gradients */
    --gradient-brand: linear-gradient(135deg, #10b981 0%, #059669 50%, #a3e635 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(158, 83%, 39%, 0.3) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, hsla(84, 100%, 56%, 0.2) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, hsla(158, 100%, 76%, 0.2) 0px, transparent 50%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.43, 0.195, 0.02, 0.96);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Noise Overlay */
    --noise-opacity: 0.03;
    --noise-blend-mode: normal;
}

/* Light Mode Variables */
html[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-elevated: #f4f4f5;
    --color-surface: rgba(0, 0, 0, 0.03);
    --color-surface-glass: rgba(255, 255, 255, 0.5);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.12);
    
    --color-text-primary: #0a0a0a;
    --color-text-secondary: #525252;
    --color-text-muted: #737373;

    /* ATUALIZADO: Gradiente Mesh para Light Mode */
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(158, 83%, 39%, 0.15) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, hsla(84, 100%, 56%, 0.1) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, hsla(158, 100%, 76%, 0.1) 0px, transparent 50%);

    --noise-opacity: 0.05;
    --noise-blend-mode: multiply;
}

/* Melhoria de Acessibilidade (Foco Visível) */
:focus-visible {
    outline: 3px solid var(--color-brand-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Base Styles */
html {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background: var(--color-bg);
    overflow-x: hidden;
    cursor: none;
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cursor */
.cursor {
    width: 25px;
    height: 25px;
    border: 2px solid white;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease-out;
    mix-blend-mode: difference;
    background: transparent;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: var(--color-brand-primary);
    opacity: 0.1;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease-out;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0);
}

a, button, .interactive {
    cursor: none;
}

* {
    cursor: none !important;
}

/* Noise Texture Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: var(--noise-opacity);
    mix-blend-mode: var(--noise-blend-mode);
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0.4;
    z-index: 0;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-20px, -20px) scale(1.1) rotate(120deg); }
    66% { transform: translate(20px, -10px) scale(0.95) rotate(240deg); }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--color-surface-glass);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    animation: slideDown 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-menu a:hover {
    color: var(--color-text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-brand);
    transition: left 0.5s var(--ease-out-expo);
    z-index: -1;
}

.nav-cta:hover::before {
    left: 0;
}

.nav-cta:hover {
    border-color: transparent;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.theme-toggle:hover {
    color: var(--color-brand-primary);
}

html[data-theme="dark"] .theme-toggle .ph-sun {
    display: none;
}
html[data-theme="light"] .theme-toggle .ph-moon {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}
.lang-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}
.lang-btn:hover {
    color: var(--color-brand-primary);
}
.lang-btn.active {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-3xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-strong);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-brand-neon);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-brand-neon);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-title .line {
    display: block;
    overflow: visible;
}

.hero-title .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(var(--color-brand-primary-rgb), 0.5);
}

.btn-secondary {
    background: var(--color-surface-glass);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--color-brand-primary);
}

.btn i {
    font-size: 1.25rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xl);
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s var(--ease-out-expo);
}

.about-image-wrapper:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.about-text p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
    .about-image-wrapper {
        transform: none;
        max-width: 80%;
    }
    .about-image-wrapper:hover {
        transform: none;
    }
    .about-text {
        text-align: center;
    }
}

/* Bento Grid Section */
.bento-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border-strong);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-brand-primary);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.bento-item {
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-brand-primary);
    box-shadow: 0 20px 40px -15px rgba(var(--color-brand-primary-rgb), 0.3);
}

.bento-item:hover::before {
    opacity: 0.1;
}

/* Bento Grid Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-featured {
    grid-column: span 3;
    grid-row: span 2;
}

/* Bento Content */
.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.bento-icon i {
    font-size: 24px;
    color: white;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bento-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1; /* CORRIGIDO: Adicionado de volta */
}

/* Key Services removido */

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto; /* CORRIGIDO: margin-top: var(--space-md) removido */
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(var(--color-brand-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-brand-primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--color-brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tag i {
    font-size: 1.1em;
}

/* Stats */
.bento-stat {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.bento-stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.portfolio-card {
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-brand-primary);
    box-shadow: 0 20px 40px -15px rgba(var(--color-brand-primary-rgb), 0.4);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: var(--gradient-mesh);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: var(--space-xl);
}

.portfolio-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(var(--color-brand-secondary-rgb), 0.1);
    border: 1px solid rgba(var(--color-brand-secondary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--color-brand-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.portfolio-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.tech-tag {
    padding: 0.25rem 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.portfolio-link:hover {
    gap: 1rem;
}

.portfolio-link.disabled {
    color: var(--color-text-muted);
    opacity: 0.7;
    pointer-events: none;
}
.portfolio-link.disabled:hover {
    gap: 0.5rem;
}

/* Efeito de Brilho (Shine) */
.bento-item::after,
.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease-out-expo);
    z-index: 1;
}

.bento-item:hover::after,
.portfolio-card:hover::after {
    left: 150%;
}

.bento-item > div,
.portfolio-content,
.portfolio-image {
    position: relative;
    z-index: 2;
}


/* Contact Section */
.contact-section {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-3xl) 0;
}

.contact-card {
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: var(--space-xl);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-primary);
    box-shadow: 0 20px 40px -15px rgba(var(--color-brand-primary-rgb), 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.contact-icon i {
    font-size: 28px;
    color: white;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contact-info {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.contact-link {
    color: var(--color-brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--color-brand-secondary);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 90;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px -10px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    font-size: 30px;
    color: white;
}

/* Footer */
footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-brand-primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    z-index: 101;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large,
    .bento-wide,
    .bento-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-cta,
    .theme-toggle,
    .lang-switcher {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        gap: var(--space-lg);
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-large,
    .bento-tall,
    .bento-wide,
    .bento-featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    * {
        cursor: auto !important;
    }
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulseScale 1.5s ease infinite;
    line-height: 1;
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-brand);
    animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* Smooth Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}