/* ════════════════════════════════════════
   SRINIVAS GAMPASANI — Portfolio CSS
   Dark futuristic AI engineer aesthetic
   + Light/Dark theme toggle support
════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK THEME (default) ── */
:root {
  --bg:       #06080f;
  --bg2:      #0b0f1e;
  --bg3:      #111827;
  --surface:  #141a2e;
  --surface2: #1c2440;
  --border:   rgba(0, 212, 255, 0.12);
  --accent:   #00d4ff;
  --accent2:  #7c3aed;
  --green:    #10b981;
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --text3:    #64748b;
  --radius:   12px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
  --particle-color: rgba(0,212,255,1);
  --scrolled-bg: rgba(6, 8, 15, 0.92);
  --mobile-menu-bg: rgba(6,8,15,0.97);
  --overlay-bg: rgba(0,0,0,0.6);
  --theme-icon: '☀️';
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:       #f0f4ff;
  --bg2:      #e8edf8;
  --bg3:      #dde4f5;
  --surface:  #ffffff;
  --surface2: #f3f6fd;
  --border:   rgba(0, 150, 200, 0.15);
  --accent:   #0077b6;
  --accent2:  #6d28d9;
  --green:    #059669;
  --text:     #0f172a;
  --text2:    #334155;
  --text3:    #64748b;
  --shadow:   0 8px 32px rgba(0,0,0,0.1);
  --particle-color: rgba(0,120,200,1);
  --scrolled-bg: rgba(240, 244, 255, 0.95);
  --mobile-menu-bg: rgba(240,244,255,0.99);
  --overlay-bg: rgba(0,0,0,0.55);
  --theme-icon: '🌙';
}

/* ── Theme transition ── */
*, *::before, *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Don't transition layout/transform properties */
.animate-up, .reveal, .reveal-item, canvas {
  transition: none;
}

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

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

/* ── Canvas background ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s;
}
[data-theme="light"] #bg-canvas {
  opacity: 0.35;
}

/* ── Shared section layout ── */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,0.2);
  margin-bottom: 16px;
}
[data-theme="light"] .section-label {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.25);
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.section-header p { color: var(--text2); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.accent { color: var(--accent); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-item { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-item.visible { opacity: 1; transform: none; }

/* ════════════════════════
   NAVBAR
════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
header.scrolled {
  background: var(--scrolled-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo .dot { color: var(--accent); }
header nav { display: flex; gap: 8px; flex: 1; justify-content: center; }
header nav a {
  color: var(--text2); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover, header nav a.active {
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}
[data-theme="light"] header nav a:hover,
[data-theme="light"] header nav a.active {
  color: var(--accent);
  background: rgba(0,119,182,0.08);
}
.nav-resume {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(0,212,255,0.4); padding: 8px 18px; border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-resume:hover { background: rgba(0,212,255,0.1); }
[data-theme="light"] .nav-resume {
  border-color: rgba(0,119,182,0.4);
}
[data-theme="light"] .nav-resume:hover {
  background: rgba(0,119,182,0.1);
}

/* ── Theme Toggle Button ── */
#theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text2);
  flex-shrink: 0;
  transition: all 0.2s;
}
#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.06);
}

#menu-toggle {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
#menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 32px 24px;
  gap: 4px;
  background: var(--mobile-menu-bg);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text2); text-decoration: none; padding: 10px 0;
  font-size: 1rem; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ════════════════════════
   HERO
════════════════════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 120px 32px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,212,255,0.07) 0%, transparent 70%);
}
[data-theme="light"] .hero {
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,119,182,0.06) 0%, transparent 70%);
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center;
}

/* Animate utilities */
.animate-up { opacity: 0; transform: translateY(28px); animation: slideUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
@keyframes slideUp { to { opacity: 1; transform: none; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.hero-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hero-text h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.typing-wrapper {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem; color: var(--accent);
  margin-bottom: 24px; min-height: 1.8em;
}
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-bio {
  color: var(--text2); font-size: 1.05rem; max-width: 560px;
  margin-bottom: 36px; line-height: 1.8;
}
.hero-bio strong { color: var(--text); }

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-lbl { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
[data-theme="dark"] .btn-primary { color: #06080f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); }
.btn-primary.full-width { width: 100%; justify-content: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,0.05); }

.social-row { display: flex; gap: 14px; }
.social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.9rem;
  text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,0.06); }

/* Profile visual */
.hero-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
}
.profile-ring {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.profile-img {
  width: 260px; height: 260px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(0,212,255,0.3);
  position: relative; z-index: 2;
  filter: brightness(1.05);
}
[data-theme="light"] .profile-img {
  border-color: rgba(0,119,182,0.4);
  filter: brightness(1.02);
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid transparent;
}
.ring-1 {
  width: 290px; height: 290px;
  border-color: rgba(0,212,255,0.2);
  animation: spin 20s linear infinite;
}
.ring-2 {
  width: 320px; height: 320px;
  border-color: rgba(124,58,237,0.15);
  animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.floating-badge {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
  display: flex; align-items: center; gap: 6px;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow);
}
.floating-badge i { color: var(--accent); }
.badge-1 { top: 20px; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 40px; right: -30px; animation-delay: 0.8s; }
.badge-3 { top: 60px; left: -30px; animation-delay: 1.5s; }
.badge-4 { bottom: 10px; left: -10px; animation-delay: 2.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-hint {
  display: flex; align-items: center; gap: 8px;
  color: var(--text3); font-size: 0.8rem; font-family: 'Space Mono', monospace;
  margin-top: 48px; justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint i { color: var(--accent); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ════════════════════════
   SKILLS
════════════════════════ */
#skills { background: linear-gradient(180deg, transparent, rgba(0,212,255,0.02), transparent); }
[data-theme="light"] #skills {
  background: linear-gradient(180deg, transparent, rgba(0,119,182,0.03), transparent);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
[data-theme="light"] .skill-card:hover {
  border-color: rgba(0,119,182,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.skill-icon {
  width: 48px; height: 48px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent);
  margin-bottom: 16px;
}
[data-theme="light"] .skill-icon {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.2);
}
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.1);
  color: var(--text2); font-size: 0.75rem;
  padding: 4px 10px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
[data-theme="light"] .skill-tags span {
  background: rgba(0,119,182,0.06);
  border-color: rgba(0,119,182,0.15);
}
.skill-card:hover .skill-tags span { background: rgba(0,212,255,0.1); color: var(--text); }
[data-theme="light"] .skill-card:hover .skill-tags span {
  background: rgba(0,119,182,0.1);
}

/* ════════════════════════
   PROJECTS
════════════════════════ */
#projects { background: var(--bg2); }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 48px;
}
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  padding: 8px 20px; border-radius: 100px; cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent); font-weight: 600;
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  color: #06080f;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* View all projects link */
.view-all-projects {
  text-align: center;
  margin-top: 48px;
}
.view-all-projects a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid var(--border);
  padding: 12px 28px; border-radius: 100px;
  transition: all 0.2s;
}
.view-all-projects a:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.06);
  transform: translateY(-2px);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: rgba(0,212,255,0.25);
}
[data-theme="light"] .project-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: rgba(0,119,182,0.3);
}
.project-img {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  z-index: 0;
}
.project-img-icon {
  font-size: 3rem; color: rgba(255,255,255,0.15);
  z-index: 1; position: relative;
}
.project-overlay {
  position: absolute; inset: 0;
  background: var(--overlay-bg);
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0; transition: opacity 0.3s;
  z-index: 2;
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--accent); color: var(--accent);
  transition: background 0.2s;
}
.overlay-btn:hover { background: rgba(0,212,255,0.15); }

.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-category-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
}
.project-category-tag.genai { background: rgba(0,212,255,0.1); color: var(--accent); }
.project-category-tag.ml { background: rgba(16,185,129,0.1); color: var(--green); }
.project-category-tag.mlops { background: rgba(124,58,237,0.1); color: #a78bfa; }
.project-category-tag.nlp { background: rgba(245,158,11,0.1); color: #fbbf24; }
[data-theme="light"] .project-category-tag.nlp { color: #d97706; }

.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.project-body p { color: var(--text2); font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tech-stack span {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text3); font-size: 0.72rem; padding: 3px 9px; border-radius: 6px;
  font-family: 'Space Mono', monospace;
}
[data-theme="light"] .tech-stack span {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.project-metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.metric {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--text3);
}
.metric i { color: var(--accent); font-size: 0.7rem; }

/* ════════════════════════
   EXPERIENCE
════════════════════════ */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute;
  left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  opacity: 0.3;
}
.timeline-item {
  display: flex; gap: 40px;
  padding-left: 60px; margin-bottom: 48px;
  position: relative;
}
.timeline-dot {
  position: absolute; left: 12px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
  flex-shrink: 0;
}
.edu-dot { border-color: var(--accent2); box-shadow: 0 0 12px rgba(124,58,237,0.4); }
.timeline-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; flex: 1;
  transition: border-color 0.3s;
}
.timeline-card:hover { border-color: rgba(0,212,255,0.25); }
.edu-card { border-color: rgba(124,58,237,0.2); }
.edu-card:hover { border-color: rgba(124,58,237,0.4); }
.timeline-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.timeline-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-company { color: var(--text2); font-size: 0.85rem; }
.timeline-company i { color: var(--accent); margin-right: 2px; }
.timeline-date {
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  color: var(--accent); white-space: nowrap;
  background: rgba(0,212,255,0.08); padding: 4px 12px;
  border-radius: 100px; border: 1px solid rgba(0,212,255,0.15);
  flex-shrink: 0;
}
[data-theme="light"] .timeline-date {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.2);
}
.timeline-bullets { color: var(--text2); font-size: 0.88rem; padding-left: 20px; line-height: 1.8; }
.timeline-bullets li { margin-bottom: 6px; }
.timeline-bullets strong { color: var(--accent); font-weight: 600; }
.timeline-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.timeline-tech span {
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.12);
  color: var(--text2); font-size: 0.73rem; padding: 3px 10px;
  border-radius: 100px; font-family: 'Space Mono', monospace;
}
[data-theme="light"] .timeline-tech span {
  background: rgba(0,119,182,0.06);
  border-color: rgba(0,119,182,0.15);
}
.certifications { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cert {
  display: flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2);
  color: var(--text2); font-size: 0.8rem; padding: 5px 12px; border-radius: 8px;
}
.cert i { color: #a78bfa; }

/* ════════════════════════
   CONTACT
════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.contact-info > p { color: var(--text2); margin-bottom: 32px; line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px 20px; border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.04); }
[data-theme="light"] .contact-link:hover {
  border-color: rgba(0,119,182,0.3);
  background: rgba(0,119,182,0.04);
}
.contact-link-icon {
  width: 42px; height: 42px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem; flex-shrink: 0;
}
[data-theme="light"] .contact-link-icon {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.2);
}
.contact-link-label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-link-val { font-size: 0.9rem; font-weight: 500; color: var(--text); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  padding: 36px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-form input,
.contact-form textarea {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  padding: 12px 16px; border-radius: 10px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
.form-note {
  color: var(--text3); font-size: 0.8rem; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.form-note i { color: var(--green); }

/* ════════════════════════
   FOOTER
════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
}
footer p { color: var(--text3); font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.85rem; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 99;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
[data-theme="dark"] .back-to-top { color: #06080f; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .profile-ring { width: 220px; height: 220px; }
  .profile-img { width: 180px; height: 180px; }
  .ring-1 { width: 200px; height: 200px; }
  .ring-2 { width: 220px; height: 220px; }
  .badge-1, .badge-2, .badge-3, .badge-4 { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header nav, .nav-resume { display: none; }
  #menu-toggle { display: flex; }
  #theme-toggle { margin-left: auto; }
  .nav-inner { gap: 12px; justify-content: space-between; }
  .hero { padding: 100px 20px 60px; }
  .section-inner { padding: 0 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 10px; }
  .timeline-item { padding-left: 40px; }
  .timeline-dot { left: 2px; }
  .timeline-header { flex-direction: column; align-items: flex-start; }
  footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.4rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
}

/* ════════════════════════
   PROJECTS PAGE SPECIFIC
════════════════════════ */
.projects-page-hero {
  position: relative; z-index: 1;
  padding: 140px 32px 80px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%);
}
[data-theme="light"] .projects-page-hero {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,119,182,0.07) 0%, transparent 70%);
}
.projects-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.projects-page-hero p {
  color: var(--text2); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto 48px;
}
.projects-stats-bar {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap; margin-bottom: 0;
}
.pstat {
  display: flex; flex-direction: column; align-items: center;
}
.pstat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.pstat-lbl { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* Full project cards on projects page */
.full-project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: grid;
  grid-template-columns: 380px 1fr;
}
.full-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border-color: rgba(0,212,255,0.25);
}
[data-theme="light"] .full-project-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
  border-color: rgba(0,119,182,0.3);
}
.full-project-card.reverse {
  grid-template-columns: 1fr 380px;
}
.full-project-img {
  position: relative; overflow: hidden; min-height: 300px;
}
.full-project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.full-project-card:hover .full-project-img img {
  transform: scale(1.04);
}
.full-project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
  z-index: 1;
}
.full-project-img-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.full-project-body {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.full-project-body .project-category-tag {
  margin-bottom: 12px;
}
.full-project-body h3 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; line-height: 1.3;
}
.full-project-body > p {
  color: var(--text2); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px;
}
.full-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.full-metric {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px;
  text-align: center;
}
.full-metric-val {
  font-size: 1.3rem; font-weight: 800; color: var(--accent); line-height: 1;
  display: block; margin-bottom: 4px;
}
.full-metric-lbl {
  font-size: 0.7rem; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.full-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.full-tech-stack span {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--text2); font-size: 0.75rem;
  padding: 4px 12px; border-radius: 100px;
  font-family: 'Space Mono', monospace;
}
[data-theme="light"] .full-tech-stack span {
  background: rgba(0,119,182,0.06);
  border-color: rgba(0,119,182,0.15);
}
.full-project-links { display: flex; gap: 12px; }
.full-project-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
}
.link-github {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.link-github:hover { color: var(--accent); border-color: var(--accent); }
.link-demo {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
}
[data-theme="dark"] .link-demo { color: #06080f; }
.link-demo:hover { opacity: 0.9; transform: translateY(-1px); }

.full-project-number {
  position: absolute; bottom: 16px; right: 20px; z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: 3rem; font-weight: 700;
  color: rgba(255,255,255,0.12); line-height: 1;
  pointer-events: none;
}

.projects-full-grid {
  display: flex; flex-direction: column; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px 80px;
}

/* Category filter on projects page */
.projects-filter-section {
  position: sticky; top: 72px; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  backdrop-filter: blur(12px);
  transition: background 0.3s;
}
[data-theme="light"] .projects-filter-section {
  background: rgba(240,244,255,0.95);
}
.projects-filter-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.projects-filter-inner .filter-bar { margin: 0; }

@media (max-width: 900px) {
  .full-project-card,
  .full-project-card.reverse {
    grid-template-columns: 1fr;
  }
  .full-project-img { min-height: 220px; }
  .full-metrics { grid-template-columns: repeat(3, 1fr); }
  .projects-full-grid { padding: 0 20px 60px; }
  .projects-page-hero { padding: 120px 20px 60px; }
  .projects-filter-section { padding: 12px 20px; }
}

@media (max-width: 600px) {
  .full-metrics { grid-template-columns: 1fr 1fr; }
  .full-project-body { padding: 24px; }
  .projects-stats-bar { gap: 28px; }
}
