/* ═══════════════════════════════════════════════════════════════════════════
   PERSONAL WEBSITE STYLES
   Font: IBM Plex Mono (Cursor-inspired)
   Theme: Dark, minimalistic, software-like
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VARIABLES - Edit these to customize colors
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Background colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-hover: #1a1a1a;

    /* Text colors - High contrast for readability */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;

    /* Accent colors (syntax-highlighting inspired) */
    --accent-blue: #7aa2f7;
    --accent-green: #9ece6a;
    --accent-purple: #bb9af7;
    --accent-orange: #ff9e64;
    --accent-cyan: #7dcfff;

    /* UI colors */
    --border-color: #222222;
    --cursor-color: var(--accent-blue);

    /* Spacing */
    --section-gap: 4rem;
    --container-max: 720px;

    /* Typography */
    --font-mono: 'IBM Plex Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEXT UTILITIES - Use these to emphasize key metrics
   ───────────────────────────────────────────────────────────────────────────── */
.highlight {
    color: var(--accent-green);
}

.highlight-blue {
    color: var(--accent-blue);
}

.highlight-orange {
    color: var(--accent-orange);
}

strong,
.strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem 0;
}

.hero-content {
    width: 100%;
}

.hero-prefix {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 1.7em;
}

.typing-text {
    color: var(--accent-green);
}

.cursor {
    color: var(--cursor-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-link:hover {
    color: var(--accent-blue);
}

.link-icon {
    transition: transform 0.2s ease;
}

.hero-link:hover .link-icon {
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────────────────────────────────────────── */
.section {
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIMELINE (Experience/Education)
   ───────────────────────────────────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 2px solid var(--accent-blue);
    padding-left: 1rem;
}

/* Current role gets green border */
#currently .timeline-item {
    border-left-color: var(--accent-green);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-left: auto;
}

@media (max-width: 640px) {
    .timeline-date {
        margin-left: 0;
        width: 100%;
    }
}

.timeline-role {
    color: var(--text-secondary);
    font-size: 1rem;
}

.timeline-company {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.timeline-company:hover {
    color: var(--accent-blue);
}

.timeline-detail {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.timeline-bullets {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-bullets li {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-bullets li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.education-achievements {
    margin-top: 0.5rem;
}

.achievements-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED ACHIEVEMENT
   ───────────────────────────────────────────────────────────────────────────── */
.featured-achievement {
    border-left: 2px solid var(--accent-green);
    padding-left: 1rem;
    margin: 0.75rem 0 1rem 0;
}

.featured-label {
    font-size: 0.6875rem;
    color: var(--accent-green);
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.featured-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0.25rem 0;
}

.featured-date {
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.featured-achievement .timeline-bullets {
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ACHIEVEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
.achievements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.achievement-bullet {
    color: var(--accent-orange);
    font-size: 0.625rem;
    margin-top: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT ME
   ───────────────────────────────────────────────────────────────────────────── */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0;
}

.about-list li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1rem;
}

.about-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECTS GRID
   ───────────────────────────────────────────────────────────────────────────── */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-item {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0 -1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border-left: 2px solid var(--accent-blue);
    margin-left: 0;
    padding-left: 1rem;
}

.project-item:hover {
    background-color: var(--bg-hover);
}

.project-link {
    text-decoration: none;
}

.project-title {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.project-link:hover .project-title,
.project-item:hover .project-title {
    color: var(--accent-blue);
}

.project-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.project-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-bullets li {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    position: relative;
    padding-left: 1rem;
}

.project-bullets li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────────────────────── */
.section-contact {
    padding-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-blue);
}

.contact-link:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    body {
        font-size: 13px;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-links {
        gap: 1rem;
    }

    :root {
        --section-gap: 3rem;
    }

    .project-item {
        padding: 0.625rem 0.75rem;
        margin: 0 -0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        transition: none;
    }

    .cursor {
        animation: none;
    }
}