/*
  STACK.DEV — Dark Neon / Glassmorphism Theme
  Tech: Bootstrap 5 + Custom CSS
*/

:root {
  --bg-main: #05060F;
  --bg-1: #080A1A;
  --bg-2: #0B0F2A;

  --primary-purple: #7C7CFF;
  --primary-purple-2: #6A5CFF;
  --primary-blue: #4CC9F0;
  --accent-cyan: #38BDF8;
  --glow-pink: #C77DFF;
  --mint: #5EEAD4;

  --text: #E5E7EB;
  --muted: #9CA3AF;
  --subtle: #6B7280;

  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(124, 124, 255, 0.5);

  --shadow-purple: 0 0 30px rgba(124, 124, 255, 0.35);
  --shadow-blue: 0 0 30px rgba(76, 201, 240, 0.35);

  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1140px;

  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124, 124, 255, 0.14), transparent 55%),
    radial-gradient(1200px 800px at 80% 20%, rgba(76, 201, 240, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-main) 55%, var(--bg-2));
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.muted {
  color: var(--muted) !important;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 24px 0 64px;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.display-title {
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  margin: 0;
}

/* Background ornaments */
.bg-orb {
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  left: -180px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 124, 255, 0.65), rgba(124, 124, 255, 0.0) 60%);
}

.bg-orb--2 {
  right: -220px;
  top: 90px;
  background: radial-gradient(circle at 30% 30%, rgba(76, 201, 240, 0.55), rgba(76, 201, 240, 0.0) 60%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 120px 120px, 200px 200px;
  background-position: 0 0, 40px 60px;
}

/* Ensure content is above effects */
.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar-glass {
  min-height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.navbar-glass.is-scrolled {
  background: rgba(5, 6, 15, 0.58);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-dot {
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  color: rgba(229, 231, 235, 0.85) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--text) !important;
}

/* Buttons */
.btn {
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 12px;
}

.btn-gradient {
  color: #0B1024;
  border: 0;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  box-shadow: var(--shadow-purple), var(--shadow-blue);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(124, 124, 255, 0.45), 0 0 36px rgba(76, 201, 240, 0.45);
}

.btn-outline-glow {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.btn-outline-glow:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 124, 255, 0.55);
  box-shadow: var(--shadow-purple);
}

/* Glass cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.card-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 8px;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 46px);
}

.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-glass i {
  color: var(--accent-cyan);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(229, 231, 235, 0.92);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-graphic {
  position: relative;
  min-height: 360px;
}

.glow-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 124, 255, 0.14), transparent 58%),
    conic-gradient(from 180deg, rgba(124, 124, 255, 0.0), rgba(124, 124, 255, 0.75), rgba(76, 201, 240, 0.75), rgba(76, 201, 240, 0.0));
  filter: blur(0px);
  opacity: 0.9;
  animation: ringSpin 6.5s linear infinite;
}

.glow-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(199, 125, 255, 0.42), rgba(76, 201, 240, 0.10) 55%, transparent 70%);
  filter: blur(6px);
  animation: ringPulse 2.8s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  padding: 18px;
}

.hero-card__label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card__value {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-blue);
}

.hero-card__divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.09);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(229, 231, 235, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

/* Stats */
.stat-card {
  padding: 18px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-purple);
  margin-bottom: 12px;
}

.stat-icon i {
  color: var(--accent-cyan);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

/* About */
.profile-card {
  padding: 22px;
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 124, 255, 0.9), rgba(76, 201, 240, 0.9));
  box-shadow: var(--shadow-purple);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-name {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.profile-meta {
  display: grid;
  gap: 10px;
}

.meta-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(229, 231, 235, 0.90);
  font-weight: 600;
}

.meta-item i {
  color: var(--primary-blue);
}

.skills-card {
  padding: 22px;
}

.skill {
  margin-bottom: 14px;
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-glow {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-glow .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  box-shadow: 0 0 22px rgba(124, 124, 255, 0.32), 0 0 22px rgba(76, 201, 240, 0.32);
  transition: width 900ms ease;
}

/* Services */
.service-card {
  padding: 20px;
  height: 100%;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-blue);
  margin-bottom: 12px;
}

.service-icon i {
  color: var(--mint);
}

/* Projects */
.project-card {
  overflow: hidden;
}

.project-thumb {
  position: relative;
  height: 190px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(900px 240px at 15% 20%, rgba(124, 124, 255, 0.20), transparent 55%),
    radial-gradient(700px 240px at 85% 25%, rgba(76, 201, 240, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.thumb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.32;
}

.thumb-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(5, 6, 15, 0.55);
  backdrop-filter: blur(10px);
}

.project-body {
  padding: 18px;
}

/* Pricing */
.pricing-card {
  padding: 22px;
}

.pricing-card--featured {
  border-color: rgba(76, 201, 240, 0.38);
  box-shadow: var(--shadow-blue);
}

.pricing-card--featured:hover {
  border-color: rgba(76, 201, 240, 0.62);
  box-shadow: 0 0 40px rgba(76, 201, 240, 0.45), 0 0 40px rgba(124, 124, 255, 0.35);
}

.featured-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(124, 124, 255, 0.18), rgba(76, 201, 240, 0.18));
  margin-bottom: 14px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  color: rgba(229, 231, 235, 0.92);
  font-weight: 600;
}

.feature-list i {
  color: var(--mint);
  margin-right: 10px;
}

/* FAQ */
.faq-wrap {
  padding: 10px;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  margin: 10px;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-weight: 700;
  text-align: left;
}

.faq-q i {
  color: var(--accent-cyan);
  transition: transform 180ms ease;
}

.faq-a {
  color: var(--muted);
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-item.is-open .faq-a {
  padding: 0 16px 16px;
  max-height: 160px;
}

.faq-item.is-open .faq-q i {
  transform: rotate(45deg);
}

/* Reviews */
.reviews-card {
  padding: 22px;
}

.reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.review {
  min-height: 120px;
}

.review-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 14px;
  color: rgba(229, 231, 235, 0.95);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-name {
  font-weight: 800;
}

.review-role {
  color: var(--muted);
  font-weight: 600;
}

/* Blog */
.blog-card {
  padding: 20px;
  height: 100%;
}

.blog-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-cyan);
}

.blog-link:hover {
  text-decoration: underline;
}

/* Contact */
.contact-info,
.contact-form-wrap {
  padding: 22px;
  height: 100%;
}

.contact-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-item i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-purple);
  color: var(--accent-cyan);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.social:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 201, 240, 0.55);
  box-shadow: var(--shadow-blue);
}

.form-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(229, 231, 235, 0.92);
}

.form-control-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-control-glass::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(124, 124, 255, 0.55);
  box-shadow: var(--shadow-purple);
}

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 15, 0.55);
  backdrop-filter: blur(12px);
}

.footer-logo {
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(229, 231, 235, 0.82);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-graphic {
    min-height: 320px;
  }

  .glow-ring {
    width: 300px;
    height: 300px;
  }

  .glow-core {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 82px 0;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: calc(var(--nav-height) + 30px);
  }

  .section {
    padding: 72px 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .glow-ring,
  .glow-core,
  .btn,
  .glass-card {
    transition: none !important;
    animation: none !important;
  }
}
