/* ============================================
           TOKENS DE DISEÑO GLOBALES
           ============================================ */
        :root {
            --bg-primary: #0A0A0F;
            --bg-secondary: #14141B;
            --surface: #1E1E28;
            --surface-hover: #252530;
            --text-primary: #F5F5F7;
            --text-secondary: #8E8E93;
            --text-muted: #48484F;
            --accent: #6366F1;
            --accent-soft: #A78BFA;
            --border-subtle: rgba(255,255,255,0.06);
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-full: 9999px;
            --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
            --shadow-hover: 0 8px 32px rgba(0,0,0,0.4);
            --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
            --transition-fast: 150ms ease;
            --transition-base: 300ms ease;
            --transition-slow: 500ms ease;
        }

        /* ============================================
           RESET & BASE
           ============================================ */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

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

        ul {
            list-style: none;
        }

        /* ============================================
           UTILIDADES
           ============================================ */
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
        }

        @media (max-width: 1023px) {
            .container { padding: 0 32px; }
        }

        @media (max-width: 767px) {
            .container { padding: 0 24px; }
        }

        .section-padding {
            padding: 120px 0;
        }

        @media (max-width: 767px) {
            .section-padding { padding: 80px 0; }
        }

        /* Animaciones de entrada */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .reveal-delay-1 { transition-delay: 100ms; }
        .reveal-delay-2 { transition-delay: 200ms; }
        .reveal-delay-3 { transition-delay: 300ms; }
        .reveal-delay-4 { transition-delay: 400ms; }
        .reveal-delay-5 { transition-delay: 500ms; }
        .reveal-delay-6 { transition-delay: 600ms; }

        /* ============================================
           NAVBAR
           ============================================ */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 72px;
            z-index: 1000;
            display: flex;
            align-items: center;
            transition: background var(--transition-base),
                        border-color var(--transition-base),
                        backdrop-filter var(--transition-base);
        }

        .navbar.scrolled {
            background: rgba(10,10,15,0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-subtle);
        }

        .navbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
        }

        @media (max-width: 1023px) {
            .navbar-inner { padding: 0 32px; }
        }

        @media (max-width: 767px) {
            .navbar { height: 64px; }
            .navbar-inner { padding: 0 24px; }
        }

        .logo {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            white-space: nowrap;
        }

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

        .nav-link {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
            transition: color var(--transition-fast);
        }

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

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

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

        .nav-cta {
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
            border: 1px solid var(--accent);
            padding: 10px 20px;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
        }

        .nav-cta:hover {
            background: var(--accent);
            color: white;
        }

        /* Mobile menu */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1001;
        }

        .hamburger span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--text-primary);
            transition: all var(--transition-base);
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .mobile-menu {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 32px;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-base);
            z-index: 999;
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu a {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
            opacity: 0;
            transform: translateY(20px);
            transition: all var(--transition-base);
        }

        .mobile-menu.active a {
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-menu.active a:nth-child(1) { transition-delay: 50ms; }
        .mobile-menu.active a:nth-child(2) { transition-delay: 100ms; }
        .mobile-menu.active a:nth-child(3) { transition-delay: 150ms; }
        .mobile-menu.active a:nth-child(4) { transition-delay: 200ms; }
        .mobile-menu.active a:nth-child(5) { transition-delay: 250ms; }

        .mobile-menu .nav-cta {
            margin-top: 16px;
            font-size: 16px;
            padding: 14px 28px;
        }

        @media (max-width: 767px) {
            .nav-links { display: none; }
            .hamburger { display: flex; }
        }

        /* ============================================
           HERO
           ============================================ */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 72px;
        }

        .hero-inner {
            display: grid;
            grid-template-columns: 55% 45%;
            gap: 64px;
            align-items: center;
            width: 100%;
        }

        @media (max-width: 1023px) {
            .hero-inner {
                grid-template-columns: 1fr;
                gap: 48px;
            }
        }

        .hero-content {
            padding-left: 0;
        }

        .hero-title {
            font-size: clamp(36px, 5vw, 64px);
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            max-width: 600px;
        }

        .hero-line {
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--accent-soft));
            margin: 32px 0;
            transform-origin: left;
        }

        .hero-subtitle {
            font-size: 18px;
            font-weight: 400;
            line-height: 1.6;
            color: var(--text-secondary);
            max-width: 520px;
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            font-weight: 600;
            padding: 16px 32px;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
            cursor: pointer;
            border: none;
            white-space: nowrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-soft));
            color: white;
        }

        .btn-primary:hover {
            box-shadow: var(--shadow-glow);
            transform: scale(1.02) translateY(-2px);
        }

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

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

        .hero-social {
            display: flex;
            gap: 20px;
            margin-top: 48px;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
        }

        .hero-social a {
            transition: color var(--transition-fast);
        }

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

        .hero-social span {
            color: var(--text-muted);
        }

        /* Hero visual */
        .hero-visual {
            position: relative;
            height: 500px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: linear-gradient(135deg, #1E1E28 0%, #2A2A3A 100%);
        }

        @media (max-width: 1023px) {
            .hero-visual { height: 300px; order: -1; }
        }

        .gradient-orb {
            position: absolute;
            top: 20%;
            left: 30%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
            filter: blur(60px);
            animation: orbFloat 8s ease-in-out infinite;
        }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(30px, -30px); }
        }

        .floating-shape {
            position: absolute;
            width: 80px;
            height: 80px;
            border: 1px solid rgba(99,102,241,0.2);
            border-radius: var(--radius-md);
            animation: shapeFloat 6s ease-in-out infinite;
        }

        .floating-shape:nth-child(2) {
            top: 30%;
            left: 20%;
            animation-delay: 0s;
        }

        .floating-shape:nth-child(3) {
            top: 60%;
            right: 25%;
            width: 60px;
            height: 60px;
            animation-delay: 2s;
        }

        .floating-shape:nth-child(4) {
            bottom: 25%;
            left: 40%;
            width: 100px;
            height: 40px;
            animation-delay: 4s;
        }

        @keyframes shapeFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        .hero-watermark {
            position: absolute;
            right: 10%;
            bottom: 20%;
            font-size: 120px;
            font-weight: 800;
            color: rgba(255,255,255,0.03);
            font-family: 'JetBrains Mono', monospace;
            user-select: none;
            pointer-events: none;
        }

        /* Scroll indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            font-size: 12px;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(10px); }
        }

        @media (max-width: 767px) {
            .scroll-indicator { display: none; }
        }

        /* ============================================
           SECCIONES COMUNES
           ============================================ */
        .section-header {
            margin-bottom: 64px;
        }

        .section-title {
            font-size: clamp(28px, 3vw, 36px);
            font-weight: 700;
            line-height: 1.1;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 18px;
            font-weight: 400;
            color: var(--text-secondary);
            max-width: 600px;
            line-height: 1.6;
        }

        /* ============================================
           PROPUESTA DE VALOR
           ============================================ */
        .value-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        @media (max-width: 1023px) {
            .value-grid { grid-template-columns: 1fr; }
        }

        .value-card {
            background: var(--surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 40px;
            transition: all var(--transition-base);
        }

        .value-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            border-color: var(--accent-soft);
        }

        .value-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 24px;
            color: var(--accent);
        }

        .value-icon svg {
            width: 100%;
            height: 100%;
            stroke-width: 1.5;
        }

        .value-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .value-desc {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .value-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 48px;
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
            transition: gap var(--transition-fast);
        }

        .value-cta:hover {
            gap: 12px;
        }

        /* ============================================
           SOBRE MÍ
           ============================================ */
        .about-grid {
            display: grid;
            grid-template-columns: 45% 55%;
            gap: 64px;
            align-items: center;
        }

        @media (max-width: 1023px) {
            .about-grid {
                grid-template-columns: 1fr;
                gap: 48px;
            }
        }

        .about-image {
            aspect-ratio: 4/5;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: linear-gradient(135deg, #1E1E28 0%, #2A2A3A 100%);
            position: relative;
        }

        @media (max-width: 1023px) {
            .about-image { aspect-ratio: 16/9; order: -1; }
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: 20%;
            left: 10%;
            right: 10%;
            height: 1px;
            background: rgba(99,102,241,0.2);
        }

        .about-image::after {
            content: '';
            position: absolute;
            bottom: 20%;
            left: 10%;
            right: 10%;
            height: 1px;
            background: rgba(99,102,241,0.2);
        }

        .about-content h2 {
            font-size: clamp(24px, 3vw, 32px);
            font-weight: 700;
            line-height: 1.2;
            color: var(--text-primary);
            margin-bottom: 24px;
        }

        .about-content p {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .about-content p:last-of-type {
            margin-bottom: 0;
        }

        .about-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 32px;
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
        }

        .about-link:hover {
            gap: 12px;
        }

        /* ============================================
           SERVICIOS
           ============================================ */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        @media (max-width: 1023px) {
            .services-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 767px) {
            .services-grid { grid-template-columns: 1fr; }
        }

        .service-card {
            background: transparent;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 40px 32px;
            transition: all var(--transition-base);
            position: relative;
        }

        .service-card:hover {
            background: var(--surface);
            border-color: var(--accent-soft);
            transform: translateY(-4px);
            box-shadow: var(--shadow-card);
        }

        .service-number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent);
            margin-bottom: 16px;
        }

        .service-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.02em;
            line-height: 1.3;
            margin-bottom: 16px;
        }

        .service-desc {
            font-size: 15px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .service-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
            transition: gap var(--transition-fast);
        }

        .service-link:hover {
            gap: 10px;
        }

        /* ============================================
           HABILIDADES
           ============================================ */
        .skills-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
        }

        @media (max-width: 1023px) {
            .skills-layout { grid-template-columns: 1fr; gap: 32px; }
        }

        .skills-category {
            margin-bottom: 32px;
        }

        .skills-category:last-child {
            margin-bottom: 0;
        }

        .skills-category-title {
            font-size: 13px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            margin-bottom: 24px;
        }

        .skill-item {
            display: flex;
            align-items: baseline;
            gap: 12px;
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 2.4;
            position: relative;
            padding-left: 0;
        }

        .skill-item::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
            margin-top: 14px;
        }

        .skills-mindset {
            grid-column: 1 / -1;
            border-top: 1px solid var(--border-subtle);
            padding-top: 32px;
        }

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

        @media (max-width: 767px) {
            .skills-mindset-grid { grid-template-columns: 1fr; }
        }

        .mindset-item {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            padding-left: 16px;
            border-left: 2px solid var(--accent);
        }

        /* ============================================
           HERRAMIENTAS
           ============================================ */
        .tools-intro {
            font-size: 18px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 700px;
            margin-bottom: 48px;
        }

        .tool-item {
            padding: 24px 0;
            border-bottom: 1px solid var(--border-subtle);
            transition: padding-left var(--transition-base);
            position: relative;
        }

        .tool-item:first-child {
            border-top: 1px solid var(--border-subtle);
        }

        .tool-item:hover {
            padding-left: 16px;
        }

        .tool-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, var(--accent), var(--accent-soft));
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .tool-item:hover::before {
            opacity: 1;
        }

        .tool-name {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .tool-desc {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* ============================================
           PROYECTOS
           ============================================ */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

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

        .project-card {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            aspect-ratio: 4/3;
            cursor: pointer;
        }

        .project-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1E1E28 0%, #2A2A3A 50%, #1E1E28 100%);
            position: relative;
            overflow: hidden;
        }

        .project-placeholder::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        .project-number {
            position: absolute;
            right: 24px;
            bottom: 24px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 80px;
            font-weight: 800;
            color: rgba(255,255,255,0.04);
            user-select: none;
        }

        .project-label {
            position: absolute;
            top: 24px;
            left: 24px;
            background: rgba(99,102,241,0.15);
            color: var(--accent-soft);
            padding: 8px 16px;
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: rgba(10,10,15,0.85);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 32px;
            opacity: 0;
            transition: opacity 400ms ease;
        }

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

        @media (max-width: 767px) {
            .project-overlay {
                opacity: 1;
                background: linear-gradient(transparent 40%, rgba(10,10,15,0.9) 100%);
            }
        }

        .project-category {
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .project-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .project-link {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all var(--transition-fast);
        }

        .project-link:hover {
            color: var(--text-primary);
            gap: 10px;
        }

        /* ============================================
           EXPERIENCIA
           ============================================ */
        .experience-block {
            background: var(--surface);
            border-radius: var(--radius-lg);
            padding: 48px;
            border-left: 3px solid;
            border-image: linear-gradient(180deg, var(--accent), var(--accent-soft)) 1;
            position: relative;
        }

        @media (max-width: 767px) {
            .experience-block { padding: 32px 24px; }
        }

        .experience-role {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .experience-meta {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }

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

        .experience-text {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .experience-text p {
            margin-bottom: 16px;
        }

        .experience-text p:last-child {
            margin-bottom: 0;
        }

        /* ============================================
           CONTACTO (Sin caja, sin X, sin formulario)
           ============================================ */
        .contact-section {
            background: var(--bg-secondary);
            text-align: center;
        }

        .contact-title {
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 24px;
        }

        .contact-text {
            font-size: 18px;
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto 40px;
        }

        .contact-cta {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, var(--accent), var(--accent-soft));
            color: white;
            font-size: 18px;
            font-weight: 600;
            padding: 20px 48px;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
            box-shadow: var(--shadow-glow);
        }

        .contact-cta:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 0 60px rgba(99,102,241,0.25);
        }

        .contact-note {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-muted);
            margin-top: 16px;
        }

        .contact-social {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 32px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
        }

        .contact-social a {
            transition: color var(--transition-fast);
        }

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

        /* ============================================
           FOOTER
           ============================================ */
        .footer {
            border-top: 1px solid var(--border-subtle);
            padding: 48px 0;
        }

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

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .footer-logo {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .footer-tagline {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-muted);
        }

        .footer-top {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
            cursor: pointer;
            transition: color var(--transition-fast);
        }

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

        .footer-copyright {
            width: 100%;
            text-align: center;
            font-size: 12px;
            font-weight: 400;
            color: var(--text-muted);
            margin-top: 24px;
        }

        @media (max-width: 767px) {
            .footer-inner {
                flex-direction: column;
                text-align: center;
            }
        }



/* ============================================
   WORDPRESS THEME EXTENSIONS
   ============================================ */
.logo {
    display: inline-flex;
    align-items: center;
}
.logo-img {
    max-height: 42px;
    width: auto;
}
.nav-links li {
    list-style: none;
}
.nav-links a:not(.nav-cta) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: width var(--transition-base);
}
.nav-links a:not(.nav-cta):hover {
    color: var(--text-primary);
}
.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}
.hamburger {
    background: transparent;
    border: 0;
}
.section-bg-secondary {
    background: var(--bg-secondary);
}
.section-center {
    text-align: center;
}
.section-cta {
    text-align: center;
    margin-top: 48px;
}
.hero-visual-image,
.project-image,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-orb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-orb::before {
    content: '';
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    filter: blur(40px);
}
.project-card {
    display: block;
    color: inherit;
}
.contact-text-last {
    margin-bottom: 40px;
}
.footer-top {
    background: transparent;
    border: 0;
}
.article-card {
    margin-bottom: 24px;
}
@media (max-width: 767px) {
    .hero-buttons .btn,
    .contact-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   V1.1 — Hero media, project galleries and internal viewer
   ============================================ */
.hero-visual.hero-ratio-landscape { aspect-ratio: 4 / 3; height: auto; min-height: 380px; }
.hero-visual.hero-ratio-wide { aspect-ratio: 16 / 9; height: auto; min-height: 320px; }
.hero-visual.hero-ratio-portrait { aspect-ratio: 4 / 5; height: auto; min-height: 500px; }
.hero-visual.hero-ratio-story { aspect-ratio: 9 / 16; height: auto; min-height: 560px; max-width: 430px; justify-self: end; }
.hero-visual.hero-ratio-square { aspect-ratio: 1 / 1; height: auto; min-height: 420px; }
.hero-visual.hero-ratio-panorama { aspect-ratio: 21 / 9; height: auto; min-height: 260px; }

.hero-media-carousel,
.hero-media-slide,
.hero-video,
.hero-visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media-carousel { overflow: hidden; }

.hero-media-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 900ms ease;
}

.hero-media-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-media-slide img,
.hero-video,
.hero-visual-image {
    width: 100%;
    height: 100%;
    object-position: center;
}

.media-fit-cover .hero-media-slide img,
.media-fit-cover .hero-video,
.media-fit-cover .hero-visual-image { object-fit: cover; }
.media-fit-contain .hero-media-slide img,
.media-fit-contain .hero-video,
.media-fit-contain .hero-visual-image { object-fit: contain; background: #0A0A0F; }

.hero-media-dots {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.hero-dot.is-active {
    background: var(--text-primary);
    transform: scale(1.25);
}

.project-card {
    border: 0;
    padding: 0;
    width: 100%;
    display: block;
    text-align: left;
    color: inherit;
    background: transparent;
}

.project-card:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 4px;
}

.project-ratio-landscape { aspect-ratio: 4 / 3; }
.project-ratio-wide { aspect-ratio: 16 / 9; }
.project-ratio-portrait { aspect-ratio: 4 / 5; }
.project-ratio-story { aspect-ratio: 9 / 16; }
.project-ratio-square { aspect-ratio: 1 / 1; }
.project-ratio-panorama { aspect-ratio: 21 / 9; }

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 500ms ease;
}

.project-card:hover .project-image { transform: scale(1.04); }

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.portfolio-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.portfolio-lightbox-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 64px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(20,20,27,0.96);
    box-shadow: 0 24px 90px rgba(0,0,0,0.55);
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 28px 72px 20px 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.lightbox-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 8px;
}

.lightbox-title {
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.15;
    color: var(--text-primary);
}

.lightbox-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.lightbox-media-wrap {
    position: relative;
    min-height: 320px;
    height: min(72vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 76px;
    background: #07070B;
}

.lightbox-media-display {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    background: #0A0A0F;
}

.lightbox-image,
.lightbox-video {
    object-fit: contain;
}

.lightbox-fit-cover { object-fit: cover; }
.lightbox-fit-contain { object-fit: contain; }

.lightbox-ratio-landscape { aspect-ratio: 4 / 3; width: min(100%, 960px); height: auto; }
.lightbox-ratio-wide { aspect-ratio: 16 / 9; width: min(100%, 1040px); height: auto; }
.lightbox-ratio-portrait { aspect-ratio: 4 / 5; height: min(100%, 660px); width: auto; }
.lightbox-ratio-story { aspect-ratio: 9 / 16; height: min(100%, 680px); width: auto; }
.lightbox-ratio-square { aspect-ratio: 1 / 1; height: min(100%, 680px); width: auto; }
.lightbox-ratio-panorama { aspect-ratio: 21 / 9; width: min(100%, 1080px); height: auto; }

.lightbox-video::-webkit-media-controls-panel {
    background-color: rgba(10,10,15,0.78);
}

.lightbox-empty {
    display: none;
    color: var(--text-secondary);
    text-align: center;
    max-width: 420px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 70px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-50%) scale(1.04);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav.is-hidden { display: none; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 1023px) {
    .hero-visual.hero-ratio-story { justify-self: center; }
}

@media (max-width: 767px) {
    .hero-visual.hero-ratio-landscape,
    .hero-visual.hero-ratio-wide,
    .hero-visual.hero-ratio-portrait,
    .hero-visual.hero-ratio-story,
    .hero-visual.hero-ratio-square,
    .hero-visual.hero-ratio-panorama {
        min-height: 320px;
        max-width: 100%;
    }

    .portfolio-lightbox { padding: 14px; }
    .portfolio-lightbox-dialog { max-height: calc(100vh - 28px); border-radius: 16px; }
    .lightbox-header { padding: 22px 62px 16px 20px; align-items: flex-start; flex-direction: column; gap: 8px; }
    .lightbox-media-wrap { height: min(68vh, 620px); padding: 20px 14px 72px; }
    .lightbox-nav { top: auto; bottom: 14px; transform: none; width: 54px; height: 44px; font-size: 34px; }
    .lightbox-nav:hover { transform: scale(1.04); }
    .lightbox-ratio-landscape,
    .lightbox-ratio-wide,
    .lightbox-ratio-panorama { width: 100%; height: auto; }
    .lightbox-ratio-portrait,
    .lightbox-ratio-story,
    .lightbox-ratio-square { max-width: 100%; height: min(100%, 520px); }
    .lightbox-prev { left: calc(50% - 66px); }
    .lightbox-next { right: calc(50% - 66px); }
}
