/* ===========================
   Quantum Web Studio
   Dark Red Theme
   =========================== */

:root {
  --bg: #0a0304;
  --bg-soft: #140608;
  --card: #1a080b;
  --card-hi: #220a0e;
  --border: rgba(255, 60, 60, 0.12);
  --border-hi: rgba(255, 60, 60, 0.25);
  --text: #f5e6e8;
  --text-dim: #b8a0a4;
  --text-mute: #8a7277;
  --red-1: #ff2d55;
  --red-2: #dc143c;
  --red-3: #8b0000;
  --red-4: #5c0000;
  --red-5: #3a0000;
  --glow: 0 10px 40px rgba(220, 20, 60, 0.25);
  --glow-hi: 0 20px 60px rgba(220, 20, 60, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--red-2); color: #fff; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================
   Background decor
   =========================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(220, 20, 60, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 20, 60, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, #dc143c 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite;
}
.bg-glow--2 {
  width: 500px; height: 500px;
  top: 40%; right: -150px;
  background: radial-gradient(circle, #8b0000 0%, transparent 70%);
  animation: drift 25s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -60px); }
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(10, 3, 4, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red-2), var(--red-4));
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: var(--glow);
}
.logo-text em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 500;
}
.nav__menu {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav__menu a { transition: color .2s ease; }
.nav__menu a:hover { color: var(--text); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-1), var(--red-3));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--glow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--glow-hi); }

@media (max-width: 820px) {
  .nav__menu { display: none; }
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 110px 6vw 90px;
  text-align: center;
  position: relative;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: rgba(220, 20, 60, 0.08);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 980px;
  margin: 0 auto 24px;
}
.grad {
  background: linear-gradient(135deg, #ff4d6d 0%, #dc143c 50%, #8b0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red-1), var(--red-3));
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-hi); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-hi);
}
.btn--ghost:hover { background: rgba(220, 20, 60, 0.08); }

.hero__stats {
  display: inline-flex;
  gap: 60px;
  padding: 20px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 6, 8, 0.5);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__stats > div { text-align: center; }
.hero__stats strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4d6d, #dc143c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { font-size: 0.8rem; color: var(--text-mute); }

/* ===========================
   Sections
   =========================== */
.section {
  padding: 100px 6vw;
  position: relative;
}
.section__head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(220, 20, 60, 0.06);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b7d;
  margin-bottom: 16px;
}
.section__head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section__head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ===========================
   Service Cards
   =========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(20, 6, 8, 0.6));
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 0% 0%, rgba(220, 20, 60, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--glow);
}
.card:hover::before { opacity: 1; }

.card--featured {
  border-color: var(--border-hi);
  background: linear-gradient(180deg, rgba(92, 0, 0, 0.25), var(--card));
}
.card--featured::after {
  content: 'Popular';
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-1), var(--red-3));
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #fff;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(92, 0, 0, 0.3));
  border: 1px solid var(--border-hi);
  color: #ff6b7d;
  margin-bottom: 20px;
}
.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.card li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-1);
  box-shadow: 0 0 8px var(--red-1);
}

/* ===========================
   Why Us
   =========================== */
.section--why {
  background: linear-gradient(180deg, transparent, rgba(92, 0, 0, 0.08), transparent);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.feature__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-1), var(--red-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.feature h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ===========================
   Portfolio
   =========================== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.work {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.work:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--glow);
}
.work__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.work__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 3, 4, 0.9) 100%);
}
.work__img--1 {
  background-image:
    linear-gradient(135deg, rgba(220, 20, 60, 0.35), rgba(92, 0, 0, 0.7)),
    radial-gradient(circle at 30% 20%, #ff4d6d 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #8b0000 0%, transparent 50%);
  background-color: #1a080b;
}
.work__img--2 {
  background-image:
    linear-gradient(135deg, rgba(255, 45, 85, 0.3), rgba(58, 0, 0, 0.8)),
    radial-gradient(circle at 70% 30%, #dc143c 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, #5c0000 0%, transparent 55%);
  background-color: #140608;
}
.work__img--3 {
  background-image:
    linear-gradient(135deg, rgba(92, 0, 0, 0.5), rgba(220, 20, 60, 0.25)),
    radial-gradient(circle at 50% 50%, #ff2d55 0%, transparent 40%);
  background-color: #0a0304;
}
.work__meta {
  padding: 20px 22px;
}
.work__meta span {
  font-size: 0.75rem;
  color: var(--red-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.work__meta h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-top: 6px;
}

/* ===========================
   Contact
   =========================== */
.section--contact { padding-bottom: 120px; }

.contact-card {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--border-hi);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(800px circle at 0% 0%, rgba(220, 20, 60, 0.12), transparent 50%),
    linear-gradient(180deg, var(--card-hi), var(--card));
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--glow);
}
@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 30px; }
}
.contact-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 14px 0 14px;
}
.contact-card p {
  color: var(--text-dim);
  margin-bottom: 26px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 3, 4, 0.5);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-link:hover {
  transform: translateX(4px);
  border-color: var(--border-hi);
  background: rgba(220, 20, 60, 0.06);
}
.contact-link__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-2), var(--red-4));
  color: #fff;
  flex-shrink: 0;
}
.contact-link > div {
  display: flex; flex-direction: column;
  flex: 1;
}
.contact-link strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}
.contact-link span { font-size: 0.88rem; color: var(--text-dim); }
.contact-link .arrow { color: var(--text-mute); transition: transform .2s ease, color .2s ease; }
.contact-link:hover .arrow { color: var(--red-1); transform: translateX(4px); }

.quote {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 3, 4, 0.5);
  position: relative;
}
.quote__mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  line-height: 0.7;
  color: var(--red-2);
  margin-bottom: 8px;
}
.quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 20px;
}
.quote__by {
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* ===========================
   Footer
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 6vw 30px;
  background: var(--bg-soft);
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
}
.footer__brand > div {
  display: flex; flex-direction: column;
}
.footer__brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}
.footer__brand span { font-size: 0.82rem; color: var(--text-mute); }
.footer__links {
  display: flex; gap: 26px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-mute);
  flex-wrap: wrap; gap: 10px;
}

/* ===========================
   Floating WhatsApp button
   =========================== */
.fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  transition: transform .2s ease;
  z-index: 40;
}
.fab:hover { transform: scale(1.08); }
.fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===========================
   Reveal animations
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Mobile tweaks
   =========================== */
@media (max-width: 640px) {
  .hero { padding: 70px 6vw 60px; }
  .section { padding: 70px 6vw; }
  .hero__stats { gap: 32px; padding: 16px 24px; }
  .contact-card { padding: 30px 22px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
