/* Portfolio Creativo — Minimal Black & White */

:root {
    --accent: #212121;
    --text: #212121;
    --text-light: #888888;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --border: #e8e8e8;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --radius: 2px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================
   NAVBAR — Ultra Minimal
======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.03em;
    color: var(--text);
    text-transform: uppercase;
}

.navbar-logo {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-light);
    transition: color 0.2s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Sections */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 56px;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: uppercase;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Hero */
.hero {
    padding: 160px 0 96px;
    text-align: center;
}

.hero-content {
    max-width: 560px;
    margin: 0 auto;
}

.hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 28px;
    filter: grayscale(10%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 28px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: #fff;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2px;
}

.project-card {
    display: block;
    overflow: hidden;
}

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-card-cat {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.pill {
    padding: 6px 18px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-light);
    transition: all 0.2s;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pill:hover {
    border-color: var(--text);
    color: var(--text);
}

.pill-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pill-active:hover {
    color: #fff;
    border-color: var(--accent);
}

/* Page Header */
.page-header {
    padding-top: 140px;
    padding-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 1rem;
}

/* Project Detail */
.project-hero {
    padding-top: 96px;
}

.project-hero-image {
    overflow: hidden;
    max-height: 600px;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.project-content {
    max-width: 800px;
}

.project-category-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 8px;
}

.project-category-link:hover {
    color: var(--accent);
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.meta-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.meta-value {
    font-weight: 500;
    font-size: 0.9375rem;
}

.project-description {
    margin-bottom: 32px;
    color: var(--text-light);
    line-height: 1.8;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: center;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(15%);
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
}

.testimonial-card {
    background: var(--bg);
    padding: 36px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.contact-info a {
    color: var(--text);
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.9375rem;
    background: transparent;
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

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

.form-feedback {
    font-size: 0.875rem;
    min-height: 1.4em;
}

.form-feedback.success { color: #16a34a; }
.form-feedback.error { color: #dc2626; }

/* Skills */
.skills-container {
    max-width: 560px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 36px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.skill-percentage {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.skill-bar {
    width: 100%;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent);
    animation: fillBar 1.2s ease-out;
}

@keyframes fillBar {
    from { width: 0 !important; }
}

/* Page Content */
.page-content {
    max-width: 800px;
}

.page-image {
    margin-bottom: 32px;
    width: 100%;
}

.page-body {
    line-height: 1.8;
    color: var(--text-light);
}

.page-body h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 16px; color: var(--text); letter-spacing: -0.02em; }
.page-body h3 { font-size: 1.125rem; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin-bottom: 16px; padding-left: 24px; }
.page-body li { margin-bottom: 8px; }

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 64px 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

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

.footer-inner p {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-light);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--text);
}

.powered-badge {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.powered-badge a {
    font-size: 0.75rem;
    color: var(--text-light);
}

.powered-badge a:hover {
    color: var(--text);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px 32px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .section { padding: 64px 0; }
    .hero { padding: 120px 0 64px; }
    .hero h1 { font-size: 2.25rem; }
    .page-header { padding-top: 112px; }
    .page-title { font-size: 1.5rem; }
    .project-hero { padding-top: 80px; }

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

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .hero h1 { font-size: 1.875rem; }
    .section-title { font-size: 1.25rem; }
    .container { padding: 0 20px; }
}
