/* ===========================
GLOBAL VARIABLES
============================== */
:root {
    --primary-color: #6b21a8;
    --primary-light: #9b59b6;

    --bg-light: #e5e5e5;
    --bg-dark: #0e0e11;

    --text-dark: #1a1a1a;
    --white: #ffffff;

    --navbar-height: 80px;
}

/* ===========================
GLOBAL RESET
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    color: var(--white);
    background: radial-gradient(
        ellipse at top,
        /* #1b144f 0%,
        #120b3a 45%, */
        #0a0822 100%
    );
    scroll-padding-top: 80px;
}

/* ===========================
GLASS SECTIONS & PAGE WRAPPER
/* ==============================  */
.page-wrapper {
    min-height: 100vh;
    background: transparent;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    color: var(--white);
}

.glass-section {
    background: transparent;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: 14px;
    padding: 2rem;
    color: var(--white);
    transition: background 0.3s ease;
}

/* ===========================
NAVBAR
============================== */
.navbar.glass-appbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 999;
    background: linear-gradient(
        180deg,
        rgba(88, 28, 135, 0.85),
        rgba(55, 0, 90, 0.75)
    );
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid rgba(200, 170, 255, 0.35);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.55);
}

/* Logo */
.logo img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    transition: 0.2s;
}

.nav-links li a:hover {
    color: var(--primary-light);
}

/* Buttons */
.nav-actions a {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--white);
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-actions a:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.4s ease;
}

/* Toggle animation */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
MOBILE RESPONSIVE
============================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(28, 10, 50, 0.95); /* dark glass for full screen */
        flex-direction: column;
        justify-content: center;
        padding-left: 2.5rem;
        gap: 2rem;

        opacity: 0;
        transform: translateY(100%);
        pointer-events: none;
        transition: opacity 0.5s ease, transform 0.5s ease;
        z-index: 999;
    }

    .nav-links.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-30px);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.show li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
    .nav-links.show li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
    .nav-links.show li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.3s; }

    .nav-links li a {
        font-size: 2rem;
        color: var(--primary-light);
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===========================
BUTTONS (general)
============================== */
button, .btn-primary, .btn-secondary {
    border-radius: 6px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
}

button:hover, .btn-primary:hover, .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===========================
ANCHORS / LINKS
============================== */
a {
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}


/* =========================
      HERO SECTION
============================= */
.hero {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(1rem + var(--navbar-height)) 2rem 2rem 2rem;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* LEFT SIDE */
.hero-left {
  flex: 1 1 500px;
}

.hero-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.hero-sub-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero-paragraph {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* FEATURES LIST */
.hero-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--white);
  gap: 0.6rem;
}

/* Animated gradient circular icon */
.feature-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b59b6, #6b21a8);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 6px rgba(155, 89, 182, 0.6);
  animation: pulseBounce 1.5s infinite;
}

/* Staggered animation for each feature */
.hero-features li:nth-child(1) .feature-icon {
  animation-delay: 0s;
}
.hero-features li:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}
.hero-features li:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

/* Pulse + bounce animation */
@keyframes pulseBounce {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

/* HERO BUTTONS */
.hero-buttons a {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  margin-right: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* RIGHT SIDE IMAGE */
.hero-right {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  object-fit: contain;
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-left, .hero-right {
    flex: 1 1 100%;
  }

  .hero-main-title {
    font-size: 2.5rem;
  }

  .hero-sub-title {
    font-size: 1.5rem;
  }

  .hero-paragraph {
    font-size: 1.1rem;
  }

  .hero-image {
    max-width: 500px;
  }

  /* Fix feature list on mobile */
  .hero-features {
    display: flex;
    flex-direction: column;   /* stack vertically */
    align-items: flex-start;  /* align bullets to the left */
    gap: 1rem;                /* spacing between items */
  }

  .hero-features li {
    justify-content: flex-start; /* remove centering */
    margin-left: 0;              /* remove leftover indent */
  }
}

@media (max-width: 600px) {
  .hero-main-title {
    font-size: 2rem;
  }

  .hero-sub-title {
    font-size: 1.2rem;
  }

  .hero-paragraph {
    font-size: 1rem;
  }

  .hero-buttons a {
    padding: 0.6rem 1.2rem;
    margin-right: 0.5rem;
    font-size: 0.95rem;
  }

  .hero-image {
    max-width: 100%;
    height: auto;
  }

  /* Keep features stacked nicely on smaller screens too */
  .hero-features {
    gap: 0.8rem;
  }
}


/* =========================
CHALLENGE SECTION
=========================== */
.challenge-section {
  width: 100%;
  padding: 1rem 3rem;
}

.challenge-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

/* LEFT */
.challenge-left {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.challenge-left lottie-player {
  width: 100%;
  max-width: 450px;
}

/* RIGHT */
.challenge-right {
  margin-top: 2.5rem;
  flex: 1 1 45%;
  color: var(--white);
}

.challenge-right .section-title {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.challenge-list {
  list-style: disc; /* bullets for list */
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.challenge-list li {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.challenge-note {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 520px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .challenge-content {
    flex-direction: column;  /* stack vertically */
    text-align: left;
  }

  .challenge-left {
    order: 2; /* lottie moves below */
    margin-top: 2rem;
  }

  .challenge-right {
    order: 1; /* text stays on top */
  }

  .challenge-left lottie-player {
    width: 100%;
    max-width: 500px; /* stretches nicely */
  }
}



/* ==================================
HOW RAYNIX WORKS 
=====================================*/
.how-raynix-works {
  padding: 5rem 2rem;
}

.how-raynix-works .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.works-left {
  flex: 1;
}

.works-left h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  font-size: 1.2rem;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.accordion-header::after {
  content: "+";
  float: right;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body p,
.accordion-body ul {
  margin-bottom: 1rem;
  color: #ccc;
}

.accordion-body ul {
  padding-left: 1.2rem;
}

.accordion-item.active .accordion-body {
  max-height: 1200px;
}

/* RIGHT */
.works-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.works-right lottie-player {
  margin-top: -80px;
  max-width: 800px;
  width: 100%;
}

/* MOBILE */
@media (max-width: 992px) {
  .how-raynix-works .container {
    flex-direction: column;
  }

  .works-right {
    margin-top: 2rem;
  }

  .works-right lottie-player{
    max-width: 100%;
    width: 100%;
    height: 380px;
  }
}


/* ===========================
BUILT AS A PLATFORM
============================== */
.built-platform {
  width: 100%;
  padding: 1rem 3rem;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  text-align: left;
}

.built-platform .container {
  display: flex;
  max-width: 1200px; /* aligns with previous sections */
  width: 100%;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* LEFT IMAGE */
.platform-image {
  flex: 1 1 45%;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-top: -25px;
  object-fit: contain;
}

/* RIGHT TEXT */
.platform-text {
  flex: 1 1 45%;
}

.built-platform h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.built-platform p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
  line-height: 1.6;
}

.platform-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.platform-list li {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.5;
  background: none;
  border-radius: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .built-platform .container {
    flex-direction: column; /* stack items vertically */
  }

  .platform-text {
    order: 1; /* text on top */
  }

  .platform-image {
    order: 2; /* image below */
    max-width: 100%;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .built-platform h2 {
    font-size: 2.3rem;
  }

  .built-platform p {
    font-size: 1rem;
  }

  .platform-list li {
    font-size: 1.1rem;
  }
}

/* ===================
WHERE RAYNIX IS USED
====================== */
.raynix-used {
  width: 100%;
  padding: 3rem 3rem 5rem 3rem;            /* controls left & right spacing */
  color: var(--white);
  box-sizing: border-box;
}

.raynix-used .section-title {
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;    /* aligns with other sections */
  font-size: 2.8rem;
}

/* GRID */
.used-grid {
  max-width: 1200px;             /* SAME width as hero/challenge */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 top */
  gap: 2rem;
}

/* CARD */
.used-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  align-items: flex-start;       /* icon + text alignment */
  gap: 1rem;
  transition: transform 0.25s ease;
}

.used-card:hover {
  transform: translateY(-6px);
}

/* ICON */
.used-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* TEXT WRAP */
.used-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.used-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  color: var(--white);
}

/* 4th card goes below, aligned left */
.used-grid > :nth-child(4) {
  grid-column: 1 / 2;
}

/* ===================
RESPONSIVE
====================== */
@media (max-width: 992px) {
  .raynix-used {
    padding: 4rem 2rem;
  }

  .used-grid {
    grid-template-columns: 1fr;
  }

  .used-grid > :nth-child(4) {
    grid-column: auto;
  }
}

/* ===================
WHY TEAMS CHOOSE RAYNIX
====================== */
.why-raynix {
  width: 100%;
  padding: 1rem 3rem;  /* controls top/bottom and left/right spacing */
  box-sizing: border-box;
  color: var(--white);
}

.why-raynix-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

/* LEFT SIDE: TEXT */
.why-raynix-left {
  flex: 1 1 50%;
}

.why-raynix-left h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.raynix-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.raynix-benefits li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.raynix-benefits .checkmark {
  color: var(--primary-color);
  margin-right: 0.8rem;
  flex-shrink: 0;
  font-weight: bold;
}

.raynix-note {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* RIGHT SIDE: IMAGE */
.why-raynix-right {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  margin-top: -40px;
}

.why-raynix-right img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ===================
RESPONSIVE
====================== */
@media (max-width: 992px) {
  .why-raynix-container {
    flex-direction: column;
    text-align: center;
  }

  .why-raynix-left, .why-raynix-right {
    flex: 1 1 100%;
  }

  .why-raynix-right {
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .why-raynix-left h2 {
    font-size: 2.3rem;
  }

  .raynix-benefits li {
    font-size: 1rem;
  }

  .raynix-note {
    font-size: 1rem;
  }
}

/* ============================
   BOOK A PRIVATE DEMO SECTION
============================= */
.book-demo {
  width: 100%;
  padding: 1rem 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.book-demo h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.book-demo p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.book-demo .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.book-demo .btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .book-demo h2 {
    font-size: 2.2rem;
  }

  .book-demo p {
    font-size: 1rem;
  }
}


/* ============================
   FOOTER
============================= */
.site-footer {
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: #1a1a1a; /* dark text on white */
  background-color: #f5f5f5; /* white background */
  font-size: 1rem;
}
