/* ============================================
   DEEPAK.S PORTFOLIO — style.css
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  color: #fff;
  transition: transform 0.10s cubic-bezier(0.86, 0, 0.07, 1);
}

.loader.is-hidden {
  transform: translateY(-100%);
}

.loader__content {
  display: flex;
  align-items: center;
  /* Horizontally spans across keeping items centered vertically */
  justify-content: space-between;
  width: 100%;
  padding: 0 5%;
}

.loader__percent {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  min-width: 60px;
  margin-top: 25px;
  /* Offset to center relative to bar */
}

.loader__main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-grow: 1;
  margin-left: 20px;
}

.loader__title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  animation: txtReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.loader__bar-wrapper {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.loader__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

.loader__subtitle {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: lowercase;
  margin-top: 12px;
  opacity: 0;
  animation: txtReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes txtReveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  /* Changed to completely transparent */
  /* backdrop-filter: blur(12px); Removed to stop blurring the background */
  /* -webkit-backdrop-filter: blur(12px); */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.06); Removed border */
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-circle {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a1a1a 40%, #444 100%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.header__logo-circle::after {
  content: 'D';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.header__logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- NAV OVERLAY ---------- */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  min-width: 280px;
  height: 100vh;
  background: #f5f5f5;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-overlay.is-open {
  transform: translateX(0);
}

.nav-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #111;
  line-height: 1;
  padding: 6px;
  transition: opacity 0.2s;
}

.nav-overlay__close:hover {
  opacity: 0.5;
}

.nav-overlay__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nav-overlay__link {
  font-size: 42px;
  font-weight: 400;
  color: #111;
  display: block;
  position: relative;
  transition: opacity 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.nav-overlay__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.3s ease;
}

.nav-overlay__link:hover::after {
  width: 100%;
}

.nav-overlay__link:hover {
  opacity: 0.5;
}

/* Overlay backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 36px 60px;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  /* Let clicks pass through if needed */
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero__tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__headline {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Scroll Down */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 36px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hero__scroll-icon {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.hero__scroll-wheel {
  width: 4px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(10px);
    opacity: 0;
  }

  61% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ---------- ABOUT SECTION ---------- */
.about {
  position: relative;
  background: #fff;
  color: #000;
  overflow: hidden;
  min-height: 100vh;
}

.about__bg-img {
  position: absolute;
  inset: 0;
  background: url('images/grid_texture.png') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.about__content {
  position: relative;
  z-index: 1;
  padding: 120px 36px 40px;
  max-width: 900px;
}

.about__heading {
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  font-family: 'Inter', sans-serif;
}

.about__collage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 600px;
  /* Increased to give images more breathing room */
  margin-top: 60px;
  margin-bottom: 60px;
  /* Adds space before next section */
  perspective: 1200px;
  /* Enable fully immersive 3D space */
  transform-style: preserve-3d;
}

.about__collage-item {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  /* Deeper shadow for 3D effect */
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  transform-style: preserve-3d;
}

.about__collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  /* Slight scale to prevent edge bleeding on parallax */
}

.about__collage-item--headphones {
  top: 5%;
  right: 12%;
  /* Pulled inwards to center more */
  width: 28%;
  max-width: 360px;
  aspect-ratio: 1 / 1.1;
  /* Maintains image proportions automatically */
  height: auto;
  z-index: 1;
}

.about__collage-item--fashion {
  bottom: 5%;
  /* Adjusted so it doesn't overflow */
  left: 12%;
  /* Pulled inwards to center more */
  width: 26%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  height: auto;
  z-index: 2;
}

.about__collage-item--coming-soon {
  bottom: 15%;
  /* Boosted from the bottom */
  left: 38%;
  /* Adjusted to center between the two */
  width: 25%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  height: auto;
  z-index: 3;
}

/* ---------- SKILLS SECTION ---------- */
.skills {
  position: relative;
  background: #f4f4f0;
  color: #111;
  padding: 100px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skills__header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  pointer-events: none;
  padding: 0 20px;
}

.skills__title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  color: #222;
  letter-spacing: -0.02em;
}

.skills__highlight {
  background: #222;
  color: #f4f4f0;
  padding: 2px 16px;
  display: inline-block;
}

.skills__canvas-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.skills__pill {
  position: absolute;
  top: 0;
  left: 0;
  background: #fa5c18;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 40px;
  padding: 14px 28px;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills__pill-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.skills__pill:active {
  cursor: grabbing;
}

.skills__pill--drag {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skills__pill--drag::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed #111;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- SERVICES SECTION ---------- */
.services {
  position: relative;
  background: #f0f2f5;
  color: #111;
  padding: 100px 36px;
  overflow: hidden;
}

.services__glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 0;
}

.services__glow--left {
  left: 0;
  background: linear-gradient(to right, rgba(100, 140, 255, 0.25), transparent);
}

.services__glow--right {
  right: 0;
  background: linear-gradient(to left, rgba(100, 140, 255, 0.25), transparent);
}

.services__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.services__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: #111;
  margin-bottom: 60px;
  letter-spacing: 0.01em;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.services__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services__item--wide {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.services__item-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.services__item-name--link a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.services__item-name--link a:hover {
  opacity: 0.5;
}

.services__item-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  text-align: center;
}

.services__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 70px;
  color: #888;
}

.services__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.services__scroll-dot {
  width: 5px;
  height: 7px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

/* ---------- RECENT PROJECTS ---------- */
.projects {
  background: #f0f2f5;
  padding: 60px 36px 100px;
}

.projects__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.projects__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: #111;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

.project-card__name {
  font-size: 18px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.01em;
}

.project-card__desc {
  font-size: 14px;
  line-height: 1.72;
  color: #555;
}

/* ---------- CERTIFICATIONS ---------- */
.certs {
  position: relative;
  background: #0a0a0a;
  padding: 100px 0;
  /* Removed horizontal padding to let animation stretch edge-to-edge */
  overflow: hidden;
}

.certs__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(60, 80, 200, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dot particle pattern */
.certs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

.certs__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  /* Hide overflowing marquee items */
}

.certs__marquee {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 0 32px;
  animation: scrollMarquee 35s linear infinite;
}

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

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 16px));
  }

  /* Shift halfway to allow loop + offset gap */
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 320px;
  flex-shrink: 0;
}

.cert-card__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  /* White background for transparent or padded images */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.cert-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cert-card:hover .cert-card__img {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

.cert-card__badge {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  gap: 8px;
  position: relative;
}

.cert-card__badge--oracle {
  background: linear-gradient(135deg, #1a1a1a 60%, #2a2626);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-card__badge--infosys {
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cert-card__badge--google {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cert-card__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cert-card__type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cert-card__name-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.cert-card__title-text {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* Infosys badge */
.cert-card__infosys-logo {
  font-size: 18px;
  font-weight: 900;
  color: #007cc3;
  line-height: 1.1;
}

.cert-card__infosys-logo span {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.cert-card__badge--infosys .cert-card__type,
.cert-card__badge--infosys .cert-card__name-text,
.cert-card__badge--infosys .cert-card__title-text {
  color: #444;
}

.cert-card__badge--infosys .cert-card__type {
  color: #777;
}

/* Google badge */
.cert-card__google-header {
  font-size: 10px;
  color: #666;
  font-weight: 500;
}

.cert-card__google-logo {
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 0.02em;
}

.cert-card__badge--google .cert-card__title-text {
  color: #333;
  font-size: 10px;
}

.cert-card__title {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.cert-card__btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
  width: fit-content;
}

.cert-card__btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  background: #0a0a0a;
  padding: 80px 36px 48px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 100%, rgba(80, 100, 220, 0.18), transparent 60%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__email {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.footer__email:hover {
  opacity: 0.6;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__social-link {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer__social-link:hover {
  color: #fff;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* ---------- SCROLL-REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px 60px;
  }

  .about__content {
    padding: 80px 24px 30px;
  }

  .about__collage {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .about__collage-item {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;
  }

  .services {
    padding: 60px 24px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__item--wide {
    grid-column: auto;
    margin: 0;
  }

  .projects {
    padding: 40px 24px 60px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .certs {
    padding: 60px 24px;
  }

  .certs__grid {
    grid-template-columns: 1fr;
  }

  .nav-overlay {
    width: 100%;
  }

  .header__inner {
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- VISITOR COUNTER ---------- */
.visitor-counter {
  position: fixed;
  bottom: 30px;
  right: 36px;
  background: rgba(255, 255, 255, 0.05);
  /* subtle transparency */
  backdrop-filter: blur(10px);
  /* glass effect for website match */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  pointer-events: none;
}

.visitor-counter__icon {
  fill: rgba(255, 255, 255, 0.8);
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.visitor-counter__number {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .visitor-counter {
    bottom: 20px;
    right: 24px;
    padding: 8px 16px;
  }

  .visitor-counter__number {
    font-size: 14px;
  }

  .visitor-counter__icon {
    width: 18px;
    height: 18px;
  }
}

/* ---------- CUSTOM CURSOR ---------- */
@media (pointer: fine) {

  body,
  a,
  button,
  .skills__pill,
  .project-card,
  .services__item,
  .cert-card,
  img {
    cursor: none !important;
  }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #990000;
  /* Dark Red accent */
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  /* Hidden until mouse moves */
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(153, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  /* Hidden until mouse moves */
}

.cursor-outline.hovering {
  width: 50px;
  height: 50px;
  background-color: rgba(153, 0, 0, 0.25);
}

@media (pointer: coarse) {

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}