/* ===================================
   Elderly Care Page - VIP Elite Design
==================================== */

/* CSS Variables */
:root {
  --primary: #1a5276;
  --secondary: #154360;
  --accent: #d4af37;
  --bg-light: #f4f4f9;
  --text-dark: #2c3e50;
  --glass: rgba(255, 255, 255, 0.2);
}

/* Global Styles */
body {
  font-family: 'Lora', serif;
  background: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-weight: 600;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  height: 75vh;
  background: url('/images/founder1.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  animation: hueShift 12s linear infinite;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 1.2s ease forwards;
}

.hero-title {
  font-size: 4.5rem;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.3s;
}

.hero-tagline {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 300;
  color: #ddd;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.6s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 16px 50px;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.9s;
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: scale(1.03);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- ANIMATION: HUE SHIFT ---------- */
@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(60deg); }
  100% { filter: hue-rotate(0deg); }
}

/* ---------- RESPONSIVE STYLING ---------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 14px 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }
}

/* ---------- INTRO SECTION ---------- */
.intro-section {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.intro-content h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.intro-content p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  background: #ffffff;
  padding: 100px 20px;
}

.services-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left Side Image Gallery */
.service-gallery {
  flex: 0.4;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Right Side Services Content */
.services-content {
  flex: 0.6;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-item {
  background: #fafafa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.service-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.service-item h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 60px 20px;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  background-color: var(--accent);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover, .btn-secondary:hover {
  background-color: #b7950b;
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE STYLING ---------- */
@media (max-width: 992px) {
  .services-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .service-gallery {
    flex-direction: row;
    gap: 10px;
  }

  .service-gallery img {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .intro-content h2 {
    font-size: 2.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    flex-direction: column;
    gap: 12px;
  }

  .service-gallery img {
    width: 100%;
  }

  .cta-section h2 {
    font-size: 2.2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: 14px 30px;
  }

  .intro-content h2 {
    font-size: 2rem;
  }
}
