
/* ===================================
   CSS Variables
   =================================== */
:root {
  /* Colors - Dark Mode */
  --color-bg: #1A1A1A;
  --color-text: #FFFFFF;
  --color-accent: #3B9DFF;
  --color-subtle: #2A2A2A;
  --color-hover: #FFFFFF;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  --spacing-3xl: 120px;

  /* Container */
  --container-max-width: 800px;
  --container-padding: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  opacity: 0.9;
}

h1 {
  font-size: clamp(28px, 6vw, 26px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 5vw, 20px);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: clamp(16px, 2.5vw, 16px);
  margin-bottom: var(--spacing-xs);
  max-width: 65ch;
}

strong {
  font-weight: 500;
  color: var(--color-hover);
}

/* Monospace for metrics */
.metric {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--color-accent);
  font-weight: 450;
  font-size: clamp(16px, 2.5vw, 16px);
}

.highlight {
  color: var(--color-accent);
  font-weight: 450;
}

/* ===================================
   Layout
   =================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--container-padding);
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: var(--spacing-2xl);
}

/* ===================================
   Scroll Progress Bar
   =================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 0%;
  background: var(--color-accent);
  z-index: 9999;
  transition: height 0.1s ease;
}

/* ===================================
   Background Decorations (Removed)
   =================================== */
/* Background circles removed per user feedback */

/* ===================================
   Hero Section
   =================================== */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.hero-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  border: 3px solid var(--color-subtle);
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.hero-image:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.hero-name {
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-headline {
  font-size: clamp(18px, 3vw, 20px);
  margin: 0 auto 8px;
  max-width: 600px;
  color: var(--color-text);
  font-weight: 400;
  text-align: center;
  opacity: 0.7;
}

.hero-subheadline {
  font-size: clamp(14px, 2.5vw, 15px);
  margin: 0 auto;
  max-width: 750px;
  color: var(--color-text);
  opacity: 0.7;
  line-height: 1.5;
  text-align: center;
}

/* ===================================
   Intro Section
   =================================== */
.intro p {
  opacity: 0.85 !important;
}

/* ===================================
   Achievements Section
   =================================== */
.section-label {
  margin-bottom: var(--spacing-sm);
  opacity: 0.7;
}

.section-header {
  opacity: 0.7;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.achievement-item {
  padding-left: 20px;
  position: relative;
  font-size: clamp(16px, 2.5vw, 16px);
  line-height: 1.5;
  transition: transform var(--transition-fast);
  opacity: 0.85;
}

.achievement-item .u {
  font-weight: 700;
}

.achievement-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 20px;
  background: var(--color-accent);
  transition: height var(--transition-smooth);
}

.achievement-item:hover::before {
  height: 24px;
}

/* ===================================
   Current Section
   =================================== */
.current {
  /* Inherits default section styles */
}

.current p {
  opacity: 0.85;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  margin-bottom: 0;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-subtle);
  border-radius: 12px;
  padding: var(--spacing-md);
  transition: all var(--transition-smooth);
  min-height: 44px; /* Touch-friendly */
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.contact-label {
  font-size: clamp(14px, 2vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  font-weight: 450;
}

.contact-card p {
  margin-bottom: 12px;
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.5;
}

.contact-link {
  font-size: clamp(14px, 2.5vw, 15px);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 450;
  display: inline-block;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-hover);
  transform: translateX(4px);
}

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

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

/* ===================================
   Desktop Enhancements (768px+)
   =================================== */
@media (min-width: 768px) {
  :root {
    --container-padding: 40px;
  }

  .container {
    padding: 32px var(--container-padding) 24px;
  }

  h2 {
    margin-bottom: 12px;
  }

  section {
    margin-bottom: 32px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero-image {
    width: 260px;
    height: 260px;
    margin-bottom: 12px;
  }

  .hero-name {
    margin-bottom: 12px;
  }

  .hero-headline {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .hero-subheadline {
    font-size: 14px;
  }

  .achievement-list {
    gap: 16px;
  }

  .contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card p {
    font-size: 14px;
  }

  .contact-link {
    font-size: 14px;
  }

  .achievement-item:hover {
    transform: translateX(8px);
  }

  .achievement-item::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
  }

  .achievement-item:hover::after {
    width: calc(100% - 20px);
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-decoration {
    display: none;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .progress-bar,
  .bg-decoration {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
