/* Global Styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
}

/* Navbar Styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #0f172a;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar .brand a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar .logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.navbar .logo img {
  width: 60px;
  height: 60px;
  transform: scale(1.3);
}

.navbar .nav-links {
  display: flex;
  gap: 1rem;
}

.navbar .nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar .nav-links a:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #ffffff;
}

.navbar .nav-links a.active {
  background: #334155;
  color: #fff;
}

.navbar .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar .mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .navbar .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .navbar .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar .nav-links a {
    padding: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .navbar .mobile-menu-toggle {
    display: flex;
  }

  .navbar .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .navbar .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Footer Styles */
.footer {
  background: #0b1220;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 4rem;
}

.footer-section {
  width: 100%;
}

.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer .footer-section h3 {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer .footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer .social-links a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer .social-links a:hover {
  transform: scale(1.1);
}

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

.footer .footer-section li {
  margin-bottom: 0.5rem;
}

.footer .footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .footer-section a:hover {
  color: #60a5fa;
}

.footer .newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer .newsletter input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.25rem;
  background: #1e293b;
  color: #e2e8f0;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .legal-links {
  display: flex;
  gap: 1rem;
}

.footer .legal-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer .legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer .footer-content {
    display: block;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer .newsletter {
    flex-direction: column;
  }
}

/* Home Page Styles */
.hero {
  padding: 6rem 0 4rem;
  background: radial-gradient(70% 60% at 30% 20%, rgba(59,130,246,0.25), transparent 60%),
              radial-gradient(60% 50% at 80% 0%, rgba(236,72,153,0.18), transparent 60%);
  border-radius: 1rem;
  margin-bottom: 4rem;
}

.hero .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero .text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero .accent { color: #6366f1; }

.hero .text p {
  color: #94a3b8;
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.hero .cta { display: flex; gap: 1rem; }

.hero .hero-image .placeholder-image {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  margin: 0 auto;
}

.featured-books, .about-preview, .testimonials, .cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.book-card, .testimonial {
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover, .testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.about-preview, .testimonials {
  margin-top: 50px;
}

.book-cover {
  height: auto;
  width: 100%;
  background: linear-gradient(135deg, #94a3b8, #6366f1);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.book-cover img {
  width: 100%;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image .placeholder-image {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #10b981, #22c55e);
  border-radius: 50%;
  margin: 0 auto;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  color: #94a3b8;
  font-weight: 500;
}

.cta-section {
  text-align: center;
  background: #1e293b;
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin-top: 4rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  color: #94a3b8;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero .hero-content, .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .text h1 {
    font-size: 2.5rem;
  }

  .hero .hero-image .placeholder-image, .about-image .placeholder-image {
    width: 200px;
    height: 200px;
  }

  .books-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* About Page Styles */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about .about-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.about .author-image .placeholder-image {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
}

.about .intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about .tagline {
  color: #94a3b8;
  font-size: 1.1rem;
  font-style: italic;
}

.about .about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.about .bio h2, .achievements h2, .interests h2 {
  border-bottom: 2px solid #6366f1;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.about .achievements ul {
  list-style: none;
  padding: 0;
}

.about .achievements li {
  background: #1e293b;
  margin-bottom: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #6366f1;
}

.about .interests blockquote {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid #10b981;
  font-style: italic;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .about .about-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about .about-content {
    grid-template-columns: 1fr;
  }

  .about .intro h1 {
    font-size: 2rem;
  }
}

/* Books Page Styles */
.books {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.books .books-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.books .books-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.books .books-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.books .books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.books .book-card {
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.books .book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.books .book-card.featured {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.books .book-card.upcoming {
  opacity: 0.8;
}

.books .book-cover {
  height: 160px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #94a3b8, #6366f1);
}

.books .book-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.books .genre {
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.books .book-info p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.books .book-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.books .book-links {
  display: flex;
  gap: 0.5rem;
}

.books .btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.books .book-stats {
  background: #1e293b;
  padding: 3rem 2rem;
  border-radius: 1rem;
  text-align: center;
}

.books .book-stats h2 {
  margin-bottom: 2rem;
}

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

.books .stat .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.books .stat .label {
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .books .book-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .books .book-cover {
    margin: 0 auto;
  }

  .books .books-header h1 {
    font-size: 2rem;
  }
}

/* Contact Page Styles */
.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact .contact-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.contact .contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact .contact-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact .contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact .contact-form h2, .contact-info h2 {
  margin-bottom: 2rem;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 0.5rem;
}

.contact .form {
  display: grid;
  gap: 1.5rem;
}

.contact .form-group {
  display: flex;
  flex-direction: column;
}

.contact .form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #cbd5e1;
}

.contact input, .contact textarea {
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.contact .contact-info {
  display: grid;
  gap: 2rem;
}

.contact .info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact .info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact .info-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contact .info-item p {
  margin: 0;
  color: #94a3b8;
}

.contact .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact .social-links a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.contact .social-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact .contact-content {
    grid-template-columns: 1fr;
  }

  .contact .contact-header h1 {
    font-size: 2rem;
  }
}

/* Page visibility */
.page {
  display: none;
}

.page.active {
  display: block;
}