/* ==========================================================================
   Furever Vow - Global Design System (Classic Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Dark Mode Default (Blog, Shop, Contact) */
  --clr-forest-light: #2c4230;
  --clr-forest: #1a261c;
  --clr-forest-dark: #000000;
  
  --clr-accent: #00FF66; /* Techy Neon Green */
  --clr-accent-hover: #00cc52;
  --clr-aipan-red: #E63946; /* Pahadi Red */
  
  --clr-bg: #050505;
  --clr-bg-alt: #111111;
  --clr-border: #333333;
  
  --clr-text-main: #ffffff;
  --clr-text-light: #a0a0a0;
  --clr-white: #ffffff;
  
  /* Typography - Modern sans-serifs */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Space Grotesk', sans-serif; /* using sans-serif for headings now */
  
  /* Shadows - Brutalist / Neobrutalism */
  --shadow-sm: 4px 4px 0px rgba(0, 255, 102, 0.3);
  --shadow-md: 6px 6px 0px rgba(0, 255, 102, 0.5);
  --shadow-lg: 8px 8px 0px rgba(0, 255, 102, 0.7);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy */
  --transition-slow: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Light Theme Overrides (Home, Cause)
   ========================================================================== */
body.light-theme {
  --clr-bg: #F4F4F5; /* Crisp modern light gray */
  --clr-bg-alt: #FFFFFF;
  --clr-border: #000000; /* Harsh brutalist borders */
  
  --clr-text-main: #000000;
  --clr-text-light: #555555;
  
  /* Buttons */
  --clr-accent: #000000; /* Black buttons in light theme */
  --clr-accent-hover: var(--clr-aipan-red); /* Pop of red */

  --shadow-sm: 4px 4px 0px #000000;
  --shadow-md: 6px 6px 0px #000000;
  --shadow-lg: 8px 8px 0px #000000;
}

body.light-theme .mission-card,
body.light-theme .donation-form,
body.light-theme .contact-form,
body.light-theme .post-card {
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
}

body.light-theme .navbar.scrolled {
  background: rgba(244, 244, 245, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--clr-border);
}

body.light-theme .navbar.scrolled .logo,
body.light-theme .navbar.scrolled .nav-links a,
body.light-theme .navbar.scrolled .cart-icon {
  color: var(--clr-text-main) !important;
}

body.light-theme .footer {
  background-color: var(--clr-forest-dark);
  color: #fff;
}

body.light-theme .footer-col h3 {
  color: #fff;
}

body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4, 
body.light-theme h5, 
body.light-theme h6 {
  color: var(--clr-text-main);
  text-transform: uppercase;
  letter-spacing: -1px;
}

body.light-theme .hero h1,
body.light-theme .hero p,
body.light-theme .cause-hero h1,
body.light-theme .cause-hero p,
body.light-theme .shop-header h1,
body.light-theme .shop-header p,
body.light-theme .banner-content h2,
body.light-theme .banner-content p {
  color: #fff;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  line-height: 1.8; /* Increased for serif readability */
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--clr-white);
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid var(--clr-border);
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 480px) {
  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
  }
}

.btn-primary {
  background-color: var(--clr-accent);
  color: var(--clr-bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--clr-accent-hover);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-text-main);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--clr-accent);
  color: var(--clr-bg);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-md);
}

/* Dark section button overrides (Hero, Banner, etc.) */
.hero .btn-outline,
.cause-hero .btn-outline,
.banner-content .btn-outline,
.shop-header .btn-outline,
.contact-hero .btn-outline {
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.hero .btn-outline:hover,
.cause-hero .btn-outline:hover,
.banner-content .btn-outline:hover,
.shop-header .btn-outline:hover,
.contact-hero .btn-outline:hover {
  background-color: var(--clr-white);
  color: #000;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  position: fixed;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  border-bottom: 2px solid var(--clr-border);
}

.navbar.scrolled .logo, 
.navbar.scrolled .nav-links a {
  color: var(--clr-white);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--clr-accent);
  transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  color: var(--clr-accent);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  color: white;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: var(--clr-accent);
  color: var(--clr-bg);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Home Page Sections
   ========================================================================== */
/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(18, 20, 19, 0.4), rgba(18, 20, 19, 0.8)), url('../assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--clr-white);
  padding: 0 1rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  color: var(--clr-white);
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Mission Section */
.mission {
  background-color: var(--clr-bg);
  position: relative;
}

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

.mission-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.mission-icon {
  font-size: 2.5rem;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
}

.mission-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.mission-card p {
  color: var(--clr-text-light);
  font-size: 0.95rem;
}

/* Dual Banner Section (Shop & Cause) */
.dual-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.banner-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.banner-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 1;
}

.banner-shop::before {
  background-image: url('../assets/village_goods.png');
}

.banner-cause::before {
  background-image: url('../assets/rescued_dog.png');
}

.banner-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 20, 19, 0.6);
  z-index: 2;
  transition: background 0.4s ease;
}

.banner-item:hover::before {
  transform: scale(1.05);
}

.banner-item:hover::after {
  background: rgba(18, 20, 19, 0.4);
}

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--clr-white);
  max-width: 400px;
}

.banner-content h2 {
  color: var(--clr-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Featured Products Preview */
.featured {
  background-color: var(--clr-bg-alt);
}

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

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

.section-header p {
  color: var(--clr-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--clr-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

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

/* ==========================================================================
   Mobile Navigation & Media Queries
   ========================================================================== */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--clr-white);
  cursor: pointer;
  z-index: 1000;
}

body.light-theme .navbar.scrolled .menu-toggle {
  color: var(--clr-text-main);
}

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

  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--clr-forest-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--clr-white) !important;
    font-size: 1.2rem;
    margin: 1rem 0;
  }

  body.light-theme .nav-links {
    background: var(--clr-bg);
  }
  body.light-theme .nav-links a {
    color: var(--clr-text-main) !important;
  }
  
  .dual-banner {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .banner-item {
    padding: 3rem 1rem;
  }
}

/* ==========================================================================
   Gen Z Marquee
   ========================================================================== */
.marquee-container {
  background: var(--clr-accent);
  color: var(--clr-bg);
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
  border-top: 2px solid var(--clr-border);
  border-bottom: 2px solid var(--clr-border);
  white-space: nowrap;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-text {
  display: inline-block;
  padding-right: 50px;
}

/* ==========================================================================
   Scroll Animations (Narrative Flow)
   ========================================================================== */
.fade-up, .fade-in, .slide-in-right, .slide-in-left {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: opacity, transform;
}

.fade-up {
  transform: translateY(40px);
}

.fade-in {
  transform: translateY(0);
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-right {
  transform: translateX(50px);
}

/* When the intersection observer adds the animate-in class */
.fade-up.animate-in, 
.fade-in.animate-in, 
.slide-in-right.animate-in, 
.slide-in-left.animate-in {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delays for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   Story Narrative Specific Styles
   ========================================================================== */
.story-chapter {
  position: relative;
  border-top: 1px solid var(--clr-border);
  background-color: var(--clr-bg);
  overflow: hidden;
}

.story-chapter:nth-child(even) {
  background-color: var(--clr-bg-alt);
}

.chapter-number {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  color: var(--clr-border);
  position: absolute;
  top: -2rem;
  left: -1rem;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.chapter-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .chapter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.skill-tag {
  display: inline-block;
  background: #222;
  color: var(--clr-accent);
  border: 1px solid #333;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin: 0.3rem;
  font-family: var(--font-serif);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--clr-accent);
  color: #000;
  transform: translateY(-2px);
}

body.light-theme .skill-tag {
  background: var(--clr-bg);
  border-color: var(--clr-border);
  color: var(--clr-text-main);
}
body.light-theme .skill-tag:hover {
  background: var(--clr-text-main);
  color: var(--clr-white);
}

.timeline {
  border-left: 2px dashed var(--clr-accent);
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--clr-bg);
  border: 3px solid var(--clr-accent);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--clr-accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
