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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: #fdfbf7;
  color: #4e5c68;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #387d80;
}

.eyebrow-gold {
  color: #e6b35a;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: #1c2530;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-gold {
  background: #e6b35a;
  color: #0f1a24;
}

.btn-gold-alt {
  background: #dda15e;
  color: #0f1a24;
}

.btn-teal {
  background: #2e5c6a;
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid #2e5c6a;
}

.btn-outline-dark {
  background: transparent;
  color: #1c2530;
  border: 1px solid #e8e2d5;
}

.btn-outline-teal {
  background: transparent;
  color: #387d80;
  border: 1px solid #387d80;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(36, 54, 69, 0.5);
  animation: slideDown 0.8s ease forwards;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
  position: fixed;
  background: rgba(15, 26, 36, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(36, 54, 69, 0.8);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}

.logo-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: #dda15e;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links a {
  color: #b0c4de;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #dda15e;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #dda15e;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f1a24;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  will-change: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 36, 0.72) 0%,
    rgba(22, 37, 53, 0.55) 45%,
    rgba(15, 26, 36, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 80px;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
  max-width: 733px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-text > * {
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.2s; }
.hero-text > *:nth-child(2) { animation-delay: 0.4s; }
.hero-text > *:nth-child(3) { animation-delay: 0.6s; }
.hero-text > *:nth-child(4) { animation-delay: 0.8s; }

.hero-eyebrow-line {
  width: 0;
  height: 2px;
  background: #e6b35a;
  margin-top: 8px;
  animation: lineGrow 0.8s ease 0.5s forwards;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  font-style: italic;
  color: #dce7f1;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #dce7f1;
  max-width: 620px;
}

.hero-author {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 395px);
  opacity: 0;
  animation: fadeInRight 1s ease 0.6s forwards;
}

.portrait-ring {
  width: 298px;
  height: 298px;
  flex-shrink: 0;
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.author-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.author-role {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  max-width: 340px;
}

/* Featured Book */
.featured-book {
  background: #fdfbf7;
  padding: 120px 0;
}

.featured-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}

.book-cover-wrap {
  flex-shrink: 0;
  width: 380px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.5s ease;
  display: block;
  text-decoration: none;
}

.book-cover-wrap:hover {
  transform: translateY(-8px);
}

.book-cover-wrap img {
  display: block;
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  margin: -3px 0 0 -3px;
  object-fit: contain;
}

.book-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.book-subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: #4e5c68;
}

.book-text {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  transition: transform 0.3s ease;
}

.bullet-list li:hover {
  transform: translateX(6px);
}

.bullet-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* About */
.about {
  background: #f7f3e9;
  padding: 120px 0;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}

.about-media {
  flex-shrink: 0;
  width: 515px;
  max-width: 100%;
}

.about-photo {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-content p {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
}

.about-content p.small {
  font-size: 16px;
}

.signature-block {
  padding-top: 12px;
}

.about-content .signature-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #1c2530;
  text-align: left;
}

.about-content .signature-location {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4e5c68;
  margin-top: 4px;
  text-align: left;
}

/* Themes */
.themes {
  background: #fdfbf7;
  padding: 120px 0;
}

.themes-header {
  text-align: center;
  margin-bottom: 48px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.theme-card {
  background: #f7f3e9;
  border: 1px solid #e8e2d5;
  border-radius: 16px;
  padding: 24px 21px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15, 26, 36, 0.1);
  border-color: #dda15e;
}

.theme-icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  border: 1px solid #dda15e;
  background: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, background 0.4s ease;
}

.theme-card:hover .theme-icon {
  transform: scale(1.1) rotate(5deg);
  background: #fff;
}

.theme-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #1c2530;
  line-height: 1.2;
}

.theme-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* Quote */
.quote-section {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 100px 24px;
  background: linear-gradient(to right, #162535, #0f1a24);
  overflow: hidden;
}

.quote-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 25s ease-in-out infinite alternate;
}

.quote-star {
  position: relative;
  z-index: 1;
  animation: starPulse 3s ease-in-out infinite;
}

.quote-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.quote-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}

.quote-author {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #dda15e;
}

/* Contact */
.contact {
  background: #f7f3e9;
  padding: 120px 0 80px;
}

.contact-grid {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.contact-info {
  flex: 1;
  max-width: 515px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.6;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.social-row span {
  font-size: 14px;
  font-weight: 600;
  color: #1c2530;
}

.social-badge {
  background: #fdfbf7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.social-badge:hover {
  transform: translateY(-3px);
  background: #387d80;
  color: #fff;
}

.contact-form {
  flex: 1;
  background: #fdfbf7;
  border: 1px solid #e8e2d5;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #4e5c68;
}

.form-input {
  background: #f7f3e9;
  border: 1px solid #e8e2d5;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  color: #4e5c68;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #387d80;
  box-shadow: 0 0 0 3px rgba(56, 125, 128, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: #4e5c68;
}

/* Footer */
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid #e8e2d5;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

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

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

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

@keyframes lineGrow {
  to {
    width: 60px;
  }
}

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

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 52px rgba(230, 179, 90, 0.15);
  }
  50% {
    box-shadow: 0 0 70px rgba(230, 179, 90, 0.35);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .featured-grid,
  .about-grid,
  .contact-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-media {
    width: 100%;
    max-width: 515px;
  }

  .book-cover-wrap {
    width: 100%;
    max-width: 380px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 26, 36, 0.97);
    border-bottom: 1px solid rgba(36, 54, 69, 0.5);
    padding: 12px 24px 20px;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .navbar-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .portrait-ring {
    width: 220px;
    height: 220px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
