:root {
  /* Colors */
  --bg-color: #151b29;
  --bg-card: #1e2532;
  --bg-card-hover: #232a38;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #51aebb;
  --secondary: #d4b65c;
  --border-color: #2d3748;
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-section: 6rem;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.font-serif { font-family: var(--font-serif); }

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #0f172a;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #8ed6df;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(21, 27, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(21, 27, 41, 1), rgba(21, 27, 41, 0.4), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
  margin-top: -5vh;
  animation: fadeIn Up 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(21, 27, 41, 0.6);
  border: 1px solid rgba(212, 182, 92, 0.3);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
  font-style: italic;
  background: linear-gradient(to right, var(--primary), #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #bfdbfe;
  opacity: 0.9;
  font-weight: 300;
}

/* About Section */
.section {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(81, 174, 187, 0.5);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(81, 174, 187, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Book Section */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.3s ease;
}

.book-card:hover {
  box-shadow: 0 10px 30px rgba(81, 174, 187, 0.1);
}

.book-cover {
  width: 40%;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-content {
  padding: 2rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-meta-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.book-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-year {
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0 0.5rem;
  border-radius: 4px;
}

.book-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
  transition: color 0.3s ease;
}

.book-card:hover .book-title {
  color: var(--primary);
}

.book-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.book-meta-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.book-author { color: white; font-weight: 500; }
.book-isbn { color: var(--text-muted); font-family: monospace; font-size: 0.8rem; }

/* Author Section */
.author-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.author-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.author-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.author-image img {
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.author-image:hover img {
  filter: grayscale(0%);
}

.author-content h2 {
  font-size: 3rem;
  margin: 1.5rem 0;
  color: white;
}

.author-label {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-label::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--secondary);
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.1rem;
}

.highlight {
  color: var(--primary);
  font-weight: 500;
}

.btn-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--secondary);
  color: white;
  padding: 0 0 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Contact Section */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(21, 27, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; }
  .book-cover { width: 100%; height: 300px; }
  .book-content { width: 100%; }
  .author-grid { grid-template-columns: 1fr; }
  .author-image { order: -1; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; } /* Simplified mobile handling */
  .mobile-menu-btn { display: block; }
}
