/**
 * assets/css/main.css
 * -----------------------------------------------------------------
 * Kalash Kundaliya Portfolio — shared/global styles.
 * Loaded on EVERY page. Contains layout primitives, header/nav,
 * footer, buttons, section titles, the fixed background fx layer,
 * and the base design tokens (CSS variables).
 *
 * Page-specific styling lives in assets/css/pages/<page>.css and is
 * loaded only by the HTML pages that need it.
 *
 * Originally split out of assets/css/style.css (BootstrapMade
 * "Kelly" template) and assets/css/theme.css (dark theme layer).
 * ----------------------------------------------------------------- */

/* ============ Design tokens & base (theme.css) ============ */
/* =================================================================
   THEME.CSS — Kalash Kundaliya Portfolio
   Dark, modern design system. Loaded after style.css / vendor CSS
   so these rules take over the visual layer while the underlying
   Bootstrap grid + AOS + Isotope + GLightbox JS keep working as-is.
   ================================================================= */

:root {
  /* Surfaces */
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --surface: #121924;
  --surface-2: #182130;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e9eef3;
  --text-muted: #97a4b2;
  --text-faint: #647082;

  /* Brand accent — inherited from the site's existing teal
     (already used across cert badges, buttons, links) */
  --accent: #34b7a7;
  --accent-bright: #5eead4;
  --accent-soft: rgba(52, 183, 167, 0.12);
  --accent-border: rgba(52, 183, 167, 0.35);

  /* Effects */
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px var(--accent-border), 0 8px 30px rgba(52, 183, 167, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* -----------------------------------------------------------------
   Base
   ----------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 15.5px;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Raleway", sans-serif;
  color: var(--text);
}

a {
  color: var(--accent);
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

::selection {
  background: var(--accent);
  color: #06110f;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Keyboard focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
.btn-about:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============ Legacy template base (style.css) ============ */
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

a {
  color: #34b7a7;
  text-decoration: none;
}

a:hover {
  color: #51cdbe;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

#main {
  margin-top: 50px;
}

@media (max-width: 992px) {
  #main {
    margin-top: 30px;
  }
}


/* ============ Preloader ============ */
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #34b7a7;
  border-top-color: #dcf5f2;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* -----------------------------------------------------------------
   Preloader
   ----------------------------------------------------------------- */

#preloader {
  background: var(--bg);
}

#preloader:before {
  border: 6px solid var(--accent);
  border-top-color: var(--surface-2);
}


/* ============ Back to top button ============ */
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #34b7a7;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #49cbbb;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}


/* -----------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------- */

.btn-about,
.btn-primary,
.btn-outline {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 50px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-transform: none;
  letter-spacing: 0.2px;
  width: auto;
  margin-top: 0;
  border: 1px solid transparent;
}

.btn-about,
.btn-primary {
  color: #06110f;
  background: var(--accent);
}

.btn-about:hover,
.btn-primary:hover {
  background: var(--accent-bright);
  color: #06110f;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(52, 183, 167, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-3px);
}

.back-to-top {
  background: var(--accent);
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background: var(--accent-bright);
}


/* ============ Header ============ */
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: #e9e8e6;
  box-shadow: 0px 0px 25px 0 rgba(0, 0, 0, 0.08);
  z-index: 997;
  padding: 15px 0;
}

#header .logo {
  font-size: 32px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#header .logo a {
  color: #222222;
}

#header .logo img {
  max-height: 40px;
}

@media (max-width: 992px) {
  #header .logo {
    font-size: 28px;
  }
}


/*--------------------------------------------------------------
# Header Social Links
--------------------------------------------------------------*/
.header-social-links {
  padding-right: 15px;
}

.header-social-links a {
  color: #6f6f6f;
  padding-left: 6px;
  display: inline-block;
  line-height: 0px;
  transition: 0.3s;
  font-size: 20px;
}

.header-social-links a:hover {
  color: #34b7a7;
}


/* ============ Navigation Menu ============ */
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  padding: 10px 0 10px 28px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #888888;
  white-space: nowrap;
  transition: 0.3s;
  position: relative;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar > ul > li > a:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #34b7a7;
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover > a:before,
.navbar .active:before {
  visibility: visible;
  width: 25px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #222222;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
  padding: 0;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 600;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: #34b7a7;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #222222;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  font-size: 15px;
  padding-right: 15px;
  color: #222222;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #34b7a7;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
  color: #34b7a7;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}


/* -----------------------------------------------------------------
   Header / Nav
   ----------------------------------------------------------------- */

#header {
  position: relative;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#header .container-fluid {
  padding-left: 5%;
  padding-right: 5%;
}

#header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
}

#header h1 a {
  color: var(--text);
  text-decoration: none;
}

#header h1 a .accent {
  color: var(--accent);
}

#navbar ul {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  #navbar ul {
    display: none;
  }
}

#navbar li {
  position: relative;
}

#navbar a,
#navbar a:focus {
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.25s var(--ease);
  position: relative;
}

#navbar a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

#navbar a:hover,
#navbar li:hover > a {
  color: var(--text);
}

#navbar a:hover::before {
  transform: scaleX(1);
}

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

#navbar a.active::before {
  transform: scaleX(1);
}

.header-social-links a {
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.header-social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.mobile-nav-toggle {
  color: var(--text) !important;
}

@media (max-width: 575px) {
  #header .container-fluid {
    padding-left: 4%;
    padding-right: 4%;
  }

  #header h1 {
    font-size: 17px;
  }

  .header-social-links {
    padding-right: 8px;
  }

  .header-social-links a {
    padding-left: 4px;
    font-size: 17px;
  }

  .header-social-links a img {
    width: 18px !important;
    height: 18px !important;
  }
}

.navbar-mobile {
  background: rgba(6, 9, 13, 0.96) !important;
}

.navbar-mobile ul {
  background-color: var(--surface) !important;
  border: 1px solid var(--border);
}

.navbar-mobile a,
.navbar-mobile a:focus {
  color: var(--text-muted) !important;
}

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

/* #navbar carries an ID selector, which otherwise out-specifies the
   .navbar-mobile panel rules above and stops the mobile dropdown from
   ever switching out of its desktop inline layout. */
#navbar.navbar-mobile ul {
  display: block !important;
  position: absolute !important;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
}

#navbar.navbar-mobile li {
  display: block;
}

#navbar.navbar-mobile a,
#navbar.navbar-mobile a:focus {
  font-size: 15px;
  padding: 10px 15px;
}


/* ============ Section titles / eyebrow ============ */
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg {
  background-color: #e7f8f6;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #34b7a7;
  bottom: 0;
  left: calc(50% - 25px);
}

.section-title p {
  margin-bottom: 0;
}


/* -----------------------------------------------------------------
   Eyebrow / Section titles
   ----------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  padding-bottom: 0;
}

.section-title h2::after {
  display: none;
}

.section-title h2::before {
  content: "// ";
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

.section-title p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
}

section {
  background: transparent;
}


/* ============ Global fixed background fx ============ */
/* -----------------------------------------------------------------
   Global background fx (fixed to viewport, shown behind every page)
   ----------------------------------------------------------------- */

/* Soft cyan glow patches — fixed to the viewport, sits behind everything */
.hero-bg-fx {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(600px circle at 18% 20%, rgba(52, 183, 167, 0.10), transparent 60%),
    radial-gradient(500px circle at 85% 75%, rgba(52, 183, 167, 0.06), transparent 60%),
    var(--bg);
}

/* Faint hexagonal grid overlay, fixed to the viewport, above the glow, below the canvas */
.hero-hex-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(30deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(150deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 64px 111px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 95%);
}

/* Canvas particle network — cyan nodes + connecting lines, drawn via JS.
   Fixed to the viewport so it shows behind every page's content. */
#particle-network {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============ Cards (shared) ============ */
/* -----------------------------------------------------------------
   Cards (shared)
   ----------------------------------------------------------------- */

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card-surface:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--accent-border);
}


/* ============ Footer ============ */
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #e9e8e6;
  padding: 30px 0;
  color: #222222;
  font-size: 14px;
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  font-size: 13px;
}

#footer .credits a {
  color: #34b7a7;
}

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */

#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 20px 26px;
  text-align: center;
}

#footer .footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

#footer .footer-brand span {
  color: var(--accent);
}

#footer .footer-tagline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 22px;
}

#footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 0;
  list-style: none;
}

#footer .footer-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

#footer .footer-links a:hover {
  color: var(--accent);
}

#footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

#footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

#footer .footer-social a:hover {
  color: #06110f;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

#footer .footer-copyright {
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}


/* ============ Responsive (global) ============ */
/* -----------------------------------------------------------------
   Responsive (global)
   ----------------------------------------------------------------- */

@media (max-width: 992px) {
  .section-title h2 {
    font-size: 26px;
  }
}

/* ============ Legacy/unused template sections (kept for safety) ============ */
/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/photo1.jpg") fixed center center;
  background-size: cover;
  padding: 80px 0;
}

.cta h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.cta p {
  color: #fff;
}

.cta .cta-btn {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 2px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.cta .cta-btn:hover {
  background: #34b7a7;
  border: 2px solid #34b7a7;
}

@media (max-width: 1024px) {
  .cta {
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  .cta .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}


/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .counters span {
  font-size: 48px;
  display: block;
  color: #34b7a7;
}

.facts .counters p {
  padding: 0;
  margin: 0 0 20px 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
}


/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #c8efea;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #34b7a7;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #34b7a7;
}


/*--------------------------------------------------------------
# Medium Articles — shared blog-card component
# Used on: index.html (home preview) and portfolio.html (Medium filter)
--------------------------------------------------------------*/
.medium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.medium-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.medium-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.medium-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.medium-card:hover .medium-card-img img {
  transform: scale(1.06);
}

.medium-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.medium-card-badge img {
  width: 12px;
  height: 12px;
  display: block;
}

.medium-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.medium-card-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.medium-card-body h4 {
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.medium-card-body p.medium-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.medium-card-links {
  margin-top: auto;
}

.medium-card-links a,
.medium-card-links span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.medium-card:hover .medium-card-links span,
.medium-card-links a:hover {
  color: var(--accent-bright);
  gap: 9px;
}

/* ---- Homepage "Latest from Medium" section ---- */
.medium-home {
  padding: 70px 20px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.medium-home .container {
  max-width: 1140px;
}

.medium-home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.medium-home-header .section-title {
  padding-bottom: 0;
  margin-bottom: 0;
  text-align: left;
}

.medium-home-header .section-title h2 {
  text-align: left;
}

.medium-home-header .section-title h2::after {
  left: 0;
  margin: 10px 0 0 0;
  transform: none;
}

.medium-home-header .section-title p {
  text-align: left;
  margin: 12px 0 0 0;
}

.medium-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.medium-home-cta:hover {
  color: var(--accent-bright);
  gap: 12px;
}

@media (max-width: 767px) {
  .medium-home-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.medium-view-all {
  text-align: center;
  margin-top: 30px;
}
