/*========== GOOGLE FONTS ==========*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3rem;

  /* ===== Softer, Beige-Centered Palette ===== */
  /* Accents */
  --first-color: #C67B91;            /* dusty rose (links, buttons, icons) */
  --first-color-alt: #B0687E;        /* hover/active */
  --first-color-lighter: #F4E7EC;    /* light tints, progress tracks */

  /* Dark surface (footer / project band) — keeps white text readable */
  --first-color-second: #4B2E3F;     /* deep plum */

  /* Neutrals for typography */
  --title-color: #2F2B2A;            /* warm charcoal for headings */
  --text-color: #4A4644;             /* body text */
  --text-color-light: #7A726F;       /* captions/meta */

  /* Surfaces */
  --input-color: #F3ECE3;            /* subtle beige for inputs */
  --body-color: #F8F4EF;             /* soft beige page bg */
  --container-color: #FFFFFF;        /* card background */

  /* Scrollbar */
  --scroll-bar-color: #EEE7DE;       /* sand */
  --scroll-thumb-color: #D9CFC1;     /* deeper sand */

  /* Typography & spacing (unchanged) */
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Depth tokens */
--elev-1: 0 4px 14px rgba(47,43,42,.10);
--elev-2: 0 10px 30px rgba(47,43,42,.14);
--elev-3: 0 18px 50px rgba(47,43,42,.18);
--ring-rose: 0 0 0 1px rgba(198,123,145,.26);
--ring-rose-strong: 0 0 0 1px rgba(198,123,145,.48);

/* Gradient accents */
--grad-rose: linear-gradient(135deg, #C67B91 0%, #B0687E 35%, #9A5D74 100%);
--grad-plum: linear-gradient(180deg, #4B2E3F 0%, #3E2333 100%);
--grad-soft: linear-gradient(180deg, rgba(244,231,236,.9), rgba(248,244,239,.9));

/* Subtle surface tint */
--surface-tint: rgba(198,123,145,.06);
}


@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  /* Deep, cozy dark mode that still matches the palette */
  --first-color: #D08AA1;            /* slightly brighter rose for dark mode */
  --first-color-alt: #BC738C;
  --first-color-lighter: #3A2831;    /* tint tracks on dark */

  --first-color-second: #331C27;     /* footer / band on dark */

  --title-color: #F4F2F1;            /* near-white */
  --text-color: #D6D1CD;             /* soft light text */
  --input-color: #201B19;            /* dark input fields */
  --body-color: #171312;             /* page bg */
  --container-color: #1E1918;        /* cards */
  --scroll-bar-color: #2A2422;
  --scroll-thumb-color: #3A3130;

  --elev-1: 0 8px 22px rgba(0,0,0,.35);
--elev-2: 0 16px 44px rgba(0,0,0,.45);
--elev-3: 0 28px 80px rgba(0,0,0,.55);
--ring-rose: 0 0 0 1px rgba(208,138,161,.35);
--ring-rose-strong: 0 0 0 1px rgba(208,138,161,.55);
--grad-rose: linear-gradient(135deg, #D08AA1 0%, #BC738C 40%, #A45E78 100%);
--grad-plum: linear-gradient(180deg, #331C27 0%, #26131C 100%);
--grad-soft: linear-gradient(180deg, rgba(32,27,25,.9), rgba(23,19,18,.9));
--surface-tint: rgba(208,138,161,.07);

}



/*========== Button Dark/Light ==========*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color);
}

/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(198,123,145,.08), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(176,104,126,.06), transparent 60%),
    var(--body-color);
}


h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(180deg, transparent 0%, var(--surface-tint) 100%);
  border-top: 1px solid rgba(0,0,0,.035);
}

/* divider line under section headings */
.section__title {
  position: relative;
}

.section__title::after {
  content:'';
  display:block;
  width:72px; height:2px;
  margin: .75rem auto 0;
  background: var(--grad-rose);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title, .section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-fixed);
  background: color-mix(in oklab, var(--body-color) 80%, white 20%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--elev-1);
}
.scroll-header {
  box-shadow: var(--elev-2);
}


/*==================== NAV ====================*/
.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo, .nav__toggle {
  transition: .3s;
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover {
  color: var(--first-color);
  transition: .3s;
}



.nav__toggle:hover {
  color: var(--first-color);
}



.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  transition: .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__link:hover {
  color: var(--first-color);
  transition: .3s;
}

.nav__icon {
  font-size: 1.2rem;
}
/* Make the mobile drawer sit above everything */
@media (max-width: 767px) {
  .nav__menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    top: auto;                 /* ensure it's a bottom sheet */
    z-index: var(--z-modal);   /* <-- key: above header/content */
    padding: 2rem 1.5rem 5rem; /* a bit more bottom padding */
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,.15);
    transition: bottom .3s ease; /* explicit prop */
  }

  /* keep toggle/close above the sheet edges for clean taps */
  .nav__toggle,
  .nav__close {
    z-index: var(--z-modal);
    position: relative;
  }

  /* optional: prevent background scrolling when menu is open */
  body.menu-open { overflow: hidden; }
}

/* already present, just making sure it's here */
.show-menu { bottom: 0; }

.nav__close:hover {
  color: var(--first-color-alt);
}

/* show menu */
.show-menu {
  bottom: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/*==================== HOME ====================*/
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

.home__social-icon:hover {
  color: var(--first-color-alt);
}

/* ===== Hero photo (right) with floating border ===== */

/* Keep it on the right in the hero grid (your HTML already orders it) */
.hero-photo.is-right { justify-self: end; }

/* Base container */
.hero-photo{
  --size: 320px;      /* change size here */
  --ring: 6px;        /* border thickness */
  position: relative;
  width: min(var(--size), 80vw);
  aspect-ratio: 1/1;
  border-radius: 50%;         /* circle; switch to 24px for rounded-square */
  overflow: hidden;
}

/* Animated border ring only (image stays still) */
.hero-photo::before{
  content: "";
  position: absolute; inset: 0;
  padding: var(--ring);
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--first-color) 0%,
    var(--first-color-alt) 18%,
    #9A5D74 32%,
    transparent 48%,
    transparent 62%,
    #9A5D74 78%,
    var(--first-color-alt) 90%,
    var(--first-color) 100%
  );
  /* Hollow out the middle to form a ring */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  animation: heroRingSpin 14s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: .95;
}

/* Optional: gentle inner glow so the ring feels “floating”, not loud */
.hero-photo::after{
  content:"";
  position:absolute; inset: 2px;
  border-radius: inherit;
  box-shadow: 0 10px 35px rgba(47,43,42,.14) inset;
  pointer-events:none;
  z-index:1;
}

/* The actual image (static) */
.hero-photo img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;  /* nudge to frame your face nicely */
  border-radius: inherit;
  z-index: 0;
}

/* Animation */
@keyframes heroRingSpin { to { transform: rotate(360deg); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-photo::before{ animation: none; }
}

/* Mobile: center when stacked */
@media (max-width: 767px){
  .hero-photo.is-right{ justify-self: center; margin-top: .75rem; }
}


.home__blob-img {
  width: 100%;
  height: auto;
  clip-path: circle(50% at center); /* makes your photo round */
}

/* Floating border animation */
@keyframes floatBorder {
  0% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.02);
  }
  50% {
    transform: translateY(0px) scale(1);
  }
  75% {
    transform: translateY(10px) scale(0.98);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}


.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*========== BUTTONS ==========*/
.button {
  display:inline-flex; align-items:center; gap:.5rem;
  padding: .9rem 1.1rem;
  border-radius: .6rem;
  background: var(--grad-rose);
  color:#fff; font-weight: var(--font-medium);
  box-shadow: var(--elev-1);
  border: 0;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  will-change: transform;
}

.button[type="submit"] {
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0px;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem;
  border-radius: .5rem;
  font-family: var(--body-font);
  font-weight: var(--font-medium);
}

.button:hover { box-shadow: var(--elev-2); filter: saturate(1.05); }
.button:active { transform: translateY(1px) scale(.995); }
.button:focus-visible { outline: none; box-shadow: var(--elev-2), var(--ring-rose-strong); }
.button--link { background: transparent; color: var(--first-color); box-shadow:none; }
.button--white { background: #fff; }

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

.button--white:hover {
  background-color: #FFF;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--small {
  padding: .75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt);
}

/*==================== ABOUT ====================*/
.about__img {
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
  margin-bottom: 50px;
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}
/* Optional: subtle emphasis while counting (remove if you don’t like it) */
[data-counter] {
  display: inline-block;
  transition: transform .3s ease;
}
[data-counter][data-counted="true"] {
  transform: none;
}

.about__info-name {
  font-size: var(--smaller-font-size);
}

.about__info-title, .about__info-name {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

.home__donlinks {
  margin-top: var(--mb-2);
}

.bmc__logo {
  margin-top: var(--mb-1);
  margin-right: var(--mb-1);
  height: 35px;
  width: auto;
}

/*==================== SKILLS ====================*/
.skills__content {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Header row */
.skills__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.skills__header:hover {
  color: var(--first-color);
}
/* Arrow */
.skills__arrow {
  font-size: 1.25rem;
  color: var(--text-color-light);
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills__header:hover .skills__arrow {
  color: var(--first-color);
}

/* Rotate arrow when open */
.skills__content.skills__open .skills__arrow {
  transform: rotate(180deg);
}

/* Dropdown list */
.skills__list {
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: all 0.35s ease;
}

/* Show content when open */
.skills__content.skills__open .skills__list {
  max-height: 500px; /* big enough for content */
  opacity: 1;
  transform: translateY(0);
}

/* Bullets */
.skills__bullets li {
  margin: .4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-color);
}

.skills__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
}

.skills__icon, .skills__arrow {
  font-size: 2rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
}

.skills__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.skills__arrow {
  margin-left: auto;
  transition: .4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar, .skills__percentage {
  height: 5px;
  border-radius: .25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 85%;
}

.skills__js {
  width: 75%;
}

.skills__react {
  width: 85%;
}

.skills__javas {
  width: 75%;
}

.skills__node {
  width: 80%;
}

.skills__firebase {
  width: 75%;
}

.skills__pythons {
  width: 95%;
}

.skills__frameworks {
  width: 90%;
}

.skills__cv {
  width: 95%;
}

.skills__nlp {
  width: 95%;
}

.skills__ap {
  width: 90%;
}

.skills__ps {
  width: 90%;
}

.skills__dav {
  width: 85%;
}

.skills__python {
  width: 95%;
}

.skills__cpp {
  width: 90%;
}

.skills__java {
  width: 90%;
}

.skills__sql {
  width: 95%;
}

.skills__gcp {
  width: 85%;
}

.skills__aws {
  width: 85%;
}

.skills__gpu {
  width: 90%;
}

.skills__pt {
  width: 72%;
}

.skills__git {
  width: 90%;
}

.skills__linux {
  width: 90%;
}

.skills__sd {
  width: 85%;
}

.skills__lead {
  width: 95%;
}

.skills__tm {
  width: 98%;
}

.skills__com {
  width: 90%;
}

.skills__close .skills__list {
  height: 0px;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}
/*==================== Skills ====================*/
/* ===== Skills: force 2-column layout (robust override) ===== */

/* Grid container: responsive 2 cols -> 1 col on small screens */
.skills__container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* Kill any previous per-card column spans */
.skillcard {
  grid-column: auto !important;
  width: 100% !important;
}

/* Mobile: stack */
@media (max-width: 720px) {
  .skills__container {
    grid-template-columns: 1fr !important;
  }
}

/* (Optional) If your site has a max-width container class that squeezes things,
   ensure the skills container can actually be wide enough for 2 columns. */
.skills__container.container {
  max-width: 1100px !important; /* adjust to your site’s content width */
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Generic elevated card */
.card {
  background: var(--container-color);
  border-radius: 16px;
  box-shadow: var(--elev-1);
  border: 1px solid rgba(0,0,0,.04);
  position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--elev-2); }

/* Keep your theme styles (colors / hover / glow) intact */
.skillcard {
  position: relative;
  background: var(--container-color);
  border: 1px solid var(--scroll-bar-color);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.skillcard:hover {
  transform: translateY(-4px);
  border-color: var(--first-color);
  box-shadow: 0 10px 30px rgba(47,43,42,.12);
}
.skillcard__glow {
  position: absolute; inset: -40%;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(198,123,145,.12), transparent 40%);
  pointer-events: none; filter: blur(18px); z-index: 0;
}
.skillcard__head { display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; position:relative; z-index:1; }
.skillcard__icon { font-size:1.25rem; color: var(--first-color); }
.skillcard__title { font-size:1.02rem; margin:0; color: var(--title-color); letter-spacing:.2px; }
.skillcard__desc { color: var(--text-color); font-size:.92rem; margin:.1rem 0 .6rem; position:relative; z-index:1; }
.skillcard__chips { display:flex; flex-wrap:wrap; gap:.35rem; position:relative; z-index:1; }
.skillcard__chips span {
  font-size:.8rem; padding:.28rem .55rem;
  border:1px solid var(--scroll-bar-color); border-radius:999px;
  background: var(--first-color-lighter); color: var(--title-color);
}
.skillcard__meta { margin-top:.7rem; font-size:.8rem; color: var(--text-color-light); position:relative; z-index:1; }

/* Ticker stays the same width as the cards grid */
.skills__ticker {
  overflow: hidden; border: 1px solid var(--scroll-bar-color); border-radius: 12px;
  margin: 1rem auto 1.5rem; max-width: 1100px; /* aligns with .skills__container.container */
  background: linear-gradient(90deg, var(--first-color-lighter), transparent);
}
.skills__ticker-track {
  display:flex; gap:2rem; padding:.6rem 1rem; white-space:nowrap; animation: ticker 26s linear infinite;
}
.skills__ticker span { color: var(--text-color); opacity:.9; font-size:.9rem; letter-spacing:.3px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }




/*==================== QUALIFICATION ====================*/
.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2);
}

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
}

.qualification__button:hover {
  color: var(--first-color);
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.qualification__calendar {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px);
}

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: block;
}

.qualification__button.qualification__active {
  color: var(--first-color);
}

/*==================== SERVICES ====================*/
.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem .5rem 1.25rem 1.5rem;
  border-radius: .25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: .3s;
  overflow: hidden;
}

.services__content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.services__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: .5rem;
}

.services__modal-services {
  row-gap: 1rem;
}

.services__modal-service {
  display: flex;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: var(--mb-0-25);
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}

/*==================== PORTFOLIO ====================*/
.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 265px;
  border-radius: .5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -.5rem;
}

.swiper-button-next {
  right: -.5rem;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*==================== PROJECT IN MIND ====================*/
.project {
  text-align: center;
}

.project__bg {
  background-color: var(--first-color-second);
  padding-top: 3rem;
}

.project__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}

.project__description {
  margin-bottom: var(--mb-1-5);
}

.project__title, .project__description {
  color: #FFF;
}

.project__img {
  width: 232px;
  justify-self: center;
}

/*==================== TESTIMONIAL ====================*/
.testimonial__data, .testimonial__header {
  display: flex;
}

.testimonial__data {
  justify-content: space-between;
  margin-bottom: var(--mb-1);
}

.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--mb-0-75);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.testimonial__client {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.testimonial__description {
  margin-bottom: var(--mb-2-5);
}

.testimonial__icon-star {
  color: var(--first-color);
}

.github-stars {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #dcdada;
  display: flex;
}

.github-stars .uil-star {
  margin-right: 10px;
  color: gold;
}

.swiper-container .swiper-pagination-testimonial {
  bottom: 0;
}

/*==================== CONTACT ME ====================*/
/* Contact Section */
.contact__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  margin-top: 1.5rem;
}

.contact__card {
  background: var(--container-color);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--elev-1);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(0,0,0,.04);
  width: 100%;
  max-width: 240px;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-2);
}

.contact__card-icon {
  font-size: 1.8rem;
  color: var(--first-color);
  margin-bottom: .5rem;
}

.contact__card h3 {
  margin-bottom: .25rem;
  font-size: 1rem;
  color: var(--title-color);
}

.contact__card p,
.contact__card a {
  font-size: .85rem;
  color: var(--text-color);
  text-decoration: none;
}

.contact__card a:hover {
  color: var(--first-color);
}


/*==================== Blog =====================*/
.blog {
  text-align: center;
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__bg {
  background: var(--grad-plum);
  padding: 2.5rem 0 3.25rem;
  border-top: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 12px 40px rgba(0,0,0,.25);
}


.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
  font-size: var(--small-font-size);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__link:hover {
  color: var(--first-color-lighter);
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

.footer__social:hover {
  color: var(--first-color-lighter);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: rgb(255, 255, 255, 0.5);
  margin-top: var(--mb-3);
}

.footer__title, .footer__subtitle, .footer__link, .footer__social {
  color: #FFF;
}

/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #FFF;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: .60rem;
  border-radius: .5rem;
  background-color: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .nav__menu {
    padding: 2rem .25rem 4rem;
  }
  .nav__list {
    column-gap: 0;
  }
  .home__content {
    grid-template-columns: .25fr 3fr;
  }
  .home__blob {
    width: 180px;
  }
  .skills__title {
    font-size: var(--normal-font-size);
  }
  .qualification__data {
    gap: .5rem;
  }
  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }
  .services__content {
    padding-right: 3.5rem;
  }
  .services__modal {
    padding: 0 .5rem;
  }
  .project__img {
    width: 300px;
  }
  .testimonial__data, .testimonial__header {
    flex-direction: column;
    align-items: center;
  }
  .testimonial__img {
    margin-right: 0;
    margin-bottom: var(--mb-0-25);
  }
  .testimonial__data, .testimonial__description {
    text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }
  .home__data {
    grid-column: initial;
  }
  .home__img {
    order: 1;
    justify-self: center;
  }
  .about__container,
  .skills__container,
  .portfolio__content,
  .project__container,
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .qualification__sections {
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  body {
    margin: 0;
  }
  .section {
    padding: 6rem 0 2rem;
  }
  .section__subtitle {
    margin-bottom: 4rem;
  }
  .header {
    top: 0;
    bottom: initial;
  }
  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }
  .nav__icon, .nav__close, .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    column-gap: 2rem;
  }
  .nav__menu {
    margin-left: auto;
  }
  .change-theme {
    margin: 0;
  }
  .home__container {
    row-gap: 5rem;
  }
  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }
  .home__blob {
    width: 270px;
  }
  .home__scroll {
    display: block;
  }
  .home__scroll-button {
    margin-left: 3rem;
  }
  .about__container {
    column-gap: 5rem;
  }
  .about__img {
    width: 350px;
  }
  .about__description {
    text-align: initial;
  }
  .about__info {
    justify-content: space-between;
  }
  .about__buttons {
    justify-content: initial;
  }
  .qualification__tabs {
    justify-content: center;
  }
  .qualification__button {
    margin: 0 var(--mb-1);
  }
  .qualification__sections {
    grid-template-columns: .5fr;
  }
  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }
  .services__icon {
    font-size: 2rem;
  }
  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }
  .services__modal-content {
    width: 450px;
  }
  .portfolio__img {
    width: 320px;
  }
  .portfolio__content {
    align-items: center;
  }
  .project {
    text-align: initial;
  }
  .project__bg {
    background: none;
  }
  .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 2rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }
  .project__data {
    padding-top: .8rem;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__bg {
    padding: 3rem 0 3.5rem;
  }
  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }
  .footer__socials {
    justify-self: flex-end;
  }
  .footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }
  .home__blob {
    width: 320px;
  }
  .home__social {
    transform: translateX(-6rem);
  }
  .services__container {
    grid-template-columns: repeat(3, 238px);
  }
  .portfolio__content {
    column-gap: 5rem;
  }
  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }
  .swiper-button-prev {
    left: -3.5rem;
  }
  .swiper-button-next {
    right: -3.5rem;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -4.5rem;
  }
  .contact__form {
    width: 460px;
  }
  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Timeline ===== */
.timeline__container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.timeline__line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--first-color);
  opacity: .25;
}

/* Items themselves don't animate; their CONTENT does */
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
/* Journey tab visibility */
.journey__content[data-content] { display: none; }
.journey__content.journey__active[data-content] { display: block; }


/* ---- Animate the panel (.timeline__content) ---- */
/* Mobile/base: fade+slide UP */
.timeline__content {
  background: var(--body-color);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .75rem;
  padding: 1rem 1.25rem;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.timeline__item.is-visible .timeline__content {
  opacity: 1;
  transform: translateY(0);
}

/* Alt card subtle style */
.timeline__item--alt .timeline__content {
  background: var(--container-color);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Dot */
.timeline__dot {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--body-color);
  border: 2px solid var(--first-color);
  display: grid; place-items: center;
  z-index: 1;
}
.timeline__dot i { font-size: 1.25rem; color: var(--first-color); }

/* Text */
.timeline__date { font-size: .85rem; color: var(--text-color); }
.timeline__title { margin: .15rem 0 .35rem 0; font-size: 1.05rem; color: var(--title-color); }
.timeline__desc { font-size: .92rem; color: var(--text-color); line-height: 1.5; }

/* Desktop: slide IN FROM SIDES toward the center line */
@media screen and (min-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr 56px 1fr;
    align-items: start;
  }
  .timeline__line { left: 50%; margin-left: -1px; }
  .timeline__item .timeline__dot { grid-column: 2; margin: 0 auto; }
  .timeline__item .timeline__content { grid-column: 3; }

  /* default side (right of line): start off to the right */
  .timeline__item .timeline__content {
    opacity: 0;
    transform: translateX(48px);
  }
  /* alt side (left of line): place content left and start off to the LEFT */
  .timeline__item--alt .timeline__content {
    grid-column: 1;
    transform: translateX(-48px);
  }
  /* when visible: settle at the line */
  .timeline__item.is-visible .timeline__content {
  transform: translateY(0) scale(1.002);
  box-shadow: var(--elev-2);
}

  /* dot pop-in (optional) */
  .timeline__dot {
    transform: scale(.9);
    transition: transform .5s ease;
  }
  .timeline__item.is-visible .timeline__dot { transform: scale(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline__content, .timeline__dot { transition: none !important; }
  .timeline__content { opacity: 1 !important; transform: none !important; }
  .timeline__dot { transform: none !important; }
}
/*==================== LEADERSHIP ====================*/
/* ===== Leadership — polished card with rose accent, good dark mode ===== */

/* Contain the card nicely inside your container */
#leadership .container {
  max-width: 900px;  /* optional: match your site width */
  margin-inline: auto;
}

/* Card */
.leadership__card{
  position: relative;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1rem;
  align-items:start;
  padding:1.25rem 1.25rem 1.15rem;
  border-radius:1rem;
  border:1px solid var(--scroll-bar-color);
  background:
    linear-gradient(180deg, var(--container-color), rgba(0,0,0,0) 140%),
    radial-gradient(120% 100% at 110% -10%, rgba(198,123,145,.10), transparent 60%);
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}

/* subtle rose accent bar */
.leadership__card::before{
  content:"";
  position:absolute; left:0; right:0; top:0; height:4px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  opacity:.9;
}

/* hover lift */
@media (hover:hover) {
  .leadership__card:hover{
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--first-color) 28%, var(--scroll-bar-color));
    box-shadow:0 16px 44px rgba(0,0,0,.12);
  }
}

/* Logo with soft ring */
.leadership__logo{
  width:64px; height:64px; object-fit:contain;
  border-radius:12px;
  background:
    radial-gradient(70% 70% at 50% 35%, var(--first-color-lighter), transparent 70%),
    var(--body-color);
  box-shadow:
    inset 0 0 0 1px var(--scroll-bar-color),
    0 4px 12px rgba(0,0,0,.06);
}

/* Text hierarchy */
.leadership__title{
  font-size:1.12rem; line-height:1.25;
  margin:0 0 .25rem;
  letter-spacing:.2px;
  color: var(--title-color);
}
.leadership__meta{
  margin:0 0 .6rem;
  color: var(--text-color-light);
  font-size:.92rem;
}

/* Nicer bullets */
.leadership__list{
  margin:.35rem 0 .9rem 0;
  padding-left:0;
  list-style:none;
}
.leadership__list li{
  position:relative;
  margin:.35rem 0;
  padding-left:1.5rem;
}
.leadership__list li::before{
  content:"";
  position:absolute; left:0; top:.42rem;
  width:.85rem; height:.85rem; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff 10%, var(--first-color) 40%, var(--first-color-alt) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

/* Tags */
.leadership__tags .tag{
  display:inline-block; line-height:1;
  font-size:.72rem;
  padding:.32rem .55rem;
  border-radius:9999px;
  background: color-mix(in srgb, var(--first-color-lighter) 85%, #fff 15%);
  border: 1px solid color-mix(in srgb, var(--first-color) 25%, transparent);
  color: color-mix(in srgb, var(--first-color) 88%, #000 12%);
  margin-right:.4rem; margin-top:.25rem;
}



/* ===== Dark theme tuning: keep it cozy, not murky ===== */
body.dark-theme .leadership__card{
  background:
    linear-gradient(180deg, var(--container-color), rgba(0,0,0,0) 140%),
    radial-gradient(120% 100% at 110% -10%, rgba(208,138,161,.12), transparent 60%);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
body.dark-theme .leadership__card::before{ opacity:.95; }

body.dark-theme .leadership__logo{
  background:
    radial-gradient(70% 70% at 50% 35%, rgba(208,138,161,.14), transparent 70%),
    var(--body-color);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 4px 12px rgba(0,0,0,.3);
}

body.dark-theme .leadership__list li::before{
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
body.dark-theme .leadership__tags .tag{
  background: color-mix(in srgb, var(--first-color-lighter) 25%, var(--container-color) 75%);
  border-color: rgba(255,255,255,.06);
  color: var(--title-color);
}
body.dark-theme #leadership .section__subtitle{
  background: color-mix(in srgb, var(--first-color-lighter) 15%, var(--container-color) 85%);
  border-color: rgba(255,255,255,.06);
}
