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

:root {
  --bg: #080a0e;
  --bg-2: #0e1117;
  --bg-3: #141820;
  --border: rgba(255,255,255,0.07);
  --text: #e8e6e1;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --accent: #c9a84c;
  --accent-dim: rgba(201,168,76,0.15);
  --accent-glow: rgba(201,168,76,0.4);
  --red: #e05c5c;
  --green: #4ade80;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

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

/* ============================================
   NOISE TEXTURE
   ============================================ */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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");
  background-size: 150px 150px;
}

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

.cursor-trail {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, transform 0.2s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(8,10,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 3rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  margin-bottom: 2.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-name .line {
  display: block;
}

.hero-name .italic {
  font-style: italic;
  color: var(--accent);
}

.hero-title {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-bio {
  max-width: 480px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.highlight {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Profile */
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.profile-frame {
  position: relative;
  width: 240px;
  height: 240px;
}

.profile-img {
  width: 220px;
  height: 220px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-initials {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.profile-ring {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201,168,76,0.3);
  z-index: 0;
}

.location-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 3rem;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.timeline-item:first-child {
  border-top: 1px solid var(--border);
}

.timeline-item:hover {
  background: rgba(255,255,255,0.01);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.timeline-date {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 0.15rem 0.5rem;
  width: fit-content;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.company {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.company-type {
  color: var(--text-muted);
}

.description {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 560px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.project-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--bg-3);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-type {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.project-link:hover {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================
   SKILLS GRID
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.skill-group {
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.skill-group:last-child {
  border-right: none;
}

.skill-group h4 {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-group li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group li::before {
  content: '—';
  color: var(--border);
  font-size: 0.6rem;
}

/* Education */
.education {
  border: 1px solid var(--border);
  padding: 2rem;
}

.education h4 {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.2rem;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  text-align: center;
}

.contact-section .section-header {
  justify-content: center;
}

.contact-intro {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  margin-bottom: 3rem;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.contact-phone {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.edu-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.social-links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 7rem 1.5rem 4rem;
    gap: 2.5rem;
  }

  .hero-aside {
    align-self: center;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-group:nth-child(2) {
    border-right: none;
  }

  .skill-group:nth-child(3),
  .skill-group:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .edu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}
