/* ============================================================
   PHANEENDRA KANDURI — PORTFOLIO
   Neon Glassmorphism Design | Dark Navy + Purple + Cyan
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --bg-primary: #020818;
  --bg-secondary: #050d1f;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(0, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --cyan: #00f5ff;
  --purple: #b044ff;
  --pink: #ff44aa;
  --white: #e8f4f8;
  --muted: #7a8fa6;
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 60px rgba(0, 245, 255, 0.1);
  --glow-purple: 0 0 20px rgba(176, 68, 255, 0.4), 0 0 60px rgba(176, 68, 255, 0.1);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ── PARTICLE CANVAS ── */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(2, 8, 24, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
  transition: var(--transition);
}
#navbar.scrolled {
  padding: 0.8rem 4rem;
  background: rgba(2, 8, 24, 0.95);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: var(--glow-cyan);
}
.dot { color: var(--purple); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cyan); transition: var(--transition); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 8, 24, 0.97);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 1.5rem 0; }
.mobile-menu ul li a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.mobile-menu ul li a:hover { color: var(--cyan); }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(0, 245, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
}
.glow-text {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.role-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: var(--glass-bg);
  color: var(--cyan);
  backdrop-filter: blur(10px);
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  min-height: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-tagline::after {
  content: '|';
  color: var(--cyan);
  animation: blink 0.8s infinite;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-primary);
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.hero-socials {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.hero-socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.hero-socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ── HERO VISUAL ── */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}
.profile-ring {
  position: relative;
  width: 280px;
  height: 280px;
}
.profile-img-wrap {
  width: 220px; height: 220px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--cyan);
  box-shadow: var(--glow-cyan);
  z-index: 2;
}
.profile-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), #0d1b3e);
  font-size: 5rem;
  color: var(--cyan);
  opacity: 0.5;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin linear infinite;
}
.ring-1 { width: 260px; height: 260px; animation-duration: 8s; border-color: rgba(0,245,255,0.3); }
.ring-2 { width: 300px; height: 300px; animation-duration: 12s; animation-direction: reverse; border-color: rgba(176,68,255,0.2); }
.ring-3 { width: 340px; height: 340px; animation-duration: 16s; border-color: rgba(255,68,170,0.1); }

.floating-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.badge-1 { top: 10%; right: -10%; animation: float 3s ease-in-out infinite; }
.badge-2 { bottom: 20%; left: -10%; animation: float 3s ease-in-out 1s infinite; }
.badge-3 { bottom: 5%; right: 0%; animation: float 3s ease-in-out 2s infinite; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-text { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }
.about-text strong { color: var(--white); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; display: block; }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.about-info-col { display: flex; flex-direction: column; gap: 1rem; }
.info-card { padding: 1.2rem 1.5rem; }
.info-card h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); margin-bottom: 0.4rem; }
.info-card p { font-size: 0.9rem; color: var(--white); }
.muted { color: var(--muted) !important; font-size: 0.8rem !important; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-category h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(176, 68, 255, 0.1);
  border: 1px solid rgba(176, 68, 255, 0.3);
  color: var(--white);
  transition: var(--transition);
}
.badge:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,245,255,0.2);
}

/* ── EXPERIENCE / TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 1.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  border: 2px solid var(--bg-primary);
}
.timeline-card { padding: 1.8rem 2rem; }
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.exp-header h3 { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
.company { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.exp-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}
.exp-points { list-style: none; padding: 0; margin-bottom: 1rem; }
.exp-points li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
}
.exp-points li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); }
.exp-points li strong { color: var(--white); }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.15);
  color: var(--cyan);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card { display: flex; flex-direction: column; gap: 0.8rem; }
.project-icon { font-size: 2.5rem; color: var(--cyan); text-shadow: var(--glow-cyan); }
.project-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
.project-subtitle { font-family: var(--font-mono); font-size: 0.75rem; color: var(--purple); }
.project-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.project-desc strong { color: var(--white); }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(176,68,255,0.1);
  border: 1px solid rgba(176,68,255,0.25);
  color: var(--purple);
}
.project-links { display: flex; gap: 0.75rem; margin-top: auto; }
.btn-sm {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.3);
  color: var(--cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-sm:hover { background: rgba(0,245,255,0.2); box-shadow: 0 0 10px rgba(0,245,255,0.2); }
.btn-ghost { background: transparent; border-color: rgba(176,68,255,0.3); color: var(--purple); }
.btn-ghost:hover { background: rgba(176,68,255,0.1); box-shadow: 0 0 10px rgba(176,68,255,0.2); }

/* ── RESEARCH ── */
.research-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.research-icon { font-size: 3rem; color: var(--cyan); text-shadow: var(--glow-cyan); flex-shrink: 0; }
.research-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.research-content h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 0.8rem; }
.research-content p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.research-content p strong { color: var(--white); }
.research-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.research-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.15);
  color: var(--cyan);
}

/* ── CERTIFICATIONS ── */

.cert-group-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* ── MAIN GRID ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

/* ── CERT CARD ── */
.cert-card {
  text-align: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ── ICONS ── */
.cert-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.cert-icon.aws { color: #ff9900; }
.cert-icon.nxt { color: var(--cyan); }
.cert-icon.rpa { color: var(--purple); }

/* ── TEXT ── */
.cert-card h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cert-card p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.cert-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  display: block;
  margin-top: 0.5rem;
}

/* ── NXTWAVE GRID ── */
.nxtwave-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.8rem;
}

/* ── NXT CERT ── */
.nxt-cert {
  padding: 1rem 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nxt-cert i {
  font-size: 1.5rem;
  color: var(--cyan);
}

.nxt-cert:hover {
  color: var(--white);
  transform: translateY(-4px);
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 999;

  justify-content: center;
  align-items: center;
}

.modal-box {
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔥 FINAL IMAGE FIX */
.cert-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── CLOSE BUTTON ── */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* ── RESPONSIVE FIX ── */
@media (max-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nxtwave-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .nxtwave-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-image {
    max-width: 95%;
    max-height: 75vh;
  }
}

/* ── EXTRACURRICULAR ── */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.extra-card { text-align: center; padding: 2rem 1.5rem; }
.extra-icon { font-size: 2.5rem; color: var(--cyan); margin-bottom: 1rem; text-shadow: var(--glow-cyan); }
.extra-card h4 { font-family: var(--font-display); font-size: 0.85rem; color: var(--white); margin-bottom: 0.8rem; }
.extra-card p { font-size: 0.85rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}
.contact-intro { color: var(--muted); margin-bottom: 2rem; }
.contact-intro strong { color: var(--white); }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.contact-item i { font-size: 1.1rem; color: var(--cyan); width: 20px; text-align: center; }
.contact-item:hover { color: var(--cyan); border-color: rgba(0,245,255,0.2); background: rgba(0,245,255,0.05); }
.contact-form-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  resize: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 15px rgba(0,245,255,0.1); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-sub { font-size: 0.75rem; color: rgba(122,143,166,0.5); margin-top: 0.4rem; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #hero { flex-direction: column; padding-top: 8rem; text-align: center; }
  .hero-roles { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .nxtwave-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 4rem 1.5rem; }
  #hero { padding: 0 1.5rem; padding-top: 6rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .nxtwave-grid { grid-template-columns: repeat(4, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .research-card { flex-direction: column; }
  .timeline { padding-left: 1.5rem; }
}
@media (max-width: 480px) {
  .nxtwave-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.5rem; }
  .profile-ring { width: 220px; height: 220px; }
  .profile-img-wrap { width: 160px; height: 160px; }
  .ring-1 { width: 200px; height: 200px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-3 { width: 260px; height: 260px; }
  .badge-1, .badge-2, .badge-3 { display: none; }
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 24, 0.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 80vh;
  background: var(--bg-secondary);
  border: 1px solid var(--cyan);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
}
.modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  background: rgba(0,245,255,0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--cyan); color: var(--bg-primary); }

/* ── CERT CARDS CLICKABLE ── */
.cert-card { cursor: pointer; position: relative; }
.cert-view-hint {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  opacity: 0.7;
  transition: var(--transition);
}
.cert-card:hover .cert-view-hint { opacity: 1; }
.cert-icon.deloitte { color: #86bc25; }

/* ── NXT CERT DATE ── */
.nxt-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  display: block;
}
.nxt-cert { cursor: pointer; }
.nxt-cert:hover i { color: var(--purple); }

/* ── CERT HINT ── */
.cert-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* ── FORM ALERT ── */
.form-alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.form-alert.success {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.form-alert.error {
  background: rgba(255, 68, 170, 0.1);
  border: 1px solid var(--pink);
  color: var(--pink);
}

/* ── VISIBILITY FIXES ── */
.section { position: relative; z-index: 2; }
.glass-card { position: relative; z-index: 2; }
.projects-grid .project-card,
.certs-grid .cert-card,
.nxtwave-grid .nxt-cert,
.extra-grid .extra-card,
.skills-grid .skill-category { opacity: 1 !important; transform: none !important; }
.research-card { display: flex; gap: 2rem; align-items: flex-start; }
