/* ============================================
   FARHAN PORTFOLIO — GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --black: #000000;
  --white: #ffffff;
  --grey-100: #f5f5f5;
  --grey-200: #e0e0e0;
  --grey-500: #888888;
  --grey-700: #333333;
  --grey-800: #1a1a1a;
  --grey-900: #111111;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-smooth: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --section-pad: clamp(80px, 10vw, 140px);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--white);
  color: var(--black);
}

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

img,
canvas {
  display: block;
  max-width: 100%;
}

/* ---------- GRAIN TEXTURE OVERLAY ---------- */
.grain-overlay {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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: 200px 200px;
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-2%, -3%);
  }

  20% {
    transform: translate(3%, 2%);
  }

  30% {
    transform: translate(-1%, 4%);
  }

  40% {
    transform: translate(2%, -1%);
  }

  50% {
    transform: translate(-3%, 1%);
  }

  60% {
    transform: translate(1%, -2%);
  }

  70% {
    transform: translate(4%, 3%);
  }

  80% {
    transform: translate(-2%, -4%);
  }

  90% {
    transform: translate(2%, 2%);
  }
}

/* ---------- CUSTOM CURSOR ---------- */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background 0.3s;
  mix-blend-mode: difference;
}

#cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-smooth), height 0.4s var(--ease-smooth), border-color 0.3s;
  mix-blend-mode: difference;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 20px;
  height: 20px;
}

/* ---------- LOADING SCREEN ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

#loader .loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey-500);
  text-transform: uppercase;
}

#loader .loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: var(--grey-800);
  overflow: hidden;
}

#loader .loader-bar {
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.1s linear;
}

/* ---------- RESUME INTRO SCENE ---------- */
#resume-intro {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#resume-intro .spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s;
}

.resume-wrapper {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  opacity: 0; /* Prevents FOUC before JS sets initial state */
}

.resume-scene {
  position: relative;
  width: min(480px, 88vw);
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-6deg);
  transition: transform 0.8s var(--ease-smooth);
  filter: drop-shadow(0 40px 80px rgba(255, 255, 255, 0.12));
}

.resume-img-container {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.18);
}

.resume-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Top fold overlay */
.resume-fold-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: #ffffff;
  transform-origin: top center;
  border-radius: 3px 3px 0 0;
  z-index: 10;
  transform: rotateX(0deg);
  pointer-events: none;
}

.resume-fold-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.resume-fold-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: #ffffff;
  transform-origin: bottom center;
  border-radius: 0 0 3px 3px;
  z-index: 10;
  transform: rotateX(0deg);
  pointer-events: none;
}

.resume-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 5;
  border-radius: 2px;
}

/* Intro title overlay */
#intro-title {
  position: absolute;
  bottom: 8%;
  /* Near the bottom of the screen, overlapping the paper */
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--grey-500);
  opacity: 0;
  z-index: 100;
  pointer-events: none;
}

#intro-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}

/* ---------- MAIN CONTENT ---------- */
#main-content {
  opacity: 0;
  visibility: hidden;
  position: relative;
}

#main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- NAVBAR ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: opacity 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease-smooth);
}

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

/* ---------- HERO SECTION ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 96px) clamp(60px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero-eyes {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: min(500px, 40vw);
  height: auto;
  z-index: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
}

.sclera {
  fill: var(--white);
  transition: transform 0.2s;
}

.pupil {
  fill: var(--black);
  /* The pupil will be moved via JS */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--grey-500);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  overflow: hidden;
}

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

.hero-name .word {
  display: inline-block;
}

.hero-subtitle {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  color: var(--grey-500);
  max-width: 480px;
  line-height: 1.7;
  overflow: hidden;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  transition: transform 0.3s var(--ease-smooth), background 0.3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
}

.btn-secondary:hover {
  color: var(--white);
  gap: 16px;
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  right: 48px;
  bottom: clamp(40px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-500);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--grey-800);
  overflow: hidden;
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grey-500);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

/* ---------- SECTION COMMON ---------- */
section {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: attr(data-num);
  font-size: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-800);
  max-width: 80px;
}

/* ---------- ABOUT SECTION ---------- */
#about {
  background: var(--grey-900);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .about-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

.about-text {
  flex: 1;
  max-width: 700px;
}

.scrub-text {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.scrub-word {
  opacity: 0.15;
  display: inline-block;
  color: var(--white);
  will-change: opacity;
}

.about-paragraphs {
  max-width: 550px;
}

.about-paragraphs p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--grey-500);
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 380px;
}

.stat-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stat-card:hover .stat-glow {
  opacity: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  color: var(--white);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-top: 12px;
  display: block;
}

/* ---------- SKILLS SECTION ---------- */
#skills {
  background: var(--black);
  overflow: hidden;
}

.skills-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-bottom: 80px;
}

.skill-card {
  border: 1px solid var(--grey-800);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grey-900);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-smooth);
  z-index: 0;
}

.skill-card:hover::before {
  transform: scaleY(1);
}

.skill-card:hover {
  border-color: var(--grey-700);
}

.skill-card>* {
  position: relative;
  z-index: 1;
}

.skill-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border: 1px solid var(--grey-800);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--grey-200);
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.skill-tag:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Skills marquee */
.marquee-wrap {
  border-top: 1px solid var(--grey-800);
  border-bottom: 1px solid var(--grey-800);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--grey-800);
  flex-shrink: 0;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.marquee-track span:hover {
  color: var(--white);
  -webkit-text-stroke: 1px transparent;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- EXPERIENCE SECTION ---------- */
#experience {
  background: var(--grey-900);
}

.experience-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--grey-800);
  position: relative;
  overflow: hidden;
}

.exp-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.6s var(--ease-smooth);
}

.exp-item:hover::after {
  width: 100%;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  text-transform: uppercase;
  padding-top: 6px;
}

.exp-company {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.exp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-points li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-500);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.exp-points li::before {
  content: '→';
  color: var(--grey-700);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- PROJECTS SECTION ---------- */
#projects {
  background: var(--black);
}

.projects-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
}

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

.project-item {
  border: 1px solid var(--grey-800);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
  cursor: none;
}

.project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grey-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
  z-index: 0;
}

.project-item:hover::before {
  transform: scaleX(1);
}

.project-item:hover {
  border-color: var(--grey-700);
}

.project-item>* {
  position: relative;
  z-index: 1;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-700);
  margin-bottom: 16px;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1;
}

.project-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-500);
  max-width: 560px;
  margin-bottom: 24px;
}

.project-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.project-points li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-500);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.project-points li::before {
  content: '—';
  color: var(--grey-700);
  flex-shrink: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--grey-800);
  color: var(--grey-500);
}

.project-link-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.project-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  font-size: 18px;
}

.project-item:hover .project-arrow {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  transform: rotate(45deg);
}

.project-url {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--grey-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.project-item:hover .project-url {
  color: var(--grey-500);
}

/* ---------- EDUCATION SECTION ---------- */
#education {
  background: var(--grey-900);
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
}

.edu-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
}

.edu-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--grey-800);
}

.edu-years {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  text-transform: uppercase;
  padding-top: 4px;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.edu-school {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ---------- CONTACT SECTION ---------- */
#contact {
  background: var(--black);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
}

.contact-big {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 60px;
  overflow: hidden;
}

.contact-big .line-wrap {
  display: block;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--grey-800);
  padding-top: 60px;
}

.contact-info-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-500);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-800);
  transition: border-color 0.3s;
}

.contact-link-item:hover {
  border-color: var(--grey-600);
}

.contact-link-item .link-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.contact-link-item .link-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}

.contact-link-item:hover .link-value {
  color: var(--grey-300);
}

.contact-link-item .link-arrow {
  color: var(--grey-700);
  transition: transform 0.3s, color 0.3s;
}

.contact-link-item:hover .link-arrow {
  transform: translate(4px, -4px);
  color: var(--white);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 32px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--grey-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey-700);
  text-transform: uppercase;
}

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--grey-500);
  z-index: 100;
  cursor: none;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

#back-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-top:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-4px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

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

  .exp-item,
  .edu-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .project-link-area {
    flex-direction: row;
    align-items: center;
    height: auto;
  }

  .scroll-indicator {
    display: none;
  }
}