@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* ==========================================================================
   Gagandeep Singh — Portfolio
   Beautified custom stylesheet (no external CSS libraries)
   Preserves every class hook the templates / JS depend on.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --bg-3: #131a3a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e7ecf6;
  --text-dim: #a9b2c8;
  --text-mute: #7a8398;

  --accent: #7c5cff;        /* violet */
  --accent-2: #22d3ee;       /* cyan */
  --accent-3: #f0abfc;       /* pink */
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.18));

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,.35), 0 20px 60px rgba(124,92,255,.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: 'Source Sans Pro', 'Poppins', system-ui, sans-serif;
  --font-body: 'PT Sans', 'Source Sans Pro', system-ui, sans-serif;

  --container: 122rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Resets ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);


}
*::before, *::after { box-sizing: inherit; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  /* Safe to keep overflow-x hidden on html now that the mobile menu lives
     OUTSIDE <header> (no clipping containing-block issue). */
  overflow-x: hidden;
}
@media (max-width: 75em) { html { font-size: 59%; } }
@media (max-width: 56.25em) { html { font-size: 56%; } }
@media (min-width: 112.5em) { html { font-size: 65%; } }

body {
  position: relative;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* overflow-y left to default so iOS Safari / Chrome Android can collapse
     the URL bar smoothly. Forcing overflow-y: scroll here combined with
     background-attachment: fixed was a key cause of the scroll "shake". */
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Solid base color only. The aurora gradient layer is now painted on
     a separate fixed pseudo-element (body::after) so it does NOT have to
     repaint as the mobile URL bar shows/hides — which was causing the
     flicker / shake on scroll. */
  background-color: #0a0f1f;
}
body.modal-open { overflow: hidden !important; }

/* Aurora / mesh background — isolated on its own fixed layer.
   position: fixed avoids the broken `background-attachment: fixed` behavior
   on iOS Safari & Chrome Android, where the dynamic viewport (URL bar) causes
   the painted background to shake/jump on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;            /* sit behind all content */
  pointer-events: none;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, .25), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(240, 171, 252, .12), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1f 100%);
  /* Promote to its own compositor layer so scroll never repaints it. */
  will-change: transform;
  transform: translateZ(0);
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5;
  mix-blend-mode: overlay;
  /* Own compositor layer; prevents repaint on every scroll frame. */
  will-change: transform;
  transform: translateZ(0);
}

/* On mobile, mix-blend-mode is expensive and is a secondary cause of the
   scroll judder on lower-end devices. Drop the blend mode (keep the noise
   visible via opacity alone) — visually nearly identical, dramatically
   smoother. */
@media (max-width: 56.25em) {
  body::before {
    mix-blend-mode: normal;
    opacity: .25;
  }
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
input:focus, button:focus, a:focus, textarea:focus { outline: none; }
button { border: none; cursor: pointer; background: transparent; color: inherit; font: inherit; }
textarea { resize: none; }

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0f1f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a3358, #1a2147);
  border-radius: 10px;
  border: 2px solid #0a0f1f;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3a4578, #232c5a); }

/* ---------- Layout helpers ---------- */
.main-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}
.sec-pad { padding: 12rem 0; }
@media (max-width: 56.25em) { .sec-pad { padding: 8rem 0; } }

.d-none { display: none !important; }
.my-2 { margin: 1.6rem 0; }
.mt-5 { margin-top: 3rem; }

/* ---------- Typography ---------- */
.heading-primary {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #c8d0ea 60%, #7c5cff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
}

.heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.heading-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.heading-sec__main {
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--text);
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}
.heading-sec__main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  width: 7rem;
  height: 4px;
  border-radius: 4px;
  background: var(--accent-grad);
  box-shadow: 0 0 20px rgba(124, 92, 255, .6);
}
.heading-sec__main--lt { color: #fff; }
.heading-sec__sub {
  margin-top: 2.6rem;
  font-size: 1.7rem;
  color: var(--text-dim);
  max-width: 70rem;
  line-height: 1.7;
}
.heading-sec__sub--lt { color: rgba(255,255,255,.85); }
.heading-sec__mb-med { margin-bottom: 6rem; }
.heading-sec__mb-bg { margin-bottom: 8rem; }

.heading-sm {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2rem;
  color: var(--text);
}
.text-lt { color: #fff; }

.text-primary {
  font-size: 1.7rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.4rem 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn--bg {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124,92,255,.35);
}
.btn--bg:hover { box-shadow: 0 18px 50px rgba(124,92,255,.5); }

.btn--theme {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124,92,255,.35);
}
.btn--theme:hover { box-shadow: 0 18px 50px rgba(124,92,255,.5); }

.btn--theme-inv {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--theme-inv:hover {
  color: #fff;
  border-color: transparent;
}
.btn--theme-inv:hover::before { opacity: 1; }

.btn--med { padding: 1.3rem 2.8rem; font-size: 1.4rem; }

.btn-success {
  display: inline-block;
  padding: 1.2rem 2.6rem;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1.4rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(124,92,255,.45); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.header__content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 6rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__logo-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.header__logo-container:hover { transform: translateY(-1px); }

.header__logo-img-cont {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--accent-grad) border-box;
  flex-shrink: 0;
  position: relative;
}
.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.header__logo-sub {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.header__main { display: flex; align-items: center; gap: 2rem; }
.header__links {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.header__link-wrapper { position: relative; }
.header__link {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: .9rem 1.6rem;
  border-radius: 999px;
  position: relative;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.header__link:hover { color: var(--text); background: var(--surface); }
.header__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .3rem;
  width: 0;
  height: 2px;
  background: var(--accent-grad);
  transition: width .3s var(--ease), left .3s var(--ease);
  border-radius: 2px;
}
.header__link:hover::after { width: 50%; left: 25%; }

/* Hamburger */
.header__main-ham-menu-cont {
  display: none;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.header__main-ham-menu-cont:hover { background: var(--surface-2); }
.header__main-ham-menu,
.header__main-ham-menu-close { width: 2.4rem; height: 2.4rem; filter: invert(1) brightness(.95); }

@media (max-width: 56.25em) {
  .header__links { display: none; }
  .header__main-ham-menu-cont { display: flex; }
}

/* Mobile menu */
.header__sm-menu {
  position: fixed;
  top: 7.4rem; left: 0; right: 0;
  background: rgba(11, 16, 32, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  /* Sits ABOVE the fixed header (z-index: 100). The menu is now a sibling
     of <header>, so position:fixed is anchored to the viewport (not to the
     header's backdrop-filter containing block) and slides in correctly even
     when overflow:hidden is set on <html>/<body>. */
  z-index: 110;
}
.header__sm-menu--active { transform: translateY(0); opacity: 1; }
.header__sm-menu-content { padding: 2rem 3rem 3rem; }
.header__sm-menu-links { display: flex; flex-direction: column; gap: .4rem; }
.header__sm-menu-link a {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.header__sm-menu-link a:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12rem 3rem 6rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  width: 60rem; height: 60rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.18), transparent 60%);
  top: -10%; left: -10%;
  filter: blur(40px);
  z-index: 0;
  animation: floatBlob 12s ease-in-out infinite;
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 50rem; height: 50rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.14), transparent 60%);
  bottom: -10%; right: -10%;
  filter: blur(40px);
  z-index: 0;
  animation: floatBlob 14s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}

.home-hero__content {
  max-width: 80rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s var(--ease) both;
}
.home-hero__info {
  margin: 2rem auto 3rem;
  max-width: 65rem;
}
.home-hero__cta {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.home-hero__socials {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
  animation: fadeIn 1.2s .4s var(--ease) both;
}
.home-hero__social {
  width: 4.6rem;
  height: 4.6rem;
}
.home-hero__social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.home-hero__social-icon-link:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--surface-2);
  border-color: var(--accent);
}
.home-hero__social-icon { width: 2rem; height: 2rem; filter: invert(1) brightness(.9); }
.home-hero__social-icon-link--bd-none { border-color: transparent; }

@media (max-width: 56.25em) {
  .home-hero__socials {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 3rem;
  }
}

.home-hero__mouse-scroll-cont {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 2.4rem;
  height: 4rem;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: .8rem;
  left: 50%;
  transform: translateX(-50%);
  width: .4rem;
  height: .8rem;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 1.4rem); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- About ---------- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
@media (max-width: 56.25em) {
  .about__content { grid-template-columns: 1fr; gap: 4rem; }
}
.about__content-main { position: relative; }
.about__content-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: .8rem;
}
.about__content-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 4rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.about__content-details-para {
  font-size: 1.6rem;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.about__content-details-para strong { color: var(--text); }

/* Skills as elegant chips */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.4rem;
}
.skills__skill {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  cursor: default;
}
.skills__skill:hover {
  transform: translateY(-2px);
  background: var(--accent-grad-soft);
  border-color: var(--accent);
  color: #fff;
}

/* Experience cards */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: .6rem;
}
.exp {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.exp:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.exp .icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--accent-grad);
  flex-shrink: 0;
  margin-top: .8rem;
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.exp-content { flex: 1; }
.exp-content .designation { font-size: 1.55rem; color: var(--text); }
.exp-content .designation strong { font-weight: 700; }
.exp-content .company { font-size: 1.4rem; color: var(--text-dim); margin-top: .2rem; }
.exp-content .duration { font-size: 1.25rem; color: var(--text-mute); }

/* ---------- Projects (Slider) ---------- */
.projects { position: relative; }

.projects__content {
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
}

/* Slider track wrapper */
.projects__slider {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.projects__track {
  display: flex;
  transition: transform .7s var(--ease);
  will-change: transform;
}

/* Each project becomes a slide */
.projects__row {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.projects__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(124,92,255,.10), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(34,211,238,.08), transparent 60%);
  pointer-events: none;
}

@media (max-width: 56.25em) {
  .projects__row {
    grid-template-columns: 1fr;
    padding: 2.4rem;
    gap: 2.4rem;
  }
}

.projects__row-img-cont {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0a0f1f;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.projects__row-img-cont::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
  pointer-events: none;
}
.projects__row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.projects__row:hover .projects__row-img { transform: scale(1.04); }

.projects__row-content { position: relative; z-index: 1; }
.projects__row-content-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.projects__row-content-desc {
  font-size: 1.55rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2.4rem;
}

/* Slider controls */
.projects__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.projects__nav-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  backdrop-filter: blur(8px);
}
.projects__nav-btn:hover {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124,92,255,.35);
}
.projects__nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--surface);
  color: var(--text);
}
.projects__dots {
  display: flex;
  gap: .8rem;
  align-items: center;
}
.projects__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.projects__dot--active {
  width: 3rem;
  border-radius: 999px;
  background: var(--accent-grad);
}
.projects__counter {
  font-size: 1.4rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 5rem;
  text-align: center;
}

/* Touch hint for mobile */
@media (max-width: 56.25em) {
  .projects__nav-btn { width: 4.4rem; height: 4.4rem; font-size: 1.6rem; }
}

/* ---------- Project case-study page ---------- */
.project-cs-hero {
  min-height: 60vh;
  padding: 14rem 3rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.project-cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(600px 400px at 80% 100%, rgba(34,211,238,.12), transparent 60%);
  z-index: 0;
}
.project-cs-hero__content {
  max-width: 80rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s var(--ease) both;
}
.project-cs-hero__info { margin: 2rem auto 3rem; }
.project-cs-hero__cta { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }

.project-details { padding: 6rem 0 12rem; }
.project-details__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 56.25em) {
  .project-details__content { grid-template-columns: 1fr; gap: 3rem; }
}
.project-details__showcase-img-cont {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);

  top: 10rem;
}
.project-details__showcase-img { width: 100%; height: auto; display: block; }
.project-details__content-main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.project-details__content-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.4rem;
  position: relative;
  display: inline-block;
  padding-bottom: .8rem;
}
.project-details__content-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 3.5rem; height: 3px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.project-details__desc-para {
  font-size: 1.6rem;
  color: var(--text-dim);
  line-height: 1.85;
}
.project-details__desc-para a { color: var(--accent-2); text-decoration: underline; }
.project-details__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.project-details__links-btn { }

/* ---------- Contact ---------- */
.contact.dynamicBg, .dynamicBg {
  background:
    radial-gradient(1000px 400px at 0% 0%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(135deg, #131a3a 0%, #0f1530 100%);
  position: relative;
}
.contact.dynamicBg::before, .dynamicBg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.contact__form-container {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3.6rem;
  background: rgba(11, 16, 32, .55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.contact__form { display: flex; flex-direction: column; gap: 2rem; }
.contact__form-field { display: flex; flex-direction: column; gap: .6rem; }
.contact__form-label {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15rem;
  color: var(--text-dim);
}
.contact__form-input {
  width: 100%;
  font-size: 1.55rem;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.contact__form-input::placeholder { color: var(--text-mute); }
.contact__form-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}
textarea.contact__form-input { min-height: 14rem; line-height: 1.6; }

#name-error, #email-error, #message-error {
  font-size: 1.3rem;
  color: #ff7a90;
  margin-top: .2rem;
  font-weight: 600;
}

.contact__btn {
  align-self: flex-start;
  margin-top: .8rem;
  min-width: 18rem;
}
@media (max-width: 36em) { .contact__btn { width: 100%; } }

/* ---------- Footer ---------- */
.main-footer {
  background: linear-gradient(180deg, #07091a 0%, #050714 100%);
  color: var(--text-dim);
  padding: 6rem 0 3rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.main-footer__upper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 56.25em) {
  .main-footer__upper { grid-template-columns: 1fr; gap: 3rem; }
}
.main-footer__heading-sm { margin-bottom: 1.6rem; color: #fff; }
.main-footer__social-cont { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-footer__icon {
  width: 4.6rem;
  height: 4.6rem;
  padding: 1.1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  filter: brightness(0) invert(1);
}
.main-footer__icon:hover {
  transform: translateY(-3px);

  border-color: white;
}
.main-footer__icon--mr-none { margin-right: 0; }
.main-footer__row-2 .heading-sm { margin-bottom: 1rem; font-size: 2rem; letter-spacing: 0; text-transform: none; font-family: var(--font-display); }
.main-footer__short-desc {
  font-size: 1.4rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 60rem;
}
.main-footer__lower {
  padding-top: 2.4rem;
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-mute);
  letter-spacing: .03em;
}
.main-footer__lower a {
  color: var(--text);
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 20, .75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn .3s var(--ease);
}
.modal[style*="block"] { display: flex !important; }
.modal-content {
  max-width: 46rem;
  width: 100%;
  padding: 4rem 3rem;
  background: linear-gradient(180deg, #131a3a, #0f1530);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  animation: popIn .4s var(--ease) both;
}
.modal-content svg {
  margin: 0 auto 1.6rem;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(60, 200, 120, .35));
}
.modal-content svg path { fill: #4ade80 !important; }
.modal-content p {
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Reveal-on-scroll utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section dividers / accents ---------- */
.about, .projects { position: relative; }
.about::before {
  content: "";
  position: absolute;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(124,92,255,.10), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.projects::before {
  content: "";
  position: absolute;
  width: 50rem; height: 50rem;
  border-radius: 50%;
  bottom: 10%; left: -15%;
  background: radial-gradient(circle, rgba(34,211,238,.08), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

/* ---------- Small screens tweaks ---------- */
@media (max-width: 36em) {
  .main-container { padding: 0 2rem; }
  .home-hero { padding: 10rem 2rem 4rem; }
  .home-hero__cta { flex-direction: column; align-items: stretch; }
  .home-hero__cta .btn { width: 100%; }
  .heading-sec__sub { font-size: 1.5rem; padding: 0 1rem; }
  .contact__form-container { padding: 2.4rem 1.8rem; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .header, .main-footer, .home-hero__socials, .home-hero__mouse-scroll-cont, .projects__nav { display: none !important; }
}