/* ============================================================
   PREMIUM DESIGN SYSTEM — Alain Kimbu Portfolio
   Fluent Design • Glassmorphism • Parallax • Micro-interactions
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

/* --- Local Fonts --- */
@font-face {
    font-family: 'Nunito';
    src: url(../assets/fonts/nunito/Nunito-Regular.ttf);
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url(../assets/fonts/nunito/Nunito-Bold.ttf);
    font-weight: 700;
    font-display: swap;
}

/* ============================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
    /* --- Colors: Dark Theme (Default) --- */
    --bg-deepest: #0A0A0F;
    --bg-deep: #0E0E16;
    --bg-surface: #12121A;
    --bg-elevated: #1A1A2E;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;

    --accent-primary: #4A90D9;
    --accent-secondary: #7B68EE;
    --accent-teal: #00D4AA;
    --accent-gradient: linear-gradient(135deg, #4A90D9 0%, #7B68EE 50%, #00D4AA 100%);
    --accent-gradient-text: linear-gradient(135deg, #4A90D9, #7B68EE);
    --accent-glow: rgba(74, 144, 217, 0.3);
    --accent-glow-teal: rgba(0, 212, 170, 0.3);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* --- Typography --- */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* --- Spacing --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    --section-padding: clamp(60px, 10vw, 120px);

    /* --- Timing --- */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-reveal: 800ms;

    /* --- Borders --- */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 10px;
    --radius-full: 9999px;

    /* --- Shadows --- */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-teal: 0 0 30px var(--accent-glow-teal);

    /* --- Layout --- */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* --- Light Theme Override --- */
[data-theme="light"] {
    --bg-deepest: #F8F9FC;
    --bg-deep: #F0F1F5;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F5F6FA;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);

    --text-primary: #1A1A2E;
    --text-secondary: #4A4A60;
    --text-muted: #8888A0;

    --accent-glow: rgba(74, 144, 217, 0.15);
    --accent-glow-teal: rgba(0, 212, 170, 0.15);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(74, 144, 217, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.timeline-role,
.edu-degree,
.resume-download-card h3,
.loader-brand,
.stat-number {
    font-family: var(--font-heading);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--duration-slow) var(--ease-out-expo),
        color var(--duration-slow) var(--ease-out-expo);
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

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

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 1px;
    pointer-events: none;
    z-index: 10001;
    transition: transform 80ms ease-out, opacity 200ms;
    transform: translate(-50%, -50%) rotate(45deg);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    pointer-events: none;
    z-index: 10000;
    transition: width 300ms var(--ease-spring),
        height 300ms var(--ease-spring),
        border-color 300ms,
        opacity 200ms;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.5;
}

.cursor-hover .cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--accent-teal);
    opacity: 0.3;
}

.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(2.5);
    background: var(--accent-primary);
}

@media (max-width: 768px),
(pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.premium-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .nav-brand-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-brand-text {
        display: block;
    }
}

.nav-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-logo .s0 {
    fill: none;
    stroke: var(--text-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 18;
}

.nav-logo .s1 {
    fill: var(--text-primary);
    stroke: var(--text-primary);
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 4;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 24px);
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    transition: color var(--duration-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out-expo);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.5vw, 24px);
}

/* Theme Toggle */
.theme-toggle {
    width: clamp(32px, 3.5vw, 44px);
    height: clamp(32px, 3.5vw, 44px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-spring);
    font-size: 1.1rem;
    transform: rotate(45deg);
    cursor: pointer;
}

.theme-toggle i {
    transform: rotate(-45deg);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: rotate(225deg) scale(1.1);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

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

.btn-cta:hover::before {
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform-origin: center;
}

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

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

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--space-2xl) var(--space-xl);
        overflow-y: auto;
        gap: var(--space-xl);
        background: var(--bg-deepest);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-slow) var(--ease-out-expo);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-actions .btn-cta {
        display: none;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--nav-height) clamp(20px, 5vw, 48px) 0;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Gradient orbs behind hero */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-orb 20s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-teal);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    100% {
        transform: translate(10px, -10px) scale(1.02);
    }
}

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

.hero-greeting {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    color: var(--accent-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-up 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-name .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-roles {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: var(--space-2xl);
    min-height: 2em;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 0.8s var(--ease-out-expo) 0.7s forwards;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-teal);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    margin-bottom: var(--space-3xl);
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 0.8s var(--ease-out-expo) 0.9s forwards;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
}

@media (max-width: 768px) {
    .stat-item {
        padding: var(--space-md) var(--space-lg);
        flex: 1 1 calc(50% - 20px);
        min-width: 120px;
    }
}

.stat-item:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 0.8s var(--ease-out-expo) 1.1s forwards;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

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

.scroll-indicator {
    position: absolute;
    bottom: clamp(6px, 1vw, 12px);
    left: calc(50% - 20px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: reveal-up 0.8s var(--ease-out-expo) 1.5s forwards;
}

.scroll-indicator .scroll-line {
    width: 60px;
    text-align: center;
    height: 40px;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
    /* Create 2 stacked down-facing thin chevrons close together */
    clip-path: polygon(
            /* First chevron */
            0% 10%, 50% 40%, 100% 10%,
            100% 14%, 50% 44%, 0% 14%,
            /* Second chevron */
            0% 24%, 50% 54%, 100% 24%,
            100% 28%, 50% 58%, 0% 28%);
}


.scroll-indicator .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    animation: scroll-down 2s ease-in-out infinite;
}

@media (max-height: 720px) {
    .scroll-indicator span {
        display: none;
    }
}

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

@keyframes scroll-down {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
    padding: var(--section-padding) clamp(20px, 5vw, 48px);
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-teal);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-3xl);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

.stagger-5 {
    transition-delay: 500ms;
}

.stagger-6 {
    transition-delay: 600ms;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.info-card {
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
}

.info-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.info-card .info-icon {
    width: 42px;
    height: 42px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: var(--space-sm);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-card .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.info-card .info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.skill-category-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
}

.skill-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.skill-cat-icon {
    width: 48px;
    height: 48px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.skill-category-card:hover .skill-cat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.skill-cat-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-bar-item {
    margin-bottom: var(--space-md);
}

.skill-bar-item:last-child {
    margin-bottom: 0;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.skill-bar-name {
    font-weight: 500;
}

.skill-bar-percent {
    color: var(--accent-teal);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.2s var(--ease-out-expo);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.project-card-premium {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
    overflow: hidden;
}

.project-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.project-card-premium:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.project-card-premium:hover::before {
    transform: scaleX(1);
}

.project-card-icon {
    width: 56px;
    height: 56px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-lg);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.project-card-premium:hover .project-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.project-card-premium h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.project-card-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.project-card-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-card-meta i {
    color: var(--accent-primary);
}

.project-card-premium p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.project-tags-premium {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-tag-premium {
    padding: 4px 12px;
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.2);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--duration-fast);
}

.project-tag-premium:hover {
    background: rgba(74, 144, 217, 0.2);
    border-color: var(--accent-primary);
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline-premium {
    position: relative;
    padding-left: 40px;
}

.timeline-premium::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), var(--accent-teal));
    border-radius: var(--radius-full);
}

.timeline-item-premium {
    position: relative;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
}

.timeline-item-premium:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker-premium {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 2;
    transition: all var(--duration-normal) var(--ease-spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker-premium::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-deepest);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all var(--duration-normal) var(--ease-spring);
}

.timeline-item-premium:hover .timeline-marker-premium::before {
    background: var(--accent-primary);
}

.timeline-item-premium:hover .timeline-marker-premium {
    filter: drop-shadow(0 0 8px var(--accent-primary));
    transform: scale(1.3);
}

.timeline-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
}

.timeline-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(8px);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(74, 144, 217, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
    white-space: nowrap;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline-highlights {
    margin-top: var(--space-md);
}

.timeline-highlights li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.timeline-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.education-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
    border-left: 4px solid var(--accent-primary);
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.education-card .edu-degree {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.education-card .edu-institution {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.education-card .edu-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.education-card .edu-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ============================================================
   RESUME DOWNLOAD SECTION
   ============================================================ */
.resume-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.resume-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-spring);
    text-decoration: none;
    color: var(--text-primary);
}

.resume-download-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.resume-download-card .resume-card-icon {
    width: 64px;
    height: 64px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: var(--space-lg);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.resume-download-card:hover .resume-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.resume-download-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.resume-download-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.contact-section {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-spring);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.contact-item i {
    width: 42px;
    height: 42px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-spring);
    -webkit-text-fill-color: initial;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.contact-item span {
    font-weight: 500;
}

.social-links-premium {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-link-premium {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-spring);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.social-link-premium::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-surface);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    transition: all var(--duration-normal) var(--ease-spring);
}

.social-link-premium i,
.social-link-premium svg {
    position: relative;
    z-index: 2;
}

.social-link-premium:hover {
    color: white;
    background: var(--accent-gradient);
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.social-link-premium:hover::after {
    background: transparent;
}

/* ============================================================
   FOOTER
   ============================================================ */
.premium-footer {
    padding: var(--space-2xl) clamp(20px, 5vw, 48px);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.premium-footer .footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.premium-footer .footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.premium-footer .footer-links {
    display: flex;
    gap: var(--space-lg);
}

.premium-footer .footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

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

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.premium-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deepest);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.premium-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: reveal-up 0.6s var(--ease-out-expo) 0.1s forwards;
}

.loader-logo .s0 {
    fill: none;
    stroke: var(--text-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 18;
}

.loader-logo .s1 {
    fill: var(--text-primary);
    stroke: var(--text-primary);
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 4;
}

.loader-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: reveal-up 0.6s var(--ease-out-expo) 0.2s forwards;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    width: 0;
    animation: load-progress 1.5s var(--ease-out-expo) 0.3s forwards;
}

@keyframes load-progress {
    to {
        width: 100%;
    }
}

/* ============================================================
   UTILITY
   ============================================================ */
.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    margin: var(--space-xl) 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 120px;
        padding: var(--space-md);
    }

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

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

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

    .timeline-premium {
        padding-left: 30px;
    }

    .timeline-premium::before {
        left: 10px;
    }

    .timeline-marker-premium {
        left: -27px;
        width: 14px;
        height: 14px;
    }

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

    .resume-cards {
        grid-template-columns: 1fr 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .premium-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .resume-cards {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .premium-nav,
    .premium-loader,
    .cursor-dot,
    .cursor-ring,
    .scroll-indicator,
    .hero-canvas,
    .hero-bg,
    .theme-toggle {
        display: none !important;
    }

    body {
        background: white !important;
        color: #333 !important;
    }

    .section {
        padding: 20px 0;
    }
}

/* ============================================================
   EXISTING PAGE COMPAT (Resume/CV sub-pages)
   ============================================================ */
.compat-page .premium-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.compat-page main {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ============================================================
   IMAGE MODAL
   ============================================================ */
.premium-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.premium-modal.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--duration-normal) var(--ease-spring);
    object-fit: contain;
}

.premium-modal.show .modal-content {
    transform: scale(1);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-primary);
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-primary);
    text-decoration: none;
}

/* ===== CV PAGE STYLES ===== */
.cv-wrapper {
    background: var(--bg-primary);
    padding: calc(var(--nav-height) + 40px) 20px 40px;
    display: flex;
    justify-content: center;
    font-family: 'Century Gothic', Arial, sans-serif;
    color: #343434;
}

.cv-document {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    box-shadow: var(--shadow-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cv-sidebar {
    background: #003D73;
    color: #ffffff;
    width: 32%;
    padding: 40px 25px;
}

.cv-main {
    width: 68%;
    padding: 40px 35px;
    background: #ffffff;
}

.cv-header-left {
    margin-bottom: 40px;
}

.cv-name {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #ffffff;
}

.cv-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.cv-section-left {
    margin-bottom: 30px;
}

.cv-heading-left {
    font-size: 1.15rem;
    font-weight: 700;
    background: rgba(0,0,0,0.15);
    padding: 8px 25px;
    margin: 0 -25px 20px -25px;
}

.cv-contact-item, .cv-comp-item {
    margin-bottom: 16px;
    font-size: 0.9rem;
    word-break: break-word;
}

.cv-bold {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.cv-contact-item a {
    color: #ffffff;
    text-decoration: underline;
}

.cv-list-left {
    margin-left: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cv-list-left.no-bullets {
    list-style: none;
    margin-left: 0;
}

.cv-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.cv-section {
    margin-bottom: 35px;
}

.cv-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003D73;
    border-top: 1px solid #d5d6d6;
    border-bottom: 1px solid #d5d6d6;
    padding: 8px 0;
    margin-bottom: 20px;
}

.cv-job, .cv-edu {
    margin-bottom: 25px;
}

.cv-job-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
}

.cv-job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #343434;
}

.cv-job-company {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #666;
}

.cv-job-list {
    margin-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cv-job-list li {
    margin-bottom: 6px;
}

.cv-list-right {
    margin-left: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cv-reference {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.cv-reference a {
    color: #003D73;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cv-document {
        flex-direction: column;
    }
    .cv-sidebar {
        width: 100%;
        padding: 40px 30px;
    }
    .cv-main {
        width: 100%;
        padding: 40px 30px;
    }
    .cv-heading-left {
        margin: 0 -30px 20px -30px;
        padding: 8px 30px;
    }
}