/* =========================================
   CSS Variables & Base
   ========================================= */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-text: #e8e4df;
  --color-text-muted: #6b6560;
  --color-accent: #ff5f1f;
  --color-accent-glow: rgba(255, 95, 31, 0.15);
  --color-border: #2a2725;
  
  --font-serif: Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base
   ========================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =========================================
   Background Effects
   ========================================= */

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.grid-lines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  pointer-events: none;
  z-index: 0;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-border) 15%,
    var(--color-border) 85%,
    transparent 100%
  );
  opacity: 0.4;
}

/* =========================================
   Layout
   ========================================= */

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
}

/* =========================================
   Header
   ========================================= */

.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
  animation: fadeSlideDown 0.6s ease-out;
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-smooth);
}

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

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

/* =========================================
   Hero Section
   ========================================= */

.hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.photo-wrapper {
  flex-shrink: 0;
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  position: relative;
}

.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-accent-glow) 0%,
    transparent 50%
  );
  z-index: 1;
  pointer-events: none;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--transition-smooth);
}

.photo:hover img {
  filter: grayscale(0%);
}


.hero-text {
  flex: 1;
}

.name {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: var(--spacing-sm);
}

.name-first {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--color-text);
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.name-last {
  display: block;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  color: var(--color-accent);
  text-shadow: 0 0 80px var(--color-accent-glow);
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.badge-new {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--color-bg);
  background-color: var(--color-accent);
  padding: 0.15em 0.5em;
  border-radius: 2px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin-left: 0.5em;
  text-transform: uppercase;
}

/* =========================================
   Section Common Styles
   ========================================= */

.section-label {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
}

/* =========================================
   About Section
   ========================================= */

.about {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.about-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* =========================================
   Expertise Section
   ========================================= */

.expertise {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.skill:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-items {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
}

/* =========================================
   Interests Section
   ========================================= */

.interests {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  animation: fadeSlideUp 0.8s ease-out 0.7s both;
}

.interests-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* =========================================
   Contact Section
   ========================================= */

.contact {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.contact-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--spacing-sm);
  margin: 0 calc(var(--spacing-sm) * -1);
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.contact-link:hover {
  background-color: var(--color-surface);
}

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

.contact-link-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-link-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

/* =========================================
   Footer
   ========================================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-md);
  animation: fadeSlideUp 0.8s ease-out 0.9s both;
}

.footer-location,
.footer-year {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================
   Animations
   ========================================= */

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

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

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 640px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .photo {
    width: 120px;
    height: 120px;
  }
  
  .name-first,
  .name-last {
    display: inline;
  }
  
  .name-first::after {
    content: ' ';
  }
  
  .skill {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .contact-link {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .footer {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
  
  .grid-lines {
    display: none;
  }
}

/* =========================================
   Selection & Scrollbar
   ========================================= */

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
