/* ============================================
   ARPAN PANDEY — PORTFOLIO STYLES
   Dark AI/Tech Theme — v2
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1526;
  --bg-card: #131929;
  --bg-card-hover: #1a2235;

  /* Single accent — removed second cyan color */
  --accent: #6c63ff;
  --accent-light: #9d97ff;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --accent-glow-strong: rgba(108, 99, 255, 0.4);

  /* Text — muted raised from #4a5568 to #6b7a99 for WCAG AA contrast */
  --text-primary: #e8eaf6;
  --text-secondary: #9aa5be;
  --text-muted: #6b7a99;

  --border: rgba(108, 99, 255, 0.14);
  --border-hover: rgba(108, 99, 255, 0.38);
  --green: #64ffda;
  --red: #ff6b6b;
  --yellow: #ffd166;

  --font-main: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 40px rgba(108, 99, 255, 0.18);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---- Page fade-in on load ---- */
.body-loading { opacity: 0; }
body { transition: opacity 0.4s ease; }

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-code);
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

/* Section titles: solid white — no gradient text on every section */
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
  background: var(--accent-light);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  color: var(--accent-light);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-code);
  color: var(--text-primary);
  white-space: nowrap;
}
.logo-bracket { color: var(--accent); }

/* Nav identity — avatar + name replacing the removed logo */
.nav-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}
.nav-identity:hover .nav-avatar {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-identity:hover .nav-name { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-resume {
  padding: 7px 16px;
  border: 1px solid var(--border-hover);
  color: var(--accent-light);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-resume:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.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); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Particles hidden by default — JS reveals them unless reduced-motion */
.particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 80px 60px;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  .hero-bg { position: fixed; }
  .hero-content { max-width: none; padding: 0; margin: 0; }
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Hero name: gradient kept ONLY here for impact */
.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-role {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 2rem;
}

.role-typed {
  color: var(--accent);
  font-family: var(--font-code);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-summary {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-summary strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}
.hero-socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Code card */
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(108, 99, 255, 0.08);
  width: 100%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.code-card-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green  { background: var(--green); }
.code-card-title {
  margin: 0 auto;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-card-body {
  padding: 20px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.8;
}
.code-card-body .kw  { color: #c792ea; }
.code-card-body .cls { color: #ffcb6b; }
.code-card-body .fn  { color: #82aaff; }
.code-card-body .str { color: var(--green); }

/* Animated skill cycling in code card */
#codeSkill {
  transition: opacity 0.3s ease;
}
#codeSkill.fade-out { opacity: 0; }
#codeSkill.fade-in  { opacity: 1; }

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-secondary); position: relative; overflow: hidden; }
.about::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
  border-radius: 50%;
}

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

.about-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-avatar {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  z-index: 1;
  position: relative;
}

/* Photo variant — uncomment when you add a real photo */
.avatar-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  position: relative;
  border: 3px solid var(--accent);
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(108, 99, 255, 0.25);
  animation: ring-pulse 3s ease-in-out infinite;
}
.ring2 {
  inset: -20px;
  border-color: rgba(108, 99, 255, 0.12);
  animation-delay: 1.5s;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.4; }
}

.about-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 78px;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-text strong { color: var(--text-primary); font-weight: 600; }

/* "Currently building" highlight */
.currently-building {
  background: rgba(108, 99, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
}
.cb-label {
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.detail-item i { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }
.detail-item a:hover { color: var(--accent); }

.about-languages {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-badge {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.lang-badge:hover { border-color: var(--accent); color: var(--text-primary); }

/* ============================================
   SKILLS
   ============================================ */
.skills { background: var(--bg-primary); }

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

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.skill-category.visible { opacity: 1; transform: translateY(0); }
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.skill-cat-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

.tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.tag-ai   { border-color: rgba(108, 99, 255, 0.22); color: var(--accent-light); }
.tag-fw   { border-color: rgba(108, 99, 255, 0.15); color: #a9a3ff; }
.tag-tool { border-color: rgba(100, 255, 218, 0.18); color: var(--green); }

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--bg-secondary); position: relative; overflow: hidden; }
.projects::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
  bottom: -200px; left: -200px;
  pointer-events: none;
  border-radius: 50%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Featured project spans full width on wide screens */
.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.project-featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

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

.project-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.project-links {
  display: flex;
  gap: 8px;
}
.project-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.project-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.demo-link {
  border-color: rgba(100, 255, 218, 0.2) !important;
  color: var(--green) !important;
}
.demo-link:hover {
  border-color: var(--green) !important;
  background: rgba(100, 255, 218, 0.08) !important;
  color: var(--green) !important;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Problem → Built → Result story format */
.project-story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 20px;
}

.story-item {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.story-label {
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  height: fit-content;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.project-tags span {
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-code);
  color: var(--accent-light);
}

.projects-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.projects-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications { background: var(--bg-primary); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.cert-card.visible { opacity: 1; transform: translateY(0); }
.cert-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.1);
  transform: translateY(-4px);
}

.cert-icon {
  color: var(--yellow);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-info h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-meta {
  margin-bottom: 8px;
}
.cert-issuer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

.cert-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}
.cert-verify:hover { color: var(--accent-light); text-decoration: underline; }

.coursework-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.coursework-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.coursework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.course-item i { color: var(--accent); font-size: 0.9rem; }
.course-item:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact-card a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  word-break: break-word;
}
.contact-card a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); background: var(--accent-light); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    padding: 120px 24px 60px;
  }
  .hero-content { max-width: 100%; padding: 0; margin: 0; text-align: center; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-summary { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .nav-right { display: none; }
  .hamburger { display: flex; z-index: 1000; }
  .hero-visual { display: none; }
  .about-details { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .contact-form { padding: 20px; }
}

/* ============================================
   REDUCED MOTION (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all animations and transitions */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep scroll reveals visible immediately */
  .skill-category,
  .project-card,
  .cert-card,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable particle and float animations */
  .particle { display: none; }
  .code-card { animation: none; }
  .cursor { animation: none; opacity: 1; }
  .scroll-down { animation: none; }
  .avatar-ring { animation: none; }
}
