/* CSS Variables - Design System */
:root {
  /* Colors */
  --primary: 45 82% 67%;
  --primary-light: 45 85% 75%;
  --primary-glow: 45 90% 85%;
  --secondary: 220 14% 96%;
  --background: 0 0% 100%;
  --foreground: 222 84% 5%;
  --card: 0 0% 100%;
  --border: 220 13% 91%;
  --muted: 220 14% 96%;
  --accent: 220 14% 96%;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  --gradient-card: linear-gradient(145deg, #ffffff, #f0f0f0);
  --gradient-cta: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  --gradient-warm: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px 0 hsla(210, 65%, 60%, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-neomorph-light: 8px 8px 16px #d1d1d1;
  --shadow-neomorph-dark: -8px -8px 16px #ffffff;
  
  /* Typography */
  --font-poppins: 'Poppins', sans-serif;
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-poppins);
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('src/assets/hero-dog-rescue.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-highlight {
  display: block;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-emoji {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  height: 3.5rem;
  padding: 0 3rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  font-family: var(--font-poppins);
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-hero {
  background: var(--gradient-cta);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: bounceGentle 2s ease-in-out infinite;
}

.btn-hero:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.btn-glass {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.btn-login {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid white;
  color: white;
}

.btn-login:hover {
  background: white;
  color: hsl(var(--primary));
}

.full-width {
  width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 0.25rem;
  height: 0.75rem;
  background: rgba(255,255,255,0.7);
  border-radius: 9999px;
  margin-top: 0.5rem;
  animation: bounce 1s infinite;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.close:hover,
.close:focus {
  color: black;
}

.login-form h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: hsl(var(--foreground));
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

.login-footer {
  text-align: center;
  margin-top: 1rem;
  color: hsl(var(--foreground));
}

.login-footer a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--foreground) / 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* User Section */
.user-section {
  background: hsl(var(--muted));
}

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

.feature-card {
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-neomorph-light), var(--shadow-neomorph-dark);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.feature-card p {
  color: hsl(var(--foreground) / 0.7);
  line-height: 1.6;
}

/* NGO Section */
.ngo-section {
  background: white;
}

.ngo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.ngo-benefits {
  list-style: none;
  margin: 2rem 0;
}

.ngo-benefits li {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.8);
}

.ngo-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

/* Testimonials */
.testimonials-section {
  background: hsl(var(--muted));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.author-info h4 {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.author-info span {
  color: hsl(var(--foreground) / 0.6);
  font-size: 0.875rem;
}

/* Statistics */
.stats-section {
  background: hsl(var(--primary));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Gallery */
.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

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

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
}

.gallery-overlay h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: hsl(var(--foreground));
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p,
.footer-text {
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.875rem;
}

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

.social-link {
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  transform: scale(1.2);
}

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

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

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .ngo-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}