:root {
    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-drawer: #1a1a24;
    --accent-primary: #00f0ff;
    --accent-secondary: #ff3366;
    --accent-yellow: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --gradient-1: linear-gradient(135deg, #00f0ff, #0066ff);
    --gradient-2: linear-gradient(135deg, #ff3366, #ff6b35);
}

/* Highlight label used for 'Estudios más recientes' and 'Trabajo actual' */
.section-highlight{
    display:block;
    color: var(--accent-primary);
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin: 16px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-align: center;
}

.section-subnote{
    display:none; /* removed as per request */
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: float 25s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -250px;
    left: -250px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -200px;
    right: -200px;
    animation-delay: 7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffd700, #ff8800);
    top: 40%;
    right: 5%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(80px, -60px) rotate(120deg); }
    66% { transform: translate(-50px, 50px) rotate(240deg); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 0;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

/* (removed) .tabbed no longer used; lines use <br> without indentation */

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image-container {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Content wrapper hidden by default; revealed when user unlocks the drawer */
.content-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
    pointer-events: none;
}

.content-wrapper.revealed {
    opacity: 1;
    max-height: 9999px; /* large value to allow content expansion */
    pointer-events: auto;
}

/* Small helpers for lock UI */
.lock-container.hidden { display: none !important; }
.arrow-down.hidden { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.lock-button.unlocked { transform: translateY(-2px); }

/* remove gradient overlay so PNG transparency shows through unchanged */
.hero-image::before {
    content: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.placeholder-image {
    font-size: 8rem;
    opacity: 0.5;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr min(420px, 40%);
    gap: 32px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.about-image {
    position: relative;
    width: 75%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: var(--bg-drawer);
    border: 2px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./video/poster.jpg') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.about-image video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    background: transparent;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-card.is-playing video {
    opacity: 1;
}

.video-card {
    transition: transform 0.4s ease;
    cursor: pointer;
}

/* ensure play overlay positions relative to the video container */
.video-card {
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-card.is-playing {
    transform: none;
    cursor: default;
    background: transparent; /* remove dim overlay when playing */
}

.video-card .video-play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 3rem;
    font-family: 'Syne', sans-serif;
    border-radius: inherit;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: auto;
}

.video-card .video-play-button img {
    width: auto;
    height: 90px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.90;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.video-card .video-play-button:focus-visible img {
    opacity: 0.95;
    filter: drop-shadow(0 0 0 4px rgba(10, 10, 15, 0.9)) drop-shadow(0 0 0 8px var(--accent-primary));
}

.video-card .video-play-button:hover {
    background: rgba(0, 0, 0, 0.4);
}

.video-card .video-play-button:hover img {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
}

.video-card.is-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

.about-text h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* CV Section */
.cv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Stacked variant: use for sections where columns should appear one below the other */
.cv-grid--stacked {
    display: block;
    margin-bottom: 18px;
}
.cv-grid--stacked .cv-column {
    width: 100%;
    margin-bottom: 18px;
}

/* Grid variant with a vertical separator between columns */
/* Title styling for resume columns */
.cv-column h3{
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    margin-bottom: 18px;
    color: var(--accent-primary);
    text-transform: none;
    letter-spacing: 0.6px;
}

.cv-column h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cv-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-primary);
    --cv-hover-accent: var(--accent-primary);
    transition: all 0.3s ease;
}

/* Education logos: box with same radius as the card */
.cv-item {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* align content to the top for consistent text layout */
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    border-left: 4px solid var(--accent-primary);
}

.edu-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.edu-logo img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    padding: 0;
}

.edu-content {
    flex: 1;
}

.cv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
}

.cv-header h4 {
    margin: 0;
    font-size: 1.25rem; /* slightly larger for better legibility */
}

/* thin faded divider under logo + title (gradient fade left/right) */
.cv-header::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.edu-logo {
    margin: 0; /* ensure no extra gap under logo */
}

.cv-meta {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 1rem; /* increase meta text size for readability */
}

.cv-item p {
    margin-top: 10px;
    font-size: 1rem; /* make body text in cards easier to read */
}

/* Sub-education block inside the same card */
.sub-edu {
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 0;
    margin-bottom: 0; /* remove extra space under sub-education blocks (e.g., WAY Padel) */
    border-top: 1px dashed rgba(255,255,255,0.04);
}

/* Reduce bottom spacing inside cv items to remove large gaps under sub-entries */
.cv-column .cv-item {
    margin-bottom: 12px; /* less space between cards */
    padding-bottom: 12px; /* reduce internal bottom padding */
}

.cv-column .cv-item .sub-edu-desc {
    margin-bottom: 0; /* ensure description has no bottom margin */
}

.sub-edu h5 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
}

.sub-edu-desc {
    margin: 6px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sub-education header: small logo + title inline, with thin divider */
.sub-edu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    padding-bottom: 8px;
}

.sub-edu-header::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    pointer-events: none;
}

/* Visit link used on main and sub entries */
.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    white-space: nowrap;
}

.cv-link img,
.cv-link svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: var(--text-primary);
}

.cv-link:hover {
    background: rgba(255,255,255,0.03);
    color: var(--accent-primary);
    transform: translateY(-2px);
    border-color: rgba(0,240,255,0.12);
}

.sub-edu-header .cv-link {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.edu-logo--small {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.04);
}

.edu-logo--small img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 64%;
    max-height: 64%;
    width: auto;
    height: auto;
    padding: 0;
}

/* logos are now white SVGs; no CSS inversion required */

.sub-edu .cv-meta {
    margin-top: 10px;
}

.about-video {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-drawer);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    margin: 0;
    position: relative;
    justify-self: end; /* keep it on the right column */
    /* show poster as background until video plays */
    background-image: url('video/poster.jpg');
    background-position: center;
    background-size: cover;
}

.about-video video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (max-width: 900px) {
    .about-video {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin: 18px 0 0 0;
        justify-self: stretch;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Layout: allow text to flow and wrap around the floated video */
.about-text {
    display: block;
    text-align: left; /* ensure text is left-aligned, not justified */
}

.about-text p {
    margin-bottom: 1rem;
}

/* Emphasis style for highlighted phrases in About section */
.highlight-strong {
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* remove extra space after the last paragraph so text end aligns with video bottom */
.about-text p:last-child {
    margin-bottom: 0;
}

.cv-item:hover {
    transform: translateX(5px);
    border-left-color: var(--cv-hover-accent);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.cv-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cv-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cv-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cv-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.learning-journey {
    margin-top: 40px;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 30px;
    align-items: center;
}

.learning-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.learning-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.progress-wrapper {
    background: var(--bg-drawer);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.05);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: inherit;
    transition: width 1s ease;
}


/* Skills Section: show cards in a single responsive row that wraps */
.skills-panel .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-top: 18px;
}

.skills-panel .skills-grid .skill-card {
    flex: 0 1 160px;
    min-width: 140px;
    max-width: 170px;
}

.skill-category {
    margin-bottom: 20px;
}

/* Panel container styling to avoid overlap and contain children */
.skills-panel {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 22px;
    overflow: hidden; /* ensure inner cards do not escape the box */
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.skills-toggle[aria-expanded="true"] {
    border-color: rgba(0,240,255,0.12);
    color: var(--accent-primary);
}

/* Collapsible cards area */
.skills-panel-cards {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}
.skills-panel.open .skills-panel-cards {
    max-height: 2000px; /* large enough to reveal content */
    opacity: 1;
}

/* Accessibility helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Centered control under progress */
.panel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0 8px 0;
}

/* Make program cards squared and avoid overlap */
.skills-panel .skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 132px;
    padding: 16px 12px;
    width: 160px;
    min-width: 140px;
    max-width: 170px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    border-left: none;
    text-align: center;
}

.skills-panel .skill-card .edu-logo--small {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}

.skills-panel .skill-card .edu-content h4 {
    font-size: 0.92rem;
    line-height: 1.25;
    margin: 0;
}

.skills-panel .skill-card .edu-content {
    flex: 0 0 auto;
}

.skills-panel .skill-card .skill-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    line-height: 1;
    text-transform: uppercase;
}

.category-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    padding: 25px 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.category-title:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.category-title::after {
    content: '▼';
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.skill-category.active .category-title::after {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

/* --- Skills section additions moved from inline --- */
.skill-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);border:1px solid rgba(255,255,255,0.04)}
.skill-card .edu-logo--small{flex-shrink:0;background:transparent;border:1px solid rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:center;font-size:20px;width:56px;height:56px;border-radius:10px}
.skill-card .edu-content{flex:1}
.skill-card .edu-content h4{margin:0;color:var(--text-primary);font-size:1rem}

/* Category card style matching capture */
.category-title.no-arrow::after{content:none}
.category-card{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:12px;background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);box-shadow:0 6px 20px rgba(0,0,0,0.35);margin-bottom:8px}
.category-card .learning-content h3{margin:0;font-family:'Syne',sans-serif;color:var(--accent-primary);font-size:1.05rem;font-weight:700;letter-spacing:0.2px;line-height:1}
.category-card .cv-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.03);font-size:20px;color:var(--text-primary)}
.category-title{cursor:default}

/* End of skills additions */

/* Hierarchy and spacing tweaks for Skills subsection */
.skill-category{margin-bottom:28px}
.skill-category .category-card{padding:20px 22px}
.skill-category .category-card .learning-content h3{font-size:1.25rem;letter-spacing:0.2px}

/* Make the grid of program cards clearer and more structured */
.skill-category .skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:18px}

/* Program name (h4) as secondary heading */
.skill-card .edu-content h4{font-family:'Syne',sans-serif;font-weight:700;font-size:1rem;color:var(--text-primary)}
.skill-card .edu-content .cv-meta{margin-top:6px;color:var(--text-secondary);font-size:0.9rem}

/* Subtle hover to lift program cards */
.skill-card:hover{transform:translateY(-6px);box-shadow:0 18px 48px rgba(0,0,0,0.45);transition:all .28s cubic-bezier(.2,.9,.2,1)}

/* Ensure icons/images fit neatly */
.skill-card .edu-logo--small img{width:100%;height:100%;object-fit:contain;border-radius:8px}

@media (max-width:700px){
    .category-card{padding:14px}
    .skill-card{padding:12px}
}

/* Skills panel: large card like 'Mi Compromiso Actual' */
.skills-panel{
    background: var(--bg-card);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    margin-bottom: 30px;
}
.skills-panel .panel-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.skills-panel .panel-left{flex:1}
.skills-panel .panel-left .panel-title{font-family:'Syne',sans-serif;color:var(--accent-primary);font-size:1.5rem;margin:0 0 6px 0}
.skills-panel .panel-left p{color:var(--text-secondary);margin:0}
.skills-panel .panel-right{min-width:220px;max-width:320px}
.skills-panel .panel-right .mini-box{background:var(--bg-drawer);padding:14px;border-radius:14px;border:1px solid rgba(255,255,255,0.03);box-shadow:inset 0 8px 30px rgba(0,240,255,0.02)}
.skills-panel .panel-right .mini-box .progress-meta{display:flex;justify-content:space-between;color:var(--text-primary);font-weight:700}
.skills-panel .skills-panel-cards{margin-top:18px}

@media (max-width:900px){
    .skills-panel .panel-row{flex-direction:column;align-items:flex-start}
    .skills-panel .panel-right{width:100%;max-width:none}
}

/* icon in skills panel header */
.skills-panel .cv-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.03);font-size:20px;color:var(--text-primary);margin-right:12px}

/* Full width progress for each skills-panel */
.skills-panel .panel-progress{margin-top:14px}
.skills-panel .panel-progress .progress-meta{display:flex;justify-content:space-between;color:var(--text-primary);margin-bottom:8px}
.skills-panel .panel-progress .progress-bar{width:100%;height:12px;border-radius:999px;background:rgba(255,255,255,0.06);overflow:hidden;border:1px solid rgba(255,255,255,0.04)}
.skills-panel .panel-progress .progress-fill{height:100%;width:var(--progress,0%);background:linear-gradient(90deg,var(--accent-secondary),var(--accent-primary));border-radius:inherit;transition:width .6s ease}
.skills-panel .panel-title{display:inline-block;margin:0;font-family:'Syne',sans-serif;font-size:1.15rem;color:var(--accent-primary);font-weight:700}

/* Reduce spacing between title and cards */
.skills-panel .skills-panel-cards{margin-top:14px}

.skill-category.active .category-title {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.skill-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.3);
    border-color: rgba(255, 51, 102, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-drawer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.skill-icon[class*="icon-"] {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-html {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

.icon-js {
    background: linear-gradient(135deg, #f7df1e, #fbb034);
    color: #111;
}

.icon-react {
    background: linear-gradient(135deg, #1f2a44, #61dafb);
}

.icon-python {
    background: linear-gradient(135deg, #306998, #ffd43b);
    color: #fffbe7;
}

.icon-ps {
    background: linear-gradient(135deg, #001833, #00c8ff);
}

.icon-ae {
    background: linear-gradient(135deg, #200042, #cf83ff);
}

.icon-pr {
    background: linear-gradient(135deg, #450056, #ff4dff);
}

.icon-dv {
    background: linear-gradient(135deg, #1c2a2f, #00f5a0);
}

.icon-ai {
    background: linear-gradient(135deg, #00f0ff, #00a3ff);
}

.icon-marketing {
    background: linear-gradient(135deg, #ff8c37, #ffdd57);
    color: #1a1a1a;
}

.icon-social {
    background: linear-gradient(135deg, #005bea, #00c6fb);
}

.icon-automation {
    background: linear-gradient(135deg, #3a3a3f, #8c8c94);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.project-thumbnail {
    width: 100%;
    height: clamp(210px, 28vw, 260px);
    background: linear-gradient(135deg, #10131a, #1d2430);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.02) 0%, rgba(8, 10, 15, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 2;
}

.project-card:hover .project-thumbnail::after {
    transform: translateX(100%);
}

.project-thumbnail-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.7s ease;
}

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

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 25px;
}

.project-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--accent-yellow);
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

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

.tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: 30px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 60px 40px 40px;
}

.modal-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.modal-project {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 28px;
    align-items: start;
}

.modal-project-thumbnail {
    border-radius: 22px;
    min-height: 280px;
}

.modal-project-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-project-kicker {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.modal-project-summary,
.modal-project-detail {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-project-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.modal-project-actions .submit-btn {
    width: auto;
    min-width: 220px;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-copy {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 26px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-note {
    margin-top: 22px;
    text-align: center;
    color: var(--text-secondary);
}

.contact-note a {
    color: var(--accent-primary);
    text-decoration: none;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-drawer);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.submit-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.submit-btn-secondary:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.18);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal-pending {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal-pending,
    .reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .learning-journey {
        grid-template-columns: 1fr;
    }
}

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

    /* Hero Section Mobile */
    .hero-section {
        min-height: auto;
        padding: 40px 0 20px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-image {
        max-width: 250px;
        margin: 0 auto 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text .subtitle {
        text-align: center;
        font-size: 1.2rem;
    }

    .hero-text .description {
        text-align: center;
        font-size: 1rem;
    }

    /* Hide badges on mobile */
    .hero-badges {
        display: none;
    }

    /* Lock button adjustment for mobile */
    .lock-container {
        padding: 30px 0;
    }

    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .about-image {
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-thumbnail {
        height: 220px;
    }

    .project-info {
        padding: 22px;
        gap: 12px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .modal-body {
        padding: 50px 25px 30px;
    }

    .modal-project {
        grid-template-columns: 1fr;
    }

    /* Category titles smaller on mobile */
    .category-title {
        font-size: 1.3rem;
        padding: 20px;
    }

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

    /* CV items mobile */
    .cv-item {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-meta {
        flex-direction: column;
        gap: 8px;
    }

    .learning-journey {
        padding: 30px;
    }

    .skills-panel .skills-grid {
        justify-content: center;
    }
}

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

    .section {
        padding: 56px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .hero-section {
        padding: 32px 0 12px;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text .subtitle {
        font-size: 1.05rem;
    }

    .hero-image {
        max-width: min(78vw, 280px);
    }

    .about-content,
    .contact-form,
    .skills-panel {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .learning-journey {
        padding: 32px 16px 16px;
    }

    .projects-grid {
        gap: 18px;
    }

    .project-card {
        border-radius: 20px;
    }

    .project-thumbnail {
        height: 190px;
    }

    .project-info {
        padding: 18px;
        gap: 10px;
    }

    .project-info h3 {
        font-size: 1.22rem;
    }

    .project-info p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .tag {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .skills-panel .skill-card {
        width: calc(50% - 8px);
        min-width: 132px;
        max-width: none;
    }

    .modal.active {
        padding: 16px;
    }

    .modal-content {
        border-radius: 22px;
        max-height: calc(100vh - 32px);
    }

    .modal-body {
        padding: 56px 18px 20px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* Lock Button */
.lock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    position: relative;
    transition: opacity 0.4s ease;
}

.lock-container.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.lock-button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lock-button:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.lock-icon {
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.lock-button.unlocked .lock-icon {
    transform: rotate(15deg);
}

.lock-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.lock-button:hover .lock-text {
    color: var(--accent-primary);
}

.lock-button.unlocked .lock-text {
    color: var(--text-secondary);
}

.lock-button.unlocked {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hidden content */
.content-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s ease 0.2s;
}

.content-wrapper.revealed {
    max-height: 50000px;
    opacity: 1;
}

/* lock scrolling until the cajón is opened */
body.locked {
    overflow: hidden;
}

/* Arrow indicator */
.arrow-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: bounce-arrow 2s infinite;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

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

.arrow-down.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Desktop: mostrar el botón fijo en la parte superior sin hacer scroll */
@media (min-width: 1025px) {
    /* On large screens the lock button should sit under the hero description */
    .lock-container {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 0;
        z-index: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: auto;
        margin-top: 24px;
    }

    .lock-button {
        padding: 12px 28px;
        border-radius: 12px;
        background: rgba(26, 26, 36, 0.7);
        backdrop-filter: blur(6px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255,255,255,0.06);
    }

    .arrow-down {
        display: none;
    }

    /* Evitar que el hero quede oculto bajo el botón fijo en la parte superior */
    .hero-section {
        padding-top: 120px;
    }
}

/* Additional Styles for About Section */
.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--bg-drawer);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CV Timeline Styles */
.cv-timeline {
    position: relative;
    padding-left: 50px;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.cv-year {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 15px;
    position: relative;
}

.cv-year::before {
    content: '';
    position: absolute;
    left: -43px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
}

.cv-content {
    margin-bottom: 40px;
}

.cv-company {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.cv-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Skills Accordion Styles */
.skills-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.skill-category-header:hover {
    background: rgba(0, 240, 255, 0.05);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-category-title h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.skill-icon {
    font-size: 1.8rem;
}

.skill-chevron {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-category.active .skill-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.skill-category.active .skill-category-header {
    background: rgba(0, 240, 255, 0.08);
}

.skill-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s ease;
    padding: 0 30px;
}

.skill-category.active .skill-category-content {
    max-height: 2000px;
    padding: 0 30px 30px 30px;
}

.skill-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cv-timeline {
        padding-left: 30px;
    }
    
    .cv-year::before {
        left: -28px;
    }
}

