/* ===========================
   GLOBAL RESET + THEME
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: #0d0d0d;
    color: #f5f5f5;
    transition: background 0.35s ease, color 0.35s ease;
}

body.light {
    background: #ffffff;
    color: #000000;
}

:root {
    --accent: #3a8dff;
}


/* ===========================
   NAVBAR
=========================== */
.navbar {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}

.navbar li { list-style: none; }

.navbar a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    padding: 6px 10px;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent);
}

/* Theme Toggle */
.theme-btn {
    position: absolute;
    right: 40px;
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}
/* Nav Links Container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

/* Hamburger Button - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #f5f5f5;
    border-radius: 3px;
    transition: 0.3s ease;
}

body.light .hamburger .bar {
    background: #222;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 12px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 100;
  }

  body.light .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  /* Hamburger Animation when Active */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .theme-btn {
    position: relative;
    right: auto;
    z-index: 110;
  }
}


/* ===========================
   HERO SECTION
=========================== */
.hero {
    height: 100vh;
    display: flex;
    padding: 150px 60px 80px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
}

.hero-text .name {
    color: var(--accent);
}

/* Roles rotating line */
.roles {
    font-size: 26px;
    font-weight: 500;
    margin-top: 15px;
}

.role-rotate {
    color: var(--accent);
    font-weight: 700;
    opacity: 0;
    display: inline-block;
    transform: translateY(8px);
    animation: fadeSlide 0.6s ease forwards;
}

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

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.socials {
  display: flex;
  gap: 18px;
}

.socials img {
  width: 26px;
  height: 26px;
}
@media (max-width: 768px) {
  .socials img {
    width: 24px;
    height: 24px;
  }
}

/* CTA Button */
.btn-cta {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
}

.btn-cta:hover { opacity: 0.85; }


/* ===========================
   HERO IMAGE
=========================== */
.hero-image-container {
    width: 48%;
    position: relative;
    opacity: 0;
    animation: imageFadeIn 1.2s ease forwards;
}

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

.hero-image {
    width: 100%;
    height: 88vh;
    object-fit: cover;
    border-radius: 15px;
}

/* Left gradient overlay */
.hero-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(to right, #0d0d0dd0, rgba(0,0,0,0));
    z-index: 10;
    border-radius: 15px;
}


/* ===========================
   SOCIAL ICONS
=========================== */
.social-bar {
    display: flex;
    gap: 22px;       /* ← Increase spacing between icons */
    margin-top: 35px;
    align-items: center;
}

/* DEFAULT → WHITE ICONS */
.social-bar img {
    width: 34px;
    height: 34px;
    filter: invert(100%) brightness(1000%);
    transition: 0.3s ease;
}
.social-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
}

/* Center social icons on mobile/tablet */
@media (max-width: 950px) {
  .social-bar {
    justify-content: center;
    width: 100%;
  }
}

/* HOVER → softer fade */
.social-bar img:hover {
    filter: invert(100%) brightness(150%);
}

/* LIGHT MODE → dark icons */
body.light .social-bar img {
    filter: invert(0%) brightness(40%);
}

body.light .social-bar img:hover {
    filter: invert(0%) brightness(20%);
}


/* ===========================
   RESPONSIVE HERO
=========================== */
@media (max-width: 950px) {
    .hero {
        flex-direction: column;
        padding: 140px 30px;
        text-align: center;
    }

    .hero-image-container { width: 100%; }
    .hero-image { height: 60vh; }
}
.hero {
  position: relative;
  margin-bottom: 80px; /* creates space below image */
}

/* ===============================
   BLOGS SECTION WRAPPER
=============================== */
/* ================================
   BLOG SECTION
================================ */

#blogs {
  padding: 110px 50px 40px; /* reduced bottom padding */
  position: relative;
}
.blogs {
  position: relative;
  margin-top: 0;
  padding-top: 40px;
}
/* =========================
   BLOGS HEADING — GLOW STYLE
========================= */
#blogs .section-heading {
  text-align: center;
  font-size: 48px;
  font-weight: 700;

  color: #6bb8ff;
  text-shadow: 
    0 0 12px rgba(80,150,255,0.6),
    0 0 22px rgba(80,150,255,0.4);

  margin-bottom: 42px;
}

#blogs .section-heading {
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 32px auto !important;
}


.blog-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 0; /* REMOVE unwanted bottom spacing */
}

.blog-card {
  width: 100%;
  margin-bottom: 30px; /* reduce spacing between cards */
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  padding: 14px;
  border: 1.5px solid #1c1c1c;
  transition: 0.25s ease;
}

.show-more-btn {
  display: block;
  margin: 0 auto 20px; /* FIX: remove giant gap */
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Hidden card animation */
.blog-card.hidden {
  opacity: 0;
  transform: scale(0.97);
  height: 0;           /* 🟩 FIX!! removes blank space */
  margin: 0;           /* 🟩 FIX!! removes blank space */
  padding: 0;          /* 🟩 FIX!! removes blank space */
  pointer-events: none;
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:not(.hidden) {
  height: auto;
  padding: 14px;
  margin-bottom: 30px;
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 768px) {
  .blogs {
    margin-top: 40px;
  }

  .blogs-header {
    position: static;
  }
}
@media (max-width: 768px) {
  #blogs .section-heading {
    font-size: 36px;
  }
}
/* =========================
   BLOGS IMAGE → HEADING GAP (MOBILE)
========================= */
@media (max-width: 768px) {
  #blogs .section-heading {
    margin-top: 80px;   /* ⬆️ BIGGER GAP */
  }
}


/* ===============================
   CATEGORY FILTER BUTTONS
=============================== */
.top-category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 22px;
    background: #222;
    color: #ffffff;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: #fff;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ===============================
   BLOG CARDS
=============================== */
.blog-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.blog-card {
    width: 100%;
    margin-bottom: 40px;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    padding: 14px;
    border: 1.5px solid #1c1c1c;
    box-shadow: 0px 0px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

body.light .blog-card {
    background: #f8f8f8;
    border: 1.5px solid #d7d7d7;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 26px rgba(0,0,0,0.28);
}

/* ===============================
   BLOG IMAGES + VIDEO
=============================== */
.blog-image,
.blog-card video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===============================
   BLOG TEXT
=============================== */
.blog-content {
    padding: 20px 18px;
}

/* FIXED BLOG TITLES — ADAPT TO THEME */
.blog-card h3,
.blog-card h3 a {
    color: var(--text) !important;      /* WHITE in dark, BLACK in light */
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* BLOG DESCRIPTION */
.blog-content {
    padding: 26px 22px;
}

.blog-content p {
    margin-bottom: 10px;
    line-height: 2.0;
}



/* READ MORE LINK */
.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.read-more:hover {
    opacity: 0.7;
}


/* ===============================
   SHOW MORE BUTTON
=============================== */
.show-more-btn {
    display: block;
    margin: 0 auto 40px; /* FIX → removes large empty space */
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.show-more-btn:hover { opacity: 0.85; }

/* ===============================
   CARD HIDE ANIMATION
=============================== */
.blog-card.hidden {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
    #blogs { padding: 90px 20px; }
    .blog-image,
    .blog-card video { height: 200px; }
}
/* ===============================
   TIMELINE — WRAPPER
=============================== */
#timeline-section {
    padding: 130px 0;
    color: #e8f1ff;
    font-family: "Inter", sans-serif;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 90px;
    color: #6bb8ff;
    text-shadow: 0 0 16px #3b8dff;
}

/* ===============================
   TIMELINE LINE
=============================== */
.timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: #4da3ff;
    box-shadow: 0 0 20px #4da3ff, 0 0 35px #0077ff;
}

/* ===============================
   TIMELINE ITEMS — ALTERNATING
=============================== */
.timeline-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
    position: relative;

    /* fade-in animation default state */
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.timeline-item.show-item {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* ===============================
   TIMELINE CARDS
=============================== */
.timeline-content {
    width: 42%;
    padding: 30px 35px;
    background: rgba(10, 22, 40, 0.7);
    border-radius: 18px;
    border: 1.5px solid #3ea4ff;
    box-shadow: 0 0 25px rgba(62,164,255,0.45);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(62,164,255,0.75);
}

/* === Card Text === */
.timeline-content .role {
    font-size: 1.6rem;
    color: #7abaff;
    margin-bottom: 10px;
}

.timeline-content .company {
    font-size: 1.15rem;
    color: #c9e4ff;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content .duration {
    font-size: 0.95rem;
    color: #9bbce3;
    margin-bottom: 16px;
}

.timeline-content .desc {
    font-size: 1rem;
    line-height: 1.55;
}

/* ===============================
   TIMELINE ICON (circle crop)
=============================== */
.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4da3ff;
    background: rgba(10,22,40,0.8);
    box-shadow: 0 0 20px #4da3ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Align circle over the line */
.timeline-item:nth-child(odd) .timeline-icon {
    left: calc(50% - 37.5px);
}

.timeline-item:nth-child(even) .timeline-icon {
    right: calc(50% - 37.5px);
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.timeline-card {
  position: relative;
}
@media (max-width: 768px) {

  .timeline-icon {
    position: absolute !important;
    top: 18px;
    left: 18px;

    transform: none !important;   /* VERY IMPORTANT */
    margin: 0 !important;

    width: 48px;                  /* BIGGER */
    height: 48px;

    z-index: 10;
    background: #0b1220;
    border-radius: 50%;

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

  .timeline-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  /* Push text so it doesn't overlap icon */
  .timeline-card h3 {
    padding-left: 64px;
  }

  .timeline-card p,
  .timeline-card span,
  .timeline-card .company {
    padding-left: 64px;
  }

  /* Remove vertical center line */
  .timeline::before {
    display: none;
  }
}
@media (max-width: 768px) {

  .timeline-icon {
    position: absolute !important;
    top: 30px;
    left: 100px;            /* ⬅️ MORE LEFT (card edge) */

    transform: none !important;
    margin: 0 !important;

    width: 50px;           /* ⬆️ BIGGER CIRCLE */
    height: 50px;

    z-index: 10;
    background: #0b1220;
    border-radius: 50%;

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

  .timeline-icon img {
    width: 32px;           /* scale icon inside */
    height: 32px;
    object-fit: contain;
  }

  /* Push text to respect bigger icon */
  .timeline-card h3 {
    padding-left: 78px;
  }

  .timeline-card p,
  .timeline-card span,
  .timeline-card .company {
    padding-left: 78px;
  }
}

/* ===============================
   MODAL POPUP
=============================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(5,10,20,0.75);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(12,20,35,0.95);
    width: 60%;
    max-height: 75vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 18px;
    border: 2px solid #3ea4ff;
    box-shadow: 0 0 40px rgba(62,164,255,0.75);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal .close {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 32px;
    cursor: pointer;
    color: #8fc3ff;
}

.modal .close:hover {
    color: #c9e5ff;
}

/* Slider pages */
.modal-page { display: none; }
.modal-page.active { display: block; }

.slide-controls {
    text-align: right;
    margin-top: 20px;
}

.slide-controls button {
    padding: 8px 18px;
    background: #4da3ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.slide-controls button:hover { opacity: 0.8; }
/* ===============================
   TIMELINE MODAL — MOBILE ONLY FIX
=============================== */
@media (max-width: 768px) {

  .modal-content {
    width: 94%;              /* almost full width */
    max-height: 85vh;        /* more vertical space */
    padding: 36px 28px;      /* breathing room */
    border-radius: 22px;     /* softer edges */
    line-height: 1.7;
  }

  /* improve bullet spacing */
  .modal-points li {
    margin-bottom: 20px;
    line-height: 1.65;
  }

  /* headings spacing */
  .modal-content h2,
  .modal-content h3 {
    margin-bottom: 20px;
  }

  /* close button spacing */
  .modal .close {
    top: 20px;
    right: 20px;
    font-size: 28px;
  }

  /* softer scrollbar on mobile */
  .modal-content::-webkit-scrollbar {
    width: 6px;
  }

  .modal-content::-webkit-scrollbar-thumb {
    background: rgba(106,169,255,0.5);
    border-radius: 6px;
  }
}

/* ============================
   TIMELINE — MOBILE CENTERED FLASHCARDS
============================ */
@media (max-width: 768px) {

  /* remove timeline line & dot */
  .timeline::before,
  .timeline::after {
    display: none;
  }

  /* stack everything */
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    align-items: center;
    margin: 48px 0;
  }

  /* card itself */
  .timeline-content {
    width: 92%;
    max-width: 420px;
    padding: 48px 22px 28px;
    text-align: center;
    position: relative;
  }

  /* ICON — CENTERED ABOVE CARD */
  .timeline-icon {
    position: absolute !important;
    top: -38px;
    left: 50%;
    transform: translateX(-50%) !important;

    width: 76px;          /* BIGGER ICON */
    height: 76px;

    border-radius: 50%;
    background: #0b1220;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #4da3ff;
    box-shadow: 0 0 22px rgba(77,163,255,0.75);

    z-index: 5;
  }

  .timeline-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  /* text cleanup */
  .timeline-content .role,
  .timeline-content .company,
  .timeline-content .duration,
  .timeline-content .desc {
    margin-left: 0;
  }
}
/* ============================
   TIMELINE — FORCE ICON CENTER (MOBILE)
============================ */
@media (max-width: 768px) {

  .timeline-icon {
    left: 50% !important;
    right: auto !important;     /* 🔴 this is the missing piece */
    transform: translateX(-50%) !important;
  }

}

/* ==========================
        SKILLS SECTION
========================== */
#skills {
  padding: 110px 50px;
}

#skills .section-heading {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #6bb8ff;
  text-shadow: 0 0 12px rgba(80,150,255,0.6);
}

/* GRID */
.skills-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.skills-grid .skill-card:last-child {
  grid-column: 2 / 3;
}

/* Responsive: on small screens, stack all cards full-width */
@media (max-width: 800px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid .skill-card:last-child {
    grid-column: auto; /* no special centering on mobile */
  }
}
/* CARDS */
.skill-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1.8px solid #3ea4ff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(62,164,255,0.25);
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(62,164,255,0.45);
}

/* HEADING */
.skill-card h3 {
  color: #7abaff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* TEXT */
.skill-card p {
  color: #dbe9ff;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ================================
   CERTIFICATIONS SECTION
================================ */
#certifications {
    padding: 110px 40px 40px 40px;
}

#certifications .section-heading {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #6bb8ff;
    text-shadow: 0 0 12px rgba(80,150,255,0.6);
}

/* === GRID: 3 SIDE BY SIDE === */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* === CARD === */
.cert-card-flash {
    background: rgba(10, 22, 40, 0.65);
    border: 1.8px solid #3ea4ff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(62,164,255,0.35);
    transition: 0.3s ease;
}

.cert-card-flash:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(62,164,255,0.6);
}

/* === LOGO === */
.cert-logo-flash {
    width: 100%;
    max-width: 180px;  /* perfect size */
    height: auto;
    margin: 0 auto 18px;
    border-radius: 14px;
    object-fit: contain;
    display: block;
}

/* === TEXT === */
.cert-card-flash h3 {
    color: #7abaff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card-flash .issuer {
    font-size: 0.95rem;
    color: #bcdcff;
    margin-bottom: 4px;
}

.cert-card-flash .issued {
    font-size: 0.9rem;
    color: #9bb8d8;
    margin-bottom: 10px;
}

.cert-card-flash .skills {
    font-size: 0.9rem;
    color: #cde2ff;
    margin-bottom: 14px;
}

/* === BUTTON === */
.cert-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #3a8dff;
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.cert-btn:hover {
    opacity: 0.85;
}

/* ================================
   RESPONSIVE FIXES
================================ */
@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
/* add dot at end of the entire vertical timeline */
.timeline::after {
  content: "";
  position: absolute;
  bottom: 0;               /* at the bottom of the line */
  left: 50%;               /* center the dot */
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent, #6aa9ff); /* your neon blue */
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent, #6aa9ff);
}
.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}

.timeline-item.show-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* ============================
   FIX PURPLE LINKS IN MODALS
============================ */
.modal-content a,
.modal-content a:visited,
.modal-content a:active {
    color: var(--accent) !important;   /* your neon blue */
    text-decoration: none;
}

.modal-content a:hover {
    opacity: 0.7;
}
/* =========================
   MOBILE BLOGS FIX
========================= */
@media (max-width: 768px) {
  .hero {
    margin-bottom: 120px; /* pushes blogs below image */
  }

  #blogs {
    padding-top: 140px;   /* ensures blogs start clean */
  }
}
/* =========================
   BLOGS IMAGE → HEADING SPACING
========================= */
#blogs .section-heading {
  margin-top: 40px;   /* space from image */
}

/* ===========================
   CREDIT SECTION
=========================== */
.credit-section {
  max-width: 400px;
  margin: 40px auto 0;
  padding: 40px 20px;
  text-align: center;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .credit-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.credit-text {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

body.light .credit-text {
  color: rgba(0, 0, 0, 0.6);
}

.credit-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.credit-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.credit-link:hover {
  opacity: 0.8;
}

.credit-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .credit-section {
    padding: 40px 20px;
    margin-top: 60px;
  }
  
  .credit-text {
    font-size: 13px;
  }
}
