html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: rgb(255, 255, 255);
  /* Light theme tokens */
  --title-color: #0F172A;
  --text-color: #475569;
  --text-color-light: #94A3B8;
  --body-color: #F7F7FB;
  --status-color: #2563EB; /* primary accent */
  --accent-color: var(--status-color);
  --container-color: #FFFFFF;
  --border-color: #E2E8F0;
  --primary-hover: #1D4ED8;
  --secondary-color: #0D9488;
  --focus-color: #93C5FD;
  --gradient-color: linear-gradient(180deg,
                  rgba(0, 0, 0, 0),
                  rgba(194, 219, 228, 0.35));
  
  /*========== Design tokens (scale, radius, shadows, motion) ==========*/
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06);
  --shadow-2: 0 4px 16px rgba(0,0,0,.08);

  --ease: cubic-bezier(.2,0,0,1);
  --dur-fast: .18s; --dur: .24s;
  /* font and size */
  /* 1rem = 16px */
  --body-font: 'Open Sans', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;
  /* font weight */
  --font-medium: 500;
  --font-semi-bold: 600;
  /* z index */
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --tiny-font-size: .688rem;
  }
}

/* Adjusting base font sizes for very small devices */
@media screen and (max-width: 320px) {
  :root {
    --biggest-font-size: 1.5rem;
    --h1-font-size: 1.25rem;
    --h2-font-size: 1rem;
    --h3-font-size: 0.875rem;
    --normal-font-size: 0.813rem;
    --small-font-size: 0.75rem;
    --smaller-font-size: 0.688rem;
    --tiny-font-size: 0.625rem;
  }

  .container {
    margin-inline: 0.75rem;
  }

  .nav__menu {
    padding: 1.5rem 1rem 4rem;
  }

  .nav__list {
    grid-template-columns: repeat(2, max-content);
    gap: 1rem 1.5rem;
  }

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

  .home__blob {
    width: 160px;
    height: 240px;
  }

  .home__profile {
    width: 140px;
    height: 220px;
  }

  .home__profile img {
    width: 140px;
  }

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

  .skills__blob {
    width: 70px;
    height: 80px;
  }

  .skills__blob img {
    width: 36px;
  }

  .services_card {
    width: 200px;
    height: 320px;
    padding: 2rem 1rem;
  }

  .services_border {
    width: 210px;
    height: 330px;
  }

  .projects_img {
    width: 180px;
  }

  .contact_form_div {
    height: 3.5rem;
  }

  .contact_form_input {
    padding: 0.75rem;
    font-size: var(--smaller-font-size);
  }

  .footer_list {
    column-gap: 1.5rem;
  }
}

/* Adjusting for devices between 321px and 379px */
@media screen and (min-width: 321px) and (max-width: 379px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__menu {
    padding: 2rem 1.25rem 4rem;
  }

  .home__blob {
    width: 180px;
    height: 260px;
  }

  .home__profile {
    width: 160px;
    height: 240px;
  }

  .skills__blob {
    width: 80px;
    height: 90px;
  }

  .services_card {
    width: 220px;
    height: 340px;
  }
}

/* Improving medium device responsiveness */
@media screen and (min-width: 380px) and (max-width: 767px) {
  .nav__menu {
    width: 320px;
  }

  .home__blob {
    width: 200px;
    height: 280px;
  }

  .skills__info {
    gap: 1.5rem;
  }

  .projects_container {
    width: 320px;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  letter-spacing: .5px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== HOME 2025 HERO ===============*/
.hero{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem 2rem;
  position: relative;
}
.hero__bg{ position:absolute; inset:-10% -5% -20% -5%; z-index:-1; pointer-events:none; opacity:.12;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent-color) 22%, transparent) 1px, transparent 1.2px) 0 0/ 24px 24px,
    radial-gradient(50% 50% at 70% 20%, color-mix(in srgb, var(--accent-color) 10%, transparent), transparent 70%);
  animation: dotsDrift 40s linear infinite;
}
@keyframes dotsDrift{
  0%{ background-position: 0 0, 0 0 }
  100%{ background-position: 240px 120px, -60px 40px }
}
/* Smooth hero entrance */
@keyframes heroFadeUp{
  from{ opacity: 0; transform: translateY(8px) scale(.98); filter: saturate(.95); }
  to{ opacity: 1; transform: translateY(0) scale(1); filter: saturate(1); }
}
.hero__title{
  font-family: var(--title-font);
  font-size: var(--biggest-font-size);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--title-color), color-mix(in srgb, var(--accent-color) 40%, var(--title-color)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: heroFadeUp .48s var(--ease) .06s both;
}
/* Ensure role text is always visible even if gradient clip has issues */
.hero__title .role{ color: var(--title-color); background: none; -webkit-background-clip: initial; background-clip: initial; }
.hero__title [itemprop="name"]{ font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; letter-spacing: .2px; }

@media (prefers-reduced-motion: reduce){
  .hero__title{ animation: none; }
}
.hero__subtitle{
  margin-top: .5rem;
  color: var(--text-color);
  font-size: var(--h3-font-size);
  opacity: 0;
  animation: heroFadeUp .52s var(--ease) .16s both;
}
.hero__summary{
  margin-top: 1rem;
  color: var(--text-color);
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0;
  animation: heroFadeUp .56s var(--ease) .26s both;
}
.hero__bullets{ display:none; }
.bullet{ display:inline-flex; align-items:center; gap:.4rem; padding:.35rem .65rem; border-radius: .6rem; background: var(--container-color); color: var(--title-color); border:1px solid rgba(0,0,0,.06); font-size: var(--small-font-size); }
.bullet i{ color: var(--accent-color); }
.hero__content{ text-align: center; }
.hero__eyebrow{ display:none; }
.hero__tools{ display:none; }
.tool{ display:none; }

.hero__quicklinks{ display:none; }
.ql{ display:none; }
.role{ transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: transform, opacity; }
.role.is-fading{ opacity:0; transform: translateY(6px); }
.hero__cta{ display:flex; gap:.75rem; margin-top:1.25rem; flex-wrap: wrap; justify-content:center; opacity: 0; animation: heroFadeUp .6s var(--ease) .38s both; }
.btn--xl{ padding: 0.9rem 1.2rem; font-size: calc(var(--normal-font-size) + 1px); }
.btn{ display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1rem; border-radius:.75rem; font-weight: var(--font-semi-bold); border:1px solid transparent; cursor:pointer; }
.btn i{ font-size:1.1rem; }
.btn:focus-visible{ outline: 2px solid color-mix(in srgb, var(--accent-color) 70%, transparent); outline-offset: 2px; }
.btn--primary{ background: var(--accent-color); color: #0e1114; }
.btn--primary:hover{ filter: brightness(0.92); }
.btn--ghost{ background: transparent; color: var(--accent-color); border-color: color-mix(in srgb, var(--accent-color) 60%, transparent); position: relative; overflow: hidden; }
.btn--ghost::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:100%; background: var(--accent-color); transform: translateX(-100%); transition: transform .3s ease; }
.btn--ghost:hover::after{ transform: translateX(0); }
.btn--ghost:hover{ background: color-mix(in srgb, var(--accent-color) 15%, transparent); }

/* WhatsApp CTA styling aligned with scheme */
.btn--whatsapp{ background: var(--accent-color); color: #0e1114; position: relative; }
/* Remove pulsing/blinking animation for better polish */
.btn--whatsapp::before{ content:""; position:absolute; inset:0; border-radius: inherit; box-shadow: none; animation: none; }
.btn--whatsapp:hover{ filter: brightness(0.95); }
.btn--xl{ padding: 0.9rem 1.2rem; font-size: calc(var(--normal-font-size) + 1px); }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 40%, transparent) } 70%{ box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent-color) 0%, transparent) } 100%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 0%, transparent) } }

.hero__chips{ display:flex; gap:.5rem; margin-top:1rem; flex-wrap: wrap; justify-content:center; }
.chip{ padding:.35rem .6rem; border-radius: 999px; background: var(--container-color); color: var(--text-color); border: 1px solid rgba(0,0,0,0.06); }

.hero__stats{ display:flex; gap:1.25rem; margin-top:1.25rem; flex-wrap: wrap; }
.stat{ display:flex; align-items: baseline; gap:.4rem; }
.stat__num{ font-family: var(--title-font); font-weight: var(--font-semi-bold); color: var(--title-color); font-size: var(--h2-font-size); }
.stat__label{ color: var(--text-color); font-size: var(--small-font-size); }

.hero__social{ display:none; }
.hero__social a{ display:none; }
.hero__note{ display:none; }

.scroll_hint{ position:absolute; bottom: .25rem; left: 50%; transform: translateX(-50%); color: var(--text-color-light); font-size: 1.25rem; opacity:.8; transition: opacity .2s; animation: bounce 2.6s ease-in-out infinite; }
.scroll_hint:hover{ opacity:1; }
@keyframes bounce{ 0%,100%{ transform: translate(-50%, 0) } 50%{ transform: translate(-50%, -6px) } }

@media (prefers-reduced-motion: reduce){
  .hero__title,
  .hero__subtitle,
  .hero__summary,
  .hero__cta{ animation: none !important; opacity: 1; transform: none; }
}

/* Dark theme specific tweaks */
.dark_theme .btn--primary{ background: var(--accent-color); color: #0e1114; filter: none; }
.dark_theme .btn--ghost{ color: var(--accent-color); border-color: color-mix(in srgb, var(--accent-color) 60%, transparent); }
.dark_theme .chip{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--title-color) 10%, transparent); }
.dark_theme .hero__social a{ color: var(--title-color); }

.hero__visual{ display:flex; justify-content:center; }
.avatar{ position: relative; width: 260px; height: 260px; display:grid; place-items:center; }
.avatar img{ width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.15); border: 6px solid var(--container-color); }
.avatar .ring{ position:absolute; inset:0; border-radius:50%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent-color) 25%, transparent) 0%, transparent 60%); filter: blur(2px); }

@media screen and (min-width: 768px){
  .hero{ grid-template-columns: 1fr; padding-block: 2rem 3rem; }
  .avatar{ width: 320px; height: 320px; }
  .avatar img{ width: 280px; height: 280px; }
}

/* Simple mobile tweaks */
@media screen and (max-width: 480px){
  .hero__cta{ gap: .5rem; }
  .hero__cta .btn{ width: 100%; justify-content: center; }
  .hero__title{ font-size: calc(var(--h1-font-size) + .2rem); }
  .hero__summary{ padding-inline: .5rem; }
  .hero__quicklinks .ql{ font-size: var(--tiny-font-size); }
  .hero__tools{ gap: .6rem; }
  .tool{ font-size: var(--tiny-font-size); }
  .avatar{ width: 200px; height: 200px; }
  .avatar img{ width: 180px; height: 180px; }
  .hero__chips{ gap: .4rem; }
  .hero__stats{ gap: .75rem; }
  .about__card{ width: min(300px, 100%); }
  .about__heading{ font-size: calc(var(--h2-font-size) + .1rem); }
  .exp__item, .edu__item{ gap: .75rem; }
  .exp__marker, .edu__marker{ width: 16px; }
  .exp__dot, .edu__dot{ width: 10px; height: 10px; }
  .exp__card, .edu__card{ padding: .85rem .85rem; }
  .exp__header, .edu__header{ flex-direction: column; align-items: flex-start; gap: .25rem; }
  .services_card{ width: min(260px, 100%); }
}

@media screen and (max-width: 360px){
  .hero__tools{ gap: .5rem; }
  .tool{ font-size: 10px; }
}

/*=============== SECTION TITLES ===============*/
.section__title{ position: relative; }
.section__title::after{ content:""; display:block; width:56px; height:3px; margin-top:.5rem; background: var(--accent-color); border-radius:3px; }

/*=============== ABOUT 2025 ===============*/
.about__container{ padding-block: 2rem 2.5rem; }
.about__grid{ display:grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.about__content{ position: relative; display:flex; flex-direction: column; gap: 1rem; }
.about__eyebrow{ font-size: var(--small-font-size); color: var(--text-color-light); letter-spacing:.3px; }
.about__heading{ font-family: var(--title-font); font-size: var(--h1-font-size); line-height:1.1; color: var(--title-color); }
.about__text{ color: var(--text-color); }
.about__list{ display:grid; gap:.5rem; margin-top:.25rem; }
.about__list li{ display:flex; align-items:center; gap:.5rem; color: var(--title-color); }
.about__list i{ color: var(--accent-color); }
.about__metrics{ display:flex; gap:1.25rem; margin-top:.75rem; flex-wrap: wrap; }
.metric{ background: var(--container-color); border:1px solid rgba(0,0,0,.06); border-radius:.75rem; padding:.75rem 1rem; min-width: 110px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.metric__num{ font-size: var(--h2-font-size); font-family: var(--title-font); color: var(--title-color); font-weight: var(--font-semi-bold); }
.metric__label{ font-size: var(--small-font-size); color: var(--text-color); }
.about__cta{ display:flex; gap:.75rem; margin-top:1rem; flex-wrap: wrap; }

.about__visual{ display:flex; justify-content:center; }
.about__card{ position:relative; width: 320px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 1.25rem; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent-color) 18%, transparent), transparent), var(--container-color); border:1px solid color-mix(in srgb, var(--title-color) 8%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,.12); overflow: hidden; }
.about__glow{ position:absolute; inset:-20%; background: radial-gradient(40% 40% at 70% 20%, color-mix(in srgb, var(--accent-color) 26%, transparent) 0%, transparent 70%); filter: blur(26px); animation: float 8s ease-in-out infinite; opacity:.6; }
.about__lottie{ position:absolute; inset:0; opacity:.08; pointer-events:none; }
.about__avatar{ position:absolute; inset:0; display:grid; place-items:center; }
.about__avatar img{ width: 56%; height: auto; border-radius: 50%; border:6px solid var(--container-color); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.about__badges{ position:absolute; inset:0; pointer-events:none; }
.badge{ position:absolute; display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .6rem; border-radius: 999px; background: var(--container-color); color: var(--title-color); border:1px solid color-mix(in srgb, var(--title-color) 10%, transparent); font-size: var(--smaller-font-size); box-shadow: 0 10px 20px rgba(0,0,0,.08); animation: float 6s ease-in-out infinite; }
.badge:nth-child(1){ top: 14%; left: 10%; animation-delay: .2s; }
.badge:nth-child(2){ bottom: 16%; right: 12%; animation-delay: .8s; }
.badge:nth-child(3){ top: 18%; right: 18%; animation-delay: 1.4s; }
.badge i{ color: var(--accent-color); }

@keyframes float{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

.dark_theme .metric{ border-color: color-mix(in srgb, var(--title-color) 12%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dark_theme .about__card{ border-color: color-mix(in srgb, var(--title-color) 12%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.dark_theme .badge{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--title-color) 12%, transparent); }

@media screen and (min-width: 768px){
  .about__grid{ grid-template-columns: 1.15fr .85fr; gap: 2.5rem; }
}

@media screen and (max-width: 480px){
  .about__metrics{ gap:.75rem; }
  .metric{ min-width: 46%; padding:.6rem .8rem; }
}

/*=============== EXPERIENCE 2025 (TIMELINE) ===============*/
.exp{ position: relative; }
.exp__timeline{ position: relative; display:grid; gap: 1.75rem; margin-top: 1.25rem; }
.exp__item{ display:grid; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; }
.exp__marker{ position: relative; width: 22px; display:flex; justify-content:center; }
.exp__dot{ width: 12px; height: 12px; border-radius: 50%; background: var(--accent-color); border: 2px solid var(--container-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 12%, transparent); margin-top: .5rem; }
.exp__line{ position:absolute; top: 1.75rem; bottom: -1.75rem; left: 50%; width: 2px; transform: translateX(-50%); background: color-mix(in srgb, var(--title-color) 14%, transparent); }
.exp__item:last-child .exp__line{ display:none; }
.exp__card{ background: var(--container-color); border:1px solid color-mix(in srgb, var(--title-color) 10%, transparent); border-radius: .9rem; padding: 1rem 1rem; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.exp__header{ display:flex; align-items: baseline; justify-content: space-between; gap:.75rem; }
.exp__role{ font-family: var(--title-font); font-size: var(--h3-font-size); color: var(--title-color); }
.exp__date{ font-size: var(--smaller-font-size); color: var(--text-color-light); white-space: nowrap; }
.exp__meta{ margin-top: .25rem; }
.chip--company{ background: color-mix(in srgb, var(--container-color) 85%, var(--accent-color)); border-color: color-mix(in srgb, var(--accent-color) 35%, transparent); }
.exp__bullets{ margin-top: .6rem; display:grid; gap:.4rem; color: var(--text-color); line-height: 1.6; }
.exp__bullets li{ list-style: none; position: relative; padding-left: 1rem; }
.exp__bullets li::before{ content: ""; position:absolute; left: .25rem; top: .6rem; width: 6px; height: 6px; border-radius:50%; background: var(--accent-color); opacity:.7; }
.exp__tags{ display:flex; gap:.4rem; flex-wrap: wrap; margin-top: .6rem; }
.exp__tags .chip{ background: var(--container-color); border: 1px solid rgba(0,0,0,0.06); }

.dark_theme .exp__card{ border-color: color-mix(in srgb, var(--title-color) 14%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dark_theme .exp__line{ background: color-mix(in srgb, var(--title-color) 20%, transparent); }
.dark_theme .exp__card{ background: color-mix(in srgb, var(--container-color) 85%, black); }
.dark_theme .exp__dot{ border-color: color-mix(in srgb, var(--container-color) 85%, black); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-color) 24%, transparent); }
.dark_theme .exp__bullets li::before{ background: var(--accent-color); opacity: .85; }
.dark_theme .chip--company{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--accent-color) 40%, transparent); }

/*=============== EDUCATION 2025 (TIMELINE) ===============*/
.edu{ position: relative; }
.edu__timeline{ position: relative; display:grid; gap: 1.5rem; margin-top: 1.25rem; }
.edu__item{ display:grid; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; }
.edu__marker{ position: relative; width: 22px; display:flex; justify-content:center; }
.edu__dot{ width: 12px; height: 12px; border-radius: 4px; background: var(--accent-color); border: 2px solid var(--container-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 10%, transparent); margin-top: .5rem; }
.edu__line{ position:absolute; top: 1.75rem; bottom: -1.5rem; left: 50%; width: 2px; transform: translateX(-50%); background: color-mix(in srgb, var(--title-color) 10%, transparent); }
.edu__item:last-child .edu__line{ display:none; }
.edu__card{ background: var(--container-color); border:1px solid color-mix(in srgb, var(--title-color) 10%, transparent); border-radius: .9rem; padding: 1rem 1rem; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.edu__header{ display:flex; align-items: baseline; justify-content: space-between; gap:.75rem; }
.edu__degree{ font-family: var(--title-font); font-size: var(--h3-font-size); color: var(--title-color); }
.edu__date{ font-size: var(--smaller-font-size); color: var(--text-color-light); white-space: nowrap; }
.edu__meta{ margin-top: .25rem; }
.chip--school{ background: color-mix(in srgb, var(--container-color) 85%, var(--accent-color)); border-color: color-mix(in srgb, var(--accent-color) 30%, transparent); }
.edu__bullets{ margin-top: .6rem; display:grid; gap:.4rem; color: var(--text-color); line-height: 1.6; }
.edu__bullets li{ list-style: none; position: relative; padding-left: 1rem; }
.edu__bullets li::before{ content: ""; position:absolute; left: .25rem; top: .6rem; width: 6px; height: 6px; border-radius:50%; background: var(--accent-color); opacity:.7; }

.dark_theme .edu__card{ border-color: color-mix(in srgb, var(--title-color) 14%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dark_theme .edu__line{ background: color-mix(in srgb, var(--title-color) 18%, transparent); }
.dark_theme .edu__card{ background: color-mix(in srgb, var(--container-color) 85%, black); }
.dark_theme .edu__dot{ border-color: color-mix(in srgb, var(--container-color) 85%, black); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-color) 24%, transparent); }
.dark_theme .edu__bullets li::before{ background: var(--accent-color); opacity: .85; }
.dark_theme .chip--school{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--accent-color) 36%, transparent); }

/*=============== HORIZONTAL TIMELINE CHART ===============*/
.timeline-chart{ padding-block: 2rem 2.5rem; }
.timeline{ position: relative; width: 100%; max-width: 980px; margin-inline: auto; padding: 2.2rem 0 2.6rem; }
.timeline__line{ position:absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--title-color) 16%, transparent); }
.timeline__progress{ position:absolute; left: 0; top: 50%; height: 2px; border-radius: 2px; background: var(--accent-color); width: 0; transform: translateY(-50%); transition: width 1.8s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 12px color-mix(in srgb, var(--accent-color) 40%, transparent); }
.timeline.in-view .timeline__progress{ width: 100%; }
.timeline__point{ position: absolute; left: var(--pos); transform: translateX(-50%); display: grid; place-items: center; text-align: center; }
.timeline__dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--accent-color); border: 2px solid var(--container-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 14%, transparent); }
.timeline__point--end .timeline__dot{ width: 12px; height: 12px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-color) 20%, transparent); }
.timeline__stem{ width: 2px; height: 14px; background: color-mix(in srgb, var(--title-color) 16%, transparent); }
.timeline__label{ margin-top: .45rem; display:flex; flex-direction: column; align-items:center; gap:.1rem; padding:.15rem .4rem; border-radius:.4rem; background: var(--container-color); border:1px solid color-mix(in srgb, var(--title-color) 8%, transparent); }
.timeline__label{ white-space: nowrap; }
.timeline__point--top .timeline__label{ margin-top: 0; margin-bottom: .5rem; order: -1; }
.timeline__point--top .timeline__stem{ order: -1; }
.timeline__year{ font-size: var(--tiny-font-size); color: var(--text-color-light); letter-spacing:.2px; }
.timeline__title{ font-family: var(--title-font); color: var(--title-color); font-size: var(--small-font-size); }
.timeline__title i{ color: var(--accent-color); }
.timeline__logo{ display:inline-grid; place-items:center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent-color) 20%, var(--container-color)); color: var(--title-color); font-size: 10px; font-weight: 600; border:1px solid color-mix(in srgb, var(--title-color) 12%, transparent); margin-right: .35rem; }
.timeline__ticks{ position:absolute; left:0; right:0; top:50%; transform: translateY(-50%); }
.tick{ position:absolute; left: var(--pos); transform: translate(-50%, 0); text-align:center; }
.tick__line{ width:2px; height:10px; background: color-mix(in srgb, var(--title-color) 20%, transparent); margin: 0 auto; }
.tick__label{ margin-top:.25rem; font-size: var(--tiny-font-size); color: var(--text-color-light); }

@media screen and (max-width: 640px){
  .timeline{ overflow-x: auto; padding-bottom: 3.2rem; min-width: 900px; }
  .timeline__ticks{ min-width: 900px; }
  .timeline__label{ white-space: normal; }
}

.dark_theme .timeline__card{ border-color: color-mix(in srgb, var(--title-color) 14%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dark_theme .timeline__line{ opacity:.7; }
.dark_theme .timeline__label{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--title-color) 14%, transparent); }

/* Tooltip for timeline points */
.timeline__point[data-tooltip]{ position: relative; }
.timeline__point[data-tooltip]:hover::after{ content: attr(data-tooltip); position:absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); background: var(--container-color); color: var(--title-color); border:1px solid color-mix(in srgb, var(--title-color) 10%, transparent); border-radius:.4rem; padding:.25rem .4rem; white-space: nowrap; font-size: var(--tiny-font-size); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.dark_theme .timeline__point[data-tooltip]:hover::after{ background: color-mix(in srgb, var(--container-color) 70%, black); border-color: color-mix(in srgb, var(--title-color) 14%, transparent); }

/* Endpoint cap */
.timeline__cap{ position:absolute; right: -12px; top: 50%; transform: translate(0, -50%); display:grid; grid-template-columns: auto auto; align-items:center; gap:.35rem; }
.cap__line{ width: 18px; height: 2px; background: var(--accent-color); box-shadow: 0 0 10px color-mix(in srgb, var(--accent-color) 40%, transparent); }
.cap__dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--accent-color); border: 2px solid var(--container-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 20%, transparent); }
.cap__label{ font-size: var(--tiny-font-size); color: var(--text-color-light); }
/*=============== THEME ===============*/
.nav__buttons{
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}
.change_theme{
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .3s;
}

/* Active link highlight */
.active_link{
  color: var(--status-color);
}
.active-link{
  color: var(--status-color);
}

/*========== Variables Dark theme ==========*/
body.dark_theme{
  /* Dark theme tokens */
  --title-color: #E5E7EB;
  --text-color: #94A3B8;
  --text-color-light: #94A3B8;
  --body-color: #121212;
  --container-color: #18181B;
  --border-color: #27272A;
  --status-color: #3B82F6;
  --primary-hover: #2563EB;
  --secondary-color: #2DD4BF;
  --focus-color: #60A5FA;
  --gradient-color: linear-gradient(180deg,
                  rgba(0, 0, 0, 0),
                  rgba(90, 90, 90, 0.35));
}
/* ? color changes */
.dark_theme .nav,
.dark_theme .nav_menu,
.dark_theme .scroll_up{
    background-color: var(--container-color);
    box-shadow: 0 4px 20px rgba(15, 20, 24, 0.4);
}
.dark_theme .home_shape_circle,
.dark_theme .qualification_img,
.dark_theme .comments_img{
    filter: invert(1);
}
.dark_theme .home_social_link{
    color: var(--title-color);
}
.dark_theme .section_border{
    border-bottom: 1px solid rgb(78, 82, 85);
}
.dark_theme::-webkit-scrollbar{
    background-color: rgb(38, 39, 41);
}
.dark_theme::-webkit-scrollbar-thumb{
    background-color: rgb(73, 76, 78);
}
.dark_theme::-webkit-scrollbar-thumb:hover{
    background-color: rgb(99, 104, 107);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

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

/* Interactive base: smooth, subtle transitions */
.interactive{ transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.interactive:hover{ transform: translateY(-1px); }
.interactive:focus-visible{ outline: 2px solid var(--focus-color); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce){ .interactive{ transition: none; transform: none; } }

.section {
  padding-block: 2.5rem;
}

.section__border {
  border-bottom: 1px solid var(--title-color);
  padding-bottom: 3.5rem;
}

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

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}

.main {
  overflow: hidden; /* For animation */
}

/*=============== HEADER & NAV ===============*/
.header{
  width: 100%;
  position: fixed;
  bottom: 1rem;
  left: 0;
  z-index: var(--z-fixed); 
}
.nav{
  height: calc(var(--header-height) + .5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--body-color);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding-inline: 1.5rem;
  border-radius: 3rem;
  transition: background .5;
}
.nav__logo,
.nav__toggle,
.nav__close{
  color: var(--title-color);  
}
.nav__logo{
  font-family: var(--title-font);
  font-weight: var(--font-medium);  
}
.nav__toggle{
  display: flex;
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width:1023px){
  .nav__menu{
    position: fixed;
    width: 88%;
    left: 0;
    right: 0;
    bottom: -60%;
    margin: 0 auto;
    background-color: var(--body-color);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 2rem 1.5rem 5rem;
    border-radius: 2rem;
    transition: bottom .3s;
  }
}

.nav__list{
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 2rem 3rem;
}
.nav__link{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  transition: color .3s;
}
.nav__link :hover{
  color: var(--title-color); 
}
.nav__link i{
  font-size: 1.25rem;
}
.nav__close{
  position: absolute;
  right: 1.5rem;
  bottom: .7rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu{
  bottom: 2rem;  
}

/* Active link */


/*=============== HOME ===============*/
.home__container{
row-gap: 4rem;
padding-top: 2rem;
}
.home__data{
  row-gap: 1.5rem;
}
.home__title{
  text-align: center;
  font-size: var(--biggest-font-size);
  letter-spacing: .3px;
  margin-bottom: .5rem;  
}
.home__blob{
  position: relative;
  width: 200px;
  height: 290px;
  background-color: var(--body-color);
  border: 2px solid var(--text-color-light);
  justify-self: center;
  border-radius: 6.25rem;
  place-items: center;
}
.home__profile{
  width: 170px;
  height: 260px;
  background: var(--gradient-color);
  border-radius: 5.5rem;
  overflow: hidden;
  display: flex;    
}
.home__profile img{
  width: 300px;
  height: 260px; 
}
.home__shape-wawes,
.home__shape-circle{
 position: absolute;
 opacity: .1;
}
.home__shape-wawes{
  width: 50px;
  left: -1.5rem;
  top: 5rem;  
}
.home__shape-circle{
  width: 150px;
  bottom: -2rem;
  right: -3rem;
  transform: rotate(15deg);
  z-index: -1;
}
.home__social{
  justify-self: center;
  display: flex;
  column-gap: 1.25rem;  
}
.home__social-link{
  font-size: 1.25rem;
  color: var(--text-color-light);
  transition: color .3s;
}
.home__social-link:hover{
  color: var(--title-color);
}
.home__info{
  display:grid;
  row-gap: 2rem;  
} 
.home__info-title{
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 400;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}
.home__info-description,
.home__info-number{
  font-family: var(--title-font);
  color: var(--title-color);
}
.home__info-description{
 padding-right: 4rem;
}
.home__info-number{
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
}
 

/*=============== SKILLS ===============*/
.skills__container{
  row-gap: 3.5rem;
}
.skills__title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}
.skills__title i{
  font-size: 1rem;
  font-weight: initial;
}
.skills__info,
.skills__data,
.skills__blob{
  display:grid;  
}
.skills__info{
grid-template-columns: repeat(3, 1fr);
gap: 2.5rem 2rem;
}
.skills__data{
justify-content: center;
text-align: center;
}
.skills__blob{
  width: 88px;
  height: 100px;
  background-color: var(--container-color);
  border-radius: 3rem;
  place-items: center;
  margin-bottom: 1rem;
}
.skills__blob img{
  width: 48px;
}
.skills__name{
  font-size: var(--small-font-size);
  margin-bottom: .25rem;  
}
.skills__subtitle{
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

/* Animation skills */
.skills__blob img{
  animation: bounce-skills .6s;
}
@keyframes bounce-skills{
  0%{
    transform: translate(0);
  }
  20%{
    transform: translateY(-6px);
  }
  40%{
    transform: 0;
  }
  60%{
    transform: translateY(-3px);
  }
  80%{
    transform: 0;
  }
}

/*=============== QUALIFICATION ===============*/
.qualification{
  position: relative;
}
.qualification__container{
  row-gap: 3.5rem;
}
.qualification__title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2rem;
}
.qualification__title i{
  font-size: 1rem;
  font-weight: initial;
}
.qualification__info{
  display:grid;
  row-gap: 2rem;
}
.qualification__name{
  font-size: var(--normal-font-size);
  margin-bottom: 1.25rem;
}
.qualification__country,
.qualification__year{
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.qualification__country{
  margin-bottom: .75rem;
}
.qualification__img{
  width: 150px;
  position: absolute;
  right: -3rem;
  bottom: 12rem;
  transform: rotate(15deg);
  opacity: .1;
}

/*=============== MY LINKS ====================*/
.links__container {
  row-gap: 3rem;
  justify-content: center;
}

.links__content {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(5, max-content);
  gap: 2.5rem 2rem;
}

.links__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
}

.links__icon {
  width: 60px;
  height: 60px;
  background-color: var(--container-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  transition: transform .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}

.links__icon i {
  font-size: 2rem;
  transition: transform .3s;
}

.links__name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.links__card:hover .links__icon {
  transform: translateY(-.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.links__card:hover .links__icon i {
  transform: scale(1.1);
}

/* For small devices */
@media screen and (max-width: 380px) {
  .links__content {
    grid-template-columns: repeat(2, max-content);
    gap: 1.5rem;
  }
  
  .links__icon {
    width: 50px;
    height: 50px;
  }
  
  .links__icon i {
    font-size: 1.5rem;
  }

  .links__card {
    padding: 0.75rem;
  }
}

/* For medium devices */
@media screen and (min-width: 381px) and (max-width: 767px) {
  .links__content {
    grid-template-columns: repeat(3, max-content);
    gap: 2rem 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .links__container {
    row-gap: 4rem;
  }
  
  .links__content {
    gap: 3rem 4rem;
  }
  
  .links__icon {
    width: 80px;
    height: 80px;
  }
  
  .links__icon i {
    font-size: 2.5rem;
  }
  
  .links__name {
    font-size: var(--normal-font-size);
  }
}

/*=============== SERVICES ===============*/
.services{
  position: relative;
}
.services_container{
  row-gap: 2.5rem;
  justify-content: center;
}
.services_card{
  position: relative;
  width: 260px;
  min-height: 360px;
  background-color: var(--container-color);
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 7rem;
  transition: background .5s;
}
.services_card i{
  display: block;
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: .75rem;
  transition: transform .8s;
}
.services_title{
  font-size: calc(var(--h2-font-size));
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
}
.services_description{ color: var(--text-color); line-height: 1.6; max-width: 36ch; margin: 0 auto; }
.services_border{
  width: 270px;
  height: 390px;
  border: 2px dashed var(--text-color-light);
  border-radius: 7rem;
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  z-index: -1;
  transition: opacity .6s;
  opacity: 0;
}
.services_card:hover i{
  transform: rotateY(360deg);
}
.services_card:hover .services_border{
  opacity: 1;
}

/*=============== PROJECTS ===============*/
.projects_container{
  overflow: initial;
}
.projects_content{
  display: grid;
  justify-content: center;
}
.projects_img{
  width: 250px;
  border-radius: .75rem;
  margin-bottom: 1.25rem;
}
.projects_subtitle{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.projects_title{
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
  margin: .5rem 0 1.25rem;
}
.projects_button{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}
.projects_button i{
  font-size: 1rem;
  transition: transform .3s;
}
.projects_button:hover i{
  transform: translateX(.25rem);
}
/* ? swiper class */
.projects_container .swiper-button-prev::after,
.projects_container .swiper-button-next::after{
   content: '';
}
.projects_container .swiper-button-prev,
.projects_container .swiper-button-next{
   width: initial;
   height: initial;
   margin: initial;
   font-size: 2.5rem;
   color: var(--title-color);
}
.projects_container .swiper-button-prev{
  left: -1rem;
  top: 4.5rem;
}
.projects_container .swiper-button-next{
  right: -1rem;
  top: 4.5rem;
}
.projects_container .swiper-slide{
  margin-bottom: 4.5rem;
}
.projects_container .swiper-pagination-bullets{
  bottom: 0;
}
.projects_container .swiper-pagination-bullet{
  background-color: var(--text-color-light);
  opacity: initial;
}
.projects_container .swiper-pagination-bullet-active{
  background-color: var(--title-color);
}

/*=============== TESTIMONIAL ===============*/
.comments{
  position: relative;
}
.comments_content{
  text-align: center;
}
.comments_description{
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}
.comments_name{
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}
.comments_subtitle{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}
.comments_img{
  width: 100px;
  transform: translate(30deg);
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  opacity: .1;
}
/* ? swiper class */
.comments_container .swiper-slide{
  margin-bottom: 4rem;
}
.comments_container .swiper-button-prev::after,
.comments_container .swiper-button-next::after{
  content: '';
}
.comments_container .swiper-button-prev,
.comments_container .swiper-button-next{
  font-size: 2rem;
  color: var(--title-color);
  width: initial;
  height: initial;
  top: initial;
  bottom: .5rem;
}
.comments_container .swiper-button-prev{
  left: calc(50% - 3rem);   
}
.comments_container .swiper-button-next{
  right: calc(50% - 3rem);   
}


/*=============== CONTACT ===============*/
.contact_container{ row-gap: 2rem; }
.contact_title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}
.contact_title i{
  font-size: 1rem;
  font-weight: initial;
}
.contact_info,
.contact_data,
.contact_form{
  display: grid;
}
.contact_info{ row-gap: 1.25rem; }
.contact_data{
  row-gap: .75rem;
}
.contact_data_title{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.contact_data_info{
  font-size: var(--small-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
}

/* Card styling for contact blocks */
.contact_content{
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-1);
}

/* New CTA variants for clarity */
.btn{ --btn-h: 44px; display:inline-flex; align-items:center; gap:.5rem; min-height: var(--btn-h); padding: 0 1rem; border-radius: var(--radius-md); font-weight: var(--font-semi-bold); border:1px solid transparent; cursor:pointer; text-decoration:none; line-height: 1; }
.btn i{ font-size: 1.1rem; }
.btn-primary{ background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.btn-primary:hover{ background: var(--primary-hover); }
.btn-outline{ background: transparent; color: var(--title-color); border-color: var(--border-color); }
.btn-outline:hover{ border-color: color-mix(in srgb, var(--title-color) 25%, var(--border-color)); box-shadow: var(--shadow-2); }
.btn-link{ background: transparent; color: var(--title-color); padding: 0; height: auto; border-color: transparent; }
.btn-link:hover{ color: var(--accent-color); }
.btn .external{ opacity: .6; }

/* Brand icon colors for external links */
:root{ --wa-color:#25D366; --ms-color:#0084FF; }
body.dark_theme{ --wa-color:#25D366; --ms-color:#61A6FF; }
.btn-link .ri-whatsapp-line{ color: var(--wa-color); }
.btn-link .ri-messenger-line{ color: var(--ms-color); }
.contact_button{
  width: max-content;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}
.contact_button i{
  font-size: 1rem;
  transition: transform .3s;
}
.contact_button:hover i{
  transform: translateX(.25rem);
}
.contact_form{
  position: relative;
  row-gap: 1.5rem;
}
.contact_form_div{
  position: relative;
  height: 4rem;
}
.contact_form_input{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 1rem;
  font-size: var(--normal-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  background: none;
  outline: none;
  z-index: 1;
}
.contact_form_input:focus-visible{ border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 25%, transparent); }
.contact_form_tag{
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  z-index: 10;
  background-color: var(--container-color);
  color: var(--title-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding: .2rem .5rem;
  border-radius: .5rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.contact_form_area{
  height: 10rem;
}
.contact_form_area textarea{
  resize: none;
}
/* Placeholder color for readability in both themes */
.contact_form_input::placeholder{ color: var(--text-color); opacity: .7; }
/* Primary submit button inside the form */
.contact_form .btn-primary{ margin-top: .25rem; }
.contact_message{
  font-size: var(--small-font-size);
  position: absolute;
  bottom: 2.8rem;
  left: 1.5rem;
}
/* ? status color */
.color_blue{
  color: var(--status-color);
}
/*=============== FOOTER ===============*/
.footer_container{
  padding: 3rem 0 7rem;
  text-align: center;
}
.footer_title{
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}
.footer_list,
.footer_social{
  display: flex;
  justify-content: center;
}
.footer_list{
  margin: 2.5rem 0;
  column-gap: 2.5rem;
}
.footer_link{
  color: var(--title-color);
}
.footer_link:hover{
  text-decoration: underline;
}
.footer_social{
  column-gap: 1.25rem;
}
.footer_social_link{
  font-size: 1.5rem;
  color: var(--title-color);
  transition: transform .3s;
}
.footer_social_link:hover{
  transform: translateY(-.15rem);
}
.footer_copy{
  display: block;
  margin-top: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
/* ? scroll bar */
::-webkit-scrollbar{
  width: .5rem;
  border-radius: .5rem;
  background-color: rgb(255, 255, 255);
}
::-webkit-scrollbar-thumb{
  background-color: var(--text-color-light);
  border-radius: .5rem;
}
::-webkit-scrollbar-thumb:hover{
  background-color: var(--text-color);
}
/* ? scroll up */
.scroll_up{
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--body-color);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  display: flex;
  padding: .35rem;
  border-radius: .25rem;
  font-size: 1.5rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom .3s, transform .3s;
}
.scroll_up:hover{
  transform: translateY(-.25rem);
}
/* ? show scroll up */
.show_scroll{
  bottom: 6rem;
}

/*=============== LOADER ===============*/
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-fixed);
  transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader .lottie{ width: 140px; height: 140px; will-change: transform; transform: translateZ(0); filter: hue-rotate(165deg) saturate(1.15); }
.dark_theme .loader{ background: var(--body-color); }
.loader__box{ display:flex; flex-direction: column; align-items:center; gap: .75rem; padding: 1rem; }
.loader__title{ font-family: var(--title-font); color: var(--title-color); font-size: var(--h2-font-size); line-height: 1; }
.loader__subtitle{ color: var(--text-color); font-size: var(--small-font-size); }

.loader__content {
  text-align: center;
  max-width: 80%;
}

.loader__text-wrapper {
  transform: translateY(-20px);
}

.loader__title {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.loader__letter {
  font-family: var(--title-font);
  font-size: 2.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  animation: simpleFloat 2s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--delay));
}

.loader__subtitle {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.5s;
}

.loader__tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loader__tech-item {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--container-color);
  color: var(--title-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: techItemFloat 0.5s ease-out forwards;
  animation-delay: calc(0.2s * var(--tech-delay));
}

.loader__progress {
  width: 200px;
  height: 4px;
  background: var(--container-color);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loader__progress-bar {
  width: 100%;
  height: 100%;
  background: var(--title-color);
  animation: progress 2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes simpleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes techItemFloat {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(0.5);
  }
  100% {
    transform: scaleX(1);
  }
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

/* Dark theme adjustments */
.dark_theme .loader {
  background: var(--body-color);
}

.dark_theme .loader__tech-item {
  background: var(--container-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive loader */
@media screen and (min-width: 768px) {
  .loader__letter {
    font-size: 3.5rem;
  }
  
  .loader__subtitle {
    font-size: var(--h3-font-size);
  }
  
  .loader__tech-item {
    font-size: var(--normal-font-size);
  }
  
  .loader__progress {
    width: 300px;
  }
}

/* Loader adjustments for small devices */
@media screen and (max-width: 320px) {
  .loader__letter {
    font-size: 1.75rem;
  }

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

  .loader__tech-item {
    font-size: var(--smaller-font-size);
    padding: 0.35rem 0.75rem;
  }

  .loader__progress {
    width: 180px;
  }
}

/* Loader adjustments for standard mobile devices */
@media screen and (min-width: 321px) and (max-width: 767px) {
  .loader__letter {
    font-size: 2rem; 
  }

  .loader__subtitle {
    /* Relying on var(--h3-font-size) which is 1rem by default for this range, 
       or explicitly set if needed, e.g., font-size: 1rem; */
    font-size: var(--h3-font-size); 
  }

  .loader__tech-item {
    /* Relying on var(--small-font-size) which is 0.813rem by default for this range,
       or explicitly set if needed, e.g., font-size: var(--small-font-size); */
    font-size: var(--small-font-size);
    padding: 0.4rem 0.8rem; 
  }

  .loader__progress {
    width: 220px; 
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 380px){
  .container{
      margin-inline: 1rem;
  }

  
  .nav__menu{
      padding-bottom: 4rem;
  }
  .nav__list{
      gap: 1rem;
  }
  .nav__link{
      font-size: var(--smaller-font-size);
  }
  .home__title{
      font-size: var(--h2-font-size);      

    }

  .skills__info{
      grid-template-columns: repeat(2,1fr);
  }
  .projects_img{
      width: 200px;
      justify-self: center;
  }
  .links__content {
    grid-template-columns: repeat(2, max-content);
  }
}

@media screen and (max-width: 380px) {
    .nav__menu {
        padding: 2rem 1.5rem 4rem;
    }
    .nav__list {
        grid-template-columns: repeat(2, max-content);
        gap: 1.5rem 2rem;
    }
}

@media screen and (min-width: 381px) and (max-width: 767px) {
    .nav__menu {
        padding: 2rem 2.5rem 4rem;
    }
    .nav__list {
        grid-template-columns: repeat(3, max-content);
        gap: 2rem;
    }
}

@media screen and (min-width: 1023px) {
    .nav__list {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .nav__link {
        font-size: var(--small-font-size);
    }
}

@media screen and (min-width: 1200px) {
    .nav__list {
        gap: 3rem;
    }
    .nav__link {
        font-size: var(--normal-font-size);
    }
}

/* For medium devices */
@media screen and (min-width: 570px){
  .nav,
  .nav__menu{
      width: 380px;
  }
  .nav{
      margin: 0 auto;
  }
  .skills__container{
      justify-content: center;
  }
  .projects_container,
  .comments_container{
      width: 400px;
  }
  .projects_container{
      overflow: hidden;
  }
  .projects_container .swiper-button-prev{
      left: 1rem;
  }
  .projects_container .swiper-button-next{
      right: 1rem;
  }
  
  .links__container {
      width: 400px;
      margin: 0 auto;
  }
  
  .links__content {
      grid-template-columns: repeat(3, max-content);
      gap: 2rem;
      justify-content: space-between;
  }
}

@media screen and (min-width: 760px){
  .home__container{
      grid-template-columns: 1fr 2fr 1fr;
  }
  .home__data{
      order: 2;
  }
  .home__info:nth-child(3){
      order: 3;
      text-align: right;
  }
  .home__info{
      margin-top: 10rem;
  }
  .home__info-description{
      padding-right: 0;
  }
  .skills__container,
  .qualification__container,
  .services_container,
  .contact_container{
      grid-template-columns: repeat(2, max-content);
  }
  .skills__container,
  .services_container{
      column-gap: 5rem;
  }
  .qualification__container{
      justify-content: center;
      column-gap: 10rem;
  }
  .projects_container{
      width: 500px;
  }
  .contact_form{ width: 100%; }
  .contact_container{ grid-template-columns: 1fr 1.2fr; gap: 2rem; justify-content: initial; }
  .comments_img{
      width: 200px;
      right: -2rem;
  }
  
  .links__container {
      width: 540px;
  }
  
  .links__content {
      grid-template-columns: repeat(5, max-content);
      gap: 2.5rem;
  }
}

@media screen and (min-width: 1023px){
  .header{
      top: 0;
      bottom: initial;
      background-color: var(--body-color);
      transition: .5s;
  }
  .nav{
      width: initial;
      height: calc(var(--header-height) + 1.5rem);
      box-shadow: none;
      border-radius: 0;
      column-gap: 3rem;
      margin-inline: 1.5rem;
      padding: 0;
      transition: background .5s;
  }
  .nav__link i,
  .nav__toggle,
  .nav__close{
      display: none;
  }
  .nav__menu{
      width: initial;
      margin-left: auto;
      background-color: var(--body-color);
      transition: background .5s;
  }
  .nav__list{
      display: flex;
      column-gap: 3rem;
  }
  .nav__link{
      font-size: var(--normal-font-size);
  }
  .dark_theme .nav,
  .dark_theme .nav__menu{
      background-color: var(--body-color);
      box-shadow: none;
      transition: background .5s;
  }
  .change_theme{
      color: var(--text-color-light);
  }
  .change_theme:hover{
      color: var(--title-color);
  }
  .section{
      padding-block: 5rem 0;
  }
  .home__title{
      font-size: 2.25rem;
  }
  .scroll_up{
      right: 3rem;
  }
  .show_scroll{
      bottom: 5rem;
  }
  /* ? background header */
  .bg_header{
      box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  }
  .dark_theme .bg_header{
      box-shadow: rgba(59, 59, 59, 0.2) 0px 8px 24px;
  }
}
@media screen and (min-width: 1048px) {
  .container{
      margin-inline: auto;
  }
}
@media screen and (min-width: 1200px) {
  .section_border{
      padding-bottom: 6rem;
  }
  .section_subtitle{
      margin-bottom: 5rem;
  }
  .home__blob{
      width: 300px;
      height: 450px;
      border-radius: 10.5rem;
  }
  .home__blob img{
      width: 300px;
      height: 399px;
  }
  .home__profile{
      width: 250px;
      height: 400px;
      border-radius: 10.5rem;
  }
  .home__data{
      row-gap: 2.5rem;
  }
  .home__social{
      column-gap: 2rem;
  }
  .home__social-link{
      font-size: 2rem;
  }
  .home__info{
      grid-template-rows: repeat(3, 130px);
      row-gap: 4rem;
      margin-top: 16rem;
  }
  .skills__container{
      column-gap: 10rem;
  }
  .skills__title{
      margin-bottom: 3rem;
  }
  .skills__title i{
      font-size: 1.25rem;
  }
  .skills__name{
      font-size: var(--normal-font-size);
  }
  .skills__info{
      gap: 3rem;
  }
  .qualification__container{
      column-gap: 14rem;
  }
  .qualification__title{
      margin-bottom: 3rem;
  }
  .qualification__title i{
      font-size: 1.25rem;
  }
  .qualification__name{
      font-size: var(--h3-font-size);
  }
  .qualification__img{
      width: 300px;
      left: -5rem;
  }
  .services_container{
      grid-template-columns: repeat(3, max-content);
  }
  .services_card{
      width: 240px;
      height: 390px;
      border-radius: 8rem;
      padding: 3.5rem 1.5rem;
  }
  .services_card i{
      font-size: 2rem;
  }
  .services_border{
      width: 250px;
      height: 400px;
      border-radius: 8rem;
  }
  .projects_container{
      width: 900px;
  }
  .projects_container .swiper-button-prev,
  .projects_container .swiper-button-next{
      font-size: 3rem;
  }
  .projects_container .swiper-button-prev{
      left: -1rem;
  }
  .projects_container .swiper-button-next{
      right: -1rem;
  }
  .projects_container .swiper-slide{
      margin-bottom: 6.5rem;
  }
  .projects_img{
      width: 320px;
      margin-bottom: 2rem;
  }
  .comments_container{
      width: 566px;
  }
  .comments_container .swiper-button-prev,
  .comments_container .swiper-button-next{
      font-size: 2.5rem;
  }
  .comments_container .swiper-button-prev{
      left: calc(50% - 5rem);
  }
  .comments_container .swiper-button-next{
      right: calc(50% - 5rem);
  }
  .comments_container .swiper-slide{
      margin-bottom: 6rem;
  }
  .comments_description{
      font-size: var(--normal-font-size);
      margin-bottom: 2rem;
  }
  .comments_img{
      width: 300px;
      right: -7rem;
  }
  .contact_title{
      margin-bottom: 3rem;
  }
  .contact_title i{
      font-size: 1.5rem;
  }
  .contact_info{
      row-gap: 3rem;
  }
  .contact_data_info{
      font-size: var(--normal-font-size);
  }
  .contact_form{
      row-gap: 2.5rem;
  }
  .footer_container{
      padding: 4rem 0 3rem;
  }
  .footer_list{
      column-gap: 3rem;
      margin: 3rem 0;
  }
  .footer_social{
      column-gap: 2rem;
  }
  .footer_copy{
      margin-top: 5rem;
  }
}
