/* ===========================
   Design Tokens
   =========================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1c1c1f;

    --text-primary: #f0ede8;
    --text-secondary: #9a9a9a;
    --text-muted: #5a5a5a;

    --accent: #c4a47c;
    --accent-dim: rgba(196, 164, 124, 0.12);
    --accent-glow: rgba(196, 164, 124, 0.06);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --font-size-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
    --font-size-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --font-size-2xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --max-width: 720px;
    --max-width-wide: 900px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

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


/* ===========================
   Layout
   =========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}


/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.avatar-wrapper {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid var(--border);
    transition: border-color var(--transition-base);
}

.avatar:hover {
    border-color: var(--accent);
}

.hero h1 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hero-location {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

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


/* ===========================
   Sections
   =========================== */
.section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}


/* ===========================
   About
   =========================== */
.about-text p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    font-weight: 300;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* ===========================
   Expertise
   =========================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.expertise-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.expertise-icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-lg);
    color: var(--accent);
}

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

.expertise-card h3 {
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.expertise-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}


/* ===========================
   Timeline
   =========================== */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

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

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

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-xl) + 1px);
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 1.5px solid var(--text-muted);
    transition: border-color var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    border-color: var(--accent);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.timeline-content h3 {
    font-size: var(--font-size-base);
    font-weight: 500;
    margin: var(--space-xs) 0;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}


/* ===========================
   Contact
   =========================== */
.contact-text {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}

.contact-links {
    display: flex;
    gap: var(--space-md);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.contact-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ===========================
   Footer
   =========================== */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 300;
}


/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered delays for hero elements */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* ===========================
   Responsive
   =========================== */
@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
        padding: var(--space-2xl) var(--space-lg);
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

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

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

    .timeline {
        padding-left: var(--space-lg);
    }
}
