:root {
  --bg: #09090c;
  --panel: #121218;
  --glass: #161623;
  --muted: #a8a8b3;
  --txt: #ececf1;
  --vio: #7c3aed;
  --vio2: #5b21b6;
  --blu: #2563eb;
  --grad: linear-gradient(90deg, #7c3aed, #2563eb);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
}

a { color: var(--txt); }

/* NAV */
.navbar {
  background: rgba(10,10,16,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar a { color: #ddd !important; }
.navbar a:hover { color: #fff !important; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(50% 50% at 80% 70%, rgba(37,99,235,.35), transparent 55%);
  filter: blur(40px);
  animation: floatGlow 10s ease-in-out infinite alternate;
}
@keyframes floatGlow {
  0% { transform: translate(-4%,-3%) scale(1); }
  100% { transform: translate(3%,2%) scale(1.15); }
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: .2px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); }

.btn-grad {
  background: var(--grad);
  border: 0;
  color: #fff;
  transition: .25s;
}
.btn-grad:hover {
  transform: translateY(-2px);
  opacity: .95;
  color: #fff;
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-dark { background: var(--panel); }

/* CARDS */
.card-glass {
  background: rgba(30,30,46,.75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  transition: .3s;
}
.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(124,58,237,.25);
}

/* STATS */
.stat-wrap { gap: 20px; }
.stat {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 28px 18px;
  min-width: 160px;
}
.stat h3 {
  margin: 0;
  font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.ring {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(124,58,237,.8), rgba(37,99,235,.8));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: .18;
}

/* WORKS */
.work-card { overflow: hidden; }
.work-thumb {
  height: 210px;
  object-fit: cover;
  transition: transform .5s ease;
}
.work-card:hover .work-thumb { transform: scale(1.06); }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge-grad { background: var(--grad); border: 0; }
.swiper-button-next, .swiper-button-prev { color: #fff; }

/* FULLSCREEN MODAL */
.modal-dark .modal-content {
  background: #0e0e14;
  border: 1px solid rgba(255,255,255,.06);
}
.modal-dark .btn-close { filter: invert(1); }
.swiper-thumbs { height: 80px; margin-top: 10px; }
.swiper-thumbs .swiper-slide { opacity: .6; }
.swiper-thumbs .swiper-slide-thumb-active { opacity: 1; }

/* REVIEWS */
.star { cursor: pointer; font-size: 22px; color: #555; transition: .2s; }
.star.active { color: #ffd166; text-shadow: 0 0 12px rgba(255,209,102,.4); }

/* FAQ */
.accordion-item {
  background: rgba(22,22,35,.6);
  border: 1px solid rgba(255,255,255,.06)!important;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.accordion-button { background: transparent; color: #fff; }
.accordion-button:focus { box-shadow: none; }
.accordion-button:not(.collapsed) { background: rgba(124,58,237,.12); }

/* CONTACT */
.contact-card {
  background: rgba(22,22,35,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

/* FOOTER */
footer { background: #000; }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
}
.to-top.show { display: block; }

/* WORKS OVERLAY */
.work-img:hover { transform: scale(1.05); }
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,0,30,0.6);
  opacity: 0;
  transition: opacity .4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-box:hover .overlay { opacity: 1; }
.btn-grad {
  background: linear-gradient(90deg,#7c3aed,#a855f7);
  border: none;
  border-radius: 8px;
  color: #fff;
  transition: .3s;
  box-shadow: 0 0 15px rgba(168,85,247,0.4);
}
.btn-grad:hover { filter: brightness(1.15); }
.swiper-button-prev, .swiper-button-next { color: #a78bfa; }
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(130,50,255,0.2); }

.reviewSwiper { height: 420px; }
.reviewSwiper .swiper-slide { display: flex; align-items: stretch; }
.star.active, .star:hover, .star:hover ~ .star { color: #facc15 !important; }
::placeholder { color: rgba(255,255,255,0.6) !important; }

.modal-backdrop.show {
  opacity: 0.8 !important;
  background: rgba(0,0,0,0.6) !important;
  z-index: auto !important;
}