/* ==========================================================
   SOFTBOOK AI — ULTRA MODERN GRADIENT SAAS LANDING PAGE
   Inspired by: Linear, Framer, Vercel, Runway, Superlist
   ========================================================== */

/* ----------------------------------------------------------
   CORE VARIABLES
---------------------------------------------------------- */

:root {
  --brand-1: #6d5dfc;
  --brand-2: #46c2ff;
  --brand-3: #ff7eb3;
  --brand-glow: rgba(255,255,255,0.7);

  --bg-dark: #0f0e17;
  --white: #ffffff;

  --text-light: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.65);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-1: 0 10px 40px rgba(0,0,0,0.35);
  --shadow-2: 0 20px 50px rgba(0,0,0,0.45);

  --transition-fast: 0.25s ease;
  --transition-medium: 0.45s cubic-bezier(0.25, 1, 0.35, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.35, 1);
}

/* ----------------------------------------------------------
   GLOBAL BACKGROUND
---------------------------------------------------------- */

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #6d5dfc 0%, #0f0e17 60%),
              radial-gradient(circle at 80% 80%, #ff7eb3 0%, #0f0e17 60%);
  background-blend-mode: screen;
  background-attachment: fixed;
  overflow-x: hidden;
  color: var(--white);
}

/* Smooth fade for whole site */
body {
  opacity: 0;
  animation: pageFadeIn 0.8s ease forwards;
}
@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* ----------------------------------------------------------
   PREMIUM NAVBAR
---------------------------------------------------------- */

.premium-navbar {
  background: rgba(15, 14, 23, 0.55);
  backdrop-filter: blur(20px);
  padding: 18px 0;
  transition: var(--transition-medium);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.premium-navbar.scrolled {
  background: rgba(15, 14, 23, 0.85);
  padding: 10px 0;
  box-shadow: var(--shadow-1);
}

.nav-link-premium {
  position: relative;
  font-weight: 500;
  color: var(--text-light) !important;
  padding-bottom: 6px;
  transition: var(--transition-fast);
}

.nav-link-premium:hover {
  color: var(--white) !important;
}

.nav-link-premium::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  transition: var(--transition-medium);
}

.nav-link-premium:hover::after {
  width: 100%;
}

.nav-cta {
  border-radius: 50px;
  padding: 10px 28px !important;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 20px rgba(109, 93, 252, 0.5);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(109, 93, 252, 0.8);
}

/* Mobile menu */
@media (max-width: 992px) {
  .navbar-nav {
    background: rgba(15, 14, 23, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); /* iOS Safari fix */
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   HERO SECTION — ULTRA MODERN LAYERED STYLE
---------------------------------------------------------- */

#hero {
  margin-top: 150px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating shapes */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  filter: blur(130px);
  z-index: -1;
  opacity: 0.35;
}

#hero::before {
  top: -180px;
  left: -180px;
  background: var(--brand-1);
}

#hero::after {
  bottom: -180px;
  right: -180px;
  background: var(--brand-3);
}

#hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeUp 0.9s ease both;
}

#hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 30px auto;
  animation: fadeUp 1.2s ease both;
}

.hero-full-img {
  margin-top: 40px;
  width: 100%;
  height: auto;
  animation: slideUp 1.5s ease both;
  transform-origin: center;
  border-radius: 0;
}

/* Hero animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(80px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------------------------------------
   BUTTONS – LIQUID GRADIENT STYLE
---------------------------------------------------------- */

.btn-gradient {
  /*background: linear-gradient(41deg, #d6d6d6, #6f4bff);*/
  background: #6f4bff;
  padding: 14px 34px;
  font-weight: 600;
  color: #fff !important;
  border-radius: 60px;
  transition: var(--transition-medium);
  box-shadow: 0 0 20px rgba(109, 93, 252, 0.5);
}


.btn-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(109, 93, 252, 0.8);
}

/* ==========================================================
   Gradient Outline Button
   ========================================================== */

.btn-gradient-outline {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  font-weight: 600;
  border-radius: 60px;
  background: transparent;
  color: var(--brand-2) !important;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), 
                    linear-gradient(90deg, var(--brand-1), var(--brand-2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: var(--transition-medium);
  box-shadow: 0 0 0 rgba(109, 93, 252, 0.4); /* no glow initially */
}

/* Text gradient effect */
.btn-gradient-outline {
  background-color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, var(--brand-2), var(--brand-1));
  box-shadow: 0 0 10px rgba(109, 93, 252, 0.4);
}

/* Hover State */
.btn-gradient-outline:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(109, 93, 252, 0.5);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background-image:
    linear-gradient(90deg, var(--brand-1), var(--brand-2)),
    linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
}

/* Active */
.btn-gradient-outline:active {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(109, 93, 252, 0.8);
}


/* ----------------------------------------------------------
   SECTIONS — GLASS, CONTAINERS, AND ANIMATIONS
---------------------------------------------------------- */

.section-glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); /* iOS Safari fix */
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin-bottom: 80px;
  box-shadow: var(--shadow-1);
  animation: fadeUp 1s ease both;
}

/* ----------------------------------------------------------
   SERVICE CARDS — 3D HOVER + PARALLAX
---------------------------------------------------------- */

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), 
              box-shadow 0.35s;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: var(--shadow-2);
}

.service-card img {
  width: 90px;
  margin-bottom: 1.4rem;
}

#services .row > div {
  display: flex;
}

/* ----------------------------------------------------------
   PRICING CARDS — PREMIUM GRADIENT OUTLINE
---------------------------------------------------------- */

.price-card {
  height: 100%;
  padding: 2.6rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  text-align: center;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-1);
  position: relative;
}

.price-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-2);
}

.price-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.price-amount {
  font-size: 2.7rem;
  margin: 18px 0;
}

.pricing-features {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.pricing-features li {
  margin-bottom: 10px;
}


/* ----------------------------------------------------------
   BANNER IMAGE
---------------------------------------------------------- */

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ----------------------------------------------------------
   CONTACT SECTION
---------------------------------------------------------- */

#contact .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-md);
}

#contact label {
  color: var(--text-light);
  margin-bottom: 6px;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

footer {
  padding: 50px 0;
  text-align: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 90px;
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* ==========================================================
   Animated Background Gradient Waving / Crossfade
   ========================================================== */

body {
  position: relative;
  overflow-x: hidden;
}

/* Background layers */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

/* Layer 1 – Your current gradient system */
body::before {
  background: radial-gradient(circle at 20% 20%, #6d5dfc 0%, #0f0e17 60%),
              radial-gradient(circle at 80% 80%, #ff7eb3 0%, #0f0e17 60%);
  background-blend-mode: screen;
  animation: bgWave1 12s ease-in-out infinite alternate;
  opacity: 1;
}

/* Layer 2 – The new linear gradient */
body::after {
  background: linear-gradient(90deg, #7e6dfc, #46c2ff);
  opacity: 0;
  animation: bgWave2 12s ease-in-out infinite alternate;
}

/* Keyframes for opacity crossfade + subtle movement */
@keyframes bgWave1 {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.4; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bgWave2 {
  0%   { opacity: 0; transform: scale(1.05); }
  50%  { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}



/* ==========================================================
   INFINITE SLOW ROTATING CAROUSEL (3D WHEEL STYLE)
   ========================================================== */

.feature-carousel-container {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: visible;
}

.feature-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: x-small;
}

/* CENTER card effect */
.feature-card.active-card {
  transform: scale(1.35) translateY(-20px);
  opacity: 1;
  z-index: 5;
}

/* Mobile */
@media (max-width: 768px) {
  .feature-card {
    width: 200px;
  }
  .feature-card.active-card {
    transform: scale(1.15) translateY(-10px);
  }
}


/* ==========================================================
   WORKING ROTATING CAROUSEL — FIXED VERSION
   ========================================================== */

.feature-carousel-container {
  width: 100%;
  height: 360px; /* IMPORTANT */
  position: relative;
}

.feature-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.feature-card {
  position: absolute;
  width: 260px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  text-align: center;
  transition: all 0.8s ease;
      padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;

}

.feature-card h3{
  padding: 2px;
}
.feature-card p{
  padding: 10px;
}

.feature-card img {
  margin-bottom: 1rem;
  width: 100%;
  height: 180px;
  padding: 0;
  object-fit: cover;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* CENTER CARD */
.feature-card.center {
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 1;
  z-index: 3;
}

/* LEFT card */
.feature-card.left {
  transform: translate(-180%, -50%) scale(0.9);
  opacity: 0.7;
  z-index: 2;
}

/* RIGHT card */
.feature-card.right {
  transform: translate(80%, -50%) scale(0.9);
  opacity: 0.7;
  z-index: 2;
}

/* CARDS OUT OF VIEW */
.feature-card.hidden-left {
  transform: translate(-300%, -50%) scale(0.6);
  opacity: 0;
}

.feature-card.hidden-right {
  transform: translate(200%, -50%) scale(0.6);
  opacity: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .feature-carousel-container { height: 300px; }
  .feature-card { width: 200px; }
  .feature-card.center { transform: translate(-50%, -50%) scale(1.1); }
  .feature-card.left { transform: translate(-140%, -50%) scale(0.8); }
  .feature-card.right { transform: translate(40%, -50%) scale(0.8); }
}


html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}



/* ==========================================================
   TOP MARQUEE
   ========================================================== */

.top-marquee {
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff7eb3, #ff65a3, #ff3f81);
  background-size: 300% 300%;
  animation: marqueeWave 8s ease-in-out infinite;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 9999;
  cursor: pointer;
}

#topMarqueeInner{
  font-weight: bold;
}

@keyframes marqueeWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.top-marquee-inner {
  white-space: nowrap;
  padding-left: 100%;
  font-size: 0.95rem;
  color: #fff;
  animation: marqueeScroll 18s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

/* Applied ONLY when marquee is injected */
.navbar-with-marquee {
  margin-top: 40px !important;
}


/* ==========================================================
   MODAL POPUP
   ========================================================== */

.marquee-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); /* iOS Safari fix */
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marquee-modal-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px); /* iOS Safari fix */
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  padding: 0;
  position: relative;
  box-shadow: 0 8px 50px rgba(0,0,0,0.45);
  animation: modalPop 0.4s ease;
}

@keyframes modalPop {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.marquee-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 28px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

.marquee-modal-image img {
  width: 100%;
  display: block;
  border-radius: 20px 20px 0 0;
}

.marquee-modal-message {
  padding: 24px;
  font-size: 1rem;
  color: #fff;
}

.marquee-modal-btn {
  margin: 0 24px 24px 24px;
  display: block;
  text-align: center;
}

.marquee-item {
  cursor: pointer;
  padding: 0 10px;
}

.marquee-item:hover {
  text-decoration: underline;
}



/* ==========================================================
   EXPLORE STORIES — NETFLIX STYLE ROW
========================================================== */

#explore h2 {
  color: #fff;
  text-align: left;
}

.explore-row {
  position: relative;
}

.explore-list {
  scroll-behavior: smooth;
  padding-bottom: 5px;
}

.explore-card {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;

  margin: 6px;                  /* new spacing around each card */
  transition: transform .25s ease, box-shadow .25s ease;
}

.explore-card:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.explore-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 12px 14px 12px;  
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
}

.explore-overlay h4 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

.explore-overlay p {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}

/* Scroll arrows */
.explore-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  cursor: pointer;
  z-index: 10;

  transition: 0.25s ease;
}

.explore-nav:hover {
  background: rgba(255,255,255,0.25);
}

.explore-left {
  left: -20px;
}

.explore-right {
  right: -20px;
}

@media (max-width: 768px) {
  .explore-nav {
    display: none; /* use swipe on mobile */
  }
}
/* Hide horizontal scrollbar in Explore Stories section */
.explore-list {
  scroll-behavior: smooth;
  padding: 10px 6px 16px 6px;   /* new padding for smoother spacing */
  overflow-x: auto;
  display: flex;
  gap: 10px;   
  scrollbar-width: none;
}
.explore-list::-webkit-scrollbar {
  display: none;
}