/* ═══════════════════════════════════════════
   FSTVLST DESIGN SYSTEM — Design Tokens
   Source: Google Stitch MCP
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Hanken+Grotesk:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --fst-red: #ff0000;
    --primary: #bc0100;
    --primary-container: #eb0000;
    --on-primary: #ffffff;
    --secondary-container: #fcd400;
    --on-secondary-container: #6e5c00;
    --surface: #f9f9f9;
    --surface-variant: #e2e2e2;
    --surface-container-low: #f3f3f4;
    --surface-container-high: #e8e8e8;
    --surface-container-lowest: #ffffff;
    --on-surface: #1a1c1c;
    --on-surface-variant: #603e39;
    --outline: #956d67;
    --outline-variant: #ebbbb4;
    --secondary-fixed: #ffe16d;
    --primary-fixed: #ffdad4;
    --on-primary-container: #fffbff;
    --inverse-surface: #2f3131;

    --font-headline: 'Anton', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    --font-label: 'Space Mono', monospace;

    --shadow-hard: 8px 8px 0px 0px rgba(0, 0, 0, 1);
    --shadow-sm: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    --border: 4px solid var(--on-surface);
    --border-sm: 2px solid var(--on-surface);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

::selection {
    background: var(--secondary-container);
}

/* ═══════════════ UTILITIES ═══════════════ */
.bold {
    font-family: var(--font-body);
    font-weight: 700;
}

.muted {
    color: var(--on-surface-variant);
    font-size: 16px;
    line-height: 24px;
}

.label-text {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
}

.red-label {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--fst-red);
    margin-bottom: 8px;
}

/* ═══════════════ NAVBAR ═══════════════ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: var(--border);
    background: var(--fst-red);
    box-shadow: var(--shadow-hard);
}

.brand {
    font-family: var(--font-headline);
    font-size: clamp(20px, 5vw, 24px);
    color: var(--secondary-container);
    text-transform: uppercase;
    line-height: 1;
    font-weight: 700;
    max-width: 72%;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--on-primary);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 4px 8px;
    transition: all 0.15s;
}

.nav-link:hover {
    background: var(--secondary-container);
    color: var(--on-surface);
}

.nav-link.active {
    color: var(--secondary-container);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-container);
    padding-bottom: 4px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--on-primary);
    transition: all 0.3s ease;
}

.bar.open:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.bar.open:nth-child(2) {
    opacity: 0;
}

.bar.open:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--fst-red);
    z-index: 45;
    padding: 100px 20px 40px;
    gap: 8px;
    overflow-y: auto;
}

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

.mobile-link {
    font-family: var(--font-headline);
    font-size: 48px;
    color: var(--secondary-container);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.1;
    border-bottom: var(--border);
    padding: 16px 0;
    transition: color 0.15s;
}

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

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: var(--border);
    cursor: pointer;
    transition: all 0.15s;
}

.btn.yellow {
    background: var(--secondary-container);
    color: var(--on-surface);
}

.btn.small {
    padding: 8px 24px;
    box-shadow: var(--shadow-sm);
}

.btn.small:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.btn.large {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    padding: 16px 32px;
    box-shadow: var(--shadow-hard);
}

.btn.large:hover {
    transform: translate(8px, 8px);
    box-shadow: none;
}

.btn.mobile-full {
    align-self: flex-start;
    padding: 12px 24px;
    box-shadow: var(--shadow-sm);
}

.btn.mobile-full:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* ═══════════════ TAPE LABELS ═══════════════ */
.label {
    display: inline-block;
    padding: 4px 16px;
    border: var(--border);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 16px;
}

.label.yellow {
    background: var(--secondary-container);
    color: var(--on-surface);
    box-shadow: var(--shadow-sm);
}

.label.dark {
    background: var(--on-surface);
    color: var(--secondary-container);
}

.label.red {
    background: var(--fst-red);
    color: var(--on-primary);
    box-shadow: var(--shadow-sm);
}

.tilt-right {
    transform: rotate(1deg);
}

.tilt-left {
    transform: rotate(-1deg);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    background: var(--fst-red);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px;
    overflow: hidden;
    border-bottom: var(--border);
}

.hero-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    opacity: 0.2;
    transform: rotate(12deg);
}

.hero-icon .material-symbols-outlined {
    font-size: 120px;
    color: var(--secondary-container);
}

.hero-content {
    width: 100%;
    padding-top: 24px;
    z-index: 10;
    max-width: 100%;
}

.hero-content .label {
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(36px, 11vw, 48px);
    line-height: 0.95;
    color: var(--secondary-container);
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: 12ch;
}

.hero-desc {
    color: var(--on-primary);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.9;
    border-left: 4px solid var(--on-surface);
    padding-left: 16px;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    margin-top: 48px;
    padding-bottom: 48px;
    overflow: hidden;
}

.tape {
    position: absolute;
    z-index: 20;
    background: var(--fst-red);
    border: var(--border);
    opacity: 0.9;
}

.tape-1 {
    top: 25%;
    left: 40px;
    width: 192px;
    height: 48px;
    transform: rotate(45deg);
}

.tape-2 {
    bottom: 25%;
    right: 0;
    width: 256px;
    height: 64px;
    transform: rotate(-12deg);
}

.photo-frame {
    position: relative;
    z-index: 10;
    border: var(--border);
    box-shadow: var(--shadow-hard);
    background: var(--surface);
    width: min(100%, 420px);
}

.photo {
    width: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.25);
    transition: all 0.5s;
}

.photo:hover {
    filter: grayscale(0%) contrast(1);
}

/* ═══════════════ TICKER ═══════════════ */
.ticker {
    background: var(--fst-red);
    border-bottom: var(--border);
    padding: 16px 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: 200%;
    animation: scroll 20s linear infinite;
}

.ticker-group {
    display: flex;
    gap: 48px;
    align-items: center;
    flex: none;
    padding: 0 24px;
}

.ticker-text {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    text-transform: uppercase;
}

.yellow-text {
    color: var(--secondary-container);
}

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

.ticker-icon {
    font-size: 32px;
    color: var(--on-surface);
}

.yellow-icon {
    color: var(--secondary-container);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ═══════════════ SECTIONS ═══════════════ */
.section {
    padding: 48px 16px;
    border-bottom: var(--border);
    overflow-x: clip;
}

.section.light {
    background: var(--surface-container-low);
}

.section.surface {
    background: var(--surface);
    position: relative;
}

.section.dark-section {
    background: var(--on-surface);
}

.container {
    max-width: 1512px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 48px;
}

.section-head.center {
    text-align: center;
}

.section-head.left {
    text-align: left;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(36px, 10vw, 48px);
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--fst-red);
    margin-bottom: 8px;
    word-break: break-word;
}

.yellow-title {
    color: var(--secondary-container);
}

/* ═══════════════ EDUCATION CARDS ═══════════════ */
.edu-card {
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow-hard);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.edu-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    background: var(--secondary-container);
    opacity: 0.2;
    transform: translate(50%, -50%) rotate(45deg);
    border: var(--border);
}

.edu-deco.pink {
    background: var(--primary-fixed);
}

.edu-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.edu-left {
    padding-bottom: 24px;
    border-bottom: var(--border);
}

.school {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary-container);
    border: var(--border-sm);
    border-radius: 50%;
}

.status-dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.edu-item {
    background: var(--surface-variant);
    padding: 16px;
    border: var(--border-sm);
}

/* ═══════════════ SKILLS ═══════════════ */
.skill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.skill-card {
    background: var(--surface-container-high);
    padding: 32px;
    border: var(--border);
    box-shadow: var(--shadow-hard);
}

.skill-card.yellow-card {
    background: var(--secondary-container);
}

.skill-title {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border-bottom: var(--border);
    padding-bottom: 8px;
}

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

.tag {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 4px 12px;
    border: var(--border-sm);
}

.tag.red {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.tag.yellow {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

.tag.dark {
    background: var(--on-surface);
    color: var(--surface-container-lowest);
}

.tag.light {
    background: var(--surface-variant);
    color: var(--on-surface);
}

.tag.big {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 24px;
    border-width: 4px;
}

/* ═══════════════ PROJECTS ═══════════════ */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.project-card {
    background: var(--surface);
    padding: 24px;
    border: var(--border);
    box-shadow: var(--shadow-hard);
    display: flex;
    flex-direction: column;
}

.project-preview {
    width: 100%;
    height: 256px;
    background: var(--surface-variant);
    border: var(--border);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--fst-red);
    opacity: 0.1;
    transition: opacity 0.3s;
}

.project-overlay.yellow-overlay {
    background: var(--secondary-container);
}

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

.project-icon {
    font-size: 60px;
    color: var(--on-surface);
    opacity: 0.5;
}

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

.project-tag {
    padding: 4px 12px;
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    border: var(--border-sm);
    font-weight: 700;
}

.project-tag.red {
    background: var(--fst-red);
    color: var(--on-primary);
}

.project-tag.yellow {
    background: var(--secondary-container);
    color: var(--on-surface);
}

.project-title {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-desc {
    opacity: 0.8;
    margin-bottom: 24px;
    flex: 1;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact-box {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--surface-container-low);
    border: var(--border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-title {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    color: var(--fst-red);
}

.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-btn {
    background: var(--on-surface);
    color: var(--secondary-container);
    padding: 16px;
    border: var(--border);
    text-align: center;
    font-family: var(--font-label);
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
}

.social-btn:hover {
    background: var(--fst-red);
    color: white;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 16px;
    background: var(--on-surface);
    text-align: center;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-name {
    font-family: var(--font-headline);
    font-size: clamp(32px, 10vw, 48px);
    line-height: 0.95;
    color: var(--secondary-container);
    text-transform: uppercase;
    margin-bottom: 8px;
    word-break: break-word;
}

.footer-copy {
    color: var(--secondary-fixed);
    opacity: 0.8;
    font-family: var(--font-label);
    font-size: 12px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--secondary-fixed);
    opacity: 0.8;
    font-family: var(--font-label);
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--fst-red);
    opacity: 1;
}

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

.footer-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.footer-icon .material-symbols-outlined {
    color: var(--secondary-fixed);
    font-size: 18px;
}

.footer-icon:hover {
    background: var(--fst-red);
    border-color: var(--fst-red);
}

.footer-icon:hover .material-symbols-outlined {
    color: var(--on-primary);
}

/* ═══════════════ FLOATING DECO ═══════════════ */
.float-deco {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 40;
    pointer-events: none;
    display: none;
}

.float-inner {
    background: var(--fst-red);
    border: var(--border);
    padding: 8px 16px;
    transform: rotate(12deg);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 34px;
    color: var(--secondary-container);
    text-transform: uppercase;
}

/* ═══════════════ DESKTOP (768px+) ═══════════════ */
@media (min-width: 768px) {
    .nav {
        padding: 16px 40px;
    }

    .brand {
        font-size: 28px;
    }

    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .hero {
        flex-direction: row;
        padding: 0 40px;
        min-height: 819px;
    }

    .hero-content {
        width: 50%;
        padding-top: 0;
    }

    .hero-title {
        font-size: 80px;
        line-height: 72px;
        letter-spacing: -0.02em;
    }

    .hero-image {
        width: 50%;
        margin-top: 0;
    }

    .section {
        padding: 48px 40px;
    }

    .section-title {
        font-size: 80px;
        line-height: 72px;
        letter-spacing: -0.02em;
    }

    .edu-card {
        padding: 48px;
    }

    .edu-inner {
        flex-direction: row;
    }

    .edu-left {
        width: 33.33%;
        padding-bottom: 0;
        border-bottom: none;
        border-right: var(--border);
        padding-right: 32px;
    }

    .edu-right {
        width: 66.67%;
    }

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

    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill-card.wide {
        grid-column: span 3;
    }

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

    .footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 32px 40px;
        text-align: left;
    }

    .footer-brand {
        margin-bottom: 0;
    }

    .float-deco {
        display: block;
    }
}

/* ═══════════════ LARGE DESKTOP (1024px+) ═══════════════ */
@media (min-width: 1024px) {
    .brand {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .nav {
        padding: 12px 16px;
    }

    .hero {
        padding: 32px 16px 40px;
        min-height: auto;
    }

    .hero-icon {
        top: 24px;
        right: 16px;
    }

    .hero-icon .material-symbols-outlined {
        font-size: 84px;
    }

    .hero-desc {
        max-width: 100%;
        padding-left: 12px;
        font-size: 15px;
    }

    .hero-image {
        margin-top: 28px;
        padding-bottom: 0;
    }

    .tape-1,
    .tape-2 {
        display: none;
    }

    .photo-frame {
        width: min(100%, 340px);
    }

    .ticker {
        padding: 12px 0;
    }

    .ticker-group {
        gap: 24px;
        padding: 0 16px;
    }

    .ticker-text {
        font-size: 24px;
        line-height: 1;
    }

    .ticker-icon {
        font-size: 24px;
    }

    .section {
        padding: 40px 16px;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .label {
        max-width: 100%;
        word-break: break-word;
    }

    .edu-card,
    .skill-card,
    .project-card,
    .contact-card,
    .cv-main-section,
    .cv-sidebar-section {
        padding: 20px;
    }

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

    .footer {
        gap: 16px;
    }

    .footer-links {
        gap: 12px 20px;
    }

    .cv-filters {
        gap: 16px;
    }

    .search-box-container {
        padding: 12px 14px;
    }

    .search-input {
        min-width: 0;
        font-size: 14px;
    }

    .filter-wrapper {
        align-items: flex-start;
    }

    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        width: 100%;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .timeline-body {
        padding: 14px;
    }
}

/* ═══════════════ EXPERIENCE SUMMARY (index.html) ═══════════════ */
.experience-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

.exp-summary-card {
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow-hard);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.exp-summary-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 1);
}

.exp-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-summary-tag {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border: var(--border-sm);
}

.red-tag {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.yellow-tag {
    background: var(--secondary-container);
    color: var(--on-surface);
}

.dark-tag {
    background: var(--on-surface);
    color: var(--surface-container-lowest);
}

.exp-summary-year {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--on-surface);
}

.exp-summary-title {
    font-family: var(--font-headline);
    font-size: 28px;
    line-height: 28px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.exp-summary-role {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .experience-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════ INTERACTIVE CV LAYOUT ═══════════════ */
.cv-page {
    background: var(--surface-container-low);
}

.cv-container {
    padding: 32px 16px;
}

.cv-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.cv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cv-sidebar-section {
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.cv-photo {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
}

.cv-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
}

.contact-item .material-symbols-outlined {
    color: var(--fst-red);
    font-size: 20px;
}

.contact-item a {
    color: var(--on-surface);
    text-decoration: underline;
    font-weight: 700;
}

.contact-item a:hover {
    color: var(--fst-red);
}

.wrap-text {
    word-break: break-all;
}

.cv-skills-group .mini-title {
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--fst-red);
}

.sm-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: 4px;
}

/* CV Main Section */
.cv-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cv-main-section {
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.cv-section-title {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 36px;
    text-transform: uppercase;
    color: var(--fst-red);
    border-bottom: var(--border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

/* Education in CV */
.cv-edu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cv-edu-item {
    border-left: 4px solid var(--secondary-container);
    padding-left: 16px;
}

.cv-edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.cv-badge-year {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    background: var(--on-surface);
    color: var(--secondary-container);
    padding: 2px 8px;
    border: var(--border-sm);
}

.school-program {
    font-weight: 700;
    color: var(--on-surface);
}

/* Interactive filters & search */
.cv-filters {
    background: var(--surface-container-high);
    border: var(--border);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    border: var(--border-sm);
    background: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--on-surface);
    opacity: 0.7;
}

.search-input {
    width: 100%;
    border: none;
    padding: 12px 12px 12px 40px;
    font-family: var(--font-body);
    font-size: 16px;
    background: transparent;
    color: var(--on-surface);
    outline: none;
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.btn-clear-search .material-symbols-outlined {
    font-size: 18px;
    color: var(--on-surface);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: var(--on-surface);
    border: var(--border-sm);
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--surface-variant);
}

.filter-btn.active {
    background: var(--secondary-container);
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
    transform: translate(-1px, -1px);
}

/* Timeline */
.cv-timeline {
    position: relative;
    padding-left: 20px;
    overflow: hidden;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--on-surface);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-container);
    border: var(--border-sm);
    z-index: 10;
}

.timeline-item.filtered-out {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tag-badge {
    font-family: var(--font-label);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 6px;
    border: var(--border-sm);
}

.tag-badge.red {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.tag-badge.yellow {
    background: var(--secondary-container);
    color: var(--on-surface);
}

.tag-badge.dark {
    background: var(--on-surface);
    color: var(--surface-container-lowest);
}

.timeline-date {
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--on-surface-variant);
}

.timeline-body {
    background: var(--surface-container-low);
    border: var(--border-sm);
    padding: 16px;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

.timeline-title {
    font-family: var(--font-headline);
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 4px;
    word-break: break-word;
}

.timeline-role {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
}

.no-results-state {
    text-align: center;
    padding: 48px 16px;
    border: var(--border-sm);
    background: var(--surface-container-low);
    border-style: dashed;
}

.cv-nav-actions {
    display: flex;
    align-items: center;
}

/* ═══════════════ DESKTOP (768px+) FOR CV ═══════════════ */
@media (min-width: 768px) {
    .cv-container {
        padding: 48px 40px;
    }

    .cv-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .cv-sidebar {
        width: 30%;
        position: sticky;
        top: 100px;
    }

    .cv-main {
        width: 70%;
    }

    .timeline-item {
        margin-bottom: 40px;
    }
}

/* ═══════════════ PRINT STYLES ═══════════════ */
@media print {
    body.cv-page {
        background: white !important;
        color: black !important;
        font-size: 11pt !important;
    }

    .no-print {
        display: none !important;
    }

    .only-print {
        display: block !important;
    }

    .cv-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .cv-layout {
        display: block !important;
        margin-top: 0 !important;
    }

    .cv-sidebar {
        width: 100% !important;
        display: block !important;
        position: static !important;
    }

    .cv-sidebar-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
    }

    .cv-main {
        width: 100% !important;
        display: block !important;
    }

    .cv-main-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
    }

    .cv-section-title {
        font-size: 16pt !important;
        border-bottom: 2px solid black !important;
        padding-bottom: 5px !important;
        margin-bottom: 10px !important;
    }

    .cv-badge-year {
        background: transparent !important;
        color: black !important;
        border: none !important;
        padding: 0 !important;
        font-weight: bold !important;
    }

    .cv-edu-item {
        border-left: 2px solid black !important;
        padding-left: 10px !important;
        page-break-inside: avoid;
    }

    .cv-timeline {
        padding-left: 15px !important;
    }

    .cv-timeline::before {
        width: 2px !important;
        background: black !important;
    }

    .timeline-item {
        margin-bottom: 15px !important;
        page-break-inside: avoid;
    }

    .timeline-item::before {
        left: -20px !important;
        width: 8px !important;
        height: 8px !important;
        background: black !important;
        border: none !important;
    }

    .timeline-body {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .timeline-title {
        font-size: 12pt !important;
    }

    .tag-badge {
        display: none !important;
    }

    .tag {
        border: 1px solid black !important;
        background: transparent !important;
        color: black !important;
        padding: 1px 4px !important;
        font-size: 8pt !important;
    }

    /* Print Header details */
    .print-header {
        display: block !important;
        border-bottom: 2px solid black;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .print-header h1 {
        font-family: serif;
        font-size: 24pt;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .print-header .subtitle {
        font-weight: bold;
        font-size: 12pt;
        margin: 3px 0;
        color: #333;
    }

    .print-header .contacts {
        font-size: 9pt;
        margin: 5px 0 0 0;
        line-height: 1.4;
    }
}

.only-print {
    display: none;
}

/* ═══════════════ PROJECT PREVIEW & ACTIONS ═══════════════ */
.pink-preview {
    background: #ffdad4 !important;
}

.pink-overlay {
    background: #ff007f !important;
}

/* ═══════════════ PROJECT MODAL (CASE STUDY) ═══════════════ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 28, 28, 0.8);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    z-index: 110;
    width: 100%;
    max-width: 1024px;
    max-height: 90vh;
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow-hard);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-zoom 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-zoom {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--fst-red);
    border-bottom: var(--border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-headline);
    font-size: 24px;
    color: var(--secondary-container);
    text-transform: uppercase;
    line-height: 1;
}

.modal-close-btn {
    background: var(--secondary-container);
    border: var(--border-sm);
    color: var(--on-surface);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
    transition: all 0.1s;
}

.modal-close-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.modal-section-card {
    background: var(--surface-container-low);
    border: var(--border-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.modal-sec-title {
    font-family: var(--font-headline);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--on-surface);
    border-bottom: 2px solid var(--on-surface);
    padding-bottom: 4px;
}

.modal-list {
    padding-left: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.modal-list li {
    margin-bottom: 8px;
}

/* Architecture diagram styling */
.architecture-diagram {
    background: white;
    border: var(--border-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.arch-block {
    border: var(--border-sm);
    padding: 8px 16px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}

.arch-block.api {
    background: var(--secondary-container);
}

.arch-block.laravel {
    background: var(--primary-container);
    color: white;
}

.arch-block.db {
    background: var(--surface-variant);
}

.arch-block.bot {
    background: #0088cc;
    color: white;
}

.arch-arrow {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    margin: 4px 0;
    color: var(--on-surface);
}

.arch-split-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.arch-split-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Database schema styling */
.db-schema-visual {
    background: white;
    border: var(--border-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.db-table {
    border: var(--border-sm);
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
    min-width: 120px;
    background: var(--surface-container-low);
}

.db-table-title {
    background: var(--on-surface);
    color: white;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    text-align: center;
}

.db-table-field {
    font-family: monospace;
    font-size: 10px;
    padding: 4px 8px;
    border-bottom: 1px dashed var(--on-surface-variant);
}

.db-table-field:last-child {
    border-bottom: none;
}

.db-table-relation {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    color: var(--fst-red);
}

/* Responsive adjustments for modal */
@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-header .modal-title {
        font-size: 28px;
    }
}

/* ═══════════════ SINGLE PROJECT GRID ═══════════════ */
@media (min-width: 768px) {
    .single-project-grid {
        display: flex !important;
        justify-content: center !important;
    }
    .single-project-grid .project-card {
        max-width: 640px !important;
        width: 100% !important;
    }
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.3s ease;
    z-index: 5;
}

.project-card:hover .project-img {
    filter: grayscale(0%) contrast(1);
}
