/* Professional system font stacks - no external dependencies */
:root {
    --font-serif: Didot, 'Didot LT STD', 'Bodoni 72', 'Bodoni MT', 'Hoefler Text', Garamond, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
    font-family: var(--font-sans), 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.4;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Selection colors (avoid default blue) */
::selection {
    background: #000;
    color: #fff;
}

::-moz-selection {
    background: #000;
    color: #fff;
}

/* CUSTOM SCROLLBAR */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #000 #fff;
}

/* Chrome, Edge, and Safari */
body::-webkit-scrollbar {
    width: 8px;
    z-index: 9999999;
}

body::-webkit-scrollbar-track {
    background: #fff;
    z-index: 9999999;
}

body::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 0;
    border: 2px solid #fff;
    z-index: 9999999;
}

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

a, button, input, textarea, select, label {
    -webkit-tap-highlight-color: transparent;
}

/* Remove default blue focus outline (match B/W theme) */
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    box-shadow: none;
}

img, video {
    max-width: 100%;
    display: block;
}

section {
    scroll-margin-top: 120px;
}


/* std STYLE PROJECTS */
/* std STYLE PROJECTS */
.std-project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.std-project-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #000;
    width: 100%;
    min-height: 320px;
    transition: background 0.3s, color 0.3s;
    background: #fff;
    cursor: pointer;
}
.std-project-item:last-child { border-bottom: none; }
.std-project-img {
    width: 38vw;
    min-width: 320px;
    max-width: 600px;
    height: 320px;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.4s, transform 0.4s;
    flex-shrink: 0;
}
.std-project-item:hover .std-project-img {
    filter: grayscale(0%);
    transform: scale(0.98);
}
.std-project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3vw 4vw;
    flex: 1;
}
.std-project-meta {
    font-size: 1.1vw;
    font-family: var(--font-sans), sans-serif;
    opacity: 0.7;
    margin-bottom: 1vw;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.std-project-title {
    font-size: 3vw;
    font-family: var(--font-serif), serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1vw;
    line-height: 1;
}
.std-project-desc {
    font-size: 1.2vw;
    font-family: var(--font-sans), sans-serif;
    opacity: 0.9;
    line-height: 1.4;
}
.std-project-item:hover {
    background: #000;
    color: #fff;
}
.std-project-item:hover .std-project-meta,
.std-project-item:hover .std-project-desc {
    color: #fff;
    opacity: 1;
}

@media (max-width: 900px) {
    .std-project-list {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        transform: none;
    }
    .std-project-item {
        flex-direction: column;
        min-height: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .std-project-img {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        height: 48vw;
        min-height: 180px;
        max-height: 260px;
    }
    .std-project-info {
        padding: 7vw 5vw 5vw 5vw;
    }
    .std-project-title {
        font-size: 8vw;
    }
    .std-project-meta, .std-project-desc {
        font-size: 4.2vw;
    }
}

/* PORTFOLIO - EDITORIAL GRID */
#projects {
    background: #fff;
}

/* Filtros minimalistas estilo Zara */
.project-filters {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-sans), sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    color: rgba(0, 0, 0, 0.7);
}

.filter-btn.active {
    color: #000;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #000;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden; /* Needed for height animation */
}

.project-row {
    position: relative;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    flex-direction: column;
    display: flex; /* Ensure display is flex by default */
    opacity: 1;
    transform: translateY(0);
    transition: background 0.3s ease, color 0.3s ease; /* Hover transitions only */
}

/* Base Hidden State (Layout removed) */
.project-row.is-hidden {
    display: none;
}

/* Leaving State (Fading out before display:none) */
.project-row.is-leaving {
    animation: fadeOutDown 0.3s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Entering State (Fading in after display:block) */
.project-row.is-entering {
    opacity: 0; /* Start hidden for stagger */
    animation: fadeInUp 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

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

/* FLIP transition helper for reordering animation */
.project-row.is-flip {
    transition-duration: 600ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.project-row.is-hidden {
    display: none;
}

.project-row:nth-child(2n) {
    border-right: none;
}

.project-row:hover {
    background: #000;
    color: #fff;
}

/* Image container */
.project-thumb {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
    border-bottom: 1px solid #000;
    overflow: hidden;
}

.project-row:hover .project-thumb {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Text content */
.project-body {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Top metadata */
.project-kicker {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

/* Project name */
.project-name {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
}

/* Description */
.project-text {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid currentColor;
    padding: 6px 14px;
    opacity: 0.7;
    font-weight: 600;
    transition: opacity 0.3s;
}

.project-row:hover .project-tags span {
    opacity: 1;
}

/* MOBILE - Single column */
@media (max-width: 900px) {
    .section-header-right .section-title {
        font-size: 3rem;
    }

    .project-filters {
        gap: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }
    
    .project-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }

    .project-row {
        border-right: none;
    }

    .project-thumb {
        height: 240px;
    }

    .project-body {
        padding: 2rem 1.5rem;
    }

    .project-name {
        font-size: 1.8rem;
    }

    .project-text {
        font-size: 0.9rem;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .project-thumb {
        height: 280px;
    }
}

/* M�viles peque�os */
@media (max-width: 480px) {
    .project-thumb {
        height: 200px;
    }
    
    .project-body {
        padding: 1.5rem 1rem;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .project-kicker {
        font-size: 0.65rem;
    }
    
    .project-text {
        font-size: 0.85rem;
    }
    
    .project-tags span {
        font-size: 0.65rem;
        padding: 0.4rem 0.7rem;
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
}

/* CUSTOM CURSOR - Minimal Crosshair */
.cursor-dot {
    width: 20px;
    height: 20px;
    background: #ffffff;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    /* Square shape for architect feel */
    border-radius: 0; 
    transition: width 0.2s, height 0.2s, opacity 0.2s ease; /* Smooth hover resize */
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    display: block; /* Ensure visibility */
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2); /* Slight stroke for edge */
}

.cursor-dot.is-hidden {
    opacity: 0;
}

/* Hover state for custom cursor */
.cursor-hover {
    width: 50px;
    height: 50px;
    opacity: 0.5;
}

@media (pointer: coarse) {
    body, a, button {
        cursor: auto;
    }
    .cursor-dot {
        display: none;
    }
}

/* NAVBAR - INVISIBLE / FLOATING TEXT */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4vw;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    color: #000;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.hidden {
    transform: translate3d(0, -120%, 0);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.logo {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo:hover {
    cursor: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    cursor: none;
}

/* Canvas scribble que sigue al cursor */
.cursor-scribble-canvas {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    mix-blend-mode: multiply;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor:pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

/* HERO - "std STYLE" CHAOS / OVERLAY */
 .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 10vh 0 6vh 0;
    border-bottom: 1px solid #000;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4vw;
    align-items: center;
    min-width: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #000;
    padding: 6px 10px;
    margin-bottom: 2rem;
    max-width: 100%;
    white-space: normal;
}

.hero-title {
    font-family: var(--font-serif), serif;
    font-size: 5vw;
    font-weight: 400;
    overflow: visible;
    line-height: 1.05;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #000;
    inset: -60% -40%;
    width: 200%;
    height: 220%;
    max-width: 100%;
}

.hero-title .highlight {
    display: block;
}

.hero-description {
    max-width: 520px;
    width: 100%;
    font-family: var(--font-sans), sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 2.5rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hero-cta {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #000;
    padding-top: 1rem;
    max-width: 420px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-panel {
    border: 1px solid #000;
    padding: 1.8rem;
    background: #fff;
    position: relative;
}

.hero-panel-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.hero-cards {
    position: relative;
    height: 260px;
    width: 100%;
    overflow: visible;
}

.hero-scribble {
    position: absolute;
    inset: -60% -40%;
    width: 200%;
    height: 220%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.65;
}


.floating-card {
    position: absolute;
    border: 1px solid #000;
    padding: 0.9rem 1rem;
    background: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    transition: all 5s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-card.hiding {
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}


.spec-item {
    padding: 0.9rem 1rem;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-sans), sans-serif;
    letter-spacing: -0.5px;
}

@media (max-width: 900px) {
    .hero {
        padding: 12vh 0 6vh 0;
    }
    .hero-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title { 
        font-size: 11vw;
        line-height: 1.1;
        letter-spacing: -1px;
        text-wrap: balance;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-content {
        overflow: hidden;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    .hero-note {
        max-width: 100%;
        word-break: break-word;
    }
    .hero-cards { 
        height: auto;
        min-height: 180px;
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .hero-side {
        order: -1;
    }
    .hero-panel {
        margin-bottom: 2rem;
    }
    .floating-card {
        font-size: 0.7rem;
        padding: 0.7rem 0.9rem;
        max-width: 100%;
        position: relative;
        white-space: normal;
        transform: none !important;
    }
    .btn-main, .btn-outline {
        padding: 1.2rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero-cta .btn-outline {
        border-left: 1px solid #000 !important;
    }
}

/* Tablet landscape y m�viles grandes */
@media (max-width: 1024px) and (min-width: 901px) {
    .hero-title { 
        font-size: 5rem;
    }
    .floating-card {
        font-size: 0.75rem;
    }
}

/* M�viles peque�os */
@media (max-width: 480px) {
    .hero-title {
        font-size: 14vw;
        line-height: 1.08;
        letter-spacing: -0.5px;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.5rem 0.8rem;
    }
    .hero-cta {
        gap: 0.6rem;
    }
    .btn-main, .btn-outline {
        padding: 1rem 1.4rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-panel {
        padding: 1.2rem;
    }
    .spec-value {
        font-size: 1rem;
    }
    .hero-note {
        font-size: 0.9rem;
    }
    .floating-card {
        font-size: 0.65rem;
        padding: 0.6rem 0.8rem;
        max-width: 100%;
    }
}

.btn-main, .btn-outline {
    font-size: 1rem;
    padding: 1.5rem 3rem;
    text-transform: uppercase;
    border: 1px solid #000;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: #fff;
    color: #000;
    transition: all 0.2s;
}

.btn-main:hover, .btn-outline:hover {
    background: #000;
    color: #fff;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    right: 2.5vw;
    bottom: 2.5vw;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-sans), sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.back-to-top .back-to-top-arrow {
    font-size: 0.9rem;
    line-height: 1;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 1.2rem;
        bottom: 1.2rem;
        padding: 0.8rem 1rem;
        font-size: 0.7rem;
    }
}

.project-link {
    cursor: pointer;
}

/* SECTIONS - RAW GRIDS */
section {
    padding: 0; /* Removing padding for grid look */
    border-bottom: 1px solid #000;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.section-header {
    border-bottom: 1px solid #000;
    padding: 4rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: 600;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* ABOUT - SPLIT LAYOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-content {
    border-right: 1px solid #000;
    padding: 4rem 4vw;
}

.about-text p {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-sans), sans-serif;
    line-height: 1.3;
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid #000;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 1.5rem 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
.stat-item:last-child { border-bottom: none; }

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-sans), sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.about-visual {
    padding: 0; /* Remove padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0; /* Light contrast */
}

.visual-box {
    border: none;
    background: transparent;
    font-family: var(--font-sans), sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* SKILLS - TECH GRID STYLE */
.skills-container {
    /* Used in education basically as wrapper, keep simple */
    display: block;
}

/* SKILLS SECTION MAIN */
.skills-showcase {
    border-top: 1px solid #000;
    background: #fff;
}

.skills-intro {
    padding: 4rem 4vw;
    border-bottom: 1px solid #000;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-intro h3 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin: 0;
}

.skills-intro p {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    max-width: 60ch;
}

.skills-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skills-pills span {
    border: 1px solid #000;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    background: #fff;
    transition: 0.2s;
    cursor: default;
}

.skills-pills span:hover {
    background: #000;
    color: #fff;
}

.skills-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #000;
}

.skills-block {
    padding: 0;
    border-right: 1px solid #000;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.skills-block:last-child { border-right: none; }

.skills-block-title {
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    background: #f4f4f4;
    border-bottom: 1px solid #000;
    margin: 0;
    opacity: 1;
}

.skills-block ul {
    list-style: none;
    margin: 0;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    flex: 1;
}

.skills-block li {
    font-family: var(--font-sans), sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    padding-left: 0;
    position: relative;
    color: #333;
}

.skills-block li::before {
    display: none;
}

.skills-block li strong {
    color: #000;
    display: block;
    margin-bottom: 0.2rem;
}


/* EDUCATION TIMELINE */

/* EDUCATION GRID */

/* EDUCATION HORIZONTAL TIMELINE */

/* EDUCATION TABLE BRUTALIST */

/* std STYLE EDUCATION LIST */
.std-edu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow-x: auto;
    white-space: nowrap;
}
.std-edu-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 4vw 4vw 2vw 4vw;
    border-bottom: 1px solid #000;
    min-width: 600px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background: #fff;
    transition: background 0.3s, color 0.3s;
}
.std-edu-item:last-child { border-bottom: none; }
.std-edu-title {
    font-size: 1.2rem;
    font-family: var(--font-sans), sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    flex: 2;
    line-height: 1;
}
.std-edu-meta {
    font-size: 1.1vw;
    font-family: var(--font-sans), sans-serif;
    opacity: 0.7;
    flex: 1;
    text-align: left;
    margin-left: 2vw;
    margin-right: 2vw;
}
.std-edu-date {
    font-size: 0.9rem;
    font-family: var(--font-sans), sans-serif;
    font-weight: 600;
    opacity: 0.5;
    min-width: 80px;
    text-align: right;
}
.std-edu-item:hover {
    background: #000;
    color: #fff;
}
.std-edu-item:hover .std-edu-meta,
.std-edu-item:hover .std-edu-date {
    color: #fff;
    opacity: 1;
}

@media (max-width: 900px) {
    .std-edu-list {
        width: 100%;
        margin: 0;
        transform: none;
        overflow-x: visible;
        white-space: normal;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #000;
    }

    .std-edu-item {
        min-width: 0;
        width: 100%;
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border: none;
        border-bottom: 1px solid #000;
        background: #fff;
    }

    .std-edu-title { 
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .std-edu-meta { 
        font-size: 1rem;
        margin: 0;
        opacity: 0.8;
    }
    
    .std-edu-date {
        margin-top: 0.5rem;
        text-align: left;
        font-size: 0.9rem;
        opacity: 0.5;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 901px) {
    .std-edu-item {
        min-width: 500px;
    }
}

/* M�viles peque�os */
@media (max-width: 480px) {
    .std-edu-title {
        font-size: 0.9rem;
    }
    .std-edu-meta,
    .std-edu-date {
        font-size: 0.75rem;
    }
    .std-edu-item {
        padding: 1.5rem 4vw;
    }
}

/* CONTACT - BRUTAL */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: none;
    padding: 0;
}

.contact-info-section {
    padding: 6rem 4vw;
    border-right: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading {
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-weight: 300;
}

.contact-display-item {
    margin-bottom: 3rem;
    border-left: 2px solid #000;
    padding-left: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #666;
}

.contact-link, .contact-text {
    font-size: 2rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.1;
    display: block;
    word-break: break-word;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    padding: 6rem 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group input, .form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    padding: 1.5rem 0;
    font-size: 1.8rem;
    font-family: var(--font-sans), sans-serif;
    color: #000;
    width: 100%;
    outline: none;
    border-radius: 0;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #000;
    opacity: 0.3;
    text-transform: uppercase;
}

.form-group input:focus, .form-group textarea:focus {
    box-shadow: none;
    border-bottom: 2px solid #000;
    padding-left: 1rem;
    background: rgba(0,0,0,0.02);
}

.contact-icon { display: none; } /* Cleanup old class */

/* CONTACT MOBILE */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        padding: 4rem 6vw 2rem 6vw;
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .contact-heading {
        font-size: 14vw;
        margin-bottom: 2rem;
    }

    .contact-display-item {
        margin-bottom: 2rem;
        padding-left: 1rem;
        border-left-width: 1px;
    }

    .contact-link, .contact-text {
        font-size: 1.4rem;
    }

    .contact-form {
        padding: 3rem 6vw;
    }

    .form-group input, .form-group textarea {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
    
    #submitBtn {
        width: 100%;
        margin-top: 1rem;
        padding: 1.2rem;
    }
}

.form-group { margin-bottom: 2rem; }

/* EXPERIENCE SECTION */
.experience-list {
    width: 100%;
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 3rem 4vw;
    border-bottom: 1px solid #000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    cursor: default;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item * {
    transition: color 0.3s ease;
}

.experience-item:hover {
    background: #000;
}

.experience-item:hover .experience-period,
.experience-item:hover .experience-role,
.experience-item:hover .experience-company,
.experience-item:hover .experience-desc {
    color: #fff !important;
}

.experience-period {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    padding-top: 6px;
}

.experience-role {
    font-size: 2.5rem; /* Bigger for desktop */
    font-weight: 300;
    line-height: 1;
    margin: 0 0 0.5rem 0;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-desc {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.75;
    max-width: 800px;
    margin: 0;
}

/* EXPERIENCE MOBILE */
@media (max-width: 900px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2.5rem 6vw;
    }

    .experience-period {
        font-size: 0.8rem;
        color: #888;
        order: -1;
        margin-bottom: 0.2rem;
        display: block;
    }

    .experience-role {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .experience-company {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .experience-desc {
        font-size: 1rem;
    }
}

/* FOOTER - SIMPLE */
.footer {
    padding: 2rem 4vw;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-top: 1px solid #000;
    background: #fff;
    color: #000;
}

.social-link { 
    color: #000; 
    margin-left: 2rem; 
    font-weight: 700;
}

.social-link::after { background: #000; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar { 
        mix-blend-mode: normal; 
        background: #fff; 
        border-bottom: 1px solid #000; 
        color: #000;
        padding: 1rem 4vw;
    }
    .navbar.hidden {
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 90;
        
        /* Modern Hidden State */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        
        padding: 0;
        border-top: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu .nav-link {
        font-size: 3rem; /* Typography Impact */
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: -1px;
        color: #000;
        border: none;
        padding: 0;
        width: auto;
        text-align: center;
        position: relative;
        opacity: 0; /* Init hidden for animation */
    }
    
    .nav-menu.active .nav-link {
        animation: navLinkSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }

    /* Override old selector */
    .nav-menu a {
        border-bottom: none;
        padding: 0;
    }

    .hamburger { 
        display: flex; 
        z-index: 100;
        position: relative;
    }
    
    .logo {
        position: relative;
        z-index: 100;
    }

    .cursor-scribble-canvas {
        display: none !important;
    }
}

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

@media (max-width: 900px) {
    .about-grid, .skills-container {
        grid-template-columns: 1fr;
    }
    
    /* SKILLS MOBILE "PERFECT" */
    .skills-columns {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-bottom: none;
    }

    .skills-block {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #000;
        padding: 0; /* Let children handle padding for full width feel */
    }
    
    .skills-block-title {
        width: 100%;
        padding: 1.5rem 6vw;
        font-size: 1rem;
        background: #f9f9f9;
        border-bottom: 1px solid #e0e0e0;
    }

    .skills-block ul {
        padding: 2rem 6vw;
        gap: 1rem;
    }

    .skills-block li {
        font-size: 1rem;
    }
    
    .skills-block:last-child {
        border-bottom: 1px solid #000; /* Ensure closure */
    }

    .skills-intro {
        padding: 3rem 6vw;
    }
    
    .skills-intro h3 {
        font-size: 12vw; /* Massive on mobile */
    }
    
    .skills-intro p {
        max-width: 100%;
    }

    .skills-pills {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .skills-pills span {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
        flex-grow: 1; /* Stretch to fill gaps */
        text-align: center;
    }

    .about-content {
        border-right: none;
        border-bottom: 1px solid #000;
    }
    
    .section-header {
        padding: 3rem 6vw 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-header-right {
        width: 100%;
        align-items: flex-start;
    }
    
    .section-label {
        font-size: 0.65rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .about-content {
        padding: 3rem 6vw;
    }
    .about-visual {
        padding: 3rem 6vw;
    }
    .about-text .lead {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    .about-text p {
        font-size: 1rem;
    }
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .social-link {
        margin-left: 0;
        margin-right: 1.5rem;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) and (min-width: 901px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info-section {
        border-right: none;
        border-bottom: 1px solid #000;
    }
}

/* M�viles peque�os */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 4vw;
    }
    .navbar.hidden {
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
    .nav-brand {
        font-size: 1rem;
    }
    .nav-menu {
        gap: 1.5rem;
        padding: 0 6vw;
        text-align: center;
    }
    .nav-menu .nav-link {
        font-size: 2.2rem;
        background: transparent;
    }
    .section-label {
        font-size: 0.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-content,
    .about-visual,
    .contact-info-section,
    .contact-form {
        padding: 2.5rem 6vw;
    }
    .contact-item {
        padding: 1.5rem 0.5rem;
    }
    .contact-item h3 {
        font-size: 0.85rem;
    }
    .contact-item p {
        font-size: 0.95rem;
    }
    .skills-block {
        padding: 0; /* avoid double padding on mobile */
    }
    .skills-block-title {
        padding: 1.25rem 5vw;
    }
    .skills-block ul {
        padding: 1.5rem 5vw;
    }
    .skills-block ul li {
        font-size: 0.9rem;
    }
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    .experience-role {
        font-size: 1.5rem;
    }
    .contact-link,
    .contact-text {
        font-size: 1.2rem;
    }
    input, textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* UTILITY */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

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

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

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

/* PROJECT MODAL */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

.project-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.project-modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    margin: 5vh auto;
    background: #fff;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

.project-modal-close {
    position: absolute;
    top: -50px;
/* ========== DYNAMIC FLOATING CARDS ANIMATIONS ========== */
.hero-cards .floating-card {
    will-change: transform, opacity, top, left;
}

.hero-cards .floating-card.drifting {
    /* The animation will handle opacity and scale */
    animation: drift-life var(--lifetime) linear forwards;
    /* JS will set initial top/left, and the transition animates the movement */
    transition: top var(--lifetime) ease-in-out, left var(--lifetime) ease-in-out;
}

@keyframes drift-life {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(var(--initial-rotation));
    }
    15% { /* Fade in quickly */
        opacity: 1;
        transform: scale(1) rotate(var(--initial-rotation));
    }
    85% { /* Start fading out */
        opacity: 1;
        transform: scale(1) rotate(var(--final-rotation));
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(var(--final-rotation));
    }
}

/* Disable on mobile */
@media (max-width: 900px) {
    .hero-cards .floating-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        background: #fff !important;
        color: #000 !important;
    }
}

    right: 0;
    background: #fff;
    border: 2px solid #fff;
    color: #000;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

.project-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #000;
    background: #fff;
}

.project-modal-header h3 {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
}

.project-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.project-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 2;
}

/* Modal Loader */
.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.modal-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-loader-box {
    width: 200px;
    height: 4px;
    background: #f0f0f0;
    border: 1px solid #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modal-loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #000;
    width: 0%;
    animation: modalLoadProgress 1.5s ease-in-out infinite;
}

.modal-loader-text {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

@keyframes modalLoadProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

/* Modal Custom Message */
.modal-custom-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 3;
    overflow-y: auto;
}

.modal-custom-message.active {
    display: flex;
}

.custom-message-content {
    font-family: var(--font-sans), sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 700px;
    text-align: center;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .project-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        max-width: 100%;
    }

    .project-modal-close {
        top: 1rem;
        right: 1rem;
        background: #000;
        color: #fff;
        border-color: #000;
    }

    .project-modal-header {
        padding: 1rem;
    }

    .project-modal-header h3 {
        font-size: 1rem;
    }
}

/* PAGE LOADER */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-line {
    width: 120px;
    height: 2px;
    background: #000;
    margin: 0 auto;
    transform: scaleX(0);
    animation: expandLine 1s ease-in-out forwards 0.3s;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandLine {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}
/* ========== RESPONSIVE MODAL ========== */
@media (max-width: 900px) {
    .project-modal-content {
        width: 95%;
        max-width: 95%;
        height: 90vh;
        margin: 5vh auto;
    }
    
    .project-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .project-modal-header h3 {
        font-size: 1rem;
    }
    
    .project-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .project-modal-content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .project-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .project-modal-header h3 {
        font-size: 0.9rem;
    }
    
    .project-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

/* ========== RESPONSIVE ABOUT SECTION ========== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        border-right: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ========== RESPONSIVE SKILLS ========== */
@media (max-width: 900px) {
    .skills-showcase {
        grid-template-columns: 1fr;
    }
    
    .skills-intro {
        border-right: none;
        border-bottom: 1px solid #000;
        padding-bottom: 2rem;
    }
    
    .skills-columns {
        grid-template-columns: 1fr;
    }
    
    .skills-block {
        border-right: none;
    }
    
    .skills-pills {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .skills-intro h3 {
        font-size: 1.3rem;
    }
    
    .skills-intro p {
        font-size: 0.9rem;
    }
    
    .skills-pills span {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
    
    .skills-block-title {
        font-size: 0.8rem;
    }
    
    .skills-block ul li {
        font-size: 0.9rem;
    }
}

/* HERO SCRIBBLE VISIBILITY */
.hero-cards {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: visible;
}

.hero-scribble {
    position: absolute;
    inset: -35% -25%;
    width: 150%;
    height: 170%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.65;
}

.floating-card {
    position: absolute;
    z-index: 2;
    padding: 0.8rem 1.2rem;
    border: 1px solid #000;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: #fff;
    color: #000;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-cards {
        min-height: 260px;
    }
    .floating-card {
        font-size: 0.75rem;
        padding: 0.65rem 1rem;
    }
}

body.no-scroll { overflow: hidden; }
