@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Pinyon+Script&display=swap');

:root {
  /* Color Palette */
  --deep-navy: #071A33;
  --ocean-blue: #1F6F9F;
  --sunset-coral: #F47C6B;
  --malibu-peach: #FFB06A;
  --soft-pink: #F7A7BC;
  --cream-sand: #FFF2DC;
  --soft-white: #FFF9F4;
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --font-script: 'Pinyon Script', cursive;

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--deep-navy);
  color: var(--soft-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--deep-navy);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--ocean-blue), var(--sunset-coral));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--malibu-peach);
}

/* --------------------------------------------------
   Animations
   -------------------------------------------------- */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* --------------------------------------------------
   Layout Utilities
   -------------------------------------------------- */
.section {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

/* Scroll Reveal Effect */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Delay modifiers for stagger reveal */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --------------------------------------------------
   Background Shimmer & Sparkle Overlay
   -------------------------------------------------- */
.sunset-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(7, 26, 51, 0.95) 0%, 
    rgba(31, 111, 159, 0.85) 40%, 
    rgba(244, 124, 107, 0.8) 70%, 
    rgba(255, 176, 106, 0.85) 90%,
    rgba(247, 167, 188, 0.9) 100%
  );
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  z-index: 1;
}

.canvas-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

/* --------------------------------------------------
   Header & Navigation
   -------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(7, 26, 51, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 176, 106, 0.15);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--soft-white);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 36px;
  width: auto;
  filter: invert(99%) sepia(1%) saturate(2206%) hue-rotate(320deg) brightness(105%) contrast(100%);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--soft-white);
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--malibu-peach);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--sunset-coral);
  transition: var(--transition-smooth);
}

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

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--soft-white);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: left center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(0px, 0px);
  background-color: var(--malibu-peach);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0px, 1px);
  background-color: var(--malibu-peach);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--deep-navy) 0%, rgba(31, 111, 159, 0.98) 50%, rgba(244, 124, 107, 0.98) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.mobile-nav img {
  width: 80px;
  height: auto;
  opacity: 0.15;
  position: absolute;
  bottom: 40px;
  filter: invert(100%);
}

.close-mobile-nav {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  background: transparent;
  color: var(--soft-white);
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  transition: var(--transition-fast);
}

.close-mobile-nav:hover {
  color: var(--malibu-peach);
  transform: rotate(90deg);
}

/* --------------------------------------------------
   Hero Section
   -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--malibu-peach);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 4.8rem;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--soft-white);
  text-shadow: 0 4px 20px rgba(7, 26, 51, 0.3);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--cream-sand);
  margin-bottom: 40px;
  max-width: 580px;
  font-weight: 300;
  letter-spacing: 0.03em;
  border-left: 2px solid var(--sunset-coral);
  padding-left: 20px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  width: 100%;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 176, 106, 0.25) 0%, rgba(244, 124, 107, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite;
}

.book-cover-wrapper {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(7, 26, 51, 0.7);
  transition: var(--transition-smooth);
  width: 310px;
}

.book-cover-wrapper:hover {
  box-shadow: 0 35px 60px -10px rgba(244, 124, 107, 0.4);
}

.book-cover {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Custom Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-coral) 0%, var(--malibu-peach) 100%);
  color: var(--deep-navy);
  box-shadow: 0 10px 25px -5px rgba(244, 124, 107, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(244, 124, 107, 0.6);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn-primary:hover::after {
  left: 125%;
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--soft-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--malibu-peach);
  color: var(--malibu-peach);
  transform: translateY(-3px);
}

/* --------------------------------------------------
   Blurb Section
   -------------------------------------------------- */
.blurb-section {
  background-color: var(--soft-white);
  color: var(--deep-navy);
  position: relative;
}

.blurb-decor {
  position: absolute;
  width: 140px;
  opacity: 0.08;
  pointer-events: none;
}

.blurb-decor-1 {
  top: 40px;
  left: 40px;
  transform: rotate(-15deg);
}

.blurb-decor-2 {
  bottom: 40px;
  right: 40px;
  transform: scaleX(-1) rotate(-35deg);
}

.blurb-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.blurb-title-container {
  border-right: 1px solid rgba(7, 26, 51, 0.15);
  padding-right: 40px;
}

.blurb-title-script {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--sunset-coral);
  line-height: 0.8;
  margin-bottom: 8px;
}

.blurb-title {
  font-size: 3.2rem;
  color: var(--deep-navy);
  line-height: 1.1;
}

.blurb-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blurb-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.5;
  color: #172E4C;
  font-weight: 300;
  margin-bottom: 32px;
}

.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tag {
  background: var(--cream-sand);
  color: var(--deep-navy);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(244, 124, 107, 0.15);
  transition: var(--transition-fast);
}

.tag:hover {
  background: var(--sunset-coral);
  color: var(--soft-white);
  transform: translateY(-2px);
}

.coming-soon-btn {
  background: var(--deep-navy);
  color: var(--cream-sand);
  padding: 16px 44px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(7, 26, 51, 0.25);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* --------------------------------------------------
   Meet The Author Section
   -------------------------------------------------- */
.author-section {
  background-color: var(--soft-white);
  color: var(--deep-navy);
}

.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.author-image-wrapper {
  position: relative;
  justify-self: center;
}

.author-image-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 1.5px solid var(--sunset-coral);
  border-radius: 20px;
  z-index: 1;
  transition: var(--transition-smooth);
}

.author-image-wrapper:hover::before {
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
}

.author-image-container {
  width: 300px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(7, 26, 51, 0.15);
  border: 4px solid var(--soft-white);
}

.author-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.author-image-wrapper:hover .author-image {
  transform: scale(1.05);
}

.author-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-subtitle-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--sunset-coral);
  line-height: 0.8;
  margin-bottom: 8px;
}

.author-title {
  font-size: 3.5rem;
  color: var(--deep-navy);
  margin-bottom: 24px;
}

.author-bio {
  font-size: 1.1rem;
  color: #2b3e56;
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 620px;
  line-height: 1.7;
}

.author-history-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(7, 26, 51, 0.04);
  border: 1px solid rgba(7, 26, 51, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 36px;
  max-width: 620px;
}

.author-avatar-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sunset-coral);
  box-shadow: 0 4px 10px rgba(244, 124, 107, 0.15);
  flex-shrink: 0;
}

.author-history-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--deep-navy);
  margin-bottom: 4px;
}

.author-history-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5c72;
  margin: 0;
}

.author-buttons {
  display: flex;
  gap: 20px;
}

.author-buttons .btn-primary {
  box-shadow: 0 10px 25px -5px rgba(7, 26, 51, 0.15);
}

/* --------------------------------------------------
   Footer Section
   -------------------------------------------------- */
.footer {
  background-color: var(--deep-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 24px 40px;
  color: var(--soft-white);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  color: var(--soft-white);
}

.footer-sub {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--malibu-peach);
  font-style: italic;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-white);
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.social-icon svg.icon-filled {
  fill: currentColor;
}

.social-icon svg.icon-stroked {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon:hover {
  background: var(--sunset-coral);
  color: var(--deep-navy);
  border-color: var(--sunset-coral);
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

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

.footer-link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-link:hover {
  opacity: 1;
  color: var(--malibu-peach);
}

.footer-contact {
  font-size: 0.9rem;
  color: var(--cream-sand);
  opacity: 0.85;
}

.footer-contact:hover {
  color: var(--malibu-peach);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.8rem;
  color: var(--soft-white);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------- */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .blurb-grid, .author-grid {
    gap: 40px;
  }
  
  .author-image-container {
    width: 260px;
    height: 330px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 80px 24px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-top: 2px solid var(--sunset-coral);
    padding-left: 0;
    padding-top: 15px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .blurb-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .blurb-title-container {
    border-right: none;
    border-bottom: 1px solid rgba(7, 26, 51, 0.1);
    padding-right: 0;
    padding-bottom: 24px;
  }
  
  .blurb-content {
    align-items: center;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .author-image-wrapper {
    order: -1;
  }
  
  .author-content {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .blurb-title, .author-title {
    font-size: 2.6rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }
  
  .footer-nav {
    align-items: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero-buttons, .author-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
}
