/* --- Root Variables & Reset --- */
:root {
  --bg: #050505;
  --accent: #7c4dff;
  --accent-glow: rgba(124, 77, 255, 0.4);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Aurora Blobs (Responsive visibility) --- */
.blob {
  position: fixed;
  width: 40vw;
  height: 40vw;
  filter: blur(140px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
}

.blob-1 {
  top: -10%;
  right: -10%;
  background: var(--accent);
}

.blob-2 {
  bottom: -10%;
  left: -10%;
  background: #00d4ff;
}

/* --- Floating Navigation (Responsive) --- */
.floating-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  padding: 10px 25px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 10px;
  font-size: 1rem;
  font-weight: 800;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Hero Section (Fluid Typography) --- */
.hero-section {
  padding: 180px 20px 80px;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-section span {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- About Section --- */
.about-section {
  padding: 60px 5%;
  display: flex;
  justify-content: center;
}

.about-glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(15px);
  padding: clamp(30px, 5vw, 60px);
  border-radius: 30px;
  max-width: 1000px;
  text-align: center;
}

.tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: block;
}

.about-content h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 20px;
  font-weight: 800;
}

.about-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 40px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
  padding-top: 30px;
  flex-wrap: wrap;
}

.stat-box h3 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
}

.stat-box p {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Book Grid --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.book-card {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 24px;
  transition: 0.4s ease;
}

.book-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.poster-wrapper {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 2/3;
  margin-bottom: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.book-card:hover .poster-wrapper img {
  transform: scale(1.05);
}

.book-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.book-info p {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 400;
}

.price-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.price-btn:hover {
  background: #9166ff;
}

/* --- Contact Form (Responsive Buttons) --- */
.contact-glass {
  max-width: 800px;
  margin: 80px auto;
  padding: clamp(40px, 8vw, 80px) 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  text-align: center;
  width: 90%;
}

.contact-glass h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.input-group {
  display: flex;
  gap: 15px;
  margin: 30px 0 15px;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.send-btn {
  width: 100%;
  max-width: 250px;
  padding: 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.send-btn:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.02);
}

/* --- Popup Modal (Responsive) --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #0a0a0c;
  border: 1px solid var(--border);
  padding: clamp(30px, 5vw, 50px);
  border-radius: 30px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.modal-inputs input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.modal-inputs input:focus {
  border-color: var(--accent);
}

.cancel-btn {
  background: transparent;
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
  margin-top: 15px;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.cancel-btn:hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: #ff4d4d;
  color: #ff4d4d;
  transform: scale(1.02);
}

/* --- Footer --- */
footer {
  padding: 60px 5% 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.f-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.copyright {
  color: #555;
  font-size: 0.8rem;
}

/* --- Mobile Specific Media Queries --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .floating-nav {
    padding: 8px 15px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .input-group {
    flex-direction: column;
  }
  .send-btn {
    max-width: 100%;
  }
  .hero-section {
    padding-top: 140px;
  }
}