/* Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { background:#0f172a; color:#fff; font-family:'Segoe UI',sans-serif; }

/* Full-page Background Canvas */
#bg-canvas {
  position:fixed; top:0; left:0;
  width:100%; height:100%;
  z-index:0; pointer-events:none;
}
:root {
  --accent: rgba(0, 200, 255, 0.75);
  --dark:   #0f172a;
}

.font-orbitron { font-family: 'Orbitron', sans-serif; }

.neon-text {
  color: var(--accent);
  text-shadow:
    0 0 2px var(--accent),
    0 0 6px var(--accent),
    0 0 12px var(--accent);
}

/* Desktop & mobile link base */
.nav-item,
.nav-item-mobile {
  position: relative;
  color: white;
  padding: 0.25rem 0.5rem;
  transition: color .2s, transform .2s;
}

/* Underline animation */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s;
}

/* Hover */
.nav-item:hover,
.nav-item-mobile:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.nav-item:hover::after {
  width: 100%;
}

/* Active (scroll-spy) */
.nav-item.active,
.nav-item-mobile.active {
  color: var(--accent);
}
.nav-item.active::after {
  width: 100%;
}
/* Navbar Fix */
header#navbar {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ensure nav items are visible */
.nav-item, .nav-item-mobile {
  color: white !important;
  position: relative;
  z-index: 1001;
}
/* Hamburger & mobile menu backdrop */
#nav-toggle span {
  display: block;
  width: 25px; height: 3px;
  background: white;
  transition: transform .3s, opacity .3s, background .3s;
  margin: 4px 0;
}
#nav-toggle.open span           { background: var(--accent); }
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  background: var(--dark)/90;
  backdrop-filter: blur(8px);
}

/* === Section Transition Edges === */
.section {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  z-index: 1;
}

.section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, transparent, rgba(15,23,42,0.9));
  z-index: -1;
}

.section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.9));
  z-index: -1;
}


/* ── Hero Section Styles ── */

/* 1) Variables & Fonts */
:root {
  --accent: rgba(0,200,255,0.75);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-mono     { font-family: 'Share Tech Mono', monospace; }

/* 2) Hero Container & Background */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Network & left‐panel particle canvases */
#network-bg,
#left-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dark overlay (if you have a bg-black/40 div) */
#hero > .bg-black\/40 {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4) !important;
  z-index: 0;
}

/* Content wrapper */
#hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 90vw;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}
@media (min-width: 768px) {
  #hero .container {
    flex-direction: row;
    justify-content: space-between;
  }
}
#hero .container > div {
  flex: 1;
}

/* 3) Left Panel */
#hero-left .relative.z-10 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
  padding: 2rem 0;
}

/* Avatar */
.avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
}

/* Name */
.hero-main {
  font-size: 3.5rem;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

/* Tagline */
.hero-tagline {
  font-size: 1.25rem;
  color: #ccc;
  margin: 0;
  text-align: center;
}

/* 4) CTAs */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
.hero-ctas .btn-neon-lg,
.hero-ctas .btn-ghost {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  line-height: 1;
  display: inline-block;
  text-decoration: none;
  border-radius: .25rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: #fff;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
  transition: all .3s ease;
}
.hero-ctas .btn-neon-lg:hover,
.hero-ctas .btn-ghost:hover {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 24px var(--accent), 0 0 48px var(--accent);
}

/* 5) Right Panel: Code Editor */
#hero-right #code-editor {
  background: #2d2d2d;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  line-height: 1.5;
  padding: 1.25rem;
  height: 18rem;
  overflow: auto;
  position: relative;
}
#hero-right #code-content::after {
  content: '|';
  display: inline-block;
  margin-left: .25rem;
  animation: blinkCursor 1s step-end infinite;
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}

/* 6) Scroll Cue */
.animate-bounce {
  animation: bounce 2s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(15px); }
}

/* 7) Social Bar */
#social-bar {
  transition: opacity .5s ease-in-out;
}
#social-bar.show {
  opacity: 1;
}
#social-bar a {
  color: #fff;
  transition: transform .3s ease, color .3s ease;
}
#social-bar a:hover {
  color: var(--accent);
  transform: scale(1.3);
}


/* ── About Section ── */
#about {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

/* Decorative “floating” blobs */
.decorative-circle,
.decorative-circle2 {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}
.decorative-circle {
  width: 200px; height: 200px;
  background: rgba(13,202,240,0.2);
  top: -50px; left: -50px;
}
.decorative-circle2 {
  width: 300px; height: 300px;
  background: rgba(15,23,42,0.3);
  bottom: -100px; right: -100px;
  animation-duration: 8s;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* Container padding */
#about .container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Avatar */
.about-avatar {
  border: 4px solid var(--accent);
  object-fit: cover;
}

/* Heading styles */
.about-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #fff;
}
.about-tagline {
  font-size: 1rem;
  color: #ccc;
}

/* Info-cards grid */
.info-cards {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .info-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Each card */
.info-card {
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(8px);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  color: #fff;
}
.info-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.info-card ul {
  list-style: none;
  padding-left: 0;
}
.info-card ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.info-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}
/* ── About: Subtle Pulse Rings ── */
.pulse-circle {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulseScale 6s ease-in-out infinite;
  pointer-events: none;
}

/* Sizes & positions */
.pulse-sm {
  width: 120px;  height: 120px;
  top: 15%;      left: 10%;
  animation-duration: 5s;
  animation-delay: 1s;
}
.pulse-md {
  width: 180px;  height: 180px;
  bottom: 20%;   right: 20%;
  animation-duration: 7s;
  animation-delay: 2s;
}
.pulse-lg {
  width: 260px;  height: 260px;
  top: 50%;      right: 5%;
  animation-duration: 9s;
  animation-delay: 0s;
}

/* Keyframe: gently scale and fade */
@keyframes pulseScale {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}
/* ── Projects Section ── */


/* ─── Projects Section Wrapper & Animated Gradient Buffer ───────────────── */
#projects {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}
#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    #1e3a8a, /* dark blue */
    #6b21a8, /* dark purple */
    #065f46, /* dark green */
    #1e3a8a  /* dark blue */
  );
  background-size: 400% 400%;
  animation: projectsGradient 20s ease infinite;
  opacity: 0.4;
  z-index: 0;
}
@keyframes projectsGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

#projects-blob-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Ensure content sits above the gradient */
#projects .container {
  position: relative;
  z-index: 1;
}

/* ─── Projects Grid ──────────────────────────────────────────────── */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ─── Card Base Style & Hover ───────────────────────────────────── */
.project-slab {
  position: relative;
  background-color: rgba(55, 65, 81, 0.9);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
}
.project-slab:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.7);
}

/* ─── Category Tints ────────────────────────────────────────────── */
.project-slab[data-category~="web"] {
  background-color: rgba(30, 58, 138, 0.9);
}
.project-slab[data-category~="ai"] {
  background-color: rgba(107, 33, 168, 0.9);
}
.project-slab[data-category~="sys"] {
  background-color: rgba(6, 95, 70, 0.9);
}

/* ─── Text & Link Styling ───────────────────────────────────────── */
.project-slab h3,
.project-slab p,
.project-slab a {
  color: #ffffff !important;
}

/* ─── Underline Effect on Titles ────────────────────────────────── */
.project-slab h3 {
  position: relative;
  display: inline-block;
}
.project-slab h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width .3s;
}
.project-slab:hover h3::after {
  width: 100%;
}

/* ─── Tech-Stack Chips ─────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: .25rem .5rem;
  margin: .125rem .125rem .125rem 0;
  border-radius: .375rem;
  background: rgba(255,255,255,0.2);
  font-size: .75rem;
  color: #f1f5f9;
}

/* ─── Icon Neon Glow ───────────────────────────────────────────── */
.project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  animation: neon-glow 2s ease-in-out infinite;
}
@keyframes neon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px #0dcaf0)
            drop-shadow(0 0 10px #0dcaf0);
  }
  50% {
    filter: drop-shadow(0 0 8px #0dcaf0)
            drop-shadow(0 0 20px #0dcaf0);
  }
}

/* ─── Filter Buttons ───────────────────────────────────────────── */
.project-filters .filter-btn {
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: .375rem;
  background: rgba(55, 65, 81, 0.9);
  color: #f1f5f9;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.project-filters .filter-btn:hover {
  background: rgba(75, 85, 99, 0.9);
}
.project-filters .filter-btn.active {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
}

#projects-network-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;            /* behind cards */
  pointer-events: none;   /* clicks pass through */
}

.modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: #1e293b;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  color: white;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-image {
  width: 100px; height: 100px;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px var(--accent));
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.modal-desc {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.modal-tech-chips .chip {
  display: inline-block;
  margin: 0.25rem;
}

.modal-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 0.5rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
/* View Details inside project card */
.project-slab a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--accent) !important;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,200,255,0.4);
}

.project-slab a:hover {
  background: var(--accent);
  color: #0f172a !important;
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  transform: scale(1.05);
}


/* View Project button in modal */
.modal-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 0.375rem;
  background: transparent;
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,200,255,0.3);
}

.modal-link:hover {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 24px var(--accent), 0 0 48px var(--accent);
  transform: translateY(-2px) scale(1.04);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.3s ease;
  padding: 0.2rem 0.6rem;
  border: 2px solid transparent;
  border-radius: 8px;

}

.modal-close:hover {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 24px var(--accent), 0 0 48px var(--accent);
  transform: scale(1.2);
}



/* ─── Research Section ──────────────────────────────────────────── */
.research-section {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

/* override the generic section ::before/::after */
.research-section::before,
.research-section::after {
  display: none;
}

/* Starfield behind cards */
#research-stars,
#research-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Glow accent */
#research-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, #0ea5e9 15%, transparent 60%),
    radial-gradient(circle at 70% 70%, #3b82f6 10%, transparent 70%);
  blend-mode: screen;
  filter: blur(100px);
  opacity: 0.3;
  animation: glowDrift 25s ease-in-out infinite alternate;
  z-index: 0;
}

/* Content sits above */
#research .container {
  position: relative;
  z-index: 1;
}

/* Section title */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.75rem;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
}

/* card grid */
.research-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .research-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .research-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* individual card */
.research-card {
  position: relative;
  background: rgba(15,23,42,0.6);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(0,200,255,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.aos-animate .research-card {
  opacity: 1;
  transform: translateY(0);
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(0,200,255,0.2), 0 0 48px rgba(0,200,255,0.1);
}

/* card title & year */
.research-card-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.5rem;
  color: #fff;
}
.research-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
}

/* description */
.research-card-desc {
  color: #cbd5e1;
  line-height: 1.5;
}

/* Read More / View Code button */
.btn-research {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: 'Orbitron', sans-serif;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 8px rgba(0,200,255,0.3);
}
.btn-research:hover {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 16px var(--accent), 0 0 32px var(--accent);
}

/* keyframes */
@keyframes glowDrift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 100% 50%, 0% 50%; }
}

/* ─----─ Skills Section ─----─ */
/* ─── Skills Section ───────────────────────────── */
/* ─── Skills Section ──────────────────────────────────────────── */
#skills {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  /* background removed for new design */
  background: none;
  /* ditch the old card styling */
  box-shadow: none;
  border-radius: 0;
  /* make it full-width (optional) */
  width: 100%;
  margin: 0;
}


/* ─── Section Title ──────────────────────────────────────────── */
#skills .section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #38bdf8;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  position: relative;
  padding-bottom: 1rem;
}
#skills .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  border-radius: 2px;
}

/* ─── Filter Controls ─────────────────────────────────────────── */
#skills .skills-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#skills .skills-filter-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.2rem;
  background: #1e293b;
  border: none;
  box-shadow: 0 0 8px 2px #0ea5e9;
  color: white;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#skills .skills-filter-btn:hover,
#skills .skills-filter-btn.active {
  background: #0ea5e9;
  color: #0f172a;
  transform: scale(1.1);
  box-shadow: 0 0 15px 4px #0ea5e9;
}

/* ─── Skills Grid ────────────────────────────────────────────── */
#skills .skills-wrapper {
  position: relative;
  z-index: 1;
  overflow: auto;
  padding: 3rem 0;
}

#skills .skills-grid {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  padding: 1rem;
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  #skills .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2 columns */
@media (min-width: 640px) and (max-width: 1023px) {
  #skills .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 639px) {
  #skills .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Skill Orbs ─────────────────────────────────────────────── */
#skills .skills-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: white;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px 2px currentColor;
  transition: all 0.3s ease;
  animation: orbPulse 2.5s ease-in-out infinite alternate;
  position: relative;
}

#skills .skills-orb span {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

#skills .skills-orb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px 5px currentColor;
  z-index: 10;
  cursor: pointer;
}

@keyframes orbPulse {
  0% {
    box-shadow: 0 0 6px 1px currentColor;
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 16px 6px currentColor;
    transform: scale(1.05);
  }
}

/* Category Colors */
#skills .skills-orb[data-category="programming"] {
  color: #facc15;
  box-shadow: 0 0 12px 3px #facc15;
}
#skills .skills-orb[data-category="ai"] {
  color: #ef4444;
  box-shadow: 0 0 12px 3px #ef4444;
}
#skills .skills-orb[data-category="web"] {
  color: #0ea5e9;
  box-shadow: 0 0 12px 3px #0ea5e9;
}
#skills .skills-orb[data-category="tools"] {
  color: #4ade80;
  box-shadow: 0 0 12px 3px #4ade80;
}
#skills .skills-orb[data-category="softskills"] {
  color: #818cf8;
  box-shadow: 0 0 12px 3px #818cf8;
}

/* ─── Navigation Arrows ──────────────────────────────────────── */
#skills .skills-nav-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #0ea5e9;
  z-index: 2;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
}

#skills .skills-nav-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: translateX(-50%) scale(1.2);
}

#skills #skills-slider-prev {
  top: 1rem;
}

#skills #skills-slider-next {
  bottom: 1rem;
}

/* ─── Debug Info & Utilities ─────────────────────────────────── */
#skills .debug-info {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  font-family: 'Courier New', monospace;
}

#skills .hidden {
  display: none !important;
}
/* ─── Skills Section & Canvas ──────────────────────────────── */
#skills {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  /* background removed */
}

#skills canvas#skills-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

#skills .skills-wrapper {
  position: relative;
  z-index: 1;
}


/*-------------------- Certifications Section --------------------*/
/* ───── Coffee Certifications Styling ───── */
.coffee-section {
  position: relative;
  background: #2a1f14;
  color: #f5e8c7;
  padding: 6rem 2rem;
  overflow: hidden;
  z-index: 1;
}

.coffee-title {
  font-size: 2.75rem;
  font-family: 'Orbitron', sans-serif;
  color: #a67b5b;
  margin-bottom: 3rem;
  text-shadow: 0 0 10px #a67b5b, 0 0 20px #a67b5b, 0 0 30px #d4a373;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  0% { text-shadow: 0 0 10px #a67b5b, 0 0 20px #a67b5b, 0 0 30px #d4a373; }
  100% { text-shadow: 0 0 15px #a67b5b, 0 0 25px #a67b5b, 0 0 40px #d4a373; }
}

.coffee-cert-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.coffee-card {
  background: rgba(245, 232, 199, 0.08);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(166, 123, 91, 0.4);
  box-shadow: 0 0 8px rgba(166, 123, 91, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.coffee-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(166, 123, 91, 0.6);
}

.coffee-card h3 {
  font-size: 1.2rem;
  color: #f5e8c7;
}

.coffee-card p {
  margin: 0.5rem 0;
  color: #d4a373;
}

.chip-group {
  margin-top: 0.5rem;
}

.chip {
  display: inline-block;
  background: #a67b5b;
  color: #fff;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.8rem;
  margin: 4px;
}

/* Button */
.coffee-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid #a67b5b;
  color: #f5e8c7;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.coffee-btn:hover {
  background: #a67b5b;
  color: #fff;
}

/* ───── Visual Effects ───── */
.coffee-cup {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: url('https://via.placeholder.com/100?text=☕') no-repeat center;
  background-size: contain;
  z-index: 3;
}

.steam {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 10px;
  height: 20px;
  background: rgba(245, 232, 199, 0.3);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: steamRise 2s infinite;
}

.steam:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes steamRise {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(-50%, -50px) scale(0.5); opacity: 0; }
}

.coffee-drip {
  position: absolute;
  width: 6px;
  height: 10px;
  background: #4a2c2a;
  border-radius: 50% 50% 0 0;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: drip 1.5s infinite;
}

@keyframes drip {
  0%, 100% { height: 10px; top: 10px; }
  50% { height: 20px; top: 20px; }
}

/* Side Decor */
.side-deco {
  position: absolute;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #d4a373;
  opacity: 0.2;
  animation: ringPulse 4s infinite ease-in-out;
}

.left-ring {
  left: 3%;
  animation-delay: 0s;
}

.right-ring {
  right: 3%;
  animation-delay: 1s;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.1; border-width: 2px; }
  50% { transform: scale(1.5); opacity: 0.4; border-width: 3px; }
  100% { transform: scale(1); opacity: 0.1; border-width: 2px; }
}
.coffee-title {
  font-size: 3rem; /* Slightly larger font size for emphasis */
  font-family: 'Orbitron', sans-serif;
  color: #a67b5b;
  margin-bottom: 3rem;
  text-align: center; /* Already added to center it */
  text-shadow: 
    0 0 15px #a67b5b,    /* Stronger inner glow */
    0 0 30px #a67b5b,    /* Enhanced mid-range glow */
    0 0 50px #d4a373,    /* Brighter outer glow */
    0 0 80px #f5e8c7;    /* Added a subtle outer highlight */
  animation: neonPulse 1.5s infinite alternate; /* Faster pulse for more attention */
}

@keyframes neonPulse {
  0% {
    text-shadow: 
      0 0 15px #a67b5b,
      0 0 30px #a67b5b,
      0 0 50px #d4a373,
      0 0 80px #f5e8c7;
  }
  100% {
    text-shadow: 
      0 0 20px #a67b5b,
      0 0 40px #a67b5b,
      0 0 70px #d4a373,
      0 0 100px #f5e8c7; /* Increased glow intensity */
  }
}
/* Steam container anchored to bottom */
#steam-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* Individual steam puff */
.steam {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: rgba(245, 232, 199, 0.15);
  border-radius: 50%;
  animation: steamRiseSpread 4s ease-out forwards;
  opacity: 0.6;
  filter: blur(1px);
}

@keyframes steamRiseSpread {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-40px) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-80px) scale(0.7);
    opacity: 0;
  }
}


/* Contact */
/* Contact Section - Cyber Glow */
/* ─── Contact Section Base ───────────────────────────── */
.matrix-contact-section {
  position: relative;
  padding: 6rem 2rem;
  background: #050505;
  color: #ccffcc;
  overflow: hidden;
  z-index: 1;
}

/* ─── Layout ───────────────────────────── */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1100px;
  margin: auto;
}

/* ─── Headshot ───────────────────────────── */
.avatar-column {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px #33ff33, 0 0 40px #00ff88;
  animation: pulseGlow 3s infinite ease-in-out;
}

/* ─── Form ───────────────────────────── */
.form-column {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
}

.matrix-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #33ff33;
  text-align: center;
  text-shadow: 0 0 5px #33ff33, 0 0 10px #00ff88;
  margin-bottom: 2rem;
}

.matrix-form .input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.matrix-form input,
.matrix-form textarea {
  width: 100%;
  background: transparent;
  color: #ccffcc;
  border: none;
  border-bottom: 2px solid #33ff33;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  outline: none;
  backdrop-filter: blur(3px);
  position: relative;
  z-index: 2;
}

.matrix-form input::placeholder,
.matrix-form textarea::placeholder {
  color: #99cc99;
}

.input-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom, rgba(0,255,0,0.08) 0px, rgba(0,255,0,0.08) 1px, transparent 1px, transparent 3px
  );
  z-index: 1;
  pointer-events: none;
}

.matrix-btn {
  width: 100%;
  background: transparent;
  color: #33ff33;
  border: 2px solid #33ff33;
  padding: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.matrix-btn:hover {
  background: #33ff33;
  color: #000;
}

/* ─── Alert ───────────────────────────── */
.matrix-alert {
  display: none;
  margin-top: 1rem;
  color: #00ff88;
  background: rgba(0, 50, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #33ff33;
  text-align: center;
  font-size: 0.95rem;
}

/* ─── Canvas Background ───────────────────────────── */
#contact-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

/* ─── Effects ───────────────────────────── */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px #33ff33, 0 0 40px #00ff88; }
  50% { box-shadow: 0 0 30px #00ff88, 0 0 60px #33ff33; }
  100% { box-shadow: 0 0 20px #33ff33, 0 0 40px #00ff88; }
}

.neon-text {
  text-shadow:
    0 0 4px #00ff00,
    0 0 8px #00ff00,
    0 0 16px #00ff00;
}

.glow-green {
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}
/* Fix container padding to prevent overlap with other sections */
.matrix-contact-section {
  position: relative;
  padding: 8rem 2rem 6rem;
  background: #050505;
  color: #ccffcc;
  overflow: hidden;
  z-index: 1;
}

/* Prevent form field overflow */
.matrix-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Ensure inputs and textarea don't overflow */
.matrix-form input,
.matrix-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure canvas background doesn't bleed into above section */
#contact-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

/* Avatar image fallback fix */
.contact-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px #33ff33, 0 0 40px #00ff88;
  background-color: #0f0; /* fallback circle glow */
}
.matrix-alert {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #16a34a;
  color: white;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  transition: opacity 0.4s ease;
}
.d-none {
  display: none;
}
.center-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.center-avatar img {
  border-radius: 50%;
  box-shadow: 0 0 30px 5px #00ff88;
  width: 180px;
  height: 180px;
  object-fit: cover;
}
