/* ================== FUENTES ====================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&family=Cormorant+Garamond:ital,wght@1,600&display=swap');

/* ================== VARIABLES ==================== */
:root {
    --bg: #F8F3E8;
    --primary: #ffffff;
    --green: #000000;
    --border: #1a1a1a;
}

/* ================== ESTILOS BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    padding-top: 65px;
}

/* ================== CABECERA ===================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: var(--green);
    display: flex;
    align-items: center;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ================== LOGO ========================= */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: black;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo span {
    color: white;
}

/* ================== NAVEGACIÓN =================== */
nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-list a.active {
    border-bottom: 2px solid white;
}

/* ================== MENÚ DESPLEGABLE ============= */
.dropdown {
    position: relative;
    perspective: 1000px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotateX(-90deg);
    transform-origin: top;
    min-width: 150px;
    background: rgba(111, 127, 106, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 14px 14px;
    padding: 8px 0;
    list-style: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
        opacity 0.25s ease;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.15);
    padding-left: 20px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    transform: translateX(-50%) rotateX(0deg);
    opacity: 1;
    pointer-events: auto;
}

/* ===== botones dentro del desplegable ===== */
.dropdown-menu form {
    margin: 0;
}

.dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    padding-left: 20px;
}

.dropdown-btn.danger {
    color: #ffb3b3;
}

/* ================== MENÚ HAMBURGUESA ============= */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle.active i::before {
    content: "\f00d";
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1990;
}

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

/* ================== HERO ========================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateY(-40px);
    padding: 0 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-content i {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #A5B49E;
}

.hero-logo {
    width: 90%;
    max-width: 1000px;
    height: auto;
    margin-top: -120px;
    margin-bottom: -150px;
}

/* ================== BOTÓN PRINCIPAL ============== */
.btn-main {
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    background: rgb(69, 62, 55);
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    transform: translateY(-20px);
}

.btn-main:hover {
    background: rgb(49, 43, 37);
}

/* ================== PORTFOLIO ==================== */
.portfolio-full-image {
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    padding: 0;
}

.portfolio-container {
    width: 100%;
    max-width: 100%;
}

.portfolio-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================== FOOTER ================ */
.main-footer {
    background: #534940;
    color: white;
    padding: 60px 5% 30px;
}

/* CONTENEDOR PRINCIPAL */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

/* BLOQUES */
.footer-brand,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 220px;
    color: white;
}

/* TEXTO AUTORES */
.footer-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
    text-align: left;
}

/* EMAIL */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links .footer-email {
    font-family: 'Billabong', cursive !important;
    font-size: 2.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    text-align: center;
}

.footer-links .footer-email:hover {
    transform: scale(1.05);
    color: var(--bg);
}

.footer-link-creadores {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link-creadores:hover {
    text-decoration: underline;
}

/* REDES */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

/* Hover más visible */
.footer-social a:hover {
    transform: scale(1.2);
}

/* ================== AJUSTES COPYRIGHT & LICENCIA ================ */
.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
}

.footer-bottom-content p {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom-content strong {
    font-weight: 800;
    color: #000;
}

.footer-bottom-content strong span {
    color: white;
}

.footer-license-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.footer-license-link:hover {
    opacity: 0.6;
}

.cc-badge {
    margin-top: 15px;
    filter:none;
    opacity: 0.7;
    transition: 0.3s;
}

.cc-badge:hover {
    filter: grayscale(1) invert(1) brightness(2);
    opacity: 1;
}

.cc-badge img {
    height: 25px;
}

/* ===== ACCIONES MÓVIL ===== */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 18px;
}

/* ===== CARRITO GLOBAL ===== */
.cart-link {
    position: relative;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: black;
    color: white;
    font-size: 0.65rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* carrito desktop */
.desktop-cart .cart-link {
    transform: translateY(4px);
}


/* ================== RESPONSIVE ================ */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: rgba(111,127,106,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 40px;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .header-container {
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 10px;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }

    .hero-content {
        gap: 24px;
        transform: translateY(0);
        padding: 0 20px;
        width: 100%;
    }

    .hero-logo {
        width: 92%;
        max-width: 390px;
        margin-top: -24px;
        margin-bottom: -24px;
        order: 1;
    }

    .btn-main {
        transform: translateY(0);
        order: 2;
        padding: 12px 28px;
        font-size: 0.68rem;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
        margin: 10px 0;
        font-size: 0.8rem;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
    }

    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .footer-links .footer-email {
        font-size: 2rem;
    }

    .mobile-actions {
        display: flex;
        position: fixed;
        right: 5%;
        top: 32px;
        transform: translateY(-50%);
        z-index: 5000;
    }

    .desktop-cart {
        display: none;
    }

    .menu-toggle {
        position: static;
        transform: none;
    }
}

@media (max-width: 480px) {

    .logo h1 {
        font-size: 0.9rem;
    }

    .hero-content {
        gap: 20px;
        transform: translateY(0);
        padding: 0 16px;
        width: 100%;
    }

    .hero-content i {
        font-size: clamp(2.4rem, 14vw, 4rem);
        line-height: 1.1;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-main {
        font-size: 0.65rem;
        padding: 11px 22px;
        transform: translateY(0);
        order: 2;
        align-self: center;
    }

    .hero-logo {
        width: 84%;
        max-width: 320px;
        margin-top: -20px;
        margin-bottom: -16px;
        order: 1;
    }

    /* FOOTER */
    .footer-links .footer-email {
        font-size: 1.6rem;
    }


    .footer-brand h2 {
        font-size: 1.1rem;
    }

    .footer-bottom-content p {
        font-size: 0.65rem;
        padding: 0 10%;
    }
}


/* ============================================
   GLOBAL STYLES
   ============================================ */

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

:root {
    --primary-color: #ffffff;
    --secondary-color: #ff3366;
    --bg-dark: #0a0a0a;
    --bg-darker: #0f0f0f;
    --bg-card: #111;
    --text-primary: #712626;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.843);
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.max-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   UTILITIES
   ============================================ */

.highlight {
    color: var(--primary-color);
}

.white {
    color: var(--text-primary);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #000000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-text {
    display: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #ffffff;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav-menu {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Space Mono', monospace;
    font-weight: 500;
}

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

.language-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s;
}

.language-toggle:hover {
    background: rgba(83, 73, 64, 0.1);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    z-index: 40;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Space Mono', monospace;
    padding: 8px 0;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding: 80px 24px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(to right, var(--primary-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--primary-color) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-gradient-1 {
    top: 25%;
    left: -128px;
    width: 384px;
    height: 384px;
    background: rgba(0, 255, 136, 0.2);
    animation: float-gradient-1 8s ease-in-out infinite;
}

.hero-gradient-2 {
    bottom: 25%;
    right: -128px;
    width: 384px;
    height: 384px;
    background: rgba(255, 51, 102, 0.2);
    animation: float-gradient-2 10s ease-in-out infinite;
}

@keyframes float-gradient-1 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes float-gradient-2 {
    0%, 100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.about-bio {
    flex: 1 1 320px;
    min-width: 0;
}


.about-image {
    flex: 0 1 420px;
    display: flex;
    justify-content: flex-end;
}

.profile-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        justify-content: center;
    }
}

.terminal-badge {
    display: inline-block;
    padding: 12px 16px;
    background: rgba(83, 73, 64, 0.1);
    border: 1px solid rgba(83, 73, 64, 0.3);
    color: var(--primary-color);
    font-size: 12px;
    letter-spacing: 3px;
    font-family: 'Space Mono', monospace;
    margin-bottom: 24px;
}

.hero-title {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hero-title h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 10vw, 144px);
    line-height: 1;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--text-tertiary);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero-typing {
    height: 32px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.typing-text {
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 5px;
}

.typing-cursor {
    color: var(--primary-color);
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: pointer;
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.cta-button {
    position: relative;
    padding: 16px 32px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.cta-button:hover {
    background: #a01d1d;
    transform: scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards, bounce 2s infinite 0.6s;
}

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

.scroll-indicator:hover {
    color: var(--primary-color);
}

.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.corner-top-left {
    top: 80px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.corner-bottom-right {
    bottom: 80px;
    right: 24px;
    border-left: none;
    border-top: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 128px 24px;
}

.section-header {
    margin-bottom: 64px;
}

.section-comment {
    display: block;
    color: var(--primary-color);
    font-size: 12px;
    letter-spacing: 5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 8vw, 112px);
    line-height: 1;
    letter-spacing: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-bio {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-bio p {
    margin-bottom: 24px;
}

.about-highlights {

.buril-fixed-image {
    max-width: 380px;
    margin-bottom: 24px;
}

.buril-carousel-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.buril-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

#experience {
    position: relative;
    background: var(--bg-dark);
    background-image: url('../assets/experiencia.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

#experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
    z-index: 0;
}

#experience .max-width {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 12px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    transition: all 0.3s;
}

.timeline-node.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-node.current::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .timeline-node {
        left: 12px;
    }
}

.timeline-card {
    margin-left: 50%;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    margin-top: 0;
    transform: translateX(24px);
}

.timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

/* experience-image / experience-photo removed: now using section background instead */

@media (max-width: 767px) {
    .timeline-card {
        margin-left: 48px;
        transform: translateX(24px);
    }
}

.timeline-item-left .timeline-card {
    margin-left: 0;
    margin-right: 50%;
    transform: translateX(-24px);
}

@media (max-width: 767px) {
    .timeline-item-left .timeline-card {
        margin-left: 48px;
        margin-right: 0;
        transform: translateX(24px);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.company {
    color: var(--text-tertiary);
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 51, 102, 0.2);
    color: var(--secondary-color);
    font-size: 10px;
    letter-spacing: 1px;
}

.badge.current-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-color);
}

.location, .period {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
    margin-bottom: 8px;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.tech-tags span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-tertiary);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s;
}

.tech-tags span:hover {
    background: rgba(83, 73, 64, 0.2);
    border-color: var(--primary-color);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

#skills {
    background: var(--bg-darker);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.skill-category {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.skill-category:hover {
    border-color: var(--primary-color);
    background: rgba(83, 73, 64, 0.05);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.skill-category i {
    color: var(--primary-color);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.skill-header span:first-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.skill-percentage {
    color: var(--primary-color);
    font-size: 12px;
}

.skill-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #00cc6a 100%);
    animation: fillSkill 1s ease-out forwards;
}

@keyframes fillSkill {
    from {
        width: 0;
    }
}

/* ============================================
   GRAPHICS SECTION
   ============================================ */

#graphics {
    background: var(--bg-dark);
}

/* ============================================
   PROJECTS MENU SECTION
   ============================================ */

#projects-menu {
    background: var(--bg-dark);
}

.projects-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.filter-label {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(83, 73, 64, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.project-content {
    display: none;
    animation: fadeIn 0.5s;
}

.project-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cub3d-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 1024px) {
    .cub3d-container {
        grid-template-columns: 1fr;
    }
}

.cub3d-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cub3d-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* Buril layout: full width */
.buril-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* Portfolio dinámico (admin) */
.portfolio-full-image {
    background: var(--bg-dark);
    padding: 72px 0;
}

.portfolio-wrapper {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.portfolio-title {
    color: var(--primary-color);
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.portfolio-empty {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .portfolio-full-image {
        padding: 54px 0;
    }

    .portfolio-wrapper {
        width: calc(100% - 32px);
    }

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

.portfolio-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.portfolio-thumb {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.portfolio-card figcaption {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.buril-gallery-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.buril-gallery-label {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Galería tipo Google Photos (masonry con columnas) */
.buril-gallery {
    column-count: 3;
    column-gap: 12px;
}

@media (max-width: 1024px) {
    .buril-gallery {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .buril-gallery {
        column-count: 1;
    }
}

.buril-gallery-item {
    width: 100%;
    display: inline-block;
    break-inside: avoid;
    margin: 0 0 12px;
}

.buril-thumb {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.buril-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.buril-thumb-media {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.buril-thumb.is-video .buril-thumb-media {
    background: #000;
}

.buril-play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.0));
}

.buril-play-badge i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--text-secondary);
}

/* Viewer superpuesto */
.buril-viewer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100;
}

.buril-viewer.is-open {
    display: block;
}

.buril-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.buril-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.95);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.buril-viewer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.buril-viewer-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.buril-viewer-media {
    width: 100%;
    background: #000;
    display: grid;
    place-items: center;
}

.buril-viewer-media img,
.buril-viewer-media video {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    display: block;
}

.buril-viewer-meta {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buril-viewer-title {
    color: var(--primary-color);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.buril-viewer-year {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 1px;
}

.buril-viewer-line {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.buril-viewer-caption {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.buril-top {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.buril-fixed-image {
    flex: 1 1 260px;
    max-width: 380px;
}

.buril-carousel {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.buril-slide-frame {
    flex: 1;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.buril-slide {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

.buril-slide.active {
    display: block;
}

.ratatosk-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ratatosk-slide-frame {
    flex: 1;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ratatosk-slide {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

.ratatosk-slide.active {
    display: block;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .buril-carousel {
        gap: 8px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
}

.cub3d-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #7a5f4c;
    transform: scale(1.02);
}

.control-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.control-btn.secondary:hover {
    background: rgba(83, 73, 64, 0.1);
}

.controls-help {
    color: var(--text-tertiary);
    font-size: 12px;
    letter-spacing: 1px;
}

.cub3d-game {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.game-info {
    display: flex;
    gap: 24px;
    color: var(--primary-color);
    font-size: 12px;
    letter-spacing: 1px;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: var(--bg-dark);
}

.close-game {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: color 0.3s;
}

.close-game:hover {
    color: var(--primary-color);
}

/* ============================================
   PROJECTS SECTION (SO_LONG)
   ============================================ */

#projects {
    background: var(--bg-dark);
}

.solong-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    grid-template-areas:
        "info tech"
        "game game";
}

@media (max-width: 1024px) {
    .solong-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "tech"
            "game";
    }
}

.solong-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solong-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.solong-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .game-features {
        grid-template-columns: 1fr;
    }
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.feature:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
}

.feature i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature span {
    font-size: 13px;
    color: var(--text-secondary);
}

.solong-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solong-game {
    grid-area: game;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

#solongCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: #0f0f0f;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    align-items: center;
}

.controls-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mobile-controls-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mobile-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-btn:active {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(0.95);
}

.mobile-btn.rotate {
    width: 50px;
}

@media (max-width: 768px) {
    #solongCanvas {
        max-width: 90vw;
    }

    .mobile-controls {
        display: flex !important;
    }
}

.solong-tech {
    grid-area: tech;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.solong-tech h4 {
    font-size: 16px;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tech-stack {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-stack li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px;
    border-left: 2px solid var(--primary-color);
    padding-left: 12px;
}

.tech-stack i {
    color: var(--primary-color);
}

.graphics-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 300px;
}

.graphics-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.graphics-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

.project-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Space Mono', monospace;
}

.project-link:hover {
    background: #7a5f4c;
    transform: scale(1.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.contact-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#contact .max-width {
    position: relative;
    z-index: 2;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    flex-shrink: 0;
}

.contact-icon i {
    color: #d63a3a;
    font-size: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    color: var(--text-tertiary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    color: #d63a3a;
    font-size: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.availability-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 14px;
}

.availability-pulse {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: pulse-availability 2s infinite;
}

@keyframes pulse-availability {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.footer .max-width {
    padding-top: 64px;
    padding-bottom: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
}

.footer-logo h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
}

.footer-logo p {
    color: var(--text-tertiary);
    font-size: 11px;
    letter-spacing: 1px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-socials a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-bottom p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scroll-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.scroll-to-top:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   PROJECT DESCRIPTION STYLES
   ============================================ */

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-description h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 24px 0 16px 0;
}

.project-description h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 20px 0 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.project-description p {
    margin-bottom: 16px;
}

.features-list {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.features-list ul {
    list-style: none;
    margin: 12px 0 0 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.features-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.project-tech {
    background: rgba(255, 51, 102, 0.05);
    border-left: 3px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.project-tech ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.project-tech li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.project-tech li:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 51, 102, 0.1);
}

.project-note {
    background: rgba(255, 200, 0, 0.08);
    border: 1px solid rgba(255, 200, 0, 0.2);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: var(--text-secondary);
}

.project-note p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-note i {
    color: #ffc800;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    margin-top: 8px;
    overflow-x: auto;
    line-height: 1.4;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s;
}

.project-link:hover {
    border-color: var(--primary-color);
    background: rgba(83, 73, 64, 0.8);
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    section {
        padding: 64px 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hero-title h1 {
        font-size: 36px;
    }

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

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