:root {
  --bg: #070b14;
  --bg2: #0d1526;
  --bg3: #111827;
  --surface: rgba(13, 21, 38, 0.7);
  --cyan: #00d4ff;
  --cyan2: #00b4d8;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --green: #10b981;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --border: rgba(0, 212, 255, 0.12);
  --border2: rgba(255, 255, 255, 0.06);
  --glow: 0 0 30px rgba(0, 212, 255, 0.25);
  --glow2: 0 0 60px rgba(139, 92, 246, 0.2);
  --nav-h: 70px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
/* ── Remove tap highlight square on all mobile browsers ── */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}
/* ── Remove click outline on buttons, links, and interactive elements ──
   Keyboard focus outline is preserved for accessibility (only removed on mouse/touch click) */
a,
button,
input,
textarea,
select,
[role="button"] {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan); /* keyboard users still see a focus ring */
  outline-offset: 3px;
}
html {
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: "Syne", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  transition:
    background 0.4s,
    color 0.4s;
}
/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 3px;
}

/* ── SELECTION ── */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.nav-link {
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}
.nav-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.05);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
}
.ctrl-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
}
/* ── HERO ── */
#hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 530px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.12) 0%,
    transparent 70%
  );
  animation: pulse-glow 14s ease-in-out infinite;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: 30%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  animation: pulse-glow 14s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  padding: 2rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  animation: fadeSlideDown 0.8s ease both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--cyan) 50%,
    var(--purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 0.9s ease 0.2s both;
  margin-bottom: 0.5rem;
}
.hero-typewriter {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--cyan);
  font-weight: 500;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.9s ease 0.4s both;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  animation: blink 0.8s infinite;
  margin-left: 2px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeSlideUp 0.9s ease 0.6s both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s ease 0.8s both;
}
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.btn-primary {
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: #070b14;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}
.btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1.5s both;
}
.hero-scroll span {
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

/* floating tech icons */
/* حاوية السماء */
/* الحاوية */
.sky {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* النجوم والكواكب */
.star {
  position: absolute;
  opacity: 0.8;
  animation: float 8s ease-in-out infinite alternate;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* حركة الطفو */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
  }
  100% {
    transform: translateY(10px) rotate(-10deg);
  }
}

/* Responsive للموبايل */
@media (max-width: 768px) {
  .star {
    font-size: 1rem;
  }
  .meteor {
    font-size: 1.2rem;
  }
}
/* ── SECTIONS ── */
section {
  padding: 4rem 0;
  position: relative;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--cyan);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-line {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin-bottom: 2rem;
}
.divider {
  border: none;
  border-top: 1px solid var(--border2);
  margin: 0;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr; /* text column wider, image column narrower */
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
  }
  .photo-frame {
    margin: 0 auto;
  }
  .hero-img-wrap {
    width: 240px;
    height: 290px;
  }
  .reveal-right {
    text-align: center;
  }
  .reveal-right .section-tag {
    justify-content: center;
  }
  .reveal-right .section-line {
    margin: 0.5rem auto 1rem;
  }
  .reveal-right div[style*="display:flex"] {
    justify-content: center;
  }
  /* About text (now reveal-left) also centres on mobile */
  .about-grid .reveal-left {
    text-align: center;
  }
  .about-grid .reveal-left .section-tag {
    justify-content: center;
  }
  .about-grid .reveal-left .section-line {
    margin: 0.5rem auto 1rem;
  }
  .about-grid .reveal-left div[style*="display:flex"] {
    justify-content: center;
  }
}
.photo-frame {
  position: relative;
  width: 320px;
}
.photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink))
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.photo-ring-2 {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  animation: spin 15s linear infinite reverse;
}
.photo-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 8px auto;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.5);
}
.about-bio {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "JetBrains Mono", monospace;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.reveal-right-E {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-right-E.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-card-E {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card-row-E {
  display: flex;
  gap: 1rem;
}

.about-icon-box-E {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 212, 200, 0.1);
  border: 1px solid rgba(0, 212, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
}

.about-detail-label-E {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-detail-val-E {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.15rem;
}

/* ── SKILLS ── */
#skills {
  background: var(--bg2);
}

/* Filter tabs */
.skills-filter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  transition: all 0.25s;
  text-transform: uppercase;
}
.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.filter-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Skills grid */
.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.skill-item {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: none;
}
.skill-item.visible {
  display: block;
}
.skill-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-item:hover::after {
  opacity: 1;
}
.skill-item:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.18);
}
.skill-item-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  font-size: 1.6rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.skill-item:hover .skill-item-icon {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}
.skill-item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.skill-item-cat {
  font-size: 0.65rem;
  color: var(--text3);
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
  z-index: 1;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    var(--glow);
}
.project-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb-icon {
  font-size: 3.5rem;
  opacity: 0.2;
}
.project-year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
}
.project-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--purple);
}
.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
  width: 100%;
}
.project-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
  width: 100%;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
  justify-content: center;
}
.tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: "JetBrains Mono", monospace;
}
.tag-cyan {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.tag-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tag-pink {
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink);
  border: 1px solid rgba(236, 72, 153, 0.2);
}
.tag-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fed7aa;
}
.tag-yellow {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fef08a;
}

.tag-red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}

.tag-indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.tag-violet {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.tag-teal {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: #99f6e4;
}

.tag-sky {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

.tag-rose {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fecdd3;
}

.tag-lime {
  background: rgba(132, 204, 22, 0.12);
  border: 1px solid rgba(132, 204, 22, 0.25);
  color: #d9f99d;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-sm-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: #070b14;
}
.btn-sm-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}
.btn-sm-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-sm-ghost:hover {
  border-color: var(--text2);
  color: var(--text);
}
.btn-sm-img {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-sm-img:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.25);
}
/* ── EDUCATION ── */
#education {
  background: var(--bg2);
}
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--cyan),
    var(--purple),
    transparent
  );
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  border: 2px solid var(--bg2);
}
/* .timeline-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.timeline-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: var(--glow);
} */
.timeline-card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: var(--glow);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.timeline-sub {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 0.5rem;
}
.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.75rem;
}
.timeline-highlight {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
}
.timeline-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
.timeline-project-link:hover {
  color: var(--purple);
}

/* ── CERTIFICATIONS ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}
/* ── Pulse ring animation — expands outward and fades ── */
@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(4px);
  }
  60% {
    transform: translateY(-3px);
  }
  80% {
    transform: translateY(2px);
  }
}
@keyframes certPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════
   REUSABLE PULSE GLOW CLASS
   Add  class="btn-pulse"  to any button or element.
   Works on any border-radius — square, rounded, or pill.
══════════════════════════════════════════════ */
.btn-pulse {
  position: relative;
  box-shadow:
    0 0 10px rgba(0, 212, 255, 0.2),
    0 0 20px rgba(0, 212, 255, 0.08);
}
.btn-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit; /* matches the button's own border-radius automatically */
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: certPulse 2s ease-out infinite;
  pointer-events: none;
}
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(139, 92, 246, 0.4);
  animation: certPulse 2s ease-out 1s infinite;
  pointer-events: none;
}
.btn-pulse:hover::before,
.btn-pulse:hover::after {
  animation: none;
  opacity: 0;
}

.cert-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(139, 92, 246, 0.15)
  );
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  /* Soft idle glow so it reads as interactive at a glance */
  box-shadow:
    0 0 10px rgba(0, 212, 255, 0.2),
    0 0 20px rgba(0, 212, 255, 0.08);
}

/* Pulsing ring — pseudo-element sits behind the button */
.cert-icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: certPulse 2s ease-out infinite;
  pointer-events: none;
}

/* Stagger a second ring so the pulse feels continuous */
.cert-icon-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  animation: certPulse 2s ease-out 1s infinite; /* 1s offset = second wave */
  pointer-events: none;
}

.cert-icon-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.3),
    rgba(139, 92, 246, 0.3)
  );
  box-shadow:
    0 0 28px rgba(0, 212, 255, 0.45),
    0 0 12px rgba(139, 92, 246, 0.25);
  transform: scale(1.1);
  border-color: var(--cyan);
}

/* Stop pulsing on hover — the glow takes over */
.cert-icon-btn:hover::before,
.cert-icon-btn:hover::after {
  animation: none;
  opacity: 0;
}

.cert-icon-btn .cert-view-hint {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: var(--cyan);
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cert-icon-btn:hover .cert-view-hint {
  opacity: 1;
}
.cert-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.cert-issuer {
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}
.cert-date {
  font-size: 0.7rem;
  color: var(--text3);
  font-family: "JetBrains Mono", monospace;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg2);
  position: relative;
}
#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--purple),
    transparent
  );
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.contact-section-intro p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  margin-top: 0.75rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cyan);
}
.contact-label {
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-val {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}
.contact-val a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-val a:hover {
  color: var(--cyan);
}
.social-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-color: var(--cyan);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
textarea.form-input {
  resize: vertical;
  min-height: 130px;
}
.form-input::placeholder {
  color: var(--text3);
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border2);
  padding: 2.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--purple),
    transparent
  );
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 4px;
}
.footer-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: rgba(0, 212, 255, 0.04);
  color: var(--text3);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--cyan);
}
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem 0;
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.74rem;
  color: var(--text3);
}
.footer-heart {
  color: #ef4444;
  animation: heartbeat 1s infinite;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* About text is now on the left — override the slide direction */
.about-grid .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-grid .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgb(2, 133, 161);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border2);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-img-wrap {
    width: 200px;
    height: 245px;
  }
  .float-badge-2 {
    right: -10px;
  }
  .section-inner {
    padding: 0 1.25rem;
  }
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-img-wrap {
    width: 170px;
    height: 210px;
  }
  .float-badge-1 {
    left: -10px;
  }
  .float-badge-2 {
    right: -10px;
  }
  .section-inner {
    padding: 0 1.25rem;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-btns {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 60px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .float-badge-1 {
    top: -10px;
    left: 0;
  }
  .float-badge-2 {
    bottom: 20px;
    right: 0;
  }
  .float-badge-3 {
    bottom: -10px;
    left: 10px;
  }
  .hero-visual {
    overflow: visible;
  }
  .hero-btns {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    padding: 10px 12px;
    font-size: 0.72rem;
    flex: 1 1 auto;
    min-width: 90px;
    max-width: 130px;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    white-space: nowrap;
  }

  .nav-logo {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-nav {
    justify-content: center;
  }
  .contact-grid {
    gap: 2rem;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .photo-img {
    width: 220px;
    height: 220px;
  }
  .hero-img-wrap {
    width: 160px;
    height: 175px;
  }
  .float-badge {
    display: none;
  }
  .about-bio {
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.9rem 0.5rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}

/* ── MODAL OVERLAY (shared) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease;
}
.modal-overlay.open {
  display: flex;
}
@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── IMG MODAL ── */
.img-modal-box {
  position: relative;
  width: min(90vw, 900px);
  max-width: 900px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    var(--glow2);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border2);
}
.img-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.img-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.img-modal-close:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.img-slider {
  position: relative;
  height: min(460px, calc(100vh - 12rem));
  max-height: calc(100vh - 12rem);
  background: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.img-slide.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.img-slide img {
  display: block;
  max-width: min(100%, calc(90vw - 4rem));
  max-height: min(100%, calc(100vh - 14rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
}
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text3);
  text-align: center;
  padding: 2rem;
}
.img-placeholder i {
  font-size: 4rem;
  color: var(--border);
}
.img-placeholder p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.slider-arrow:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: var(--cyan);
  color: var(--cyan);
}
.slider-arrow.prev {
  left: 1rem;
}
.slider-arrow.next {
  right: 1rem;
}
.slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid var(--border2);
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.slider-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* ── CERT MODAL ── */
.cert-modal-box {
  position: relative;
  width: min(90vw, 700px);
  max-width: 700px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    var(--glow);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border2);
}
.cert-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.cert-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: auto;
}
.cert-preview {
  width: 100%;
  flex: 0 1 auto;
  min-height: 100px;
  max-height: min(72vh, calc(100vh - 11rem));
  background: linear-gradient(135deg, var(--bg3), var(--bg));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.cert-slider {
  position: relative;
  width: 100%;
  max-height: min(68vh, calc(100vh - 13rem));
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.cert-slide {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 2.75rem;
  box-sizing: border-box;
}
.cert-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.04),
    rgba(139, 92, 246, 0.04)
  );
}
.cert-preview img,
.cert-slide img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(64vh, calc(100vh - 14rem));
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.cert-slider .slider-arrow {
  z-index: 3;
}
.cert-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.cert-preview-icon {
  font-size: 4rem;
}
.cert-preview-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.cert-preview-sub {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}
.cert-preview-grade {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}
.cert-modal-meta {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text3);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
}

/* gradient mesh bg */
.mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 0% 100%,
      rgba(139, 92, 246, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(0, 212, 255, 0.06) 0%,
      transparent 60%
    );
}

/* === HERO VISUAL local shorthands (mapped to theme vars) === */
:root {
  --accent: var(--cyan);
  --accent2: var(--green);
  --bg-surface: var(--bg2);
  --glass: var(--surface);
  --glass-border: var(--border);
  --text-secondary: var(--text2);
  --radius-lg: 1.5rem;
}

/* === HERO VISUAL CONTAINER === */
.hero-visual {
  position: relative;
  animation: fadeUp 0.8s 0.2s ease both;
  flex-shrink: 0;
}

/* === IMAGE WRAPPER (rotating border) === */
.hero-img-wrap {
  width: 240px;
  height: 290px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-img-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: inherit;
  z-index: 0;
  animation: borderRotate 4s linear infinite;
}

.hero-img-inner {
  position: absolute;
  inset: 2px;
  background: var(--bg-surface);
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  z-index: 1;
}

.hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.hero-img-wrap:hover .hero-img-inner img {
  transform: scale(1.04);
}

/* === FLOATING BADGES === */
.float-badge {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  z-index: 5;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.float-badge-1 {
  top: -16px;
  left: -30px;
  color: var(--accent);
  animation: float1 4s ease-in-out infinite;
}

.float-badge-2 {
  bottom: -5px;
  right: -150px;
  color: var(--accent2);
  animation: float2 5s ease-in-out infinite;
}

.float-badge-3 {
  bottom: -18px;
  left: 20px;
  color: var(--text-secondary);
  animation: float1 6s ease-in-out infinite;
}

/* === ANIMATIONS === */
@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ── ADMIN MODAL ── */
.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
}
.admin-modal-overlay.open {
  display: flex;
}
.admin-modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 420px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    var(--glow);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.admin-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-modal-sub {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 1.75rem;
  font-family: "JetBrains Mono", monospace;
}
.admin-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.admin-modal-close:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.admin-error {
  display: none;
  margin-top: 0.75rem;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: var(--pink);
  font-size: 0.82rem;
  text-align: center;
}
/* Admin Dashboard */
.admin-dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.admin-dash-overlay.open {
  display: block;
}
.admin-dash-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.admin-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border2);
}
.admin-dash-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.admin-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "JetBrains Mono", monospace;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 4px;
}
.msg-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.msg-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
}
.msg-card.unread {
  border-left: 3px solid var(--cyan);
}
.msg-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.msg-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.msg-email {
  font-size: 0.78rem;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
}
.msg-subject {
  font-size: 0.82rem;
  color: var(--text2);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.msg-body {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}
.msg-date {
  font-size: 0.7rem;
  color: var(--text3);
  font-family: "JetBrains Mono", monospace;
}
.msg-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.msg-status.unread {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.msg-status.read {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text3);
  border: 1px solid var(--border2);
}
.msg-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.reply-form {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border2);
}
.reply-form.open {
  display: block;
}
.admin-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text3);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════ */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* ══════════════════════════════════════════════
   BACK TO TOP / BACK TO BOTTOM BUTTONS
══════════════════════════════════════════════ */
#btn-top,
#btn-bottom {
  position: fixed;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  color: var(--cyan);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8888;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s,
    box-shadow 0.2s;
  pointer-events: none;
}
#btn-top {
  bottom: 5.5rem;
}
#btn-bottom {
  bottom: 1.5rem;
}

#btn-top.visible,
#btn-bottom.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#btn-top:hover,
#btn-bottom:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   HAMBURGER — animated X state
══════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(0, 212, 255, 0.04);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
/* ── Re-show hamburger on small screens — must come AFTER the display:none block above ── */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
}
.hamburger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
.hamburger:hover::before {
  opacity: 1;
}
.hamburger:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    background 0.2s;
}
.hamburger:hover .ham-line {
  background: var(--cyan);
}

/* Open (X) state */
.hamburger.open .ham-top {
  transform: translateY(7px) rotate(45deg);
  background: var(--cyan);
}
.hamburger.open .ham-mid {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .ham-bot {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--cyan);
}
.hamburger.open {
  border-color: rgba(0, 212, 255, 0.5);
}

/* ══════════════════════════════════════════════
   CONTACT SECTION IMPROVEMENTS
══════════════════════════════════════════════ */
.contact-intro-block {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-highlight {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.contact-intro-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 520px;
  margin: 1rem auto 0;
  line-height: 1.9;
}
.contact-grid {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
  .contact-grid {
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════════════════
   HERO — Full Responsive
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #hero {
    min-height: 600px;
    padding-top: calc(var(--nav-h) + 1rem);
  }
  .hero-content {
    padding: 1.5rem 1.5rem 3rem;
    max-width: 100%;
    width: 100%;
  }
}

/* ── HERO IMAGE MOBILE SECTION — hidden on desktop, rendered on mobile ── */
#hero-image-mobile {
  display: none;
}
@media (max-width: 768px) {
  /* Remove the image from the hero section on mobile */
  #hero .hero-glow-2 {
    display: none !important;
  }

  /* Reveal the standalone mobile image section */
  #hero-image-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
  }
  #hero-image-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      ellipse 80% 60% at 50% 50%,
      rgba(0, 212, 255, 0.06) 0%,
      transparent 70%
    );
    pointer-events: none;
  }
  #hero-image-mobile .hero-visual {
    position: relative;
    animation: fadeUp 0.8s 0.2s ease both;
  }

  #hero {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 0.5rem) 0 0rem;
  }
  .hero-name {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
  .hero-typewriter {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
  .hero-desc {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  .hero-btns {
    gap: 0.75rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 0.85rem;
  }
  .hero-content {
    padding: 1rem 0.25rem 3.5rem;
    max-width: 100%;
    width: 100%;
  }
  .tech-float {
    display: none;
  }
  .hero-glow-1 {
    width: 280px;
    height: 220px;
  }
  .hero-glow-2 {
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 480px) {
  #hero {
    height: 75svh;
    min-height: 100svh;
  }
  .hero-name {
    font-size: clamp(2rem, 14vw, 3rem);
    letter-spacing: -0.05em;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .hero-scroll {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   REVEAL ANIMATIONS — reveal-right-E (Hero Profile / About Panel)
══════════════════════════════════════════════ */
.reveal-right-E {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-right-E.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* The visual card inside reveal-right-E */
.profile-card-E {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition:
    box-shadow 0.4s,
    border-color 0.4s;
}
.profile-card-E::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.profile-card-E::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.profile-card-E:hover {
  border-color: var(--border2);
  box-shadow:
    0 0 80px rgba(0, 212, 255, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.5);
}
.profile-img-E {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--purple)) border-box;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
  margin-bottom: 1.25rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.3s;
}
.profile-card-E:hover .profile-img-E {
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}
.profile-name-E {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}
.profile-title-E {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.profile-stats-E {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.profile-stat-E {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
}
.profile-stat-E span:first-child {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-stat-E span:last-child {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 2px;
}
.profile-socials-E {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.profile-social-E {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.profile-social-E:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .profile-card-E {
    padding: 2rem 1.5rem;
  }
  .profile-img-E {
    width: 110px;
    height: 110px;
  }
  .profile-stats-E {
    gap: 0.5rem;
  }
}

/* ══════════════════════════════════════════════
   WORK EXPERIENCE SECTION
══════════════════════════════════════════════ */
#experience {
  padding: 5rem 0;
}

.exp-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
}
.exp-timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--cyan),
    var(--purple),
    transparent
  );
  border-radius: 2px;
}
.exp-item {
  position: relative;
  margin-bottom: 2rem;
}
.exp-item:last-child {
  margin-bottom: 0;
}
.exp-dot {
  position: absolute;
  left: -2.02rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  z-index: 1;
}
.exp-dot--dev {
  border-color: var(--purple);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.exp-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.07);
  transform: translateY(-2px);
}
.exp-header {
  margin-bottom: 1rem;
}
.exp-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.exp-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.exp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "JetBrains Mono", monospace;
}
.exp-badge--current {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}
.exp-badge--dev {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple);
}
.exp-role {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}
.exp-company {
  font-size: 0.82rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.exp-company i {
  color: var(--cyan);
  font-size: 0.78rem;
}
.exp-desc {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;

  letter-spacing: 0.03em;

  border: 1px solid transparent;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(8px);
}

/* Laravel */
.exp-tag.laravel {
  background: rgba(255, 45, 32, 0.12);
  border-color: rgba(255, 45, 32, 0.25);
  color: #ffb4ad;
}

/* Blade */
.exp-tag.blade {
  background: rgba(255, 99, 132, 0.12);
  border-color: rgba(255, 99, 132, 0.25);
  color: #ffc1d1;
}

/* HTML */
.exp-tag.html {
  background: rgba(227, 79, 38, 0.12);
  border-color: rgba(227, 79, 38, 0.25);
  color: #ffb199;
}

/* CSS */
.exp-tag.css {
  background: rgba(38, 77, 228, 0.12);
  border-color: rgba(38, 77, 228, 0.25);
  color: #b7c7ff;
}

/* Tailwind */
.exp-tag.tailwind {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #b6f4ff;
}

/* JavaScript */
.exp-tag.js {
  background: rgba(247, 223, 30, 0.12);
  border-color: rgba(247, 223, 30, 0.25);
  color: #fff3a3;
}

/* Bootstrap */
.exp-tag.bootstrap {
  background: rgba(121, 82, 179, 0.12);
  border-color: rgba(121, 82, 179, 0.25);
  color: #dcc7ff;
}

/* PHP */
.exp-tag.php {
  background: rgba(119, 123, 180, 0.12);
  border-color: rgba(119, 123, 180, 0.25);
  color: #d2d5ff;
}

/* MySQL */
.exp-tag.mysql {
  background: rgba(0, 117, 143, 0.12);
  border-color: rgba(0, 117, 143, 0.25);
  color: #a8e9ff;
}

/* REST API */
.exp-tag.api {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #b7ffe2;
}

/* Vite */
.exp-tag.vite {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  color: #d8c7ff;
}
@media (max-width: 768px) {
  .exp-timeline {
    padding-left: 1.75rem;
  }
  .exp-timeline::before {
    left: 0.4rem;
  }
  .exp-dot {
    left: -1.45rem;
  }
  .exp-card {
    padding: 1.25rem;
  }
  .exp-role {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .exp-timeline {
    padding-left: 1.25rem;
  }
  .exp-dot {
    left: -1.05rem;
    width: 11px;
    height: 11px;
  }
  .exp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ── MOBILE HORIZONTAL DRAG SCROLL Joystick── */
@media (max-width: 768px) {
  /* Skills grid → native smooth horizontal scroll on mobile */
  #skillsGrid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll; /* scroll instead of auto — more consistent on iOS */
    overflow-y: hidden;
    scroll-snap-type: x proximity; /* proximity instead of mandatory — less aggressive snapping */
    -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
    overscroll-behavior-x: contain; /* prevents the whole page from moving while scrolling cards */
    cursor: grab;
    padding-bottom: 0.5rem;
    gap: 0.75rem;
    scrollbar-width: none;
  }
  #skillsGrid::-webkit-scrollbar {
    display: none;
  }

  /* Each skill card — fixed width so they line up in a row */
  #skillsGrid .skill-item.visible {
    display: flex; /* only .visible items show — no !important */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 130px;
    scroll-snap-align: start;
  }
  #skillsGrid .skill-item:not(.visible) {
    display: none; /* hidden items stay hidden */
  }

  /* Right-edge fade shadow — visual cue that content continues */
  .projects-grid-wrapper {
    position: relative;
  }
  .projects-grid-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }

  /* Projects grid → native smooth horizontal scroll on mobile */
  .projects-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* touch-action removed — browser auto-detects gesture direction:
       horizontal swipe → scrolls the grid
       vertical swipe   → scrolls the page                          */
    cursor: grab;
    padding-bottom: 0.5rem;
    gap: 1rem;
    scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  /* Each project card — narrowed so next card peeks into view */
  .projects-grid .project-card {
    flex: 0 0 78vw; /* 78% width — next card peeks ~15% from right edge */
    max-width: 300px;
    scroll-snap-align: start;
  }

  /* Add right padding to the grid so the last card doesn't stick to the edge */
  .projects-grid {
    padding-right: 1.5rem;
  }
}

.drag-hint {
  display: none;
}
@media (max-width: 768px) {
  .drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text3);
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.08em;
    animation: fadeIn 1s ease 1s both;
  }
}
