﻿/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --focus-ring: 0 0 0 4px rgba(0, 212, 170, 0.24);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #85859c;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --accent-2: #00d4aa;
    --accent-3: #ff6b6b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(10, 10, 15, 0.85);
    --gradient-1: linear-gradient(135deg, #6c63ff, #00d4aa);
    --gradient-2: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #00d4aa 100%);
    --particle-color: rgba(108, 99, 255, 0.15);
}

[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #eef0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2ff;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --accent: #5a52d5;
    --accent-light: #6c63ff;
    --accent-glow: rgba(90, 82, 213, 0.2);
    --accent-2: #00b894;
    --accent-3: #e05555;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(248, 249, 252, 0.9);
    --gradient-1: linear-gradient(135deg, #5a52d5, #00b894);
    --gradient-2: linear-gradient(135deg, #5a52d5 0%, #9333ea 50%, #00b894 100%);
    --particle-color: rgba(90, 82, 213, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    cursor: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 4px;
    box-shadow: var(--focus-ring);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent-2);
    color: #06110f;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    display: none;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
    display: none;
}

body.has-custom-cursor {
    cursor: none;
}

body.has-custom-cursor :where(a, button, .interest-card, .skill-chip, .tag, .project-card, .service-card, .admin-card, .admin-tab, .edu-card, .award-card, .contact-card, .timeline-content) {
    cursor: none;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-outline {
    display: block;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-2);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.58;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    /* Transition only specific properties. Animating `all` also animated the
       backdrop-filter and the border-color from its default (currentColor,
       near-white in dark mode), which caused a white flash on scroll. */
    transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    background: transparent;
    /* Start with a transparent border so the divider fades in from clear,
       not from white. */
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 12px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.nav-scrim { display: none; }

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

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

.logo-dot {
    color: var(--accent);
    font-size: 2.2rem;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 4;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: rotate(20deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 86vw);
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 3;
    }
    .nav-menu.open { right: 0; }
    .nav-link { padding: 14px 18px; font-size: 1.05rem; }
    body.menu-open { overflow: hidden; }
    .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(4, 4, 8, 0.68);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    body.menu-open .nav-scrim {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 4px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title-main {
    display: block;
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-typing-wrapper {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 16px 0 20px;
    min-height: 38px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-typing-prefix {
    color: var(--text-secondary);
}

#typingText {
    color: var(--accent-2);
    font-family: var(--font-mono);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#typingText.is-changing {
    opacity: 0;
    transform: translateY(4px);
}

.typing-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 58ch;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

.hero-stats {
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 0;
    padding: 18px 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-card) 62%, transparent);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.stat-item {
    min-width: 126px;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 1px;
    background: var(--border-hover);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    display: block;
}

/* Hero Visual */
.hero-visual {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-avatar-ring {
    position: relative;
    width: 220px;
    height: 220px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-1 {
    inset: -20px;
    animation: spin 36s linear infinite;
    border-style: dashed;
    border-color: var(--accent-glow);
}

.ring-2 {
    inset: -50px;
    animation: spin 52s linear infinite reverse;
    border-color: rgba(0, 212, 170, 0.15);
}

.ring-3 {
    inset: -80px;
    animation: spin 70s linear infinite;
    border-color: var(--border);
    opacity: 0.45;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-avatar {
    position: relative;
    overflow: hidden;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px var(--accent-glow);
}

.hero-avatar picture {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    border-radius: 50%;
    transform: scale(1.55);
    transform-origin: 50% 16%;
}

.hero-avatar picture + .avatar-initials {
    display: none;
}

.avatar-initials {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0.9;
}

.floating-card i {
    color: var(--accent);
    font-size: 1.1rem;
}

.card-1 {
    top: 20px;
    right: -10px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 60px;
    left: -30px;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: -10px;
    right: 20px;
    animation: float 10s ease-in-out infinite 4s;
    opacity: 0.72;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-typing-wrapper { justify-content: center; }
    .hero-visual { flex: none; width: 300px; height: 300px; }
    .hero-avatar-ring { width: 160px; height: 160px; }
    .hero-avatar { width: 160px; height: 160px; }
    .avatar-initials { font-size: 3rem; }
    .floating-card { display: none; }
    .scroll-indicator { display: none; }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 124px 20px 72px;
        gap: 0;
    }
    .hero-visual { display: none; }
    .hero-badge {
        padding: 7px 14px;
        margin-bottom: 22px;
        font-size: 0.78rem;
    }
    .hero-greeting { font-size: 1.05rem; }
    .hero-title-main {
        font-size: clamp(2.65rem, 13vw, 3.35rem);
        letter-spacing: -1.5px;
    }
    .hero-typing-wrapper {
        margin: 14px 0 18px;
        min-height: 32px;
        font-size: 1.08rem;
    }
    .hero-description {
        margin: 0 auto 28px;
        font-size: 0.96rem;
        line-height: 1.75;
    }
    .hero-cta { margin-bottom: 34px; }
    .hero-stats {
        width: 100%;
        padding: 16px 4px;
    }
    .stat-item {
        min-width: 0;
        flex: 1;
        padding: 0 6px;
    }
    .stat-number { font-size: 1.85rem; }
    .stat-plus { font-size: 1rem; }
    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.65px;
        line-height: 1.35;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin: 0 auto;
}

.section-intro {
    max-width: 660px;
    margin: 22px auto 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-portrait {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    background: #ffffff;
    aspect-ratio: 4 / 5;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 12%;
}

.about-portrait picture,
.about-feature picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-feature {
    position: relative;
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
}

.about-feature img {
    width: 100%;
    height: 360px;
    display: block;
    object-fit: cover;
    object-position: 50% 18%;
}

.about-feature-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 44px 32px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
}

.about-feature-caption h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-feature-caption p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--accent);
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.detail-item i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.about-interests h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.interest-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px var(--accent-glow);
}

.interest-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

.interest-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-details { grid-template-columns: 1fr; }
    .interests-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent);
    transition: all 0.3s ease;
}

.timeline-item:hover .marker-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent), 0 0 20px var(--accent-glow);
}

[data-theme="light"] .marker-dot {
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px var(--accent);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s ease;
}

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

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

.timeline-role {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-company i {
    color: var(--accent);
    font-size: 0.8rem;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-list {
    margin-bottom: 20px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

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

.tag {
    padding: 4px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   FEATURED WORK
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    --project-accent: var(--accent);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.project-card:nth-child(2) {
    --project-accent: var(--accent-2);
}

.project-card:nth-child(3) {
    --project-accent: var(--accent-3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--project-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.project-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--project-accent);
}

.project-topline i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent-glow);
    color: var(--project-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.project-card:nth-child(2) .project-topline i {
    background: rgba(0, 212, 170, 0.15);
}

.project-card:nth-child(3) .project-topline i {
    background: rgba(255, 107, 107, 0.15);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.project-case-points {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.project-case-points div {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-secondary) 72%, transparent);
}

.project-case-points dt {
    color: var(--project-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1.2;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.project-case-points dd {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.project-metrics div {
    min-width: 0;
}

.project-metrics strong {
    display: block;
    color: var(--project-accent);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.project-metrics span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.project-tags span {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--project-accent);
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: auto;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i,
.project-link:focus-visible i {
    transform: translateX(4px);
}

.projects-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 24px 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
}

.projects-cta p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .projects-cta {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--accent-glow);
    transform: translateY(-6px);
}

.service-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--accent-glow), var(--focus-ring);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.service-category {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.service-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.service-footer i {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .service-footer i {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }
}

/* ============================================
   SKILLS
   ============================================ */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
}

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

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Skill Bars */
.skill-bar-item {
    margin-bottom: 18px;
}

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

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.skill-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200% 100%;
    border-radius: 4px;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: barFlow 3s linear infinite;
}

@keyframes barFlow {
    to { background-position: 200% 0; }
}

/* Skill Chips */
.skill-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.skill-chip.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay) * 0.08s);
}

.skill-chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.05);
}

/* Radar Chart */
.skill-radar {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

#radarChart {
    max-width: 100%;
}

/* Languages */
.languages-section {
    margin-top: 20px;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
}

.languages-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.language-ring {
    width: 100px;
    height: 100px;
    position: relative;
    animation: ringFloat 4s ease-in-out infinite;
}

.language-card:nth-child(2) .language-ring { animation-delay: 0.6s; }
.language-card:nth-child(3) .language-ring { animation-delay: 1.2s; }
.language-card:nth-child(4) .language-ring { animation-delay: 1.8s; }

@keyframes ringFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.language-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 5;
}

.ring-fill {
    fill: none;
    stroke: url(#gradient) var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ring-fill.animated {
    stroke-dashoffset: calc(264 - var(--target-dash));
    animation: ringGlow 2.8s ease-in-out 2s infinite;
}

@keyframes ringGlow {
    0%, 100% { filter: drop-shadow(0 0 1px var(--accent-glow)); }
    50% { filter: drop-shadow(0 0 6px var(--accent)); }
}

@media (prefers-reduced-motion: reduce) {
    .skill-bar-fill,
    .ring-fill.animated,
    .language-ring { animation: none; }
}

.language-level {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.language-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

.language-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .skills-categories { grid-template-columns: 1fr; }
}

/* ============================================
   EDUCATION
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.edu-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.edu-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.edu-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent);
    margin-bottom: 14px;
}

.edu-status.completed {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent-2);
}

.edu-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.edu-card h4 {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.edu-school {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.edu-school i {
    color: var(--accent);
    font-size: 0.8rem;
}

.edu-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.edu-focus {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-style: italic;
}

.edu-highlights {
    margin-top: 8px;
}

.edu-highlights li {
    position: relative;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.edu-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

/* Awards */
.awards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.award-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.award-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
    transform: translateY(-4px);
}

.award-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 215, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffd700;
}

.award-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.award-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .education-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-sidebar,
.admin-workspace,
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.admin-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.admin-brand,
.admin-session,
.admin-card-header,
.admin-list-item,
.admin-table-row {
    display: flex;
    align-items: center;
}

.admin-brand {
    gap: 14px;
    margin-bottom: 22px;
}

.admin-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-brand h3 {
    font-size: 1rem;
    line-height: 1.2;
}

.admin-brand p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-brand p.connected {
    color: var(--accent-2);
}

.admin-brand p.error {
    color: var(--accent-3);
}

.admin-login,
.admin-form-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-login {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.admin-field input,
.admin-field textarea,
.admin-field select,
.admin-card-header select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s ease;
}

.admin-field input,
.admin-field select,
.admin-card-header select {
    min-height: 44px;
    padding: 0 14px;
}

.admin-field textarea {
    padding: 12px 14px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
.admin-card-header select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-session {
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 18px;
}

.admin-session span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-session strong {
    display: block;
    font-size: 0.86rem;
    word-break: break-word;
}

.admin-icon-btn,
.admin-link-btn,
.admin-action-btn {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.admin-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-icon-btn:hover,
.admin-link-btn:hover,
.admin-action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.admin-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-tab {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tab i {
    width: 18px;
    color: var(--accent);
}

.admin-tab:hover,
.admin-tab.active,
.admin-tab[aria-selected="true"] {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.admin-workspace {
    min-width: 0;
    padding: 24px;
}

.admin-alert {
    padding: 16px 18px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(255, 215, 0, 0.08);
    color: var(--text-secondary);
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: 0.9rem;
}

.admin-alert.success {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-2);
}

.admin-alert.error {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-3);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-panel[hidden] {
    display: none !important;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.admin-metric {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.admin-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 10px;
}

.admin-metric strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.admin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.admin-card {
    padding: 22px;
    min-width: 0;
}

.admin-card-header {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-card-header h3 {
    font-size: 1.08rem;
}

.admin-card-header span,
.admin-card-header select {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-card-header select {
    max-width: 160px;
}

.admin-link-btn,
.admin-action-btn {
    border-radius: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-list,
.admin-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-list-item,
.admin-table-row {
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.admin-list-item div,
.admin-table-row div {
    min-width: 0;
}

.admin-list-item strong,
.admin-table-row strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.admin-list-item p,
.admin-table-row p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.admin-list-item small,
.admin-table-row small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.admin-empty {
    padding: 24px;
    border: 1px dashed var(--border-hover);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.admin-status-pill.green {
    background: rgba(0, 212, 170, 0.14);
    color: var(--accent-2);
}

.admin-status-pill.red {
    background: rgba(255, 107, 107, 0.14);
    color: var(--accent-3);
}

.admin-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.file-drop {
    min-height: 170px;
    border: 1px dashed var(--border-hover);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop:hover,
.file-drop:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.file-drop i {
    color: var(--accent);
    font-size: 2rem;
}

.file-drop span {
    color: var(--text-primary);
    font-weight: 700;
}

.file-drop small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (max-width: 1050px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .admin-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .admin-tab {
        justify-content: center;
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .admin-workspace,
    .admin-sidebar,
    .admin-card {
        padding: 18px;
    }
    .admin-tabs { grid-template-columns: 1fr 1fr; }
    .admin-tab { justify-content: flex-start; }
    .admin-metrics { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-table-row,
    .admin-list-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-row-actions {
        justify-content: flex-start;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg-primary);
    padding: 0 8px;
    transform: none;
}

.section-alt .form-group input:focus ~ label,
.section-alt .form-group input:not(:placeholder-shown) ~ label,
.section-alt .form-group textarea:focus ~ label,
.section-alt .form-group textarea:not(:placeholder-shown) ~ label {
    background: var(--bg-secondary);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-status {
    min-height: 20px;
    margin-top: -8px;
    color: var(--accent-2);
    font-size: 0.85rem;
    text-align: center;
}

.form-status.error {
    color: var(--accent-3);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.footer-content > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

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

.footer-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

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

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

/* ============================================
   MOBILE HELPERS
   ============================================ */
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .section { padding: 76px 0; }
    .section-header { margin-bottom: 44px; }
    .section-intro {
        margin-top: 18px;
        font-size: 0.92rem;
    }
    .project-card,
    .service-card { padding: 24px; }
    .project-case-points { gap: 8px; }
    .project-case-points div { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    body { cursor: auto; }
    .cursor-dot,
    .cursor-outline,
    #particles {
        display: none;
    }
    .btn,
    .theme-toggle,
    .interest-card,
    .skill-chip {
        cursor: pointer;
    }
}
