
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@300;400;500&display=swap');

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

:root {
  --black: #080808;
  --charcoal-deep: #0d0d0d;
  --charcoal: #111111;
  --charcoal-mid: #161616;
  --charcoal-light: #1a1a1a;
  --grey-dark: #222222;
  --grey: #333333;
  --grey-mid: #555555;
  --grey-light: #888888;
  --white-dim: #aaaaaa;
  --white-mid: #cccccc;
  --white: #f0f0f0;

  --accent: #c8a96e;
  --accent-light: #dfc08a;
  --accent-dim: rgba(200, 169, 110, 0.15);
  --accent-glow: rgba(200, 169, 110, 0.08);

  --blue-accent: #4f8ef7;
  --blue-dim: rgba(79, 142, 247, 0.12);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.055);

  --sidebar-width: 80px;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--black);
  color: var(--white-mid);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NOISE TEXTURE  */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* 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 var(--ease-out-expo), background 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200, 169, 110, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out-expo), width 0.3s, height 0.3s, border-color 0.2s;
}

.cursor.hovering { transform: translate(-50%, -50%) scale(2); }
.cursor-follower.hovering { width: 60px; height: 60px; border-color: rgba(200, 169, 110, 0.6); }

@media (pointer: coarse) { .cursor, .cursor-follower { display: none; } }

/*  SIDEBAR  */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  gap: 2rem;
}

.sidebar-logo .logo-link {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.logo-text:hover { opacity: 0.7; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
  padding-top: 2rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--grey-mid);
  transition: color 0.2s;
  position: relative;
  width: 100%;
  text-align: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-indicator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.3s, background 0.2s;
}

.nav-link.active .nav-indicator {
  background: var(--accent);
  transform: scale(1.5);
}

.nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.sidebar-bottom {
  margin-top: auto;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  color: var(--grey-mid);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/*  MOBILE HEADER  */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.mobile-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-mid);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/*  MOBILE MENU  */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(40px);
  border-left: 1px solid var(--glass-border);
  z-index: 99;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--grey-mid);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s, transform 0.2s;
  border-bottom: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--white);
  transform: translateX(8px);
}

.mobile-social {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

/*  MAIN CONTENT  */
.main-content {
  margin-left: var(--sidebar-width);
}

/*  SECTIONS  */
.section {
  min-height: 100vh;
  padding: 6rem 5vw 6rem;
  position: relative;
}

/*  SECTION HEADER  */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}

/*  GLASS CARD  */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--glass-hover);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/*  BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px rgba(200, 169, 110, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white-mid);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: var(--glass-bg);
}

.btn.full-width {
  width: 100%;
  justify-content: center;
}

/*  HERO  */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

/* Hero BG glows */
.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
  top: -100px; right: 10%;
  animation-delay: 0s;
}

.glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
  bottom: 10%; left: 10%;
  animation-delay: 3s;
}

.glow-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.06) 0%, transparent 70%);
  top: 50%; right: 30%;
  animation-delay: 5s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

/* Floating icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(200, 169, 110, 0.15);
  font-weight: 300;
  letter-spacing: -0.02em;
  animation: floatAnim 20s ease-in-out infinite;
}

.fi-1 { top: 15%; left: 15%; animation-duration: 18s; animation-delay: 0s; }
.fi-2 { top: 25%; right: 20%; animation-duration: 22s; animation-delay: 2s; }
.fi-3 { top: 60%; left: 8%; animation-duration: 20s; animation-delay: 4s; }
.fi-4 { bottom: 20%; right: 15%; animation-duration: 16s; animation-delay: 1s; }
.fi-5 { top: 40%; left: 40%; animation-duration: 24s; animation-delay: 3s; }
.fi-6 { top: 10%; right: 35%; animation-duration: 19s; animation-delay: 5s; }
.fi-7 { bottom: 30%; left: 30%; animation-duration: 21s; animation-delay: 2s; font-size: 0.8rem; }
.fi-8 { top: 70%; right: 40%; animation-duration: 23s; animation-delay: 6s; }

@keyframes floatAnim {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.15; }
  25% { transform: translate(15px, -20px) rotate(5deg); opacity: 0.25; }
  50% { transform: translate(-10px, -35px) rotate(-3deg); opacity: 0.12; }
  75% { transform: translate(20px, -15px) rotate(7deg); opacity: 0.22; }
}

/* Hero content */
.hero-content {
  flex: 1;
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-light);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 16px rgba(74, 222, 128, 0.9); }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.title-line {
  overflow: hidden;
  line-height: 1.05;
}

.title-reveal {
  display: inline-block;
  transform: translateY(105%);
}

.title-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(16px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Hero visual / avatar */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  opacity: 0;
}

.hero-avatar-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.ring-1 { width: 300px; height: 300px; animation: ringPulse 6s ease-in-out infinite; }
.ring-2 { width: 240px; height: 240px; border-color: rgba(200,169,110,0.1); animation: ringPulse 6s ease-in-out infinite 1.5s; }
.ring-3 { width: 180px; height: 180px; border-color: rgba(200,169,110,0.15); animation: ringPulse 6s ease-in-out infinite 3s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.avatar-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,169,110,0.15) 0%, rgba(200,169,110,0.05) 100%);
  border: 1px solid rgba(200,169,110,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.avatar-initials {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  font-style: italic;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(200,169,110,0.1);
  top: 50%;
  left: 50%;
}

.orbit-1 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  animation: orbitSpin 12s linear infinite;
}

.orbit-2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  animation: orbitSpin 20s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(200,169,110,0.6);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--grey-mid);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--grey-mid), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/*  ABOUT  */
.about-section {
  padding-top: 8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  padding: 2.5rem;
}

.about-text p {
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--white-mid) !important;
  font-weight: 500;
  margin-bottom: 1.5rem !important;
}

.about-details {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--white-mid);
  font-weight: 500;
}

.detail-value.available { color: #4ade80; }

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Code block */
.code-block {
  padding: 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}

.code-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-mid);
}

.code-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--grey-light);
  white-space: pre;
  overflow-x: auto;
}

.cm { color: #c792ea; } /* keyword */
.cv { color: #82aaff; } /* variable */
.ck { color: #7fdbca; } /* key */
.cs { color: #c3e88d; } /* string */

.about-quote {
  padding: 1.75rem 2rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  border-left-width: 2px;
}

.about-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white-mid);
  line-height: 1.6;
}

/* ===== SKILLS ===== */
.skills-section {
  padding-top: 8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 2rem;
  cursor: default;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,169,110,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,169,110,0.08);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(200,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--grey-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--grey-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.02em;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  width: 0%;
  transition: width 1.2s var(--ease-out-expo);
}

.skill-level span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===== PROJECTS ===== */
.projects-section {
  padding-top: 8rem;
}

.project-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--grey-mid);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--white-mid);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.project-card.hidden {
  display: none;
}

.project-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.pv-1 {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1030 50%, #0f1a1a 100%);
}

.pv-2 {
  background: linear-gradient(135deg, #1a0f0a 0%, #2a1a10 50%, #1a1a0f 100%);
}

.pv-3 {
  background: linear-gradient(135deg, #0a0f1a 0%, #101a2a 50%, #0a1a1a 100%);
}

.pv-4 {
  background: linear-gradient(135deg, #0f1a0f 0%, #1a2a10 50%, #1a1a0f 100%);
}

.project-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(200,169,110,0.12) 0%, transparent 60%);
  transition: opacity 0.3s;
}

.project-card:hover .project-glow {
  opacity: 1.5;
}

.project-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.project-info {
  padding: 1.75rem;
}

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

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-mid);
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--grey-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.project-link {
  font-size: 0.8rem;
  color: var(--grey-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

/* ===== CONTACT ===== */
.contact-section {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s, background 0.2s;
  group: true;
}

.contact-item:hover {
  border-color: rgba(200,169,110,0.2);
  background: var(--glass-hover);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(200,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--white-mid);
  font-weight: 500;
  display: block;
}

/* Contact Form */
.contact-form {
  padding: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 0 0.5rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 0.85rem;
  color: var(--grey-mid);
  pointer-events: none;
  transition: transform 0.25s var(--ease-out-expo), font-size 0.25s, color 0.25s;
  transform-origin: left;
}

.form-input:not(:placeholder-shown) ~ .form-label,
.form-input:focus ~ .form-label {
  transform: translateY(-1.25rem) scale(0.8);
  color: var(--accent);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out-expo);
}

.form-input:focus ~ .form-line {
  width: 100%;
}

.form-textarea {
  min-height: 100px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 5vw;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon-sm {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-mid);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.social-icon-sm:hover { color: var(--accent); }

/* ===== MAGNETIC BUTTON ===== */
.magnetic {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== SCROLL ANIMATIONS (base states) ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-hidden-left {
  opacity: 0;
  transform: translateX(-30px);
}

.scroll-hidden-right {
  opacity: 0;
  transform: translateX(30px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .mobile-overlay { display: block; }

  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }

  .section {
    padding: 5rem 1.5rem 4rem;
  }

  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    gap: 3rem;
    min-height: calc(100vh - 60px);
  }

  .hero-visual {
    display: none;
  }

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

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

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

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

  .hero-stats {
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn { width: 100%; justify-content: center; }

  .section-title {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/*  SELECTION  */
::selection {
  background: rgba(200, 169, 110, 0.25);
  color: var(--white);
}

/*  SCROLLBAR  */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--grey-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey); }
