/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Purple): hsl(255, 60%, 64%)
         Blue: hsl(220, 60%, 64%) - Pink: hsl(300, 60%, 64%)
         Green: hsl(110, 60%, 64%) - Cyan: hsl(180, 60%, 64%)
         Orange: hsl(15, 60%, 64%) - Red: hsl(358, 60%, 64%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 255;
  --first-color: hsl(var(--hue), 75%, 68%);
  --first-color-alt: hsl(var(--hue), 85%, 60%);
  --first-color-alt-2: hsl(var(--hue), 70%, 58%);
  --first-color-light: hsl(var(--hue), 75%, 78%);
  --title-color: #ffffff;
  --text-color: #e2e8f0;
  --text-color-light: #94a3b8;
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 10%, 8%);


  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.light-theme {
  --title-color:      hsl(240, 20%, 10%);
  --text-color:       hsl(240, 10%, 35%);
  --text-color-light: hsl(240, 10%, 55%);
  --body-color:       hsl(240, 20%, 96%);
  --container-color:  hsl(240, 20%, 90%);
}

body.light-theme .header {
  background: rgba(240, 240, 255, 0.88) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

body.light-theme .nav__logo {
  color: hsl(240, 20%, 12%);
}

body.light-theme .nav__link {
  color: hsl(240, 20%, 20%);
}

body.light-theme .nav__menu {
  background: rgba(230, 230, 248, 0.97) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}

body.light-theme .nav__theme-btn,
body.light-theme .lang-btn {
  color: hsl(240, 20%, 20%);
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
}

body.light-theme .lang-btn.active {
  background: rgba(124, 58, 237, 0.15);
  color: hsl(255, 60%, 40%);
  border-color: rgba(124, 58, 237, 0.4);
}

body.light-theme .home__name,
body.light-theme .home__profession-1,
body.light-theme .home__profession-2,
body.light-theme h1, body.light-theme h2,
body.light-theme h3, body.light-theme h4 {
  color: hsl(240, 20%, 10%);
}

body.light-theme .home__status-badge {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

body.light-theme .btn-secondary {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
  color: hsl(240,20%,15%) !important;
}

body.light-theme .stat__card {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.08);
}

body.light-theme .stat__icon {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-theme .stat__number {
  color: hsl(240, 20%, 10%);
}

body.light-theme .projects__card,
body.light-theme .services__card,
body.light-theme .testimonials__card {
  background: rgba(255,255,255,0.8);
}

body.light-theme .form__container {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.07);
}

body.light-theme .form__input,
body.light-theme .form__textarea {
  background: rgba(255,255,255,0.9);
  color: hsl(240,20%,10%);
  border-color: rgba(0,0,0,0.12);
}

body.light-theme .floating-telegram {
  box-shadow: 0 10px 25px rgba(0,136,204,0.25);
}

body.light-theme .blob-animate {
  opacity: 0.4;
}

/* ============================================
   NAV CONTROLS: Theme Toggle & Lang Switcher
   ============================================ */
.nav__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--title-color);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav__theme-btn:hover {
  background: rgba(124,58,237,0.2);
  transform: rotate(20deg);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  padding: 2px;
  gap: 1px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: var(--second-font);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.lang-btn.active {
  background: rgba(124,58,237,0.3);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  color: var(--title-color);
}

/* ============================================
   NEW FEATURES: CV Button, Modals, Certs, Focus
   ============================================ */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24 !important;
  border-radius: 2rem;
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cv:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

/* Current Focus Section */
.current-focus {
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.focus__card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.75rem;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(12px);
}
.focus__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.focus__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--second-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.focus__tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: 2rem;
}
.focus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.focus__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  transition: transform 0.2s, background 0.2s;
}
.focus__item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.focus__icon {
  width: 42px;
  height: 42px;
  border-radius: 0.85rem;
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.focus__info h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.focus__info p {
  font-size: 0.78rem;
  color: var(--text-color);
  line-height: 1.45;
}

/* Project Metrics Pills & Details Button */
.projects__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
}
.p-pill i {
  color: var(--first-color);
}
.btn-case {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c084fc;
  border-radius: 2rem;
  font-family: var(--second-font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-case:hover {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Certificate Preview Cards in Education */
.cert__preview {
  position: relative;
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: #0b0a1a;
  max-width: 360px;
}
.cert__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.cert__preview:hover .cert__img {
  transform: scale(1.03);
}
.cert__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 2, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.modal-card {
  background: #0e0d24;
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border-radius: 2rem;
  padding: 2.25rem 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-backdrop.active .modal-card {
  transform: scale(1);
}
.cert-modal-card {
  max-width: 600px;
  padding: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}
.modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c084fc;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  padding: 4px 12px;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}
.modal-title {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-section {
  margin-bottom: 1.25rem;
}
.modal-section h4 {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.modal-section h4 i {
  color: var(--first-color);
}
.modal-section p {
  font-size: 0.85rem;
  color: var(--text-color);
  line-height: 1.6;
}
.modal-section ul {
  list-style: none;
  padding: 0;
}
.modal-section li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.modal-section li i {
  color: #34d399;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/*========== Responsive typography ==========*/

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --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;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

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

.section {
  padding-block: 2rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/* Blob */
/* Blob animate */
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--first-color-alt) 20%,
    var(--first-color-light) 100%
  );
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Blob */
.blob {
  width: 250px;
  height: 250px;
  background: linear-gradient(
    180deg,
    var(--first-color) 0%,
    var(--first-color-alt) 100%
  );
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

/* Custom Cursor — Clean Transparent Ring */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(167, 139, 250, 0.7);
  background-color: rgba(167, 139, 250, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
  pointer-events: none;
  transition:
    transform 0.15s ease-out,
    left 0.15s ease-out,
    top 0.15s ease-out;
}

/* Hide the custom cursor */
.hide-cursor {
  width: 0;
  height: 0;
}

/* Header Section And Nav */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    var(--body-color) 60%,
    hsla(240, 100%, 2%, 0) 100%
  );
  z-index: var(--z-fixed);
}

.header .blob-animate {
  top: -3rem;
  left: -3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--title-color);
  text-decoration: none;
  transition: transform 0.2s;
}

.nav__logo:hover {
  transform: translateY(-1px);
}

.nav__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5, #06b6d4);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav__logo-accent {
  color: #a78bfa;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 0.5rem;
}

.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition:
    color 0.4s,
    text-shadow 0.4s;
}
.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Home */
.home {
  position: relative;
}

.home__container {
  position: relative;
  padding-top: 3rem;
  row-gap: 1rem;
}

.home__greeting {
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__name {
  font-size: var(--biggest-font-size);
}

.home__image {
  position: relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate {
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__profile {
  width: 320px;
  justify-self: center;
}

.home_shadow,
.home__info,
.home__social,
.home__cv {
  position: absolute;
}

.home__shadow {
  width: 100%;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 60%,
    hsl(240, 100%, 2%) 85%
  );
}

.home__info {
  z-index: 2;
  bottom: -2.5rem;
  justify-self: center;
}

.home__split {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1,
.home__profession-2 {
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1 {
  position: relative;
  color: var(--first-color);
}

.home__profession-1::after {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, hsl(0, 0%, 0%) 10%, hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;
}

.home__profession-2 {
  transform: translateY(-1rem);
}

.home__social {
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.25rem;
  transition:
    transform 0.4s,
    color 0.4s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateX(0.25rem);
}

.home__cv {
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font-size: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: color 0.4s;
}

.homw__cv i {
  font-size: 1rem;
}

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

/* Buttons */
.button {
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow:
    0 8px 32px hsla(var(--hue), 60%, 64%, 0.5),
    inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: box-shadow 0.4s;
}

.button i {
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  box-shadow:
    0 8px 48px hsla(var(--hue), 60%, 64%, 0.7),
    inset 8px -8px 30px var(--first-color-alt-2);
}

/* About Section */
.about {
  position: relative;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

.about__data .section__title {
  margin-bottom: 1.5rem;
  text-align: initial;
}

.about__description {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #e2e8f0;
  margin-bottom: 2.25rem;
}

.about__description b {
  color: #ffffff !important;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1) {
  top: 1.5rem;
  left: 1rem;
}

.about__image .blob-animate:nth-child(2) {
  right: -0.5rem;
  bottom: 0.5rem;
}

.about__profile {
  width: 220px;
}

.about__shadow {
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 60%,
    var(--body-color) 95%
  );
}

/* Projects Section */
.projects .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.projects__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number,
.projects__data,
.projects__image {
  position: relative;
  z-index: 1;
}

.projects__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__number h1,
.projects__number .projects__num {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.projects__number h3 {
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data {
  margin-block: 2rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  color: #ffffff;
}

.projects__subtitle {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
  color: #a78bfa;
  font-weight: 600;
}

.projects__description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.projects__img {
  border-radius: 1.5rem;
}

.projects__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    box-shadow 0.4s,
    opacity 0.4s;
}

.projects__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button {
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__swiper {
  margin-inline: initial;
  padding: 2rem;
}

.projects .swiper-pagination-bullets {
  bottom: 0;
}

.projects .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/* Work */
.work__tabs {
  background-color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
}

.work__button {
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color 0.4s;
}

.work__button i {
  font-size: 1rem;
}

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

.work__area {
  position: relative;
  padding-left: 1rem;
}

.work__content {
  display: grid;
  row-gap: 4rem;
}

.work__card {
  display: grid;
  row-gap: 1rem;
}

.work__data {
  display: flex;
  justify-content: space-between;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.work__subtitle {
  font-size: var(--normal-font-size);
  font-weight: 600;
  color: #a78bfa;
}

.work__description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin-top: 0.5rem;
}

.work__year {
  font-size: var(--h1-font-size);
  color: #cbd5e1;
}

.work__line {
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 60%, 64%, 0),
    var(--first-color-alt-2)
  );
  position: absolute;
  left: -0.25rem;
}

.work__line::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

/* Show & hide sections */
.work__area [data-content] {
  display: none;
}

.work-active[data-content] {
  display: grid;
}

/* Active tab */
.work__button.work-active {
  color: var(--first-color);
}

/* Services */
.services__container {
  row-gap: 2rem;
}

.services__card {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
}

.services__card .blob {
  z-index: 0;
  top: -7.75rem;
  left: -7.75rem;
}

.services__card .blob-2 {
  left: initial;
  right: -7.75rem;
}

.services__data,
.services__info {
  position: relative;
  z-index: 1;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.services__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.services__skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.services__skill {
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
}

.services__button i {
  transition: rotate 0.4s;
}

/* Hide services info */
.services__close .services__info {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Rotate icon */
.services__open .services__button i {
  rotate: -180deg;
}

.services__info {
  transition:
    height 0.4s ease,
    opacity 0.4s ease;
}

/* Testimonials */
.testimonials .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.testimonials__container {
  position: relative;
  margin-inline: 0;
  overflow: hidden;
}

.testimonials__card {
  position: relative;
  width: 320px;
  background-color: var(--container-color);
  padding: 1.5rem 1rem 2.5rem;
  margin-inline: 1rem;
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
}

.testimonials__card .blob {
  z-index: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: -12.5rem;
}

.testimonials__data {
  position: relative;
  z-index: 1;
}

.testimonials__img {
  width: 60px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1.5rem;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.testimonial__stars {
  display: flex;
  column-gap: 0.25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--title-color);
}

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

.testimonial__content {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.testimonials__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

.testimonial__content:hover {
  animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Contact */
.contact__container {
  row-gap: 4rem;
  padding-bottom: 2rem;
}

.contact .section__title {
  margin-bottom: 1rem;
}
.contact__data {
  text-align: center;
}

.contact__description {
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__email {
  display: none;
}

.contact__button {
  cursor: pointer;
}

.contact__content {
  row-gap: 3rem;
}

.contact__info {
  row-gap: 1rem;
}

.contact__title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact__address {
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-regular);
  text-align: center;
}

.contact__links {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: 0.25rem;
}

.contact__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.5rem;
  transition:
    transform 0.4s,
    color 0.4s;
}

.contact__link i {
  font-size: 1.5rem;
}

.contact__link:hover {
  transform: translateX(0.35rem);
  color: var(--text-color);
}

/* Footer */
.footer {
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}

.footer .blob-animate {
  right: -3rem;
  bottom: -3rem;
}

.footer__copy {
  color: var(--title-color);
}

.footer__copy span {
  color: var(--first-color);
}

.footer__year {
  font-family: var(--second-font);
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(240, 6%, 12%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(240, 6%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(240, 6%, 24%);
}

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

  .blob,
  .home__image .blob-animate {
    width: 220px;
    height: 220px;
  }

  .projects__card {
    padding-inline: 1rem;
  }

  .work__tabs {
    padding-inline: 1rem;
  }

  .testimonials__card {
    width: 250px;
    padding-bottom: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container,
  .work__container,
  .services__container {
    grid-template-columns: 460px;
    justify-content: center;
  }

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

  :is(.projects, .testimonials) .section__title {
    text-align: center;
    margin-left: 0;
  }

  .projects__card {
    width: 350px;
  }

  .work__tabs {
    width: 330px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    width: 600px;
  }

  .work__container {
    grid-template-columns: 600px;
  }

  .work__area {
    padding-left: 0;
  }

  .work__card {
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }

  .work__line {
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .services__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }
}

@media screen and (min-width: 768px) and (max-width: 1149px) {
  .home__container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 4rem;
  }
  .home__data {
    position: static;
    text-align: center;
  }
  .home__image {
    position: relative;
    margin: 0 auto;
  }
  .home__profile {
    width: 320px;
    border-radius: 2rem;
  }
  .home__info {
    position: static;
    text-align: center;
  }
  .home__profession-1,
  .home__profession-2 {
    text-align: center;
    transform: none;
  }
  .home__social {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  .home__cv {
    position: static;
    margin: 0 auto;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section-top {
    padding-block: 0rem 0rem;
  }

  .section-two {
    margin-top: -3rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 5.5rem;
  }

  .home__container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
  }

  .home__profile {
    width: 360px;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    justify-self: center;
    transition: transform 0.4s ease;
  }
  .home__profile:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .home__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home__image .blob-animate {
    width: 320px;
    height: 320px;
    bottom: 2rem;
    filter: blur(45px);
  }

  .home__shadow {
    display: none;
  }

  .home__data {
    position: static;
    text-align: right;
    justify-self: end;
    max-width: 320px;
    z-index: 2;
  }

  .home__greeting {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .home__name {
    font-size: 2rem;
    line-height: 1.25;
  }

  .home__info {
    position: static;
    text-align: left;
    justify-self: start;
    max-width: 320px;
    z-index: 2;
  }

  .home__split {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .home__profession-1 {
    font-size: 1.75rem;
    text-align: left;
    line-height: 1.2;
  }

  .home__profession-2 {
    font-size: 1.75rem;
    text-align: left;
    transform: none;
    line-height: 1.2;
    margin-top: 0.25rem;
  }

  .home__social {
    position: absolute;
    bottom: -1rem;
    left: 2rem;
    display: flex;
    flex-direction: row;
    column-gap: 1.25rem;
    z-index: 2;
  }

  .home__social-link {
    font-size: 1.4rem;
  }

  .home__cv {
    position: absolute;
    bottom: -1rem;
    right: 2rem;
    font-size: var(--normal-font-size);
    rotate: 0deg;
    z-index: 2;
  }

  .about__container {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin-inline: auto;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: center;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
    font-size: 1.05rem;
  }


  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-bottom: 4rem;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: 5rem;
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--bigger-font-size);
  }

  .work__subtitle,
  .work__desciption {
    font-size: var(--h3-font-size);
  }

  .services__container {
    grid-template-columns: repeat(2, 455px);
    column-gap: 5rem;
  }

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

  .services__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
  }

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(
      90deg,
      hsl(0, 0%, 0%) 0%,
      hsla(0, 0%, 0%, 0) 100%
    );
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      hsla(0, 0%, 0%, 0) 0%,
      hsl(0, 0%, 0%) 100%
    );
  }

  .testimonials__card {
    width: 370px;
    padding: 3rem 2rem;
    border-radius: 4rem;
  }

  .testimonials__number {
    font-size: var(--normal-font-size);
  }

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

  .contact__description {
    font-size: var(--h2-font-size);
  }

  .contact__content {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

  .contact__write {
    justify-self: flex-end;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

/* Custom cursor is hidden for mobile devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE (max-width: 767px)
   ============================================ */
@media screen and (max-width: 767px) {

  /* --- NAV: Compact header + fixed bottom pill --- */
  .header {
    background: rgba(3, 2, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav {
    align-items: center;
    justify-content: center;
    padding-block: 0.75rem;
  }
  .nav__logo {
    font-size: 0.9rem;
    letter-spacing: -0.02em;
  }
  /* Hide nav__menu from header flow on mobile */
  .nav__menu {
    display: none;
  }
  /* Show nav as fixed bottom pill */
  .nav__menu {
    display: block;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-fixed);
    background: rgba(14, 13, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 3rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124,58,237,0.1);
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
  }
  .nav__link {
    font-size: 0.6rem;
    padding: 0.4rem 0.65rem;
    border-radius: 2rem;
    white-space: nowrap;
    display: block;
  }
  .nav__link.active-link {
    background: rgba(124, 58, 237, 0.25);
    color: var(--first-color);
  }

  /* --- HERO (HOME) Section --- */
  .home__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 4rem;
    padding-bottom: 6rem;
    gap: 1.25rem;
    text-align: center;
  }
  .home__data {
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
  }
  .home__status-badge {
    margin: 0 auto 1rem;
  }
  .home__greeting {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }
  .home__name {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0;
    text-align: center;
  }
  .home__buttons {
    justify-content: center;
    margin-top: 1.25rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.78rem;
    padding: 0.75rem 1.2rem;
  }

  .home__image {
    order: 2;
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    overflow: visible;
  }
  .home__profile {
    width: 220px !important;
    height: 280px !important;
    border-radius: 1.75rem !important;
    object-position: center 15% !important;
  }
  .home__image .blob-animate {
    width: 180px;
    height: 180px;
  }

  .home__info {
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 3;
    transform: none !important;
    text-align: center;
  }
  .home__split {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  .home__profession-1,
  .home__profession-2 {
    font-size: 1.1rem;
    text-align: center !important;
    transform: none !important;
  }

  .home__social {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    column-gap: 1.25rem;
    order: 4;
  }
  .home__social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    transition: background 0.2s;
  }
  .home__social-link:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: none;
  }

  .home__shadow {
    display: none;
  }
  .home__cv {
    display: none !important;
  }

  /* --- STATS STRIP --- */
  .stats__section {
    padding: 1rem 0 0.5rem;
  }
  .stats__container {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.25rem;
  }
  .stat__icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 0.85rem;
  }
  .stat__number {
    font-size: 1.15rem;
  }
  .stat__label {
    font-size: 0.72rem;
  }

  /* --- ABOUT --- */
  .about__container {
    grid-template-columns: 1fr !important;
    row-gap: 2rem;
  }
  .about__data .section__title,
  .about__data {
    text-align: center;
  }
  .about__description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .about__image {
    display: none; /* hide profile image on mobile to save space */
  }
  .about__shadow {
    display: none;
  }
  .button {
    font-size: 0.8rem;
    padding: 0.85rem 1.4rem;
  }

  /* --- PROJECTS --- */
  .projects .section__title {
    text-align: center;
    margin-left: 0;
  }
  .projects__card {
    border-radius: 2rem;
    padding: 1.25rem;
  }
  .projects__number h1 {
    font-size: 1.5rem;
  }
  .projects__data {
    margin-block: 1.25rem;
  }
  .projects__title {
    font-size: 1rem;
  }
  .projects__description {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  /* --- WORK TIMELINE --- */
  .work__tabs {
    padding: 1rem 1.25rem;
    border-radius: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .work__button {
    font-size: 0.7rem;
    padding: 0.35rem 0;
  }
  .work__data {
    flex-direction: column;
    gap: 0.5rem;
  }
  .work__year {
    font-size: 0.85rem;
    color: var(--first-color);
  }
  .work__title {
    font-size: 1rem;
  }
  .work__subtitle {
    font-size: 0.78rem;
  }
  .work__description {
    font-size: 0.82rem;
    line-height: 1.65;
  }
  .work__content {
    row-gap: 2.5rem;
  }
  .work__area {
    padding-left: 1rem;
  }

  /* --- SERVICES / KO'NIKMALAR --- */
  .services__card {
    border-radius: 2rem;
    padding: 1.5rem 1.25rem;
  }
  .services__title {
    font-size: 1rem;
  }
  .services__description {
    font-size: 0.82rem;
    line-height: 1.65;
  }
  .services__skill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* --- TESTIMONIALS --- */
  .testimonials .section__title {
    text-align: center;
    margin-left: 0;
  }
  .testimonials__card {
    width: 260px;
  }

  /* --- CONTACT --- */
  .contact__description {
    font-size: 0.82rem;
  }
  .form__container {
    padding: 1.5rem 1.25rem;
    border-radius: 2rem;
  }
  .form__input, .form__textarea {
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
  }
  .form__label {
    font-size: 0.75rem;
  }
  .contact__links {
    justify-content: center;
    align-items: center;
  }
  .contact__link {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2rem;
    justify-content: center;
    margin-bottom: 0.35rem;
  }

  /* --- FLOATING TELEGRAM (mobile position) --- */
  .floating-telegram {
    bottom: 5.5rem;
    right: 1rem;
    padding: 0.7rem;
    border-radius: 50%;
  }
  .floating-telegram span {
    display: none;
  }
  .floating-telegram i {
    font-size: 1.5rem;
  }

  /* --- FOOTER --- */
  .footer {
    padding-bottom: 6rem; /* above bottom nav */
  }

  /* --- SECTION SPACING --- */
  .section {
    padding-block: 3rem 1.5rem;
  }
  .section__title {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }

  /* General container */
  .container {
    margin-inline: 1.25rem;
  }
}

/* Very small phones (iPhone SE, Galaxy A series small) */
@media screen and (max-width: 380px) {
  .home__name {
    font-size: 1.45rem;
  }
  .home__profile {
    width: 180px !important;
    height: 230px !important;
  }
  .stats__container {
    grid-template-columns: 1fr;
  }
  .nav__link {
    font-size: 0.52rem;
    padding: 0.4rem 0.55rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.73rem;
    padding: 0.7rem 1rem;
  }
}

