/* ================================================================
   EFFECTS.CSS – Premium ambient effects for dark & light modes
   Covers: cursor glow · particles · hero orb · moving grid ·
           card border glow · section fade-up · skill float ·
           light-mode blobs/rays/dots · prefers-reduced-motion
   ================================================================ */

/* ── 1. CSS variables overlay (merged with futuristic.css :root) ── */
:root {
  --fx-glow-dark: rgba(100, 170, 255, 0.18);
  --fx-glow-light: rgba(99, 140, 255, 0.10);
  --fx-orb-dark: rgba(14, 100, 255, 0.13);
  --fx-orb-dark2: rgba(130, 30, 255, 0.10);
  --fx-orb-light: rgba(180, 200, 255, 0.22);
  --fx-orb-light2: rgba(255, 210, 180, 0.18);
  --fx-particle: rgba(140, 180, 255, 0.55);
  --fx-particle-light: rgba(100, 130, 220, 0.35);
}

/* ================================================================
   PERFORMANCE: skip off-screen rendering until scrolled into view
   ================================================================ */
section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ================================================================
   2. CURSOR-FOLLOWING AMBIENT GLOW
   ================================================================ */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--fx-glow-dark) 0%, transparent 70%);
  transition: background 0.5s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

.light-mode #cursor-glow {
  background: radial-gradient(circle, var(--fx-glow-light) 0%, transparent 70%);
  mix-blend-mode: multiply;
}

/* ================================================================
   3. FLOATING PARTICLES / STARS (canvas layer)
   ================================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* ================================================================
   4. HERO ANIMATED ORB / BLOB
   ================================================================ */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(55px);
  will-change: transform;
  contain: strict;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--fx-orb-dark), transparent 70%);
  top: -80px;
  left: -60px;
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--fx-orb-dark2), transparent 70%);
  bottom: 20px;
  right: -40px;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}

.light-mode .hero-orb-1 {
  background: radial-gradient(circle, var(--fx-orb-light), transparent 70%);
  animation-duration: 25s;
}

.light-mode .hero-orb-2 {
  background: radial-gradient(circle, var(--fx-orb-light2), transparent 70%);
  animation-duration: 30s;
}

@keyframes orb-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(80px, 60px) scale(1.08);
  }

  66% {
    transform: translate(30px, 130px) scale(0.94);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes orb-drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  40% {
    transform: translate(-60px, -80px) scale(1.1);
  }

  80% {
    transform: translate(-120px, -30px) scale(0.92);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ================================================================
   5. SLOW-MOVING GRADIENT GLOW BEHIND HERO (scan line)
   ================================================================ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 40%,
      rgba(20, 110, 255, 0.10) 0%,
      rgba(130, 40, 255, 0.07) 50%,
      transparent 100%);
  animation: hero-glow-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.light-mode .hero::before {
  background: radial-gradient(ellipse 80% 55% at 50% 40%,
      rgba(180, 200, 255, 0.18) 0%,
      rgba(255, 200, 180, 0.10) 50%,
      transparent 100%);
  animation-duration: 12s;
}

@keyframes hero-glow-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* ================================================================
   6. MOVING GRID LINES (horizontal stripes scrolling left)
   ================================================================ */
.moving-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.moving-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 120, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 120, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-scroll 20s linear infinite;
}

.light-mode .moving-grid::before {
  background-image:
    linear-gradient(rgba(100, 140, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  animation-duration: 35s;
}

@keyframes grid-scroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 64px 0;
  }
}

/* ================================================================
   7. PROJECT CARD BORDER GLOW ON HOVER
   ================================================================ */
.project-card {
  position: relative;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    border-color 0.38s ease !important;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  border-radius: var(--radius, 20px);
}

.project-card:hover::after {
  border-color: rgba(22, 184, 255, 0.55);
  box-shadow:
    0 0 18px rgba(22, 184, 255, 0.18),
    inset 0 0 18px rgba(22, 184, 255, 0.05);
}

.light-mode .project-card:hover::after {
  border-color: rgba(90, 130, 255, 0.40);
  box-shadow:
    0 0 18px rgba(90, 130, 255, 0.12),
    inset 0 0 12px rgba(90, 130, 255, 0.04);
}

/* ================================================================
   8. SECTION FADE + UPWARD ENTRANCE (JS toggles .fx-visible)
   ================================================================ */
.fx-fade-up {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-fade-up.fx-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* staggered children – halved delays */
.fx-fade-up:nth-child(2) {
  transition-delay: 0.04s;
}

.fx-fade-up:nth-child(3) {
  transition-delay: 0.08s;
}

.fx-fade-up:nth-child(4) {
  transition-delay: 0.12s;
}

.fx-fade-up:nth-child(5) {
  transition-delay: 0.16s;
}

.fx-fade-up:nth-child(6) {
  transition-delay: 0.20s;
}

/* ================================================================
   9. SKILL ICON FLOAT ANIMATION
   ================================================================ */
.skill-card>i,
.skill-card>.fa,
.skill-card>[class^="fa"] {
  display: inline-block;
  animation: skill-float 3.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

.skill-card:nth-child(1)>i {
  --i: 0;
}

.skill-card:nth-child(2)>i {
  --i: 1;
}

.skill-card:nth-child(3)>i {
  --i: 2;
}

.skill-card:nth-child(4)>i {
  --i: 3;
}

.skill-card:nth-child(5)>i {
  --i: 4;
}

.skill-card:nth-child(6)>i {
  --i: 5;
}

@keyframes skill-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ================================================================
   10. GLASS CARD AMBIENT GLOW (dark + light)
   ================================================================ */
.glass-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease !important;
}

.glass-card:hover {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(22, 184, 255, 0.18),
    0 0 30px rgba(22, 184, 255, 0.08) !important;
}

.light-mode .glass-card:hover {
  box-shadow:
    0 8px 40px rgba(120, 150, 220, 0.14),
    0 0 0 1px rgba(90, 130, 255, 0.20),
    0 0 20px rgba(90, 130, 255, 0.07) !important;
}

/* ================================================================
   11. LIGHT MODE – SOFT FLOATING BLOBS
   ================================================================ */
.light-blob {
  display: none;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(110px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.light-mode .light-blob {
  display: block;
  opacity: 1;
}

.light-blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(180, 210, 255, 0.32), transparent 70%);
  top: -100px;
  left: -100px;
  animation: light-blob-drift-1 28s ease-in-out infinite alternate;
}

.light-blob-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 200, 180, 0.22), transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: light-blob-drift-2 34s ease-in-out infinite alternate;
}

.light-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 180, 255, 0.18), transparent 70%);
  top: 50%;
  left: 60%;
  animation: light-blob-drift-3 22s ease-in-out infinite alternate;
}

@keyframes light-blob-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 80px) scale(1.06);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes light-blob-drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-80px, -60px) scale(1.08);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes light-blob-drift-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 70px) scale(0.95);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ================================================================
   12. LIGHT MODE – ANIMATED DOT PATTERN
   ================================================================ */
.light-dots {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(100, 140, 220, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: dot-breathe 8s ease-in-out infinite alternate;
}

.light-mode .light-dots {
  display: block;
  opacity: 1;
}

@keyframes dot-breathe {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* ================================================================
   13. LIGHT MODE – SUN RAYS / MOVING GLOW SWEEP
   ================================================================ */
.sun-rays {
  display: none;
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.light-mode .sun-rays {
  display: block;
  opacity: 1;
}

.sun-rays::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg at 50% 0%,
      transparent 0deg,
      rgba(255, 220, 160, 0.06) 10deg,
      transparent 20deg,
      rgba(255, 200, 140, 0.04) 32deg,
      transparent 42deg,
      rgba(255, 230, 180, 0.06) 55deg,
      transparent 65deg,
      rgba(255, 210, 150, 0.04) 80deg,
      transparent 90deg);
  animation: ray-rotate 60s linear infinite;
  border-radius: 50%;
}

@keyframes ray-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
   14. NAVBAR highlight bar
   ================================================================ */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #16b8ff, #8f5cff);
  border-radius: 2px;
  transition: width 0.28s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ================================================================
   15. CHAT TOGGLE PULSE
   ================================================================ */
.chatbot-toggle {
  animation: chat-pulse 3.5s ease-in-out infinite;
}

@keyframes chat-pulse {

  0%,
  100% {
    box-shadow: 0 12px 35px rgba(25, 130, 255, .35);
  }

  50% {
    box-shadow: 0 12px 45px rgba(25, 130, 255, .55), 0 0 0 8px rgba(25, 130, 255, .07);
  }
}

/* ================================================================
   15-B. PREMIUM SLIDING THEME TOGGLE (fix empty gap)
   ================================================================ */
.theme-toggle {
  position: relative;
  width: 68px !important;
  height: 34px !important;
  border-radius: 30px;
  background: rgba(10, 25, 55, 0.45) !important;
  border: 1px solid var(--border) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px !important;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.theme-toggle i {
  font-size: 13px !important;
  z-index: 2;
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle .fa-sun {
  color: #ffb800 !important;
  /* gold sun */
}

.theme-toggle .fa-moon {
  color: #aebbd0 !important;
  /* muted moon */
}

/* Sliding knob background */
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #079ef4, #9458ef);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0, 110, 255, 0.35);
}

/* Slide knob to the right in light mode */
.light-mode .theme-toggle::after {
  transform: translateX(34px);
  background: linear-gradient(135deg, #ffb800, #ff563b);
  box-shadow: 0 2px 10px rgba(255, 120, 0, 0.35);
}

.light-mode .theme-toggle .fa-sun {
  color: #ffffff !important;
  /* white inside yellow knob */
}

.light-mode .theme-toggle .fa-moon {
  color: var(--muted) !important;
}

/* Dark mode specific colors when knob is on the left (on moon) */
body:not(.light-mode) .theme-toggle .fa-moon {
  color: #ffffff !important;
}

body:not(.light-mode) .theme-toggle .fa-sun {
  color: var(--muted) !important;
}


/* ================================================================
   16. PREFERS-REDUCED-MOTION  –  kill all animations gracefully
   ================================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #cursor-glow,
  #particles-canvas,
  .hero-orb,
  .moving-grid,
  .light-blob,
  .light-dots,
  .sun-rays {
    display: none !important;
  }
}

/* ================================================================
   17. PROJECT CARD ACTIONS / LINKS
   ================================================================ */
.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-actions .btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  gap: 6px;
}

/* ================================================================
   18. CERTIFICATIONS SECTION & GRID
   ================================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-img-container {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  /* 16:10 or roughly landscape ratio */
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 20, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fallback design when image does not exist yet */
.cert-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(8, 17, 39, 0.95) 0%, rgba(14, 30, 68, 0.98) 100%);
  color: var(--cyan);
  border: 1px dashed rgba(22, 184, 255, 0.28);
  border-radius: 11px;
  padding: 15px;
  text-align: center;
}

.cert-fallback i {
  font-size: 32px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(22, 184, 255, 0.35));
  animation: skill-float 4.2s ease-in-out infinite;
  display: inline-block;
}

.cert-fallback::after {
  content: 'VERIFIED CREDENTIAL';
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--purple);
  margin-top: 10px;
  opacity: 0.85;
}

.cert-card:hover .cert-img-container img {
  transform: scale(1.05);
}

.cert-info {
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-info h3 {
  font: 700 19px Outfit, sans-serif;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cert-info .issuer {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-info .date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.cert-info .view-cert-btn {
  margin-top: auto;
  align-self: flex-start;
}

.center-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* ================================================================
   19. CERTIFICATIONS ALL GALLERY MODAL
   ================================================================ */
.certs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.85);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(12px);
  padding: 20px;
}

.certs-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.certs-modal-container {
  width: 100%;
  max-width: 1040px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(7, 17, 36, 0.95);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transform: scale(0.93) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.certs-modal-overlay.open .certs-modal-container {
  transform: scale(1) translateY(0);
}

.certs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.certs-modal-header h2 {
  font: 800 28px Outfit, sans-serif;
  margin: 0;
}

.certs-modal-header h2 span {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--ease);
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  border-color: var(--cyan);
  transform: rotate(90deg);
}

.certs-modal-body {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
}

/* Custom Scrollbar for Modal Body */
.certs-modal-body::-webkit-scrollbar {
  width: 6px;
}

.certs-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.certs-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.certs-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.certs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 68%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 20, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.gallery-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-img-wrap:hover img {
  transform: scale(1.05);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 36, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-wrap:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-hover-overlay i {
  font-size: 24px;
  color: var(--cyan);
}

.gallery-info {
  margin-top: 12px;
}

.gallery-info h4 {
  font: 700 16px Outfit, sans-serif;
  color: var(--text);
  margin-bottom: 4px;
}

.gallery-info p {
  color: var(--muted);
  font-size: 13px;
}

/* ================================================================
   20. LIGHTBOX (ZOOMED VIEW)
   ================================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 12, 0.95);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(16px);
  padding: 30px;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.close-lightbox-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1210;
  transition: transform 0.3s ease, background 0.3s ease;
}

.close-lightbox-btn:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.15);
  color: var(--cyan);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 80vh;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-details {
  margin-top: 16px;
  text-align: center;
}

.lightbox-details h3 {
  font: 700 20px Outfit, sans-serif;
  color: #fff;
}

.lightbox-details p {
  color: var(--cyan);
  font-size: 14px;
  margin-top: 4px;
}

/* ================================================================
   21. LIGHT MODE SPECIFIC STYLES FOR CERTS
   ================================================================ */
.light-mode .cert-img-container {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .cert-fallback {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 246, 252, 0.98) 100%);
  color: var(--purple);
  border-color: rgba(90, 130, 255, 0.22);
}

.light-mode .cert-fallback i {
  filter: drop-shadow(0 0 8px rgba(143, 92, 255, 0.25));
}

.light-mode .certs-modal-overlay {
  background: rgba(244, 247, 252, 0.85);
}

.light-mode .certs-modal-container {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(90, 120, 180, 0.15);
}

.light-mode .close-modal-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.light-mode .close-modal-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--purple);
  border-color: var(--purple);
}

.light-mode .gallery-img-wrap {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-mode .gallery-hover-overlay {
  background: rgba(255, 255, 255, 0.85);
}

.light-mode .gallery-hover-overlay i {
  color: var(--purple);
}

/* ================================================================
   22. RESPONSIVE SETUP FOR CERTIFICATIONS
   ================================================================ */
@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

  .certs-gallery-grid {
    grid-template-columns: 1fr;
  }

  .certs-modal-container {
    max-height: 90vh;
    padding: 20px;
  }

  .certs-modal-header h2 {
    font-size: 22px;
  }
}

.gallery-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  transition: opacity 0.25s ease;
}

.gallery-link-btn:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.light-mode .gallery-link-btn {
  color: var(--purple);
}

/* ================================================================
   23. ACADEMIC EDUCATION FULL-WIDTH CARD & HIGHLIGHTS GRID
   ================================================================ */
.education-full-card {
  display: flex;
  gap: 28px;
  padding: 35px;
  align-items: flex-start;
  margin-top: 15px;
}

.edu-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(22, 184, 255, 0.1);
  border: 1px solid rgba(22, 184, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.edu-icon-wrap i {
  font-size: 26px;
}

.edu-details-wrap {
  flex-grow: 1;
}

.edu-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.edu-head-row h3 {
  font: 700 24px Outfit, sans-serif;
  color: var(--text);
}

.edu-date-span {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
}

.edu-inst {
  font-size: 17px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.edu-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Highlights Grid */
.highlights-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.highlights-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.highlight-card i {
  color: var(--cyan);
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.highlight-card h3 {
  font: 700 19px Outfit, sans-serif;
  color: var(--text);
  margin-bottom: 6px;
}

.highlight-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Light mode overrides for full-width cards */
.light-mode .edu-icon-wrap {
  background: rgba(143, 92, 255, 0.08);
  border-color: rgba(143, 92, 255, 0.25);
  color: var(--purple);
}

.light-mode .edu-date-span {
  color: var(--purple);
}

.light-mode .highlight-card i {
  color: var(--purple);
}

/* Certificate list collapsed style & increased font sizes */
.cert-card.glass-card {
  padding: 24px !important;
  /* Give the cards rich internal padding */
}

.cert-img-container.collapsed {
  padding-bottom: 0 !important;
  height: 110px !important;
  background: rgba(5, 12, 28, 0.3) !important;
  border-bottom: 1px dashed rgba(22, 184, 255, 0.15);
}

.light-mode .cert-img-container.collapsed {
  background: rgba(255, 255, 255, 0.6) !important;
  border-bottom-color: rgba(90, 130, 255, 0.15);
}

/* Large Certificate Titles - spacing fix */
.cert-info h3 {
  font: 700 24px/1.3 Outfit, sans-serif !important;
  color: #fff !important;
  margin-bottom: 8px !important;
}

.light-mode .cert-info h3 {
  color: var(--text) !important;
}

.cert-info .issuer {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--cyan) !important;
  margin-bottom: 4px !important;
}

.light-mode .cert-info .issuer {
  color: var(--purple) !important;
}

.cert-info .date {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin-bottom: 16px !important;
}

/* Responsive adjustment for highlights */
@media (max-width: 800px) {
  .education-full-card {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .highlights-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}