@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Base (light) theme tokens */
  --bg-page: radial-gradient(circle at top left, #f5f3ff 0, #fdfbff 45%, #f3f4ff 100%);
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --accent: linear-gradient(135deg, #ff3cac, #784ba0, #2b86c5);
  --accent-2: linear-gradient(135deg, #00b894, #00cec9);
  --text-main: #0b1020;
  --text-muted: #6f7390;
  --border-glass: rgba(15, 23, 42, 0.08);
  --blur-radius: 22px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.15);
  --transition-fast: 0.25s ease-out;
  --transition-med: 0.45s ease;
}

body[data-theme="dark"] {
  --bg-page: radial-gradient(circle at top left, #311b92 0, #050510 45%, #000 100%);
  --bg-elevated: rgba(15, 15, 35, 0.9);
  --text-main: #f8f9ff;
  --text-muted: #a3a6c2;
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}

body::before {
  background: radial-gradient(circle at 30% 20%, #ff3cac, transparent 60%);
  top: -120px;
  left: -80px;
  animation: floatBlob 28s infinite alternate ease-in-out;
}

body::after {
  background: radial-gradient(circle at 70% 80%, #00d2ff, transparent 60%);
  bottom: -160px;
  right: -100px;
  animation: floatBlob 32s infinite alternate ease-in-out;
}

.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.06) 0, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.04) 0, transparent 40%);
  opacity: 0.65;
  transform: translate3d(0, 0, 0);
  animation: parallaxDrift 40s linear infinite;
}

main {
  position: relative;
  z-index: 1;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-transition {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-transition.page-transition-in {
  opacity: 1;
  transform: translateY(0);
}

.page-transition-out {
  opacity: 0 !important;
  transform: translateY(-16px) scale(0.99);
}

.layout {
  width: min(1180px, 100% - 3rem);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* Custom cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor-outline {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border 0.25s ease;
}

.cursor-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(0, 242, 255, 0.85);
  transform: translate3d(-50%, -50%, 0) scale(1.1);
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* Glassmorphism base */
.glass-panel {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 65%),
    linear-gradient(135deg, rgba(10, 10, 25, 0.82), rgba(10, 10, 35, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-radius));
  -webkit-backdrop-filter: blur(var(--blur-radius));
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 50%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.glass-panel:hover::before {
  opacity: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #00f5a0 0, #00d9f5 55%, transparent 70%);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.8);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 55%),
    linear-gradient(to bottom, rgba(248, 250, 252, 0.98), rgba(240, 244, 255, 0.96));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body[data-theme="dark"] .navbar {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(to bottom, rgba(5, 5, 20, 0.92), rgba(5, 5, 20, 0.72));
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background-image: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(113, 47, 255, 0.6);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.logo-symbol::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: conic-gradient(from 180deg, rgba(255, 255, 255, 0.6), transparent 40%, rgba(255, 255, 255, 0.8), transparent 70%, rgba(255, 255, 255, 0.4));
  mix-blend-mode: screen;
  opacity: 0;
  animation: logoShimmer 6s linear infinite;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  color: #fdfbff;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-animated {
  position: relative;
  background: linear-gradient(120deg, #ffffff, #f2f2ff, #e0e7ff, #80ffea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoGradientFlow 6s ease-in-out infinite;
  text-shadow: 0 0 22px rgba(143, 150, 255, 0.5);
}

.logo:hover .logo-symbol {
  animation: logoTilt 1.8s ease-in-out infinite;
}

.logo:hover .logo-animated {
  transform: translateY(-1px) scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.2rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-image: var(--accent-2);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #fff;
}

.nav-cta {
  margin-left: 0.5rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.55rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #050510;
  overflow: hidden;
  background-image: var(--accent);
  box-shadow: 0 16px 40px rgba(133, 76, 255, 0.65);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out;
}

.btn span.btn-label {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.32), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 50px rgba(133, 76, 255, 0.85);
  filter: brightness(1.08);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #111827;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.4);
}

.btn-outline::before {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 55%);
}

.btn-outline:hover {
  background: #ffffff;
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0, transparent 70%);
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 30, 0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  left: 0;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kpi {
  display: flex;
  gap: 1.75rem;
  margin-top: 2rem;
}

.hero-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-kpi-item span:first-child {
  font-size: 1.5rem;
  font-weight: 600;
}

h1,
.h1 {
  font-size: clamp(2.4rem, 3.3vw + 1.3rem, 3.6rem);
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
}

h2,
.h2 {
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.4rem);
  margin: 0 0 0.75rem;
}

h3,
.h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.hero-subtitle {
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-visual {
  position: relative;
}

.hero-orbit {
  position: relative;
  width: min(430px, 100%);
  margin-left: auto;
  aspect-ratio: 1/1;
  border-radius: 40px;
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(79, 209, 197, 0.65), transparent 60%),
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(224, 231, 255, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(129, 140, 248, 0.5);
  overflow: hidden;
}

body[data-theme="dark"] .hero-orbit {
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.2), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(67, 220, 255, 0.75), transparent 60%),
    linear-gradient(145deg, rgba(15, 15, 35, 0.92), rgba(7, 7, 22, 0.96));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(146, 132, 255, 0.35);
}

.hero-orbit-core {
  position: absolute;
  inset: 16%;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 10%, #fff, #e4ecff 40%, #80ffea 75%, transparent 85%);
  opacity: 0.06;
}

.hero-orbit-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spinSlow 36s linear infinite;
}

.hero-orbit-ring:nth-child(2) {
  inset: 5%;
  animation-duration: 26s;
  animation-direction: reverse;
}

.hero-orbit-particle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background-image: radial-gradient(circle, #fff, #e0e7ff);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.6),
    0 0 28px rgba(128, 255, 234, 0.95);
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 12s linear infinite;
}

.hero-orbit-particle:nth-child(2) {
  top: auto;
  bottom: 18%;
  left: 16%;
  animation-duration: 18s;
}

.hero-orbit-particle:nth-child(3) {
  top: 24%;
  right: 12%;
  left: auto;
  animation-duration: 22s;
}

.hero-metric-card {
  position: absolute;
  bottom: 10%;
  right: 8%;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(5, 5, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px);
}

.hero-metric-card span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-metric-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.35rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 245, 160, 0.1);
  color: #76ffd6;
  font-size: 0.7rem;
}

/* Sections / cards */
.section-header {
  max-width: 44rem;
  margin-bottom: 2.4rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7a80ff;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(145deg, #ffffff, #f3f4ff);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

body[data-theme="dark"] .card {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(10, 10, 30, 0.96), rgba(5, 5, 18, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0.32), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}

.card-3d:hover {
  transform: translateY(-10px) translateZ(20px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(126, 87, 255, 0.6);
  border-color: rgba(126, 87, 255, 0.9);
}

.card-icon-3d {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background-image: radial-gradient(circle at 10% 0, #fff, #e0e7ff 40%, #80ffea 75%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 16px 32px rgba(128, 255, 234, 0.7);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.card-icon-3d span {
  font-size: 1.4rem;
}

.card-icon-3d::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.9), transparent 40%, rgba(255, 255, 255, 0.7), transparent 80%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.card-3d:hover .card-icon-3d::after {
  opacity: 1;
  transform: rotate(16deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Timeline & process */
.timeline {
  position: relative;
  margin-top: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(120, 75, 160, 0.4), rgba(43, 134, 197, 0.9));
}

.timeline-item {
  position: relative;
  padding-left: 2.4rem;
  padding-bottom: 1.6rem;
}

.timeline-bullet {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-image: radial-gradient(circle, #fff, #e0e7ff 50%, #80ffea 80%);
  box-shadow:
    0 0 0 3px rgba(128, 255, 234, 0.4),
    0 0 20px rgba(128, 255, 234, 0.9);
}

.timeline-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

/* Testimonials */
.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.about-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(9, 9, 28, 0.95), rgba(4, 4, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .about-stat {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(135deg, #ffffff, #eef2ff);
  border-color: rgba(148, 163, 184, 0.4);
}

.about-stat strong {
  font-size: 1.4rem;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.founder-avatar {
  width: 60px;
  height: 60px;
  border-radius: 26px;
  background-image: linear-gradient(135deg, #ff3cac, #784ba0, #2b86c5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.6),
    0 18px 40px rgba(120, 75, 160, 0.9);
}

.mission-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.counter-box {
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 60%),
    linear-gradient(145deg, #ffffff, #e5e7eb);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

body[data-theme="dark"] .counter-box {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(145deg, rgba(10, 10, 30, 0.95), rgba(5, 5, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
}

.counter-number {
  font-size: 1.5rem;
  font-weight: 600;
}

.counter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Services page */
.services-intro {
  max-width: 44rem;
}

.services-grid {
  margin-top: 1.8rem;
}

.service-meta {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 245, 160, 0.2);
  color: #93ffe3;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.4rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus,
textarea:focus {
  border-color: rgba(128, 255, 234, 0.8);
  box-shadow: 0 0 0 1px rgba(128, 255, 234, 0.7), 0 0 18px rgba(128, 255, 234, 0.55);
  background: rgba(8, 8, 24, 0.96);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.map-placeholder {
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(10, 10, 30, 0.96), rgba(5, 5, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.map-frame {
  border-radius: 14px;
  height: 220px;
  background-image: linear-gradient(135deg, rgba(120, 75, 160, 0.6), rgba(43, 134, 197, 0.7));
  position: relative;
  overflow: hidden;
}

.map-frame::before {
  content: "Google Map Placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.contact-details {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-details a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.social-links {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(145deg, rgba(10, 10, 30, 0.9), rgba(5, 5, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(128, 255, 234, 0.9);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(128, 255, 234, 0.8);
}

/* Legal pages */
.legal {
  max-width: 720px;
}

.legal h2 {
  margin-top: 1.8rem;
}

.legal p,
.legal li {
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.2rem;
}

/* Utilities */
.mt-lg {
  margin-top: 2.4rem;
}

.mt-md {
  margin-top: 1.4rem;
}

.text-muted {
  color: var(--text-muted);
}

.tagline {
  font-size: 0.9rem;
}

.text-right {
  text-align: right;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 3rem 0 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top, rgba(191, 219, 254, 0.35), transparent 60%),
    linear-gradient(to bottom, #eef2ff, #e5e7eb);
}

body[data-theme="dark"] footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(to bottom, rgba(3, 3, 12, 0.96), rgba(0, 0, 0, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 0.8rem;
}

.footer-heading {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
  color: #d5d6ff;
}

.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-link:hover {
  color: #fff;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  justify-content: space-between;
}

/* Theme toggle */
.theme-toggle {
  margin-left: 0.75rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 54px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.95), rgba(209, 213, 219, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  overflow: hidden;
}

.theme-toggle-thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #fef9c3, #fde68a);
  box-shadow:
    0 0 0 1px rgba(249, 250, 251, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.6);
  left: 3px;
  transform: translateX(0);
  transition: transform 0.25s ease-out, background-image 0.25s ease-out, box-shadow 0.25s ease-out;
}

.theme-toggle-icon {
  font-size: 0.8rem;
  z-index: 1;
  opacity: 0.9;
}

.theme-toggle-icon-moon {
  opacity: 0.4;
}

body[data-theme="dark"] .theme-toggle-track {
  background: radial-gradient(circle at 20% 0, rgba(37, 99, 235, 0.4), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.95));
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
  background-image: linear-gradient(135deg, #bfdbfe, #a5b4fc);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.9);
}

body[data-theme="dark"] .theme-toggle-icon-sun {
  opacity: 0.4;
}

body[data-theme="dark"] .theme-toggle-icon-moon {
  opacity: 1;
}

/* Tech stack section */
.section-tech {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-tech::before {
  content: "";
  position: absolute;
  inset: 0 -12%;
  background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.tech-grid {
  perspective: 1400px;
}

.tech-card {
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
}

.tech-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.6),
    0 18px 30px rgba(15, 23, 42, 0.25);
  background: radial-gradient(circle at 10% 0, #ffffff, #e0f2fe 45%, #e0f7fa 80%);
}

.tech-icon span {
  font-size: 1.5rem;
}

.tech-icon::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.9),
    transparent 40%,
    rgba(255, 255, 255, 0.7),
    transparent 80%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.tech-card:hover .tech-icon::after {
  opacity: 1;
  transform: rotate(18deg);
}

.tech-icon-react {
  background: radial-gradient(circle at 10% 0, #ffffff, #dbeafe 45%, #bfdbfe 80%);
}

.tech-icon-node {
  background: radial-gradient(circle at 10% 0, #ffffff, #dcfce7 45%, #bbf7d0 80%);
}

.tech-icon-style {
  background: radial-gradient(circle at 10% 0, #ffffff, #ede9fe 45%, #ddd6fe 80%);
}

.tech-icon-db {
  background: radial-gradient(circle at 10% 0, #ffffff, #fee2e2 45%, #fecaca 80%);
}

.tech-icon-cloud {
  background: radial-gradient(circle at 10% 0, #ffffff, #e0f2fe 45%, #bae6fd 80%);
}

.tech-icon-automation {
  background: radial-gradient(circle at 10% 0, #ffffff, #f5f3ff 45%, #e9d5ff 80%);
}

/* Media queries */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .layout {
    width: min(100% - 2.2rem, 720px);
  }

  .navbar-inner {
    padding-block: 0.5rem;
  }

  .nav-links {
    position: fixed;
    inset: 62px 1.2rem auto 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: rgba(4, 4, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    flex-direction: column;
    gap: 0.8rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .nav-links.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    padding-block: 3.2rem;
  }
}

/* Animations */
@keyframes floatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(40px, -20px, 0) scale(1.1);
  }
}

@keyframes parallaxDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-20px, 12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes logoGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes logoShimmer {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}

@keyframes logoTilt {
  0%,
  100% {
    transform: rotate3d(0, 0, 0, 0deg);
  }
  25% {
    transform: rotate3d(1, 0, 0, 12deg);
  }
  50% {
    transform: rotate3d(0, 1, 0, -12deg);
  }
  75% {
    transform: rotate3d(1, 1, 0, 8deg);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

