/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Deepanshu's Diary — Home Page
   Warm cream, cinematic, serif
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #FFEDD4;
  color: #2D1810;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ━━ Noise Texture Utilities ━━ */

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.themes-noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero {
  height: 100vh;
  padding: 1rem;
}

@media (min-width: 768px) {
  .hero { padding: 1.5rem; }
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-inner { border-radius: 2rem; }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(255, 237, 212, 0.25) 0%,
    transparent 40%,
    rgba(255, 237, 212, 0.55) 100%
  );
  pointer-events: none;
}

/* ━━ Navbar ━━ */

.hero-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.nav-pill {
  background: #FFEDD4;
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 0.55rem 1.2rem;
  display: flex;
  gap: 1rem;
}

@media (min-width: 640px) { .nav-pill { gap: 1.8rem; padding: 0.6rem 1.8rem; } }
@media (min-width: 768px) { .nav-pill { gap: 2.5rem; padding: 0.65rem 2.5rem; border-radius: 0 0 1.5rem 1.5rem; } }
@media (min-width: 1024px) { .nav-pill { gap: 3.5rem; } }

.nav-pill a {
  font-size: 0.65rem;
  color: rgba(45, 24, 16, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  font-weight: 400;
}

@media (min-width: 640px) { .nav-pill a { font-size: 0.75rem; } }
@media (min-width: 768px) { .nav-pill a { font-size: 0.85rem; } }

.nav-pill a:hover {
  color: #2D1810;
}

/* ━━ Hero Content ━━ */

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.5rem;
}

@media (min-width: 768px) { .hero-content { padding: 2rem; } }
@media (min-width: 1024px) { .hero-content { padding: 2.5rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

/* ━━ Giant Title ━━ */

.hero-title {
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: #FFEDD4;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3em;
  font-size: 17vw;
}

@media (min-width: 400px) { .hero-title { font-size: 19vw; } }
@media (min-width: 640px) { .hero-title { font-size: 20vw; } }
@media (min-width: 768px) { .hero-title { font-size: 18vw; } }
@media (min-width: 1024px) { .hero-title { font-size: 16vw; } }
@media (min-width: 1280px) { .hero-title { font-size: 15vw; } }
@media (min-width: 1536px) { .hero-title { font-size: 14vw; } }

.hero-title .word {
  display: inline-block;
  overflow: hidden;
}

.hero-title .word-last-char {
  position: relative;
}

.asterisk {
  position: absolute;
  top: 0.05em;
  right: -0.35em;
  font-size: 0.3em;
  font-weight: 300;
  opacity: 0.6;
}

/* ━━ Hero Right Column ━━ */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.hero-desc {
  color: #FFEDD4;
  font-size: 0.75rem;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) { .hero-desc { font-size: 0.85rem; } }
@media (min-width: 768px) { .hero-desc { font-size: 0.95rem; } }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFEDD4;
  color: #2D1810;
  text-decoration: none;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.3rem;
  font-weight: 500;
  font-size: 0.85rem;
  width: fit-content;
  transition: gap 0.3s;
}

@media (min-width: 640px) { .hero-cta { font-size: 0.95rem; } }

.hero-cta:hover {
  gap: 0.8rem;
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: #2D1810;
  border-radius: 50%;
  color: #FFEDD4;
  transition: transform 0.3s;
}

@media (min-width: 640px) {
  .cta-arrow { width: 2.5rem; height: 2.5rem; }
}

.hero-cta:hover .cta-arrow {
  transform: scale(1.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ABOUT SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.about {
  background: #FFEDD4;
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) { .about { padding: 7rem 2rem; } }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-card {
  background: #FFF5E6;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(45, 24, 16, 0.06);
}

@media (min-width: 768px) {
  .about-card { padding: 4rem 3rem; border-radius: 2rem; }
}

.about-label {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8B6F5E;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) { .about-label { font-size: 0.72rem; } }

.about-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25em;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 0.95;
  color: #2D1810;
}

@media (min-width: 640px) { .about-heading { font-size: 2.4rem; } }
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 3.6rem; } }
@media (min-width: 1280px) { .about-heading { font-size: 4.2rem; } }

.about-heading .word {
  display: inline-block;
  overflow: hidden;
}

.italic-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.about-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.about-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #5C3D2E;
  text-align: center;
}

@media (min-width: 640px) { .about-text { font-size: 0.9rem; } }
@media (min-width: 768px) { .about-text { font-size: 1rem; } }

/* Character reveal animation */
.about-text .char {
  opacity: 0.15;
  transition: opacity 0.15s ease;
}

.about-text .char.revealed {
  opacity: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   THEMES / FEATURES SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.themes {
  position: relative;
  min-height: 100vh;
  background: #FFF5E6;
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) { .themes { padding: 6rem 2rem; } }

.themes-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.themes-header {
  margin-bottom: 3rem;
}

@media (min-width: 768px) { .themes-header { margin-bottom: 4rem; } }

.themes-header h2 {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  color: #2D1810;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3em;
}

@media (min-width: 640px) { .themes-header h2 { font-size: 1.6rem; } }
@media (min-width: 768px) { .themes-header h2 { font-size: 2rem; } }
@media (min-width: 1024px) { .themes-header h2 { font-size: 2.4rem; } }

.themes-header .word {
  display: inline-block;
  overflow: hidden;
}

.muted-word {
  color: #B8A08A;
}

.themes-header br {
  width: 100%;
  display: block;
  content: '';
}

/* ━━ Card Grid ━━ */

.themes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

@media (min-width: 1024px) {
  .themes-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    min-height: 480px;
  }
}

/* ━━ Theme Cards ━━ */

.theme-card {
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-card.visible {
  opacity: 1;
  transform: scale(1);
}

/* Video card */
.theme-card-video {
  position: relative;
  min-height: 280px;
}

@media (min-width: 1024px) { .theme-card-video { min-height: auto; } }

.theme-card-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 24, 16, 0.6), transparent);
  z-index: 1;
}

.card-video-text {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  color: #FFEDD4;
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 640px) { .card-video-text { font-size: 1.1rem; } }

/* Feature cards */
.theme-card-feature {
  background: #FFEDD4;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(45, 24, 16, 0.08);
}

@media (min-width: 640px) { .theme-card-feature { padding: 1.5rem; } }

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .card-icon { width: 3rem; height: 3rem; }
}

.card-header {
  margin-bottom: 0.8rem;
}

.card-number {
  font-size: 0.65rem;
  color: #B8A08A;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2D1810;
  margin-top: 0.15rem;
}

@media (min-width: 640px) { .card-title { font-size: 1.1rem; } }

.card-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #6B4F3A;
  line-height: 1.4;
}

@media (min-width: 640px) { .card-list li { font-size: 0.82rem; } }

.bullet {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8B6F5E;
  margin-top: 0.45rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #5C3D2E;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.card-link:hover {
  color: #2D1810;
  gap: 0.6rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.home-footer {
  background: #FFEDD4;
  border-top: 1px solid rgba(45, 24, 16, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner p {
  font-size: 0.78rem;
  color: #8B6F5E;
}

.footer-inner a {
  color: #5C3D2E;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #2D1810;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Words pull-up */
[data-animate="words-up"] .word {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="words-up"].animated .word {
  transform: translateY(0);
  opacity: 1;
}

/* Fade up */
[data-animate="fade-up"] {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"].animated {
  transform: translateY(0);
  opacity: 1;
}
