/* 
* Sneha Caretaker Services - Main Stylesheet
* Author: StackBlitz
* Version: 1.0
*/

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
:root {
  /* Primary Colors */
  --primary-color: #4A89DC;
  --primary-light: #5D9CEC;
  --primary-dark: #3A6CB0;
  
  /* Secondary Colors */
  --secondary-color: #48CFAD;
  --secondary-light: #5ADBC0;
  --secondary-dark: #37BD9C;
  
  /* Accent Colors */
  --accent-color: #FFCE54;
  --accent-light: #FFDC7A;
  --accent-dark: #F8B631;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --medium-gray: #AAB2BD;
  --dark-gray: #656D78;
  --black: #333333;
  
  /* Functional Colors */
  --success: #8CC152;
  --warning: #F6BB42;
  --error: #E9573F;
  --info: #5D9CEC;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--black);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-sm);
}

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

a:hover {
  color: var(--primary-light);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--heading-font);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--black);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--black);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
  position: relative;
}

.section-header p {
  color: var(--dark-gray);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.underline {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

.bg-light {
  background-color: var(--light-gray);
}

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: var(--space-sm) 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

#header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

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

.logo a {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--white);
  transition: color var(--transition-fast);
}

.logo span {
  color: var(--primary-color);
}

#header.scrolled .logo h1 {
  color: var(--black);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: var(--space-md);
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#header.scrolled .nav-link {
  color: var(--dark-gray);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all var(--transition-fast);
  background-color: var(--white);
}

#header.scrolled .bar {
  background-color: var(--black);
}

/*--------------------------------------------------------------
# Hero Slider
--------------------------------------------------------------*/
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slide-1 {
  background-image: url('https://images.pexels.com/photos/7551559/pexels-photo-7551559.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
}

.slide-2 {
  background-image: url('https://images.pexels.com/photos/7551593/pexels-photo-7551593.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
}

.slide-3 {
  background-image: url('https://images.pexels.com/photos/7551588/pexels-photo-7551588.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
}

.slide-content {
  max-width: 800px;
  text-align: center;
  color: var(--white);
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 2;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white);
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.about-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  padding: var(--space-sm);
}

.stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.stat-item h4 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.stat-item p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.service-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  position: absolute;
  top: 180px;
  left: var(--space-sm);
  transform: translateY(-50%);
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.service-content {
  padding: var(--space-md);
  padding-top: var(--space-lg);
}

.service-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.service-content p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.video-item {
  position: relative;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.video-overlay i {
  font-size: 3rem;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: 10% auto;
  padding: var(--space-md);
  width: 80%;
  max-width: 800px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--black);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.why-us-card {
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.why-us-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.why-us-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(74, 137, 220, 0.1);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-sm);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.why-us-card:hover .why-us-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.why-us-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.why-us-card p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question h3 {
  color: var(--primary-color);
}

.faq-question i {
  color: var(--primary-color);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 300px;
}

.faq-answer p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--space-sm);
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  margin-top: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: var(--space-sm);
  transition: background-color var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

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

.form-group textarea {
  height: 150px;
  resize: vertical;
}

#form-status {
  margin-top: var(--space-sm);
}

.form-status-success {
  color: var(--success);
  padding: 10px;
  background-color: rgba(140, 193, 82, 0.1);
  border-radius: var(--radius-sm);
}

.form-status-error {
  color: var(--error);
  padding: 10px;
  background-color: rgba(233, 87, 63, 0.1);
  border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: #2C3E50;
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-sm);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

.footer-logo h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.footer-logo span {
  color: var(--primary-light);
}

.footer-logo p {
  color: var(--medium-gray);
}

.footer-links,
.footer-services {
  flex: 1;
  min-width: 200px;
}

.footer-newsletter {
  flex: 1.5;
  min-width: 300px;
}

footer h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: 10px;
}

footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

footer ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-newsletter p {
  color: var(--medium-gray);
  margin-bottom: var(--space-sm);
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-family: var(--body-font);
  font-size: 0.9rem;
}

.footer-newsletter button {
  padding: 0 var(--space-sm);
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.footer-newsletter button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-sm);
}

.footer-legal a {
  color: var(--medium-gray);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary-light);
}

/*--------------------------------------------------------------
# Floating Buttons & Back to Top
--------------------------------------------------------------*/
.floating-buttons {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 99;
}

.whatsapp-btn,
.call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

.whatsapp-btn {
  background-color: #25D366;
  color: var(--white);
}

.call-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}