:root {
  --orange: #FF5C1A;
  --orange-light: #FF7A42;
  --orange-dim: rgba(255,92,26,0.12);
  --bg: #0D0D0D;
  --bg2: #141414;
  --bg3: #1A1A1A;
  --border: rgba(255,255,255,0.07);
  --text: #F0EDE8;
  --muted: #7A7570;
  --muted2: #A09890;
  --white: #FFFFFF;
}

/* Light theme */
:root.light-theme {
  --orange: #FF5C1A;
  --orange-light: #FF7A42;
  --orange-dim: rgba(255,92,26,0.08);
  --bg: #FFFFFF;
  --bg2: #F8F8F8;
  --bg3: #F0F0F0;
  --border: rgba(0,0,0,0.1);
  --text: #1A1A1A;
  --muted: #666666;
  --muted2: #4A4A4A;
  --white: #0D0D0D;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

:root.light-theme body::before {
  opacity: 0.15;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.15; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
nav.scrolled {
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--orange);
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 1rem;
}
.theme-toggle:hover {
  background: var(--orange-dim);
  border-color: var(--orange);
  transform: rotate(20deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--text);
  transition: all 0.3s;
}
.theme-toggle:hover svg {
  color: var(--orange);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow: visible;
}
section { padding: 7rem 0; overflow: visible; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,92,26,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.hero-bg-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,92,26,0.07) 0%, transparent 70%);
  bottom: 50px;
  left: -80px;
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

/* Decorative grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-dim);
  border: 1px solid rgba(255,92,26,0.3);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.05;
  animation: fadeInUp 1s ease-out forwards;
}
.hero-name .accent { 
  color: var(--orange);
  display: inline-block;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

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

.hero-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.7s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.9s forwards;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,26,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Photo */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-photo-frame {
  position: relative;
  width: 320px;
  height: 380px;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), transparent 60%);
  z-index: -1;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,92,26,0.2);
  border-radius: 8px;
  z-index: -2;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: var(--bg3);
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--bg3) 0%, #222 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--border);
}
.hero-photo-placeholder svg {
  opacity: 0.25;
}
.hero-photo-placeholder p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ── ABOUT ── */
#about { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.about-heading span { color: var(--orange); }

.about-text {
  color: var(--muted2);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* About right: decorative code block */
.about-visual {
  position: relative;
}
.code-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}
.code-card-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5F56; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #27C93F; }
.code-filename {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.code-body {
  padding: 1.5rem;
  color: var(--muted2);
}
.code-kw { color: #F78C6C; }
.code-fn { color: #82AAFF; }
.code-str { color: #C3E88D; }
.code-var { color: var(--text); }
.code-comment { color: var(--muted); }
.code-num { color: #F78C6C; }
.code-orange { color: var(--orange); }

/* ── SKILLS ── */
#skills {}

.skills-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.skills-sub {
  color: var(--muted2);
  font-size: 0.97rem;
  margin-bottom: 3.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: visible;
}
.skill-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-group:hover {
  border-color: rgba(255,92,26,0.3);
  transform: translateY(-3px) scale(1.05) !important;
}
.skill-group:hover::before { opacity: 1; }

.skill-group-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.skill-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.skill-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted2);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.skill-group:hover .skill-tag {
  background: var(--orange-dim);
  color: var(--text);
  border-color: rgba(255,92,26,0.2);
}

/* ── PROJECTS ── */
#projects { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.projects-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.projects-sub {
  color: var(--muted2);
  font-size: 0.97rem;
  margin-bottom: 3.5rem;
}

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

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(255,92,26,0.3);
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Featured (latest) project takes full width */
.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #1A1410 0%, var(--bg3) 60%);
  border-color: rgba(255,92,26,0.2);
}
.project-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(255,92,26,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.project-card.featured:hover {
  border-color: rgba(255,92,26,0.5);
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 24px 48px rgba(255,92,26,0.1);
}

.project-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.badge-latest {
  background: var(--orange);
  color: var(--bg);
}
.badge-domain {
  background: rgba(255,255,255,0.06);
  color: var(--muted2);
  border: 1px solid var(--border);
}
.badge-dates {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.project-card.featured .project-title { font-size: 1.7rem; }

.project-subtitle {
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--muted2);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.tech-tag {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
}

.project-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── EXPERIENCE ── */
#experience {}

.exp-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.exp-sub {
  color: var(--muted2);
  font-size: 0.97rem;
  margin-bottom: 3.5rem;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), rgba(255,92,26,0.1) 80%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.75rem;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(255,92,26,0.2);
}

.timeline-header {
  margin-bottom: 0.8rem;
}
.timeline-company {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.timeline-role {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.timeline-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.timeline-meta::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--orange);
}

.timeline-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
}
.timeline-body p {
  font-size: 0.92rem;
  color: var(--muted2);
  line-height: 1.8;
}
.timeline-body ul {
  list-style: none;
  padding: 0;
}
.timeline-body ul li {
  font-size: 0.92rem;
  color: var(--muted2);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.timeline-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.75rem;
  top: 0.38rem;
}
.timeline-domains {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ── EDUCATION ── */
#education { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.edu-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.edu-sub {
  color: var(--muted2);
  font-size: 0.97rem;
  margin-bottom: 3.5rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.edu-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,92,26,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.edu-card:hover {
  border-color: rgba(255,92,26,0.3);
  transform: translateY(-3px);
}
.edu-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.edu-university {
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.edu-duration {
  font-size: 0.78rem;
  color: var(--muted2);
  margin-bottom: 0.25rem;
  font-weight: 400;
}
.edu-location {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── CONTACT ── */
#contact {}

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

.contact-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.contact-heading span { color: var(--orange); }
.contact-text {
  color: var(--muted2);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover .contact-icon {
  background: var(--orange-dim);
  border-color: rgba(255,92,26,0.3);
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-info-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.contact-info-value {
  font-size: 0.92rem;
  color: var(--text);
}
.contact-info-value a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--orange); }

.contact-right {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}
.contact-right h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.contact-right p {
  font-size: 0.88rem;
  color: var(--muted2);
  margin-bottom: 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.95rem 1.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.social-card:hover {
  border-color: rgba(255,92,26,0.3);
  transform: translateY(-2px);
  background: rgba(255,92,26,0.05);
}
.social-card-icon {
  width: 32px;
  height: 32px;
  background: var(--orange-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-card svg { width: 15px; height: 15px; color: var(--orange); }
.social-card-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}
.social-card-handle {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.footer-name span { color: var(--orange); }
.footer-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 1.8rem; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { width: 220px; height: 260px; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .project-featured-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .social-grid { grid-template-columns: 1fr; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .theme-toggle { margin-left: 0; margin-right: 0.75rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 500px) {
  section { padding: 5rem 0; }
  .about-stats { grid-template-columns: 1fr; gap: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ── ANIMATIONS ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
