/* ═══════════════════════════════════════════════════════
   VENUMADHAV REDDY MULE — PORTFOLIO STYLES
   Theme: Precision Engineering · Amber / Dark
════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ─────────────────────────────────────── */
:root {
  --bg:         #060608;
  --bg2:        #0C0C12;
  --bg3:        #13131C;
  --bg4:        #1A1A26;
  --amber:      #F5A623;
  --amber-dim:  #C27C0E;
  --amber-glow: rgba(245,166,35,0.15);
  --teal:       #52D9C0;
  --teal-dim:   rgba(82,217,192,0.15);
  --text:       #E8E8F2;
  --muted:      #9090A8;
  --muted2:     #55556A;
  --border:     #22222F;
  --border2:    #2E2E3F;
  --radius:     12px;
  --radius-lg:  20px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── 3. SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber-dim); border-radius: 4px; }

/* ── 4. CUSTOM CURSOR ─────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: left, top;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px dashed rgba(245,166,35,0.65);
  border-radius: 50%;
  pointer-events: none;
  animation: cursor-spin 9s linear infinite;
  will-change: left, top;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease, border-style 0.1s;
}
@keyframes cursor-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.cursor-hover #cursor {
  width: 12px; height: 12px;
  background: var(--teal);
}
.cursor-hover #cursor-ring {
  width: 24px; height: 24px;
  border-style: solid;
  border-color: var(--teal);
  animation-duration: 1.8s;
}

/* Disable cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  #cursor, #cursor-ring { display: none !important; }
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
}

/* ── 5. NAVIGATION ────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(6,6,8,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 700;
  color: var(--amber); letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  opacity: 0.65; position: relative;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--amber); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--amber);
  padding: 0.55rem 1.4rem; border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #ffc04d; transform: translateY(-1px); }
.nav-mobile-btn {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.5rem; line-height: 1;
  padding: 0.25rem; cursor: pointer;
}

/* Mobile nav overlay */
#mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,6,8,0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-nav.open { opacity: 1; pointer-events: all; }
#mobile-nav a {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
#mobile-nav a:hover { color: var(--amber); }
.mobile-close-btn {
  position: absolute; top: 1.5rem; right: 5vw;
  background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer;
  transition: color 0.2s;
}
.mobile-close-btn:hover { color: var(--text); }

/* ── 6. HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 5vw 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, var(--amber-glow), transparent 70%);
}
#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0; opacity: 0.5;
  width: 100%; height: 100%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.32rem 1rem; border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--amber); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.95;
  color: var(--text); margin-bottom: 0.2rem;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-name em { font-style: italic; color: var(--amber); }

.hero-typewriter {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.82rem, 1.6vw, 1.05rem);
  color: var(--teal); margin: 1.3rem 0 0.5rem;
  min-height: 1.5em;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.tw-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--teal); margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.hero-desc {
  font-size: 1rem; color: var(--muted);
  max-width: 540px; margin: 1.3rem 0 2.4rem;
  line-height: 1.85;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 1.1s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--amber);
  padding: 0.85rem 2rem; border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(245,166,35,0.22);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #ffbe40;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid var(--border2);
  padding: 0.85rem 2rem; border-radius: 5px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* Hero stat cards — right side */
.hero-stats {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.2rem;
  z-index: 1;
  opacity: 0; animation: fadeFromRight 0.9s 1.3s forwards;
}
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.3rem 1.7rem;
  text-align: center; min-width: 128px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.3rem; color: var(--amber); line-height: 1;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted2);
  margin-top: 0.3rem;
}

/* ── 7. KEYFRAMES ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeFromRight {
  from { opacity: 0; transform: translate(24px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* ── 8. SECTION BASE ──────────────────────────────────── */
section { padding: 7rem 5vw; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-label::before { content: '//'; opacity: 0.45; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; color: var(--text); margin-bottom: 0.8rem;
}
.section-title em { font-style: italic; color: var(--amber); }
.section-desc {
  font-size: 0.98rem; color: var(--muted);
  max-width: 520px; line-height: 1.85;
}
.glow-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.25), transparent);
}

/* ── 9. SCROLL REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Section header block */
.section-head { margin-bottom: 4rem; }
.section-divider {
  width: 38px; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  margin-top: 1.2rem;
}

/* ── 10. ABOUT SECTION ────────────────────────────────── */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* Profile pic */
.profile-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.profile-img-container {
  position: relative; width: 220px; height: 220px;
  flex-shrink: 0;
}
.profile-photo {
  width: 220px; height: 220px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--amber);
  box-shadow: 0 0 0 8px rgba(245,166,35,0.07),
              0 0 60px rgba(245,166,35,0.1),
              0 24px 64px rgba(0,0,0,0.5);
  display: block;
}
.profile-orbit {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(245,166,35,0.28);
  animation: orbit-spin 22s linear infinite;
  pointer-events: none;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.profile-status {
  position: absolute; bottom: -8px; right: 50%;
  transform: translateX(50%);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 0.32rem 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--teal); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--teal); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.profile-mini-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.profile-mini-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted2); background: var(--bg4);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem; border-radius: 4px;
}

/* About right column */
.about-right { display: flex; flex-direction: column; gap: 1.5rem; }
.about-text p {
  font-size: 1rem; color: var(--muted);
  line-height: 1.88; margin-bottom: 0.9rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .hi { color: var(--amber); font-weight: 600; }

/* Info cards 2x2 */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.9rem; margin-top: 0.5rem;
}
.info-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex; align-items: flex-start; gap: 0.85rem;
  transition: border-color 0.25s, transform 0.25s;
}
.info-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.info-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.info-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.2rem;
}
.info-val { font-size: 0.85rem; color: var(--text); font-weight: 500; line-height: 1.4; }

/* ── 11. SKILLS SECTION ───────────────────────────────── */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.skill-group {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: border-color 0.25s;
}
.skill-group:hover { border-color: var(--border2); }
.sg-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.3rem;
}
.sg-icon {
  width: 36px; height: 36px;
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); flex-shrink: 0;
}
.sg-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.s-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  color: var(--muted); background: var(--bg4);
  border: 1px solid var(--border);
  padding: 0.28rem 0.7rem; border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.s-tag:hover {
  color: var(--amber); border-color: rgba(245,166,35,0.4);
  background: var(--amber-glow);
}
.s-tag.key {
  color: var(--amber); border-color: rgba(245,166,35,0.35);
  background: rgba(245,166,35,0.07);
}

/* ── 12. EXPERIENCE TIMELINE ──────────────────────────── */
#experience { background: var(--bg2); }
.timeline { margin-top: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 22px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--amber), var(--border), transparent);
}
.tl-item {
  display: flex; gap: 2.2rem;
  margin-bottom: 3.2rem;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-logo {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--bg3);
  border: 2px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; z-index: 1;
  transition: border-color 0.25s;
}
.tl-item:hover .tl-logo { border-color: var(--amber-dim); }
.tl-logo img {
  width: 28px; height: 28px;
  object-fit: contain; border-radius: 4px;
}
.tl-logo .tl-initial {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem; font-weight: 700;
  color: var(--amber); line-height: 1;
}

.tl-body { flex: 1; }
.tl-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.25rem;
}
.tl-role {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem; color: var(--text); margin-bottom: 0.18rem;
}
.tl-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem; color: var(--muted2);
  letter-spacing: 0.06em; margin-bottom: 1rem;
}
.tl-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.7rem;
  transition: border-color 0.25s;
}
.tl-item:hover .tl-card { border-color: var(--border2); }
.tl-list { list-style: none; }
.tl-list li {
  font-size: 0.88rem; color: var(--muted);
  line-height: 1.72; margin-bottom: 0.35rem;
  padding-left: 1.1rem; position: relative;
}
.tl-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--amber-dim); font-size: 0.75rem;
}
.tl-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tech-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(82,217,192,0.22);
  padding: 0.18rem 0.6rem; border-radius: 3px;
}

/* ── 13. PROJECTS GRID ────────────────────────────────── */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.proj-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.3s ease, border-color 0.25s, box-shadow 0.3s;
}
.proj-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.proj-card:hover {
  transform: translateY(-8px); border-color: var(--amber-dim);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.proj-card:hover::before { transform: scaleX(1); }
.proj-card.featured { grid-column: span 2; }
.proj-img-wrap {
  width: 100%; height: 180px;
  background: var(--bg4); border-radius: 12px;
  margin-bottom: 1.5rem; overflow: hidden;
  border: 1px solid var(--border);
}
.proj-preview {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-preview { transform: scale(1.05); }

.proj-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.1rem; }
.proj-mono {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--amber);
}
.proj-badges { display: flex; gap: 0.45rem; align-items: center; }
.badge-oss {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-dim);
  border: 1px solid rgba(82,217,192,0.25);
  padding: 0.2rem 0.6rem; border-radius: 3px;
}
.proj-ext-link {
  width: 28px; height: 28px;
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted2);
  font-size: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.proj-ext-link:hover { color: var(--amber); border-color: var(--amber-dim); }
.proj-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.45rem;
}
.proj-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: var(--text); margin-bottom: 0.6rem;
}
.proj-desc {
  font-size: 0.86rem; color: var(--muted);
  line-height: 1.78; flex: 1;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 1.2rem; }
.p-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted2); background: var(--bg4);
  border: 1px solid var(--border);
  padding: 0.18rem 0.52rem; border-radius: 3px;
}

/* ── 14. EDUCATION SECTION ────────────────────────────── */
#education { background: var(--bg2); }
.edu-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.edu-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 1.4rem;
}
.edu-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  display: flex; align-items: flex-start; gap: 1.2rem;
  transition: border-color 0.25s, transform 0.25s;
  margin-bottom: 1rem;
}
.edu-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.edu-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.edu-logo img { width: 36px; height: 36px; object-fit: contain; }
.edu-logo .edu-initial {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; font-weight: 700; color: var(--amber);
}
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.25rem;
}
.edu-degree {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--text); margin-bottom: 0.2rem;
}
.edu-school { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.edu-grade {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--teal);
}

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 0.85rem; }
.cert-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.25s;
}
.cert-card:hover { border-color: var(--amber-dim); }
.cert-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cert-logo img { width: 36px; height: 36px; object-fit: contain; }
.cert-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cert-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: var(--muted2); margin-top: 0.12rem;
  letter-spacing: 0.04em;
}

/* ── 15. CONTACT SECTION ──────────────────────────────── */
#contact { background: var(--bg); text-align: center; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-email {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--amber); text-decoration: none;
  display: block; margin: 2rem auto 1rem;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.7; }
.contact-note {
  font-size: 0.88rem; color: var(--muted2);
  margin-bottom: 2.5rem; line-height: 1.7;
}
.social-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 0.78rem 1.5rem; border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.social-btn:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ── 16. FOOTER ───────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2.2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; color: var(--muted2); letter-spacing: 0.05em;
}
.footer-copy span { color: var(--amber); }
.back-top {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; color: var(--muted2);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.back-top:hover { color: var(--amber); }

/* ── 17. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-stats { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .profile-wrap { flex-direction: row; align-items: center; gap: 2rem; }
  .profile-img-container { width: 160px; height: 160px; }
  .profile-photo { width: 160px; height: 160px; }
  .edu-wrap { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
}

@media (max-width: 720px) {
  section { padding: 4.5rem 6vw; }
  #hero { 
    padding-top: 6.5rem; 
    padding-bottom: 4rem;
    min-height: auto; 
    align-items: flex-start;
  }
  .section-head { margin-bottom: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .proj-card.featured { grid-column: span 1; }
  .info-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { justify-content: center; width: 100%; }
  .social-row { flex-direction: column; align-items: center; width: 100%; }
  .social-btn { width: 100%; justify-content: center; }
  .profile-wrap { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-name { margin-bottom: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.8rem; letter-spacing: -0.02em; }
  .section-title { font-size: 2rem; }
  .hero-desc { font-size: 0.95rem; }
  section { padding: 4rem 6vw; }
}

/* ── 18. EXTRAORDINARY TOUCHES ────────────────────────── */
.skill-group, .tl-card, .proj-card, .edu-card, .stat-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-content {
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating animation for hero stats/cards */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-stats .stat-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.hero-stats .stat-card:nth-child(2) { animation: float 7s ease-in-out infinite 1s; }
.hero-stats .stat-card:nth-child(3) { animation: float 8s ease-in-out infinite 0.5s; }