/* ===================================================
   Salman Idrees Portfolio — Premium Dark + Indigo Theme
   =================================================== */

/* ===== Google Fonts imported in HTML ===== */

/* ===== CSS Variables ===== */
:root {
  --bg:          #0a0a0a;
  --bg-surface:  #111111;
  --bg-card:     #1a1a1a;
  --gold:        #2726A6;
  --gold-hover:  #3531CC;
  --text:        #f5f5f5;
  --text-muted:  #a3a3a3;
  --border:      rgba(39, 38, 166, 0.25);
  --font:        'Inter', sans-serif;
  --ease:        0.3s ease;
  --radius:      12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.dark-bg  { background-color: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(39, 38, 166, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(39, 38, 166, 0.15);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.35rem 0;
  transition: all var(--ease);
}
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  font-family: var(--font);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(39,38,166,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 45%, rgba(53,49,204,0.09) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.9s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeInUp 0.9s ease-out 0.15s both;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  animation: fadeInUp 0.9s ease-out 0.3s both;
}

.gold-underline {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  width: 0;
  margin: 0.5rem auto 2.5rem;
  border-radius: 2px;
  animation: growUnderline 0.85s ease-out 1s forwards;
}
@keyframes growUnderline {
  to { width: 100%; }
}

.hero-subtitle-wrapper {
  height: 2.4rem;
  position: relative;
  margin-bottom: 2.75rem;
  animation: fadeInUp 0.9s ease-out 0.45s both;
}
.rotating-text { display: block; position: relative; }
.rotating-text span {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  white-space: nowrap;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0;
  animation: rotateSubtitle 9s infinite;
}
.rotating-text span:nth-child(1) { animation-delay: 0s; }
.rotating-text span:nth-child(2) { animation-delay: 3s; }
.rotating-text span:nth-child(3) { animation-delay: 6s; }

@keyframes rotateSubtitle {
  0%  { opacity: 0; transform: translateX(-50%) translateY(12px); }
  6%  { opacity: 1; transform: translateX(-50%) translateY(0);    }
  27% { opacity: 1; transform: translateX(-50%) translateY(0);    }
  33% { opacity: 0; transform: translateX(-50%) translateY(-12px);}
  100%{ opacity: 0; transform: translateX(-50%) translateY(-12px);}
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease-out 0.6s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  animation: bounceDown 2s ease-in-out infinite 1.8s;
  cursor: pointer;
  opacity: 0.7;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   ABOUT
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  position: relative;
  z-index: 1;
}
.about-image-border {
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.35;
  z-index: 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}
.about-content strong { color: var(--gold); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: border-color var(--ease);
}
.stat:hover { border-color: var(--gold); }
.stat-number {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(39,38,166,0.1);
  border: 1px solid rgba(39,38,166,0.35);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
}

/* ===================================================
   EXPERTISE
   =================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--ease);
}
.expertise-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  background: rgba(39,38,166,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: background var(--ease);
}
.expertise-card:hover .expertise-icon {
  background: rgba(39,38,166,0.28);
}

.expertise-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.expertise-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================
   CERTIFICATIONS
   =================================================== */
.cert-group { margin-bottom: 2.5rem; }
.cert-group:last-child { margin-bottom: 0; }

.cert-category {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--ease);
}
.cert-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(39,38,166,0.1);
}
.cert-badge--progress {
  border-color: rgba(39,38,166,0.45);
  color: var(--gold);
  font-style: italic;
}

/* ===================================================
   EXPERIENCE TIMELINE
   =================================================== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 50px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(39,38,166,0.2) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -43px;   /* 15px (line) - 8px (half dot: 14/2=7) ≈ aligns dot centre to line */
  top: 1.3rem;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 1;
  transition: box-shadow var(--ease);
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 4px rgba(39,38,166,0.35);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: all var(--ease);
}
.timeline-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.timeline-dates {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(39,38,166,0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(39,38,166,0.3);
  flex-shrink: 0;
}
.timeline-company {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-company i { color: var(--gold); font-size: 0.78rem; }
.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ===================================================
   EXPERIENCE (career overview)
   =================================================== */
.experience-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.career-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--ease);
}
.pillar-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.pillar-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.experience-cta {
  text-align: center;
  padding-top: 1rem;
}
.experience-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 580px;
  margin: 0 auto 3rem;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item > i {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 0.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-item span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.contact-item a,
.contact-item span:last-child {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--ease);
}
.contact-item a:hover { color: var(--gold); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--ease);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}
footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color var(--ease);
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--gold); }

/* ===================================================
   RESPONSIVE — 1024px
   =================================================== */
@media (max-width: 1024px) {
  .expertise-grid,
  .career-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================
   RESPONSIVE — 768px
   =================================================== */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Expertise */
  .expertise-grid { grid-template-columns: 1fr; }

  /* Experience pillars */
  .career-pillars { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Timeline */
  .timeline { padding-left: 40px; }
  .timeline::before { left: 12px; }
  .timeline-dot { left: -34px; }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================
   RESPONSIVE — 480px
   =================================================== */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline-header { flex-direction: column; gap: 0.5rem; }
  .btn { padding: 0.8rem 1.5rem; }
}

/* ===================================================
   PREMIUM ENHANCEMENTS
   =================================================== */

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-hover); }

/* ── Text selection ── */
::selection { background: rgba(39, 38, 166, 0.4); color: #fff; }

/* ── Background canvas ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Hero: left-side blue glow (mirrors banner) ── */
.hero {
  background: radial-gradient(ellipse at 8% 60%, rgba(39, 38, 166, 0.11) 0%, transparent 50%);
}

/* ── Hero name: subtle light-to-cool-white gradient ── */
.hero-name {
  background: linear-gradient(135deg, #ffffff 35%, rgba(190, 190, 255, 0.88) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gold line: gradient ── */
.gold-line {
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
}

/* ── Nav logo glow ── */
.nav-logo, .footer-logo {
  text-shadow: 0 0 22px rgba(39, 38, 166, 0.55);
}

/* ── Stat number gradient ── */
.stat-number {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card blue glow on hover ── */
.expertise-card:hover,
.pillar-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(39, 38, 166, 0.22);
}
.timeline-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(39, 38, 166, 0.16);
}
.stat:hover {
  box-shadow: 0 4px 20px rgba(39, 38, 166, 0.22);
}

/* ── Button shimmer ── */
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn-gold:hover::after { transform: translateX(120%); }

/* ── Dark sections: subtle blue-tinted surface ── */
.dark-bg { background-color: #0d0d1a; }

/* ===================================================
   CERTIFICATIONS CAROUSEL
   =================================================== */
.cert-carousel { position: relative; }

.cert-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cert-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all var(--ease);
}
.cert-arrow:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(39, 38, 166, 0.5);
  transform: scale(1.08);
}

.cert-progress-wrap {
  flex: 1;
  text-align: center;
}
.cert-counter {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.cert-counter strong { color: var(--gold); font-weight: 700; }

.cert-progress {
  height: 3px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}
.cert-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-radius: 2px;
  transition: width 0.45s ease;
}

.cert-carousel-track { min-height: 180px; }

.cert-slide { display: none; }
.cert-slide.active {
  display: block;
  animation: certSlideIn 0.45s ease both;
}
@keyframes certSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cert-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
}
.cert-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.cert-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(39, 38, 166, 0.55);
}

/* ── Cert category & badge logos ── */
.cert-category img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(39, 38, 166, 0.35));
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cert-badge img {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}
