/* ================================================
   HOME PAGE STYLES - BABYCARE TRACKER
   Beautiful, mobile-first design for baby health app
   ================================================ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px; /* Account for fixed navbar */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 107, 157, 0.1) 0%, 
    rgba(78, 205, 196, 0.1) 50%, 
    rgba(149, 225, 211, 0.1) 100%);
  z-index: -1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(149, 225, 211, 0.1) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  padding: var(--space-2xl) 0;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-baby-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-vaccination .card-icon {
  background: rgba(255, 107, 157, 0.1);
}

.card-feeding .card-icon {
  background: rgba(78, 205, 196, 0.1);
}

.card-milestone .card-icon {
  background: rgba(149, 225, 211, 0.1);
}

.card-title {
  font-weight: 600;
  color: var(--gray-800);
  display: block;
  margin-bottom: 2px;
}

.card-detail {
  font-size: 0.875rem;
  color: var(--gray-500);
  display: block;
}

.card-vaccination {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}

.card-feeding {
  bottom: 30%;
  left: -15%;
  animation-delay: 1s;
}

.card-milestone {
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

/* Features Section */
.features {
  padding: var(--space-3xl) 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
}

.feature-card {
  cursor: pointer;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.feature-icon {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  position: relative;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
}

.feature-description {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.highlight {
  background: linear-gradient(135deg, var(--accent-mint), rgba(149, 225, 211, 0.3));
  color: var(--gray-700);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Benefits Section */
.benefits {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(255, 107, 157, 0.02) 100%);
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.benefits-text .section-title {
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.benefit-content h3 {
  color: var(--gray-800);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.benefit-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.benefits-image {
  position: relative;
}

.benefits-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* CTA Section */
.cta {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-teal) 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: white;
  color: var(--accent-pink);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.cta .btn-primary:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: white;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: var(--space-md);
}

.footer-section p {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
  color: var(--gray-400);
  margin: 0;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-baby-img {
    max-width: 350px;
    margin: 0 auto;
  }

  .floating-card {
    position: relative;
    margin-bottom: var(--space-md);
    animation: none;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
  }

  .card-vaccination {
    top: auto;
    right: auto;
    animation-delay: 0.2s;
  }

  .card-feeding {
    bottom: auto;
    left: auto;
    animation-delay: 0.4s;
  }

  .card-milestone {
    top: auto;
    right: auto;
    animation-delay: 0.6s;
  }

  .benefits-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .benefits-text .section-title {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-cards {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }

  .floating-card {
    position: relative;
    max-width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .feature-icon {
    height: 150px;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes for Home Page */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--accent-pink), var(--accent-teal)) border-box;
}

/* Scroll Reveal Effect */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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