/* GOOGLE FONTS */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* VARIABLES CSS */

:root {
  --header-height: 3rem;
  /* Colors */
  /* Change favorite color */
  --hue-color: 217;
  /*Purple 250 - Green 142 - Blue 230 - Pink 340*/
  /* HSL color mode */
  --first-color: #2D68C4;
  --first-color-second: #2D68C4;
  --first-color-alt: #1F56AD;
  --first-color-lighter: #BED3F4;
  --title-color: #0B1220;
  --text-color: rgba(11, 18, 32, 0.78);
  --text-color-light: rgba(11, 18, 32, 0.56);
  --input-color: rgba(45, 104, 196, 0.06);
  --body-color: #F6F8FF;
  --surface-1: rgba(246, 248, 255, 0.90);
  --container-color: rgba(10, 18, 36, 0.92);
  --scroll-bar-color: rgba(234, 242, 255, 0.10);
  --scroll-thumb-color: rgba(45, 104, 196, 0.35);

  /* Font and typography */
  --body-font: "Poppins", sans-serif;
  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px .. */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  /* Font weight */
  --font-medium: 500;
  --font-semi-bold: 600;
  /* Margines */
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px .. */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 100;
}

/* Font size for large devices */


/* Single-column overrides when images are removed */
.story__container--single,
.work__container--single {
  grid-template-columns: 1fr !important;
}

.story__container--single {
  row-gap: 1.5rem;
}

.work__container--single .work__data {
  text-align: center;
}

.work__container--single .work__data .btn {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

@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: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* Variables Dark theme */

html.theme-dark {
  /* HSL color mode */
  --first-color-second: #071226;
  --title-color: #EAF2FF;
  --text-color: rgba(234, 242, 255, 0.72);
  --input-color: rgba(45, 104, 196, 0.08);
  --body-color: #010713;
  --surface-1: #000611;
  --container-color: rgba(10, 18, 36, 0.92);
  --scroll-bar-color: rgba(234, 242, 255, 0.10);
  --scroll-thumb-color: rgba(45, 104, 196, 0.35);
  --first-color-lighter: rgba(45, 104, 196, 0.24);
  --text-color-light: rgba(234, 242, 255, 0.58);
  --chip-bg: rgba(45, 104, 196, 0.12);
  --chip-border: rgba(45, 104, 196, 0.22);
}

/* Button Dark/Light */

.topbar__btns {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.theme-toggle {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--first-color);
}

/* BASE */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: calc(var(--header-height) + env(safe-area-inset-top)) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-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 */

.u-no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.slice {
  padding: 2rem 0 4rem;
}

.slice__title {
  font-size: var(--h1-font-size);
}

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

.slice__title,
.slice__subtitle {
  text-align: center;
}

/* LAYOUT */

.wrap {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--surface-1);
  padding-top: env(safe-area-inset-top);
}

/* NAV */

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

.topbar__logo,
.topbar__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.topbar__toggle {
  font-size: 1.1rem;
  cursor: pointer;
}

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

@media screen and (max-width: 767px) {
  .topbar {
    gap: 0.75rem;
  }

  .topbar__menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--body-color);
    padding: calc(var(--header-height) + env(safe-area-inset-top) + 1.25rem) 1.25rem
      calc(1.5rem + env(safe-area-inset-bottom));
    z-index: 10050;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.18s ease;
  }

  .topbar__close {
    top: calc(env(safe-area-inset-top) + 0.9rem);
    bottom: initial;
    right: 1.25rem;
  }

  .topbar__logo{

  display: block;
  flex: 1 1 auto;
  min-width: 0;
      max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .topbar__menu .topbar__list{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .topbar__menu .topbar__link{
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(45, 104, 196, 0.08);
    border: 1px solid rgba(45, 104, 196, 0.14);
  }

  .topbar__menu .topbar__icon{
    font-size: 1.15rem;
  }
}

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

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

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

.topbar__icon {
  font-size: 1.2rem;
}

.topbar__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

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

/* show menu */

.topbar__menu.menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 767px) {
  body.nav-open {
    overflow: hidden;
  }
}

/* Active link */

.is-active {
  color: var(--first-color);
}

/* Change background header */

.is-scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* LOADER */

#page-loader {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: var(--first-color);
  z-index: 101;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 20vh;
  opacity: 0.8;
}
.loader span {
  display: inline-block;
  animation: pulse 0.4s alternate infinite ease-in-out;
}
.loader span:nth-child(odd) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  to {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* HOME */

.hero__container {
  gap: 1rem;
}

.hero__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 1.5rem;
  align-items: center;
}

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

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

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

.hero__blob {
  width: 200px;
  fill: var(--first-color);
}


.hero__blob-outline {
    display: none;
fill: none;
  stroke: rgba(45, 104, 196, 0.85);
  stroke-width: 6px;
  filter: drop-shadow(0 10px 24px rgba(45, 104, 196, 0.18)) drop-shadow(0 0 18px rgba(45, 104, 196, 0.28));
}

html.theme-dark .hero__blob-outline {
  stroke: rgba(45, 104, 196, 0.95);
  --first-color-lighter: rgba(45, 104, 196, 0.24);
  --text-color-light: rgba(234, 242, 255, 0.58);
  --chip-bg: rgba(45, 104, 196, 0.12);
  --chip-border: rgba(45, 104, 196, 0.22);
}

.hero__blob-img {
  width: 255px;
}

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

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

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

.hero__description {
  margin-bottom: var(--mb-2);
  max-width: 64ch;
}

/* Home call-to-action buttons (View Projects / View My CV) */
.hero__cta {
  display: flex;
  /* Keep the two CTA buttons on one row on normal screens */
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--mb-1);
}

/* Make the hero CTA buttons a bit smaller so they fit nicely side-by-side */
.hero__cta .btn {
  padding: 0.65rem 0.9rem;
  font-size: var(--small-font-size);
}

/* On very small screens, allow wrapping so it does not overflow */
@media screen and (max-width: 380px) {
  .hero__cta {
    flex-wrap: wrap;
  }
}

.hero__scroll {
  display: none;
}

.hero__scroll-button {
  color: var(--first-color);
  transition: 0.3s;
}

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

.hero__scroll-mouse {
  /* Custom animated scroll indicator (Trushank-style), attached to the existing <i> */
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;

  /* Slightly smaller */
  width: 1.35rem;
  height: 2.2rem;

  /* Primary blue */
  border: 2px solid rgba(45, 104, 196, 0.55);
  border-radius: 999px;

  /* Add space from the "Scroll Down" text */
  margin-right: 0.65rem;

  /* Hide the icon glyph so only the custom indicator shows */
  font-size: 0;
  line-height: 0;

  transform: translateY(0);
  animation: homeScrollFloat 1.6s ease-in-out infinite;
}

.hero__scroll-mouse::before {
  content: "";
  width: 0.22rem;
  height: 0.66rem;
  background: rgba(45, 104, 196, 0.95);
  border-radius: 999px;
  margin-top: 0.45rem;
  animation: homeScrollDot 1.6s ease-in-out infinite;
}

@keyframes homeScrollFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@keyframes homeScrollDot {
  0% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(5px); opacity: 0.75; }
  100% { transform: translateY(0); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-mouse,
  .hero__scroll-mouse::before {
    animation: none !important;
  }
}




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

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

/* BUTTONS */

.btn {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;

}

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

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

.btn--white {
  background-color: #fff;
  color: var(--first-color);
}

.btn--white:hover {
  background-color: #fff;
}

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

.btn--small {
  padding: 0.75rem 1rem;
}

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

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

/* ABOUT */

.story__img {
  width: 200px;
  border-radius: 0.5rem;
  justify-self: center;
  align-self: center;
}

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

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

.story__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

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

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

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

/* SKILLS */

/* Slightly more compact skills section */

/* SKILLS */
.stack.slice {
  padding: 2rem 0 4rem;
}

/* Grid */
.stack__container {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 576px) {
  .stack__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media screen and (min-width: 768px) {
  .stack__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

/* Card */
.stack__container-box {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;

  padding: 0.85rem 0.75rem;
  border-radius: 1.15rem;

  /* Sharp, modern surface */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(45, 104, 196, 0.16);

  transition: transform 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1)),
    background-color 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.stack__container-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* Soft blue bloom that matches the theme */
  background: radial-gradient(
    80% 80% at 35% 25%,
    rgba(45, 104, 196, 0.20),
    rgba(45, 104, 196, 0.04) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.stack__container-box:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 104, 196, 0.34);
  background: rgba(255, 255, 255, 0.03);
}

.stack__container-box:hover::before {
  opacity: 1;
}

/* Icon tile (blue glass + rotating accent ring on hover) */
.stack__icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;

  background: linear-gradient(145deg, rgba(45, 104, 196, 0.18), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(45, 104, 196, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

/* Inner surface */
.stack__icon-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.92),
    rgba(45, 104, 196, 0.10) 70%
  );
}

/* Rotating ring (only visible on hover) */
.stack__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  background: conic-gradient(
    from 180deg,
    rgba(45, 104, 196, 0.00),
    rgba(45, 104, 196, 0.55),
    rgba(45, 104, 196, 0.00)
  );
  opacity: 0;
  transform: rotate(0deg);
  filter: blur(0.2px);
}

.stack__container-box:hover .stack__icon-wrap::before {
  opacity: 1;
  animation: skills-ring 1150ms linear infinite;
}

@keyframes skills-ring {
  to {
    transform: rotate(360deg);
  }
}

/* Pop the icon tile once on hover (crisp + premium) */
.stack__container-box:hover .stack__icon-wrap {
  animation: skills-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes skills-pop {
  0% {
    transform: translateZ(0) scale(1);
  }
  45% {
    transform: translateZ(0) scale(1.06);
  }
  100% {
    transform: translateZ(0) scale(1);
  }
}

/* Actual logo */
.stack__container-img {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;

  transition: transform 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1)),
    filter 260ms var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.stack__container-box:hover .stack__container-img {
  transform: scale(1.16) rotate(-2deg);
  filter: drop-shadow(0 8px 18px rgba(45, 104, 196, 0.30));
}

.stack__container-name {
  font-size: 0.78rem;
  color: var(--title-color);
  font-weight: 500;
  text-align: center;
}

/* Keyboard focus */
.stack__container-box:focus-within {
  border-color: rgba(45, 104, 196, 0.50);
}

/* Reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  .stack__container-box,
  .stack__container-box::before,
  .stack__icon-wrap,
  .stack__container-img {
    transition: none !important;
  }

  .stack__container-box:hover,
  .stack__container-box:hover .stack__container-img {
    transform: none !important;
    filter: none !important;
  }

  .stack__container-box:hover .stack__icon-wrap,
  .stack__container-box:hover .stack__icon-wrap::before {
    animation: none !important;
  }
}


/* QUALIFICATION */

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

.timeline__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

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

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

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

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

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

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

.timeline__button.timeline__active {
  color: var(--first-color);
}

/* SERVICES */

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

.offerings__content {
  position: relative;
  background-color: var(--container-color);
  padding: 2.75rem 0.5rem 1.1rem 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

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

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

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

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

.offerings__button:hover .btn__icon {
  transform: translateX(0.25rem);
}

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

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

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

.offerings__modal-service {
  display: flex;
}

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

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

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

/* Active Modal */

.active-modal {
  opacity: 1;
  visibility: visible;
}

.disable-scroll {
  overflow: hidden;
}

/* PORTFOLIO */

.case__container {
  overflow: initial;
}

.case__content {
  padding: 0 1.5rem;
}

.case__img {
  width: 265px;
  border-radius: 0.5rem;
  justify-self: center;
}

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

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

.case__button:hover .btn__icon {
  transform: translateX(0.25rem);
}



/* Extra layout for Projects and Blog links */
.case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.case__link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--first-color);
  border: 1px solid var(--first-color-lighter);
}

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

.case__more {
  margin-top: 2rem;
  text-align: center;
}

.article__paragraph {
  margin-bottom: var(--mb-1);
  color: var(--text-color);
}

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

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

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

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

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

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

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}
/* PROJECT IN MIND */

.work {
  text-align: center;
}
.work__bg {
  background-color: var(--first-color-second);
  padding-top: 3rem;
}
.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}
.work__description {
  margin-bottom: var(--mb-1-5);
}
.work__title,
.work__description {
  color: #fff;
}
.work__img {
  width: 232px;
  justify-self: center;
}

/* TESTIMONIAL */

/* CONTACT ME */

.reach__container {
  row-gap: 3rem;
}
.reach__information {
  display: flex;
  margin-bottom: var(--mb-2);
}
.reach__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}
.reach__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}
.reach__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.reach__content {
  background-color: var(--input-color);
  border: none;
  box-shadow: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}
.reach__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}
.reach__input {
  width: 100%;
  background-color: transparent;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
}

/* FOOTER */

.site-footer {
  padding-top: 2rem;
}
.site-footer__container {
  row-gap: 3.5rem;
}
.site-footer__bg {
  background-color: var(--surface-1);
  padding: 2rem 0 3rem;
}
.case__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}
.case__subtitle {
  font-size: var(--small-font-size);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
.site-footer__link:hover {
  color: var(--first-color-lighter);
}
.site-footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}
.site-footer__social:hover {
  color: var(--first-color-lighter);
}

.site-footer__divider{
  width: min(920px, 92%);
  height: 1px;
  margin: 2.25rem auto 0;
  background: rgba(255,255,255,0.16);
}

html:not(.theme-dark) .site-footer__divider{
  background: rgba(0,0,0,0.10);
}
.site-footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}
.site-footer__title,
.site-footer__subtitle,
.site-footer__link,
.site-footer__social {
  color: var(--title-color);
}

/* SCROLL UP */

.to-top {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: 0.9;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  z-index: var(--z-tooltip);
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.to-top:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}
.to-top__icon {
  font-size: 1.25rem;
  color: #fff;
}

/* Show scroll */

.is-visible {
  bottom: 5rem;
}

/* SCROLL BAR */

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/* MEDIA QUERIES */

/* For small devices */



/* QUALIFICATION: split columns */
.timeline__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: var(--mb-2);
}

@media screen and (max-width: 768px){
  .timeline__grid{
    grid-template-columns: 1fr;
  }
}

.timeline__col{
  position: relative;
  padding: 1.25rem 1.15rem;
  border-radius: 1.5rem;
  background: rgba(10,18,36,0.68);
  border: 1px solid rgba(45, 104, 196, 0.18);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

html:not(.theme-dark) .timeline__col{
  background: rgba(255,255,255,0.92);
}

.timeline__heading{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--h3-font-size);
  margin-bottom: 0.9rem;
}

.timeline__heading i{
  color: var(--first-color);
}

.qual__list{
  position: relative;
  padding-left: 1.15rem;
}

.qual__list::before{
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(45, 104, 196, 0.28);
}

.qual__item{
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding: 0.55rem 0;
}

.qual__dot{
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(45, 104, 196, 0.95);
  box-shadow: 0 0 0 4px rgba(45, 104, 196, 0.18);
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.qual__title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0;
  line-height: 1.25;
}

.qual__subtitle{
  margin-top: 0.15rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.45;
}

.qual__date{
  margin-top: 0.3rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media screen and (max-width: 350px) {
  .hero__blob {
    width: 190px;
  }

  .loader {
    font-size: 11vh;
  }
  .wrap {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .topbar__menu {
    padding: 1.5rem 0.75rem 1.75rem;
  }
  .topbar__list {
    column-gap: 0;
  }
  .hero__content {
    grid-template-columns: 0.25fr 3fr;
  }
  .timeline__data {
    gap: 0.5rem;
  }
  .offerings__container {
    grid-template-columns: max-content;
    justify-content: center;
  }
  .offerings__content {
    padding-right: 3.5rem;
  }
  .offerings__modal {
    padding: 0 0.5rem;
  }
  .work__img {
    width: 200px;
  }
}

@media screen and (min-width: 351px) {
  .loader {
    font-size: 13vh;
  }
}

/* For medium devices */

@media screen and (min-width: 568px) {
  .loader {
    font-size: 14vh;
  }
  .hero__content {
    grid-template-columns: max-content 1fr 1fr;
  }
  .hero__data {
    grid-column: initial;
  }
  .hero__img {
    order: 1;
    justify-self: end;
  }
  .story__container,
  .work__container,
  .case__content,
  .reach__container,
  .site-footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline__sections {
    display: grid;
    grid-template-columns: 0.6fr;
    justify-content: center;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .loader {
    font-size: 16vh;
  }
  .wrap {
    margin-left: auto;
    margin-right: auto;
  }
  /* Header is fixed on desktop as well, so keep a top offset for content.
     Nav height on desktop is: --header-height + 1.5rem */
  body {
    /* +0.75rem gives a small visual gap below the header */
    margin: calc(var(--header-height) + 1.5rem + 0.75rem + env(safe-area-inset-top)) 0 0 0;
  }
  .slice {
    padding: 6rem 0 2rem;
  }
  .stack.slice {
    padding: 6rem 0 2rem;
  }
  .slice__subtitle {
    margin-bottom: 4rem;
  }
  .site-header {
    top: 0;
    bottom: initial;
  }
  .site-header,
  .page,
  .site-footer__container {
    padding: 0 1rem;
  }
  .topbar {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }
  .topbar__icon,
  .topbar__close,
  .topbar__toggle {
    display: none;
  }
  .topbar__list {
    display: flex;
    column-gap: 2rem;
  }
  .topbar__menu {
    margin-left: auto;
  }
  .theme-toggle {
    margin: 0;
  }

  /* Reduce the vertical gap between header and the hero content */
  .hero.slice {
    padding-top: 3.75rem;
    padding-bottom: 2.5rem;
  }

  .hero__container {
    row-gap: 2.75rem;
  }
  .hero__container.wrap { max-width: 980px; }
  .hero__content {
    padding-top: 1.75rem;
    column-gap: 2rem;
  }
  .hero__blob {
    width: 270px;
  }
  .hero__scroll {
    display: block;
  }
  .hero__scroll-button {
    margin-left: 3rem;
  }
  .story__container {
    column-gap: 5rem;
  }
  .story__img {
    width: 350px;
  }
  .story__description {
    text-align: initial;
  }
  .story__info {
    justify-content: space-between;
  }
  .story__buttons {
    justify-content: initial;
  }
  .timeline__tabs {
    justify-content: center;
  }
  .timeline__button {
    margin: 0 var(--mb-1);
  }
  .timeline__sections {
    grid-template-columns: 0.5fr;
  }
  /* .offerings__container{
        grid-template-columns: repeat(2, 218px);
        justify-self: center;
    } */
  .offerings__icon {
    font-size: 2rem;
  }
  .offerings__content {
    padding: 6rem 0 2rem 2.5rem;
  }
  .offerings__modal-content {
    width: 450px;
  }
  .work__img {
    width: 320px;
  }
  .case__content {
    align-items: center;
  }
  .work {
    text-align: initial;
  }
  .work__bg {
    background: none;
  }
  .work__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }
  .work__data {
    padding-top: 0.8rem;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -2rem;
  }
  .site-footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer__bg {
    padding: 3rem 0 3.5rem;
  }
  .site-footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }
  .site-footer__socials {
    justify-self: flex-end;
  }
  .site-footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */

@media screen and (min-width: 1024px) {
  .hero__container.wrap { max-width: 1180px; }
  .hero__content { grid-template-columns: max-content 2.10fr 0.60fr; }
  .hero__blob { width: 285px; }
  .loader {
    font-size: 20vh;
  }
  .site-header,
  .page,
  .site-footer__container {
    padding: 0;
  }
  .hero__blob {
    width: 285px;
  }
  .hero__social {
    transform: translateX(-6rem);
  }
  .case__content {
    column-gap: 5rem;
  }
  .case__img {
    width: 350px;
  }
  .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;
  }
  .reach__form {
    width: 460px;
  }
  .reach__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Button normalization for Firefox */
.btn::-moz-focus-inner{
  border: 0;
  padding: 0;
}

.btn:focus-visible{
  outline: 3px solid var(--first-color-lighter);
  outline-offset: 3px;
}


/* HERO EDUCATION (compact, scan-friendly) */
.hero__edu{
  margin: var(--mb-1) 0 var(--mb-1-5);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(45, 104, 196, 0.35); /* #2D68C4 */
}

.hero__edu-label{
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 0.02em;
  color: var(--title-color);
  margin-bottom: 0.35rem;
}

.hero__edu-item + .hero__edu-item{
  margin-top: 0.55rem;
}

.hero__edu-title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  line-height: 1.2;
}


.hero__edu-row{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.35;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hero__edu-bullet{
  color: rgba(45, 104, 196, 0.9);
  font-weight: var(--font-semi-bold);
}

.hero__edu-icon{
  font-size: 1rem;
  color: rgba(45, 104, 196, 0.9);
}

.hero__edu-meta{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.25;
  margin-top: 0.2rem;
}

.hero__edu-dot{
  display: inline-block;
  margin: 0 0.35rem;
  color: rgba(45, 104, 196, 0.85);
}

/* QUALIFICATION: single combined timeline */
.timeline__sections{
  margin-top: var(--mb-2);
}

.timeline__tag{
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.timeline__tag--edu{
  border-color: rgba(45, 104, 196, 0.35);
  background: rgba(45, 104, 196, 0.12);
  color: rgba(45, 104, 196, 0.95);
}

.timeline__tag--work{
  border-color: rgba(45, 104, 196, 0.22);
  background: rgba(255,255,255,0.03);
  color: var(--text-color);
}

@media screen and (max-width: 350px){
  .hero__edu{
    padding-left: 0.7rem;
  }
}


html.theme-dark .stack__icon-wrap {
  background: rgba(45, 104, 196, 0.14);
  border-color: rgba(45, 104, 196, 0.24);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
}

html.theme-dark .stack__icon-wrap::after {
  background: radial-gradient(
    circle at 30% 20%,
    rgba(45, 104, 196, 0.26),
    rgba(1, 7, 19, 0.74) 70%
  );
}
