/* ================= DESIGN TOKENS (PRESERVED) ================= */
:root {
  --color-primary: #2d2d2d;
  --color-accent: #6c797b;
  --color-bg: #000;
  --color-surface: #000;
  --color-text: #fff;
  --color-text-muted: #9ca3af;
  --color-border: #2d3748;

  --font-main: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
  --fw-regular: 300;
  --fw-medium: 500;
  --fw-bold: 700;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --radius: 12px;

  /* Extended palette */
  --color-cream: #f8f7f3;
  --color-light: #f0f0f0;
  --color-glow: rgba(108,121,123,0.15);
  --color-glow-bright: rgba(108,121,123,0.35);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: none;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ================= NOISE OVERLAY ================= */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.025;
  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-size: 200px;
}

/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #a8b5b7);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ================= LAYOUT ================= */
.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--space-6) 0;
}

.section-dark {
  background: #050505;
  padding: 80px 0 100px;
}

.section-light {
  background: var(--color-cream);
  padding: 80px 0 100px;
}

.section-dark1 {
  background: var(--color-light);
}

.section-dark2 {
  background: #050505;
  padding: 80px 0 100px;
}

.slide-wrapper {
  position: relative;
  z-index: 5;
}

#about {
  position: relative;
  z-index: 5;
}

/* ================= SECTION HEADERS ================= */
.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

/* ================= REVEAL ANIMATIONS ================= */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }
.reveal-up:nth-child(5) { transition-delay: 0.4s; }

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HERO / HOME ================= */
#home {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-cream);
  color: #222;
  z-index: 0;
}

/* Animated grid */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(108,121,123,0.12);
  top: -150px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: rgba(44,44,44,0.07);
  bottom: 50px; left: 10%;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
.orb-3 {
  width: 200px; height: 200px;
  background: rgba(108,121,123,0.08);
  top: 40%; right: 30%;
  animation: orbFloat 10s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

/* ================= NAVBAR ================= */
.navbar {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  transition: top 0.3s ease;
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  padding: 8px 0;
  background: rgba(248,247,243,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  width: 100%;
  max-width: 1350px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(235, 232, 226, 0.88);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-inner {
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  border-radius: 0;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: #000;
  letter-spacing: 0.02em;
}

.logo-bracket {
  color: var(--color-accent);
  font-weight: 300;
}

.nav-menu {
  font-family: var(--font-mono);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-weight: 400;
  color: #111;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.85rem;
}

.nav-link span {
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-right: 2px;
}

.nav-link:hover {
  background: rgba(0,0,0,0.07);
  color: #000;
}

.nav-resume-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  background: #111;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  margin-left: 8px;
  transition: background 0.2s, transform 0.2s;
}

.nav-resume-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ================= NAV TOGGLE ================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #111;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= HERO CONTENT ================= */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  height: 100vh;
  position: relative;
  z-index: 2;
}

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

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: #333;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 32px;
  animation: badgeFadeIn 0.8s ease 0.2s both;
}

.status-badge strong {
  color: #111;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

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

/* Big name */
.big-name {
  display: flex;
  flex-direction: column;
  font-size: clamp(4.5rem, 7.5vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: nameSlideIn 0.9s ease 0.3s both;
}

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

.name-line {
  color: #111;
  display: block;
}

.name-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  animation: nameSlideIn 0.9s ease 0.45s both;
}

/* CTA group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: nameSlideIn 0.9s ease 0.55s both;
}

.btn {
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.btn-primary svg {
  transition: transform 0.2s;
}
.btn-primary:hover svg {
  transform: translate(2px, -2px);
}

.btn-secondary {
  font-family: var(--font-mono);
  font-weight: 300;
  background: transparent;
  color: #222;
  border: 1.5px solid rgba(0,0,0,0.2);
  padding: 11px 24px;
}
.btn-secondary:hover {
  border-color: #111;
  background: rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: nameSlideIn 0.9s ease 0.65s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}
.stat-item:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: #777;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(0,0,0,0.15);
}

/* ================= TECH ORBIT (HERO RIGHT) ================= */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tech-orbit {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.2);
}

.orbit-center span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-1 {
  width: 200px; height: 200px;
  animation: orbitSpin 10s linear infinite;
}
.orbit-2 {
  width: 320px; height: 320px;
  animation: orbitSpin 18s linear infinite reverse;
}

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

.orbit-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--color-cream);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 1.3rem;
}

/* Orbit-1: 4 items, 90° apart */
.orbit-1 .orbit-icon:nth-child(1) { top: -22px; left: 50%; transform: translateX(-50%) rotate(0deg); }
.orbit-1 .orbit-icon:nth-child(2) { right: -22px; top: 50%; transform: translateY(-50%) rotate(0deg); }
.orbit-1 .orbit-icon:nth-child(3) { bottom: -22px; left: 50%; transform: translateX(-50%) rotate(0deg); }
.orbit-1 .orbit-icon:nth-child(4) { left: -22px; top: 50%; transform: translateY(-50%) rotate(0deg); }

/* Counter-rotate icons so they stay upright */
.orbit-1 { animation: orbitSpin 10s linear infinite; }
.orbit-1 .orbit-icon { animation: orbitSpin 10s linear infinite reverse; }

/* Orbit-2: 3 items at 120° apart */
.orbit-2 .orbit-icon:nth-child(1) { top: -22px; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-icon:nth-child(2) { bottom: 20px; right: -10px; }
.orbit-2 .orbit-icon:nth-child(3) { bottom: 20px; left: -10px; }
.orbit-2 { animation: orbitSpin 18s linear infinite reverse; }
.orbit-2 .orbit-icon { animation: orbitSpin 18s linear infinite; }

/* ================= SCROLL HINT ================= */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeIn 1s ease 1.2s both;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; height: 48px; }
  50%       { opacity: 1; height: 60px; }
}

/* ================= ABOUT ================= */
.about {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.6);
  padding-top: 16px;
  padding-bottom: 32px;
  line-height: 0.9;
}

.css-line {
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  margin-bottom: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.about-text-col p {
  margin-bottom: 24px;
}

.about1 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
}

.about2 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.about-close {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-top: 16px;
}

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

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-bottom: 6px;
}

.about-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.about-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-card-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.about-card-cta {
  background: rgba(108,121,123,0.12);
  border-color: rgba(108,121,123,0.3);
  cursor: pointer;
}

.about-card-cta:hover {
  background: rgba(108,121,123,0.2);
  border-color: rgba(108,121,123,0.5);
}

/* ================= WORK / PORTFOLIO (light section) ================= */
.section-title {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  color: #111;
  line-height: 0.9;
  padding-top: 8px;
}

.section-title1 {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
  line-height: 1;
  margin-bottom: 16px;
}

.pro-line {
  border-top: 1px solid rgba(0,0,0,0.12);
  width: 100%;
  margin-top: 20px;
  margin-bottom: 48px;
}

.work-skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
}

.work-skill-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.work-skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #fff;
  position: relative;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.work-skill-pill:hover {
  border-color: rgba(0,0,0,0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.work-skill-pill i { font-size: 1.3rem; }

.work-skill-pill::after {
  content: attr(data-skill);
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.work-skill-pill:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.projects-header {
  margin-bottom: 32px;
}

.recent-projects-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.recent-projects-description {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.06em;
}

/* Scrollable projects track */
.portfolio-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.portfolio-wrapper::-webkit-scrollbar { height: 4px; }
.portfolio-wrapper::-webkit-scrollbar-track { background: transparent; }
.portfolio-wrapper::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 999px; }

.portfolio-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding: 8px 4px 8px;
}

/* Project cards */
.project-card {
  width: 420px;
  min-width: 420px;
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  scroll-snap-align: start;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  border-radius: 20px;
}

.project-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.project-content {
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

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

.project-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-link {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: rgba(255,255,255,0.7);
}

.project-link svg { width: 14px; height: 14px; }

.project-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: #fff;
}

.project-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-content > p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tech {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.project-media {
  flex: 1;
  margin-top: 0;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0b0f19;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= SERVICES ================= */
.section-services {
  background: var(--color-cream);
  overflow: hidden;
  padding-bottom: 80px;
}

.section-services .container {
  padding-bottom: 0;
}

.sectionser-title {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
  padding-top: 16px;
  padding-bottom: 20px;
  line-height: 0.9;
}

.ser-line {
  border-top: 1px solid rgba(0,0,0,0.12);
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.card-grid {
  display: flex;
  gap: var(--space-4);
  margin-top: 48px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.sercard {
  background: #111;
  border-radius: 16px;
  width: 300px;
  height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s;
  flex-shrink: 0;
}

.sercard:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.sercard-inner {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sercard-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.12em;
}

.service-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.service-image-wrapper {
  position: relative;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  filter: brightness(0.7);
  transition: filter 0.3s, transform 0.4s;
}

.sercard:hover .service-image-wrapper img {
  filter: brightness(0.5);
  transform: scale(1.04);
}

.service-description {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
  color: #fff;
  opacity: 0;
  background: rgba(0,0,0,0.65);
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.sercard:hover .service-description {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CONTACT ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 40px;
}

.contact-heading {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.contact-heading span {
  color: rgba(255,255,255,0.9);
  -webkit-text-stroke: 0;
}

.social-icon-heading1 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  margin-top: 32px;
}

.contact-des {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact-btn {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
  color: #111;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(255,255,255,0.08);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255,255,255,0.15);
  background: #f0f0f0;
}

.contact-right {
  padding-top: 16px;
}

.contact-email-display {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.contact-email-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.contact-email:hover {
  color: #fff;
}

/* ================= SOCIAL ICONS ================= */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  height: 44px;
  width: 130px;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0 16px;
  transition: all 0.25s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: fill 0.2s;
}

.social-icon:hover svg { fill: #fff; }

.icon-name {
  font-family: var(--font-mono);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  padding-left: 10px;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.social-icon:hover .icon-name { color: #fff; }

/* ================= FOOTER ================= */
footer {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  height: 200px;
}

.footer-bg-name {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10vw;
  font-weight: 900;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.07);
  letter-spacing: -0.03em;
}

.footer-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: #666;
}

.footer-back-top {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: #444;
  padding: 8px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: all 0.2s;
}

.footer-back-top:hover {
  background: rgba(0,0,0,0.05);
  transform: translateY(-2px);
  color: #111;
}

/* ================= CUSTOM CURSOR ================= */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu { flex-direction: row; align-items: center; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .nav-inner {
    flex-wrap: wrap;
    position: relative;
    height: auto;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
    margin-top: 8px;
    gap: 0;
  }

  .nav-menu.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    background: rgba(248,247,243,0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  .nav-menu li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 10px 0; }
  .nav-resume-btn { margin: 8px 0 4px; }

  #home {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-right { display: none; }

  .status-badge { margin: 0 auto 24px; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }

  .section-services { height: auto; padding-bottom: 60px; }
  .section-services .card-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    will-change: auto;
    padding-bottom: 12px;
  }

  .project-card { width: min(85vw, 380px); min-width: min(85vw, 380px); }
}

@media (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }

  .container { padding: 0 20px; }
  .footer-inner { padding: 0 24px; }

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

  .big-name { font-size: clamp(3rem, 14vw, 7rem); }

  .section-title, .sectionser-title, .about { font-size: clamp(2.2rem, 8vw, 4rem); }
}

@media (max-width: 640px) {
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 16px 0 0; }

  .contact-heading { font-size: clamp(2rem, 8vw, 3rem); }

  .social-links { gap: 8px; }
  .social-icon { width: 110px; }
}

body { overflow-x: hidden; }
