:root {
  --bg: #0d0a1a;
  --bg-2: #120f24;
  --card: #15112b;
  --border: #322a58;
  --text: #E7E7EA;
  --muted: #A8A7B5;
  --primary: #FF6B35;
  --magenta: #FF2E70;
  --cyan: #5CE1E6;
  --btn-grad: linear-gradient(90deg, var(--primary), var(--magenta));
}

/* RESET + BASE */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, rgba(92, 225, 230, .08), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(255, 46, 112, .08), transparent 60%), var(--bg);
  color: var(--text);
}
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1200px !important;
}

/* Navbar */
.navbar {
  background: rgba(13, 10, 26, .7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  min-height: 80px;
}
.navbar .nav-link {
  color: var(--muted) !important;
  position: relative;
  padding: .65rem 1rem;
  font-size: 1.05rem;
}
.navbar .nav-link:hover {
  color: #fff !important;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 25%;
  bottom: -6px;
  height: 2px;
  background: var(--btn-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: .25s;
}
.navbar .nav-link:hover::after {
  transform: scaleX(1);
}
.navbar-toggler {
  border-color: #ffffff33;
}
.navbar-toggler-icon {
  filter: invert(1);
}
.logo-text {
  font-weight: 800;
  letter-spacing: .5px;
}
.logo-inovix {
  color: #fff;
}
.logo-365 {
  background: var(--btn-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .logo-text {
  font-size: 2rem;
}
.logo-icon {
  height: 40px;
}

/* Decorative light beams */
.beams::before, .beams::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .5;
}
.beams::before {
  background: radial-gradient(600px 300px at 20% 10%, rgba(92, 225, 230, .15), transparent 50%), radial-gradient(500px 300px at 90% 0%, rgba(255, 107, 53, .15), transparent 55%);
}
.beams::after {
  background: conic-gradient(from 180deg at 50% 0%, rgba(92, 225, 230, .15), transparent 20%, rgba(255, 46, 112, .12) 40%, transparent 60%, rgba(92, 225, 230, .15) 80%, transparent 100%);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  text-shadow: 0 6px 30px rgba(92, 225, 230, .15);
  text-align: center;
}
.hero .highlight {
  background: var(--btn-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead-xl {
  font-size: clamp(1.05rem, 1.2rem + .5vw, 1.35rem);
  color: var(--muted);
  text-align: center;
}
.btn-main {
  background: var(--btn-grad);
  border: none;
  color: #fff;
  font-weight: 800;
  border-radius: 46px;
  padding: .9rem 2.2rem;
  box-shadow: 0 10px 30px rgba(255, 46, 112, .22);
  transition: .25s;
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(255, 46, 112, .32);
}
.btn-ghost {
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 46px;
  padding: .85rem 2rem;
  background: transparent;
  transition: .25s;
}
.btn-ghost:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* Sections */
section.section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 10%);
}
.section:nth-of-type(even) {
  background: var(--bg-2);
}
.section-title {
  font-weight: 800;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title .dash {
  display: inline-block;
  width: 90px;
  height: 4px;
  background: var(--btn-grad);
  border-radius: 3px;
  vertical-align: middle;
  margin-inline: 10px;
}

/* Cards */
.cardx {
  background: linear-gradient(180deg, rgba(92, 225, 230, .04), rgba(255, 46, 112, .03));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cardx::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 18px;
  background: radial-gradient(600px 120px at 50% -20%, rgba(92, 225, 230, .25), transparent 70%);
}
.cardx:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.icon-glow {
  font-size: 2rem;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(92, 225, 230, .18), rgba(255, 46, 112, .18));
  box-shadow: 0 0 18px rgba(92, 225, 230, .25) inset;
}

/* Platforms */
.platform {
  background: linear-gradient(180deg, rgba(92, 225, 230, .06), rgba(255, 46, 112, .05));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.platform .cover {
  height: 220px;
  object-fit: cover;
  filter: brightness(.85);
}
.platform h3 {
  font-weight: 800;
}

/* Footer */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.text-muted-2 {
  color: var(--muted);
}

/* Back To Top */
.btn-top {
  position: fixed;
  bottom: 25px;
  inset-inline-end: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.btn-top.show {
  opacity: 1;
  visibility: visible;
}
.btn-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 46, 112, .35);
}

/* Mobile Tweaks */
@media (max-width: 767px) {
  .hero .row {
    flex-direction: column;
    align-items: center;
  }
  .hero .col-lg-10 {
    padding-inline: 1rem;
  }
  .hero .d-flex {
    flex-direction: column;
  }
}
@media (max-width: 991.98px) {
  .navbar-brand .logo-text {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

.modal-content {
  background-color: #0b0a1d !important;
  color: #E7E7EA !important;
}
.modal-content .modal-header {
  border-bottom: 1px solid var(--border);
}
.modal-content .modal-footer {
  border-top: 1px solid var(--border);
}
.modal-content .btn-close {
  filter: invert(1);
}