/* MANAV SOLS Website Upgrade
   Layered visual refresh. Loaded after style.css so existing pages stay stable. */

:root {
  --upgrade-glow: rgba(0, 217, 255, 0.18);
  --upgrade-glow-soft: rgba(0, 217, 255, 0.08);
  --upgrade-panel: rgba(12, 19, 30, 0.78);
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 217, 255, 0.07), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(115, 0, 255, 0.06), transparent 25%),
    #05080d;
}

.navbar {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(5, 8, 13, 0.78);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.logo {
  font-size: 22px;
  text-shadow: 0 0 24px var(--upgrade-glow);
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  min-height: min(790px, calc(100vh - 70px));
  padding-top: 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(0, 217, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 120px rgba(0, 217, 255, 0.05),
    inset 0 0 120px rgba(0, 217, 255, 0.03);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
  text-shadow: 0 0 35px rgba(0, 217, 255, 0.16);
}

.hero h2 {
  font-weight: 650;
}

.hero p {
  max-width: 760px;
  color: #bfc9d4;
}

.hero-buttons .btn {
  min-height: 48px;
  padding-inline: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.hero-buttons .primary {
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.18);
}

.section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.section > h2 {
  font-weight: 760;
}

.about-card,
.cards .card,
.contact-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-card,
.cards .card {
  border-color: rgba(255, 255, 255, 0.09);
}

.about-card:hover,
.cards .card:hover,
.contact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 217, 255, 0.34);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(0, 217, 255, 0.05);
}

.service-card {
  min-height: 225px;
}

.service-card i,
.sample-icon,
.contact-card i {
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.2));
}

.sample-card {
  min-height: 295px;
}

.sample-card .btn,
.card .btn {
  position: relative;
  z-index: 2;
}

.github-product-btn {
  vertical-align: middle;
  margin-left: 4px;
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.07);
}

.contact-grid {
  gap: 18px;
}

.contact-card {
  background: linear-gradient(145deg, rgba(17, 27, 41, 0.9), rgba(10, 16, 25, 0.92));
}

footer {
  background:
    linear-gradient(180deg, rgba(8, 12, 19, 0.95), #05080d),
    #05080d;
}

/* Lightweight CSS 3D hero scene — no external library required. */
.hero-3d-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
}

.hero-3d-grid {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -22%;
  height: 68%;
  transform: rotateX(67deg) translateZ(-30px);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.12) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.48;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 82%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 82%);
  animation: hero-grid-drift 18s linear infinite;
}

.hero-3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 80px currentColor;
  opacity: 0.58;
  transform-style: preserve-3d;
}

.hero-3d-orb-a {
  width: 150px;
  height: 150px;
  top: 17%;
  left: 12%;
  color: rgba(0, 217, 255, 0.22);
  background: radial-gradient(circle at 35% 30%, rgba(125, 238, 255, 0.72), rgba(0, 217, 255, 0.1) 42%, transparent 72%);
  animation: hero-orb-float-a 10s ease-in-out infinite;
}

.hero-3d-orb-b {
  width: 110px;
  height: 110px;
  top: 26%;
  right: 11%;
  color: rgba(125, 70, 255, 0.16);
  background: radial-gradient(circle at 40% 35%, rgba(214, 177, 255, 0.5), rgba(115, 0, 255, 0.08) 42%, transparent 72%);
  animation: hero-orb-float-b 12s ease-in-out infinite;
}

.hero-3d-ring {
  position: absolute;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.05);
}

.hero-3d-ring-a {
  width: 430px;
  height: 430px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) rotateX(70deg) rotateZ(10deg);
  animation: hero-ring-spin-a 26s linear infinite;
}

.hero-3d-ring-b {
  width: 620px;
  height: 620px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -46%) rotateX(69deg) rotateZ(-14deg);
  border-color: rgba(0, 217, 255, 0.08);
  animation: hero-ring-spin-b 34s linear infinite reverse;
}

@keyframes hero-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 58px, 58px 0; }
}

@keyframes hero-orb-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(42px, -28px, 80px); }
}

@keyframes hero-orb-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-34px, 24px, 70px); }
}

@keyframes hero-ring-spin-a {
  from { transform: translate(-50%, -46%) rotateX(70deg) rotateZ(10deg); }
  to { transform: translate(-50%, -46%) rotateX(70deg) rotateZ(370deg); }
}

@keyframes hero-ring-spin-b {
  from { transform: translate(-50%, -46%) rotateX(69deg) rotateZ(-14deg); }
  to { transform: translate(-50%, -46%) rotateX(69deg) rotateZ(-374deg); }
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .hero-3d-grid {
    left: -45%;
    right: -45%;
    bottom: -16%;
    height: 58%;
  }

  .hero-3d-ring-b {
    width: 520px;
    height: 520px;
  }
}

@media (max-width: 700px) {
  .navbar {
    padding-inline: 16px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .section {
    padding: 72px 18px;
  }

  .cards,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 360px;
  }

  .hero-3d-grid {
    opacity: 0.32;
    background-size: 44px 44px;
  }

  .hero-3d-orb-a {
    width: 110px;
    height: 110px;
    left: 0;
  }

  .hero-3d-orb-b {
    width: 84px;
    height: 84px;
    right: 0;
  }

  .hero-3d-ring-a {
    width: 330px;
    height: 330px;
  }

  .hero-3d-ring-b {
    width: 440px;
    height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
