:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --secondary: #0ea5e9;
  --accent: #f43f5e;
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-main: #0f172a;
  --text-dim: #64748b;
  --border-color: #e2e8f0;
  --font-main: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}/* Navbar */
.custom-navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  margin: 20px auto;
  width: 90%;
  padding: 12px 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.custom-navbar .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-brand {
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: 24px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Links */
.nav-link {
  color: var(--text-dim) !important;
  margin: 0 15px;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

.nav-link.active {
  color: var(--primary) !important;
}

/* Button */
.book-btn {
  background: var(--primary);
  color: white !important;
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: var(--transition-smooth);
  border: none;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
  background: var(--primary-light);
}

#hero {
  background-color: var(--bg-soft);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
  background: var(--primary-light);
}

.btn-outline {
  background: white;
  color: var(--text-main);
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
}

.hero-text {
  position: absolute;
  bottom: 20px;
  left: -40px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  max-width: 280px;
}

.hero-text .icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0;
}

.hero-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.hero-text p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 0;
}
/*start Why Choose Bookify Section */
#choose-Bookify {
  background-color: var(--bg-soft);
  padding: 120px 0;
}

.Bookify-text h2 {
  color: var(--text-main);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.Bookify-text p {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 60px;
}

.feature-card {
  border-radius: 32px;
  background: white;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-card .icon {
  font-size: 28px;
  background: rgba(79, 70, 229, 0.05);
  color: var(--primary);
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  transition: var(--transition-smooth);
}

.feature-card:hover .icon {
  background: var(--primary);
  color: white;
  transform: rotate(-5deg);
}

.feature-card h3 {
  color: var(--text-main);
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 0;
}
/*end Why Choose Bookify Section */
/* start How it works */
#how-it-works {
  background-color: white;
  padding: 120px 0;
}

.works-text h2 {
  color: var(--text-main);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.works-text p {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 60px;
}

/* Step Circle */
.step-number {
  width: 80px;
  height: 80px;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.col-md-4:hover .step-number {
  background: var(--primary);
  color: white;
  transform: translateY(-8px) rotate(8deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

#how-it-works h3 {
  color: var(--text-main);
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

#how-it-works p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 16px;
}
/* end How it works */
/* start What our users say */
#our-users-say {
  background-color: var(--bg-soft);
  padding: 120px 0;
}

.users-say-text h2 {
  color: var(--text-main);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.users-say-text p {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 60px;
}

.childs {
  background: white;
  padding: 40px;
  border-radius: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

.childs:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.childs h4 {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 20px;
}

.childs p {
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.childs h5 {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
}

.childs small {
  color: var(--text-dim);
  font-weight: 500;
}
/* end What our users say */
#ready-to-streamline {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 40px;
  padding: 80px 40px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box .btn {
  background: white;
  color: var(--primary);
  padding: 16px 40px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  border: none;
  transition: var(--transition-smooth);
}

.cta-box .btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}
/* footer */
.footer-dark {
  background: var(--text-main);
  padding: 100px 0 40px;
  color: #94a3b8;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  color: white;
}

.footer-logo i {
  background: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.footer-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 300px;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.footer-line {
  margin: 60px 0 30px;
  border-color: rgba(255, 255, 255, 0.05);
}

.copyright {
  font-size: 14px;
  text-align: center;
}


/* ================== ANIMATIONS ================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Base Reveal Class */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.reveal-up { transform: translateY(40px); }
.reveal.reveal-down { transform: translateY(-40px); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.9); }

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* Entrance Animations */
.animate-fadeInUp { animation: fadeInUp 0.8s both; }
.animate-fadeInDown { animation: fadeInDown 0.8s both; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s both; }
.animate-fadeInRight { animation: fadeInRight 0.8s both; }
.animate-scaleIn { animation: scaleIn 0.8s both; }

/* Staggered Delay Utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* For Scroll Staggering (JS will handle) */
.active.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.active.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.active.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.active.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.active.stagger-item:nth-child(5) { transition-delay: 0.5s; }

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

@media (max-width: 991px) {
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 40px;
  }
  .buttons {
    justify-content: center;
    margin-bottom: 60px;
  }
  .hero-text {
    left: 20px;
    bottom: -20px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 48px;
  }
  .footer-dark {
    text-align: center;
  }
  .footer-logo, .social-icons {
    justify-content: center;
  }
  .footer-text {
    margin: 0 auto 32px;
  }
}