:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  --secondary-color: #3b82f6;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1), transparent 40%);
  filter: blur(80px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
nav {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.book-cover {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.2);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Chapters Section */
.chapters-section {
  padding: 8rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  text-align: center;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.chapter-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.chapter-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.chapter-number {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.chapter-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chapter-desc {
  color: #a0a0a0;
  font-size: 0.95rem;
}

/* Author Section */
.author-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.05), transparent);
}

.author-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.author-bio {
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: #606060;
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }
}

/* Did You Know Banner */
.dyk-banner-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  margin-top: 5rem;
  margin-bottom: 5rem;
  display: flex;
  align-items: center;
}

.dyk-banner-container::before,
.dyk-banner-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.dyk-banner-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.dyk-banner-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.dyk-content {
  display: flex;
  width: max-content;
  animation: scrollBanner 40s linear infinite;
}

.dyk-content:hover {
  animation-play-state: paused;
}

.dyk-track {
  display: flex;
  gap: 4rem;
  padding-right: 4rem;
}

.dyk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
}

.dyk-badge {
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Floating Buy Button */
.floating-buy-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--accent-glow);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
}

.floating-buy-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
  color: #fff;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* --- E-Commerce Conversion Styles --- */
.top-announcement-bar {
  background: #000;
  color: #4ade80;
  text-align: center;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 1px solid #166534;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.blinking-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: #4ade80;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.bestseller-badge {
  background-color: #f59e0b;
  color: #111;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.star-rating {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-count {
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-block {
  margin: 25px 0;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 1.5rem;
}

.price-new {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.discount-tag {
  background: #ef4444;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.trust-badges {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #aaa;
  display: flex;
  gap: 15px;
  align-items: center;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cta-group {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.secondary-cta {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.secondary-cta:hover {
  background: rgba(255,255,255,0.2);
}

.amazon-reviews-section {
  padding: 80px 20px;
  background: rgba(10,10,10,0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: rgba(20,20,20,0.6);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
}

.review-name {
  color: #fff;
  font-weight: 600;
}

.verified-badge {
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
}

.review-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review-text {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
}

.guarantee-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(16, 185, 129, 0.1));
  border-top: 1px solid rgba(74, 222, 128, 0.2);
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.guarantee-badge {
  font-size: 4rem;
  margin-bottom: 20px;
}

.guarantee-title {
  color: #4ade80;
  font-size: 2rem;
  margin-bottom: 15px;
}

.guarantee-text {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.reviews-marquee-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 1.5rem 0;
  display: flex;
  align-items: stretch;
}
.reviews-marquee-container::before,
.reviews-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(10,10,10,1), transparent);
}
.reviews-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(10,10,10,1), transparent);
}
.reviews-track {
  display: flex;
  width: max-content;
  animation: scrollReviews 150s linear infinite;
  gap: 30px;
  padding-right: 30px;
}
.reviews-track:hover {
  animation-play-state: paused;
}
@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.floating-gems-btn {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite reverse;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
}

.floating-gems-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
  color: #fff;
}

.gem-search-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.gem-search-btn {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.gem-search-btn.youtube { background: rgba(255, 0, 0, 0.1); color: #ff4444; border: 1px solid rgba(255, 0, 0, 0.3); }
.gem-search-btn.youtube:hover { background: rgba(255, 0, 0, 0.2); }
.gem-search-btn.google { background: rgba(66, 133, 244, 0.1); color: #4285f4; border: 1px solid rgba(66, 133, 244, 0.3); }
.gem-search-btn.google:hover { background: rgba(66, 133, 244, 0.2); }
.gem-keyword {
  display: inline-block;
  margin-top: 15px;
  color: #8b5cf6;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}
