/* =========================================================
   RESET & BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #050c2f 0%, #02020f 55%);
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
  --primary: #4da3ff;
  --primary-soft: rgba(77,163,255,0.25);
  --text-soft: #cfe0ff;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
}

/* =========================================================
   GLOBAL
========================================================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1f7bff, #6ad0ff);
  color: #000;
  box-shadow: 0 12px 35px rgba(80,150,255,.45);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(80,150,255,.7);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.06);
}

/* =========================================================
   HEADER
========================================================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2,2,15,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000; /* ✅ CHANGE */
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 34px;
}

.brand span {
  font-family: 'Manrope', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16.2px;
  letter-spacing: 0.8px;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #9fd0ff 25%,
    #4da3ff 45%,
    #9fd0ff 65%,
    #ffffff 85%
  );
  background-size: 300% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 12px rgba(120,180,255,0.55),
    0 0 28px rgba(77,163,255,0.45),
    0 0 50px rgba(77,163,255,0.25);

  animation: brandUltraShine 3s linear infinite;
}

@keyframes brandUltraShine {
  to {
    background-position: 300% center;
  }
}






/* NAV */
.nav a {
  margin: 0 14px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 14px;
}

/* =========================================================
   HAMBURGER & MOBILE MENU
========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(5,8,25,0.98);
  padding: 24px;
  flex-direction: column;
  gap: 18px;

  z-index: 10000; /* ✅ CHANGE */
}
.mobile-menu a {
  font-size: 16px;
  padding: 12px 0;
  color: #ffffff;   /* ✅ FIX */
  opacity: 1;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--primary);
}


.mobile-menu a {
  font-size: 16px;
  padding: 12px 0;
}

.mobile-menu.open {
  display: flex;
}
.mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
}


/* =========================================================
   HERO
========================================================= */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  position: relative; /* 👈 ADD */
}
.hero-visual {
  position: relative;
  perspective: 1200px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(
    circle,
    rgba(77,163,255,.25),
    transparent 65%
  );
  filter: blur(80px);
  z-index: -1;
}



.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
  position: relative;
  z-index: 3; /* 👈 ADD */
}


.hero-text h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* PRODUCT PREVIEW */
.preview-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.7));
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);

}

.preview-card img {
  width: 100%;
  border-radius: 16px;
}

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;

  padding: 60px;
  border-radius: 32px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(0,0,0,.75)
  );

  border: 1px solid var(--border);

  box-shadow:
    0 60px 140px rgba(0,0,0,.8),
    0 0 80px rgba(77,163,255,.18);

  align-items: center;
}

.product-info {
  position: relative;
  z-index: 2;
}
.product-info p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #d7e4ff;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  padding: 14px 18px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.06);
}


.product-info h3 {
  font-size: 42px;
  margin: 10px 0 20px;
  color: var(--primary);
}
.product-preview {
  position: relative;
}


/* =========================================================
   SERVICES
========================================================= */
.services h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 70px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 34px;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 46px 34px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(80,150,255,.25);
}

.service-card .icon {
  font-size: 36px;
  margin-bottom: 18px;
}

/* =========================================================
   PRODUCT
========================================================= */
.product {
  background: radial-gradient(circle at top, #050c2f, #02020f);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* =========================================================
   CTA
========================================================= */
.cta {
  text-align: center;
}

.cta h2 {
  font-size: 38px;
}

.cta p {
  color: var(--text-soft);
  margin: 16px 0 32px;
}

.preview-outer {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(0,0,0,.75)
  );
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  overflow: hidden;

  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .6s ease, box-shadow .6s ease;
}

.preview-outer:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
  box-shadow:
    0 70px 140px rgba(0,0,0,.8),
    0 0 70px rgba(77,163,255,.35);
}

.preview-outer:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
  box-shadow:
    0 60px 120px rgba(0,0,0,.75),
    0 0 60px rgba(77,163,255,.35);
}

.staybix-slider .preview-inner {
  display: flex;
  width: 200%;              /* 2 images */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}


.staybix-slider .preview-inner img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}


.preview-header {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,.35);
}

.preview-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.preview-inner img {
  width: 100%;
  display: block;
  border-radius: 16px;

  
}
.preview-inner {
  position: relative;
  width: 100%;
  
}

.hero-visual-placeholder {
  position: relative;
  height: 360px;
  z-index: 1; /* 👈 ADD */
}

.hero-visual-placeholder .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.hero-visual-placeholder .one {
  width: 220px;
  height: 220px;
  background: #4da3ff;
  top: 20%;
  left: 10%;
}

.hero-visual-placeholder .two {
  width: 260px;
  height: 260px;
  background: #6ad0ff;
  top: 40%;
  left: 35%;
}

.hero-visual-placeholder .three {
  width: 200px;
  height: 200px;
  background: #1f7bff;
  top: 10%;
  left: 55%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; /* 👈 ADD */
}
.hero-overlay .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 50%, black 30%, transparent 70%);
}

.hero-human {
  position: absolute;
  right: 17%;
  bottom: -10px;
  height: 90%;
  z-index: 2; /* 👈 1 → 2 */
  pointer-events: none;
}




.hero-human img {
  height: 100%;
  max-height: 540px;

  

  /* smooth dissolve from bottom */
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0,0,0,0.4) 20%,
    black 45%
  );
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0,0,0,0.4) 20%,
    black 45%
  );

  animation: humanFloat 6s ease-in-out infinite;
}



/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}




/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {

  .nav { display: none; }
  .hamburger { display: flex; }

  .hero-grid,
  .product-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    position: relative;
  z-index: 3;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-actions {
    justify-content: center;
  }
  .hero-grid {
  gap: 48px;
}

.hero-visual {
  order: -1;
}
.product-card {
    grid-template-columns: 1fr;
    padding: 40px 26px;
    text-align: center;
  }

  .product-card::after {
    display: none;
  }
.hero-human {
    right: 50%;                 /* 👈 override */
    transform: translateX(50%);
    height: 85%;
    bottom: -300px;
  }
   .hero-human img {
    -webkit-mask-image: linear-gradient(
      to top,
      transparent 0%,
      black 30%,
      black 100%
    );
    mask-image: linear-gradient(
      to top,
      transparent 0%,
      black 30%,
      black 100%
    );
  }
  
   .hero-overlay .grid {
    mask-image: radial-gradient(
      ellipse at 50% 65%,
      black 35%,
      transparent 70%
    );
  }
/* hide desktop CTA buttons */
  .header-actions .btn {
    display: none;
  }
.hamburger {
    display: flex;
  }

  .brand span {
    font-size: 14px;
    letter-spacing: 0.4px;
  }
}



/* =========================================================
   RS TECHNO STUDIOS – STAYBIX STYLE SHINE (FINAL CLEAN)
   COPY–PASTE AT VERY END
========================================================= */

/* ---------- BASE SAFETY ---------- */
.btn,
.service-card,
.product-card,
.preview-card,
.preview-outer {
  position: relative;
  overflow: hidden;
}

/* ---------- SHINE SWEEP (MAIN EFFECT) ---------- */
.btn::after,
.service-card::after,
.preview-card::after,
.preview-outer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.35),
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}

/* ---------- HOVER TRIGGER ---------- */
.btn:hover::after,
.service-card:hover::after,
.preview-card:hover::after,
.preview-outer:hover::after {
  transform: translateX(130%);
}

/* ---------- GLOW + LIFT ---------- */
.btn:hover,
.service-card:hover,
.preview-card:hover,
.preview-outer:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 22px rgba(77,163,255,0.45),
    0 0 60px rgba(77,163,255,0.25);
}

/* ---------- PRODUCT CARD HERO GLOW ---------- */
.product-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(
    circle,
    rgba(77,163,255,0.28),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

/* ---------- NAV LINKS (ONLY CLEAN UNDERLINE + SOFT TEXT) ---------- */
.nav a {
  text-shadow: 0 0 6px rgba(77,163,255,0.25);
}

/* underline system jo pehle se hai wahi chalega */

/* ---------- MOBILE / TOUCH DEVICES (NO LAG) ---------- */
@media (hover: none) {
  .btn::after,
  .service-card::after,
  .preview-card::after,
  .preview-outer::after,
  .product-card::before {
    display: none;
  }

  .btn:hover,
  .service-card:hover,
  .preview-card:hover,
  .preview-outer:hover {
    transform: none;
    box-shadow: none;
  }
}
