/* =====================================
   MINEA CHHAY - PROFESSIONAL RESUME
   Premium Executive Dark Theme
   ===================================== */

/* =====================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ===================================== */
:root {
    /* Colors - Dark Executive Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);

    --accent-primary: #d4a853;
    --accent-secondary: #e8c47c;
    --accent-tertiary: #8b6914;
    --accent-glow: rgba(212, 168, 83, 0.3);
    --accent-glow-strong: rgba(212, 168, 83, 0.5);

    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-tertiary: #6b6b7b;
    --text-muted: #4a4a5a;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4a853 0%, #e8c47c 50%, #d4a853 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    /* Typography */
    --font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Consolas', 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;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --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 40px var(--accent-glow);
    --shadow-glow-strong: 0 0 60px var(--accent-glow-strong);

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    --transition-slower: 800ms ease-out;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

ul, ol {
    list-style: none;
}

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

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

/* =====================================
   CONTAINER & LAYOUT UTILITIES
   ===================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* =====================================
   NAVIGATION
   ===================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all var(--transition-base);
    z-index: -1;
}

.navbar.scrolled::before {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

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

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

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-gold);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* Mobile Navigation */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    position: relative;
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================
   HERO SECTION
   ===================================== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    padding-top: calc(var(--nav-height) + var(--space-4xl));
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
                var(--bg-primary);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 83, 0.15);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(212, 168, 83, 0.1);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(212, 168, 83, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px);
    gap: var(--space-3xl);
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    font-family: var(--font-display);
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-line.accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-container {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 680px;
}

.hero-subtitle-prefix {
    color: var(--accent-primary);
    margin-right: var(--space-xs);
}

.hero-subtitle {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 0 var(--space-2xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: flex-start;
    margin-bottom: var(--space-3xl);
}

.hero-highlights {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: 0 0 var(--space-2xl);
}

.hero-highlights .highlight-item {
    min-width: 180px;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    text-align: left;
}

.highlight-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.highlight-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.hero-profile {
    display: grid;
    gap: var(--space-lg);
    align-self: center;
}

.hero-profile-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-lg);
}

.profile-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 10%;
}

.profile-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent-primary);
    border-radius: calc(var(--radius-2xl) + 8px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-profile-meta {
    display: grid;
    gap: var(--space-sm);
    padding-left: 0;
}

.profile-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.profile-note {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

/* =====================================
   BUTTONS
   ===================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

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

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

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

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 15px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* =====================================
   SECTION HEADER
   ===================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.about-heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-xl);
}

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

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

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-card-header {
    margin-bottom: var(--space-lg);
}

.card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 15px;
    color: var(--text-secondary);
}

.list-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.decoration-ring {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.decoration-dots {
    position: absolute;
    inset: 20px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        var(--accent-primary) 5px,
        var(--accent-primary) 6px
    );
    background-size: 20px 20px;
    opacity: 0.1;
    border-radius: 50%;
}

/* =====================================
   STATS SECTION
   ===================================== */
.stats {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--accent-primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-suffix {
    color: var(--accent-primary);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.stat-description {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* =====================================
   EXPERIENCE TIMELINE
   ===================================== */
.experience {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-line::before,
.timeline-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.timeline-line::before {
    top: 0;
}

.timeline-line::after {
    bottom: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: var(--space-2xl);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 1;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.timeline-item:hover .marker-dot {
    background: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 400px;
    transition: all var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.timeline-item:nth-child(even) .timeline-card:hover {
    transform: translateX(4px);
}

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

.timeline-date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.timeline-badge {
    padding: 2px 8px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.timeline-company,
.timeline-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.timeline-company svg,
.timeline-location svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.timeline-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-tertiary);
    margin: var(--space-md) 0;
}

.timeline-achievements {
    display: grid;
    gap: var(--space-sm);
    margin: 0 0 var(--space-lg);
    padding-left: var(--space-lg);
    list-style: disc;
}

.timeline-achievements li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

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

.timeline-tags span {
    padding: 4px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

/* =====================================
   SKILLS SECTION
   ===================================== */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

/* Featured skill category - spans full width */
.skill-category-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(212, 168, 83, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(212, 168, 83, 0.3);
}

.skill-category-featured:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.15);
}

.skill-category-featured .skill-category-header {
    margin-bottom: var(--space-lg);
}

.skill-category-featured .skill-category-title {
    font-size: 20px;
    color: var(--accent-primary);
}

.skill-category-featured .skill-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.skill-category {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--glass-border-hover);
}

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

.skill-category-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.skill-category-icon svg {
    width: 20px;
    height: 20px;
}

.skill-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.skill-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.skill-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.skill-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

/* Competencies */
.competencies {
    margin-top: var(--space-2xl);
}

.competencies-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.competency-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.competency-item:hover {
    background: var(--glass-border);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.competency-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.competency-item span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================
   EDUCATION SECTION
   ===================================== */
.education {
    background: var(--bg-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.education-card-icon {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.education-card-icon svg {
    width: 28px;
    height: 28px;
}

.education-card-content {
    flex: 1;
}

.education-date {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.education-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.education-school {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.education-school svg {
    width: 16px;
    height: 16px;
}

.education-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

.education-card-decoration {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
}

.decoration-year {
    font-size: 48px;
    font-weight: 700;
    color: var(--glass-border);
    line-height: 1;
}

/* =====================================
   CERTIFICATIONS SECTION
   ===================================== */
.certifications {
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.certification-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
        "badge content"
        ". footer";
    column-gap: var(--space-lg);
    row-gap: var(--space-md);
    align-items: start;
    transition: all var(--transition-base);
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.certification-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-badge {
    grid-area: badge;
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.certification-badge svg {
    width: 28px;
    height: 28px;
}

.certification-content {
    grid-area: content;
    min-width: 0;
}

.certification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.certification-issuer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.certification-issuer svg {
    width: 14px;
    height: 14px;
}

.certification-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.certification-footer {
    grid-area: footer;
    position: static;
    justify-self: end;
    margin-top: var(--space-xs);
}

.certification-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22c55e;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-full);
}

/* =====================================
   IMPACT SECTION
   ===================================== */
.impact {
    background: var(--bg-secondary);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.impact-card {
    min-height: 250px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
}

.impact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border-radius: var(--radius-lg);
    background: rgba(212, 168, 83, 0.08);
}

.impact-icon svg {
    width: 28px;
    height: 28px;
}

.impact-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.impact-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    flex: 1;
}

.impact-proof {
    font-size: 12px;
    color: var(--text-tertiary);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

/* =====================================
   REFERENCES SECTION
   ===================================== */
.references {
    background: var(--bg-primary);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
}

.reference-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.reference-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
}

.reference-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.reference-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--bg-primary);
    background: var(--gradient-gold);
    box-shadow: var(--shadow-sm);
}

.reference-meta {
    min-width: 0;
}

.reference-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.reference-role {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.reference-links {
    display: grid;
    gap: var(--space-sm);
}

.reference-link {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.reference-link:hover {
    background: rgba(212, 168, 83, 0.08);
    border-color: var(--glass-border-hover);
    transform: translateX(2px);
}

.reference-link svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.reference-link span {
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* =====================================
   CONTACT SECTION
   ===================================== */
.contact {
    background: var(--bg-primary);
    padding: var(--space-4xl) 0;
}

.contact-wrapper {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-bg {
    position: absolute;
    inset: -100px;
    pointer-events: none;
    overflow: hidden;
}

.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.contact-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(212, 168, 83, 0.1);
    top: 0;
    left: 0;
}

.contact-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(212, 168, 83, 0.08);
    bottom: 0;
    right: 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
    margin: var(--space-3xl) 0;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gradient-gold);
    opacity: 0.85;
}

.contact-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-content {
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(212, 168, 83, 0.08);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}

.contact-value a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-value a:hover {
    color: var(--accent-secondary);
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-note {
    margin-top: var(--space-lg);
    font-size: 14px;
    color: var(--text-tertiary);
}

/* =====================================
   FOOTER
   ===================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* =====================================
   SCROLL TO TOP BUTTON
   ===================================== */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

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

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

/* Staggered delays for reveal elements */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }
.reveal:nth-child(7) { transition-delay: 600ms; }
.reveal:nth-child(8) { transition-delay: 700ms; }

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

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    :root {
        --space-4xl: 80px;
        --space-3xl: 64px;
    }

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

    .stats-grid .stat-card:nth-child(4),
    .stats-grid .stat-card:nth-child(5) {
        grid-column: span 1;
    }

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

    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: var(--space-2xl);
    }

    /* Featured skill card on tablet */
    .skill-category-featured .skill-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
        --space-4xl: 64px;
        --space-3xl: 48px;
    }

    /* Navigation */
    .navbar {
        width: 100vw;
        width: 100dvw;
    }

    .nav-container {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        width: 100dvw;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-link {
        font-size: 24px;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
    }

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
    }

    .hero-profile {
        max-width: 320px;
        margin: 0 auto;
    }

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

    .hero-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge,
    .hero-cta,
    .hero-highlights {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-visual {
        order: -1;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-card {
        max-width: 100%;
    }

    /* Education & Certifications */
    .education-grid,
    .certifications-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .contact-value,
    .contact-value a {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    :root {
        --space-4xl: 48px;
        --space-3xl: 40px;
        --space-2xl: 32px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-highlights .highlight-item {
        min-width: 0;
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

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

    .stat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .competency-item {
        padding: var(--space-sm) var(--space-md);
    }

    .competency-item span {
        font-size: 11px;
    }

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

    .reference-card-header {
        align-items: flex-start;
    }

    .education-card,
    .certification-card {
        text-align: center;
    }

    .certification-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "content"
            "footer";
        justify-items: center;
    }

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

    .certification-footer {
        justify-self: center;
    }

    .education-card-icon,
    .certification-badge {
        margin: 0 auto;
    }

    .education-school,
    .certification-issuer {
        justify-content: center;
    }

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

    .impact-card {
        min-height: auto;
    }

    .scroll-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-grid {
        background-image:
            linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
        background-size: 40px 40px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-top,
    .hero-bg,
    .hero-profile {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl);
    }

    .section {
        padding: var(--space-xl) 0;
    }

    body {
        background: white;
        color: black;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
