/* ==========================================================================
   AndNova Technologies — Core Stylesheet
   Design system: Premium SaaS · Glassmorphism · Blue→Indigo→Purple gradients
   ========================================================================== */

/* ----------  1. Design Tokens  ---------- */
:root {
  /* Brand palette */
  --blue: #2563eb;
  --indigo: #4f46e5;
  --purple: #9333ea;
  --cyan: #06b6d4;
  --grad: linear-gradient(120deg, var(--blue), var(--indigo) 45%, var(--purple));
  --grad-soft: linear-gradient(120deg, rgba(37, 99, 235, .14), rgba(147, 51, 234, .14));

  /* Light theme surfaces */
  --bg: #f5f7fc;
  --bg-alt: #ffffff;
  --glass: rgba(255, 255, 255, .62);
  --glass-brd: rgba(255, 255, 255, .75);
  --text: #0f172a;
  --muted: #55637a;
  --line: rgba(15, 23, 42, .09);

  /* Shape & motion */
  --r: 16px;
  --r-lg: 26px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 28px 60px -22px rgba(37, 99, 235, .38);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 96%;
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #070b18;
  --bg-alt: #0d1326;
  --glass: rgba(21, 29, 54, .58);
  --glass-brd: rgba(255, 255, 255, .10);
  --text: #eef2ff;
  --muted: #9aa7c4;
  --line: rgba(255, 255, 255, .10);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .8);
}

/* ----------  2. Reset & Base  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
  max-width: 100%;
  transition: background .35s var(--ease), color .35s var(--ease);
}
/* Ambient gradient blobs behind everything */
body::before, body::after {
  content: ""; position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: .5; pointer-events: none;
}
body::before { width: 520px; height: 520px; top: -180px; left: -140px; background: rgba(37, 99, 235, .38); }
body::after  { width: 480px; height: 480px; bottom: -200px; right: -120px; background: rgba(147, 51, 234, .30); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { color: var(--muted); }

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

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--indigo);
  color: #fff; padding: 10px 18px; border-radius: 10px; transition: top .25s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
html[data-theme="dark"] :focus-visible { outline-color: #a5b4fc; }

/* ----------  3. Layout Utilities  ---------- */
.container { width: 100%; max-width: 1280px; padding-inline: 20px; margin-inline: auto; }
.section { padding: clamp(32px, 5vw, 64px) 0; position: relative; }
.section-alt { background: var(--grad-soft); }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mb-s { margin-bottom: 12px; } .mb-m { margin-bottom: 26px; } .mb-l { margin-bottom: 52px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; }
.items-center { align-items: center; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--glass-brd); color: var(--indigo);
}
html[data-theme="dark"] .eyebrow { color: #a5b4fc; }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head p { margin-top: 14px; }

/* ----------  4. Glass Card  ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: var(--grad-soft); transition: opacity .45s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(99, 102, 241, .5); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.icon-badge {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: var(--grad); margin-bottom: 18px;
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .85);
  transition: transform .5s var(--ease);
}
.card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }

.emoji-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform .4s var(--ease);
}
.card:hover .emoji-icon { transform: scale(1.15) rotate(4deg); }

/* ----------  5. Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 32px -14px rgba(79, 70, 229, .95); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px -14px rgba(147, 51, 234, .9); }
.btn-ghost { background: var(--glass); border-color: var(--glass-brd); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--indigo); }
.btn i { transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.96); transition-duration: .1s; }

/* ----------  6. Navbar  ---------- */
.nav {
  position: sticky; top: 0; z-index: 200; padding: 14px 0;
  transition: padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .35s;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  border-bottom-color: var(--line); box-shadow: var(--shadow); padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.22rem; }
.mobile-logo { display: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .9);
  animation: floaty 5s ease-in-out infinite;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--muted);
  transition: color .25s, background .25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--grad-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-brd); cursor: pointer;
  transition: transform .3s var(--ease), color .3s;
}
.close-btn, .mobile-cta { display: none; }
.icon-btn:hover { transform: rotate(18deg) scale(1.08); color: var(--indigo); }
.icon-btn:active { transform: scale(0.92); transition-duration: .1s; }
.burger { display: none; }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: 130%; left: 0; min-width: 230px; padding: 10px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease); display: grid; gap: 2px;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; }

/* ----------  7. Hero  ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 20px; }
.hero p.lead { font-size: 1.09rem; max-width: 560px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.illus { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.orb {
  position: absolute; inset: 12%; border-radius: 50%; background: var(--grad); opacity: .16;
  filter: blur(38px); animation: pulse 6s ease-in-out infinite;
}
.ring {
  position: absolute; border-radius: 50%; border: 1.5px dashed rgba(99, 102, 241, .45);
  animation: spin 26s linear infinite;
}
.ring.r1 { inset: 4%; } .ring.r2 { inset: 18%; animation-duration: 18s; animation-direction: reverse; }
.ring.r3 { inset: 32%; animation-duration: 34s; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.chip i { color: var(--indigo); }

.orbit-wrap { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.orbit-pos { position: absolute; transform: translate(-50%, -50%); }
.tech-chip {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .78rem; font-weight: 600;
  white-space: nowrap; pointer-events: auto;
}
.tech-chip i { font-size: 1rem; }

.ow-outer { animation: spin 45s linear infinite; }
.tc-outer { animation: counter-spin 45s linear infinite; }
.ow-middle { animation: spin 35s linear infinite reverse; }
.tc-middle { animation: counter-spin 35s linear infinite reverse; }
.ow-inner { animation: spin 25s linear infinite; }
.tc-inner { animation: counter-spin 25s linear infinite; }

@keyframes counter-spin { to { transform: rotate(-360deg); } }
.core {
  width: 45%; aspect-ratio: 1; border-radius: 32px; box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite; overflow: hidden;
}
.core img { width: 100%; height: 100%; object-fit: cover; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(1.12); opacity: .28; } }

/* ----------  8. Marquee (trusted logos)  ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 62px; width: max-content; animation: slide 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 1.15rem; color: var(--muted); opacity: .8; white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ----------  9. Stats / Counters  ---------- */
.stat { text-align: center; }
.stat .num { font-family: 'Poppins', sans-serif; font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }

/* ----------  10. Timeline  ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 8px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--indigo); box-shadow: 0 0 0 5px rgba(79, 70, 229, .16);
}
.tl-item h4 { font-family: 'Poppins', sans-serif; }
.tl-step { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--indigo); text-transform: uppercase; }

/* ----------  11. Portfolio / filters  ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  padding: 9px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd);
  cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .3s var(--ease);
}
.filter:hover { transform: translateY(-2px); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; }
.work { padding: 0; overflow: hidden; }
.work-img { aspect-ratio: 16/10; background: var(--grad); position: relative; overflow: hidden; }
.work-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%);
}
.work-img i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.9); z-index: 1; }
.work-body { padding: 24px 26px 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--indigo);
}
html[data-theme="dark"] .tag { color: #a5b4fc; }
.hidden { display: none !important; }

/* ----------  12. Testimonials slider  ---------- */
.slider { overflow: hidden; }
.slides { display: flex; transition: transform .6s var(--ease); }
.slide { min-width: 100%; padding: 6px; }
.quote { font-size: 1.12rem; font-style: italic; color: var(--text); }
.who { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.dots { display: flex; gap: 9px; justify-content: center; margin-top: 26px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 0; cursor: pointer; transition: all .3s; }
.dot.active { width: 30px; border-radius: 999px; background: var(--grad); }
.stars { color: #f59e0b; margin-bottom: 14px; }

/* ----------  13. Pricing  ---------- */
.price-card.featured { border: 1.5px solid var(--indigo); transform: scale(1.03); }
.price { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 700; }
.price span { font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan-list { display: grid; gap: 12px; margin: 24px 0 28px; }
.plan-list li { display: flex; gap: 11px; font-size: .93rem; color: var(--muted); }
.plan-list i { color: #10b981; margin-top: 5px; }
.ribbon {
  position: absolute; top: 18px; right: -34px; transform: rotate(38deg); background: var(--grad);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 6px 40px; z-index: 2;
}

/* ----------  14. Accordion / FAQ  ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 22px 6px; display: flex; justify-content: space-between; gap: 18px;
  font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 1.02rem;
}
.acc-q i { transition: transform .35s var(--ease); color: var(--indigo); }
.acc.open .acc-q i { transform: rotate(135deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-a p { padding: 0 6px 22px; }

/* ----------  15. Forms  ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .87rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px; background: var(--bg-alt);
  border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; margin-top: 14px; }
.ok { color: #059669; font-weight: 600; }

/* ----------  16. Blog  ---------- */
.post-img { aspect-ratio: 16/9; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 2.4rem; }
.meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.article-body h2 { margin: 38px 0 14px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p, .article-body li { margin-bottom: 14px; }
.article-body ul { list-style: disc; padding-left: 22px; }
.article-body blockquote {
  border-left: 4px solid var(--indigo); padding: 8px 22px; margin: 24px 0;
  background: var(--grad-soft); border-radius: 0 12px 12px 0; font-style: italic;
}
.sidebar-box { margin-bottom: 26px; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.side-list li:last-child { border: 0; }

/* ----------  17. Tech grid  ---------- */
.tech {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 14px;
  border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-brd);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.tech:hover { transform: translateY(-8px) scale(1.04); box-shadow: var(--shadow-lg); }
.tech i { font-size: 2.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tech b { font-size: .9rem; font-weight: 600; }

/* Progress bars */
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.4s var(--ease); }

/* ----------  18. CTA  ---------- */
.cta {
  background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 74px);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta p { color: rgba(255, 255, 255, .88); }
.cta::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255, 255, 255, .13); top: -180px; right: -110px;
}
.cta .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.cta .btn-white { background: #fff; color: #4f46e5; }

/* ----------  19. Footer  ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 76px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 42px; }
.footer h5 { font-size: .95rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; color: var(--muted); transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--indigo); padding-left: 6px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-brd); transition: all .3s var(--ease);
}
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-4px); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.footer-bottom {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .87rem; color: var(--muted);
}

/* ----------  20. Page hero (inner pages)  ---------- */
.page-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(34px, 4vw, 56px); text-align: center; }
.crumbs { font-size: .87rem; color: var(--muted); margin-top: 12px; }
.crumbs a:hover { color: var(--indigo); }

/* ----------  21. Misc components  ---------- */
.map-placeholder {
  aspect-ratio: 16/9; border-radius: var(--r); background: var(--grad-soft);
  border: 1px dashed rgba(99, 102, 241, .55); display: grid; place-items: center; text-align: center; gap: 8px;
}
.gallery-item { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.09); }
.job { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.badge { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--indigo); }
html[data-theme="dark"] .badge { color: #a5b4fc; }

/* 404 */
.err-code {
  font-family: 'Poppins', sans-serif; font-size: clamp(6rem, 22vw, 15rem); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 5s ease-in-out infinite;
}

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Scroll progress + back to top */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 500; }
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { transform: translateY(-5px); }

/* Custom elements */
.about-hero-img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }

/* Premium Layout Upgrades */
.premium-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 36px 30px;
}
html[data-theme="dark"] .premium-glass-card {
  background: rgba(20, 24, 34, 0.7);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.premium-stat {
  display: flex; align-items: center; gap: 18px; text-align: left;
}
.premium-stat .stat-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad-soft); 
  display: flex; align-items: center; justify-content: center; 
  color: var(--primary); font-size: 1.4rem; flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.premium-stat:hover .stat-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}
.premium-stat .num {
  font-size: 2.4rem; line-height: 1.1; font-weight: 800; margin-bottom: 2px;
}
.premium-stat p {
  font-size: 0.95rem; margin: 0; line-height: 1.3; font-weight: 500; color: var(--text-light);
}

.premium-glow-card {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.premium-glow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(79, 70, 229, 0.2);
}
html[data-theme="dark"] .premium-glow-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Gallery Polish */
.gallery-item {
  overflow: hidden; border-radius: 20px;
}
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
