/* Pedika Medical - Main Stylesheet */

:root {
  /* Color palette - blue and white theme */
  --primary-blue: #1a73e8;
  --secondary-blue: #4285f4;
  --light-blue: #e8f0fe;
  --dark-blue: #0d47a1;
  --primary-white: #ffffff;
  --secondary-white: #f8f9fa;
  --gray-text: #5f6368;
  --dark-text: #202124;
  
  /* Font sizes for better accessibility */
  --font-size-base: 18px;
  --font-size-large: 20px;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.5rem;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: var(--font-size-base);
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--primary-white);
}

/* General Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--primary-white);
  font-size: var(--font-size-base);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-size: var(--font-size-base);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-blue);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
  background-color: var(--primary-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
}

.navbar-brand img {
  height: 50px;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.navbar-nav .nav-link {
  color: var(--dark-text);
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus, .navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.language-selector {
  margin-left: 1rem;
}

.language-selector .nav-link {
  padding: 0.3rem 0.7rem;
  margin: 0;
  border-radius: 4px;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
}

.language-selector .nav-link:hover {
  background-color: var(--primary-blue);
  color: var(--primary-white);
}

/* Hero Section */
.hero-section {
  background-image: url('/static/caregiver-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1976d2;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--dark-blue);
}

.hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

/* Welcome Section */
.welcome-section {
  padding: 5rem 0;
  background-color: var(--primary-white);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: var(--secondary-white);
}

.service-card {
  background-color: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--light-blue);
}

.testimonial-card {
  background-color: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--light-blue);
  position: absolute;
  left: -0.5rem;
  top: -2rem;
  font-family: serif;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-blue);
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.mission-vision-section {
  background-color: var(--secondary-white);
  padding: 5rem 0;
}

.mission-card, .vision-card {
  background-color: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  height: 100%;
}


/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--secondary-white);
}

.contact-form {
  background-color: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.contact-info {
  background-color: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  height: 100%;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-right: 1rem;
}


/* Footer */
.footer {
  background-color: var(--dark-blue);
  color: var(--primary-white);
  padding: 4rem 0 2rem;
}

.footer-title {
  color: var(--primary-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.footer-links a:hover {
  color: var(--primary-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-bottom-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Animations and Effects */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.btn-primary:hover {
  animation: pulse 1.5s infinite;
}

/* Slide animations */
.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.9s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.9s ease;
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
}

.slide-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.9s ease;
}

.slide-left.in-view, 
.slide-right.in-view, 
.slide-up.in-view, 
.slide-down.in-view {
  opacity: 1;
  transform: translate(0);
}

/* Enhanced hover effects for service cards */
.service-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
}

.service-card:hover .service-icon {
  transform: scale(1.2);
  color: var(--dark-blue);
}

.service-icon {
  transition: transform 0.4s ease, color 0.4s ease;
}

/* Image hover effects */
.img-fluid {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-fluid:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Ribbon corner */
.service-card {
  position: relative;
  overflow: hidden;
}

/* Icon circle for contact */
.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

.ribbon-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.ribbon-corner span {
  position: absolute;
  top: 20px;
  right: -25px;
  transform: rotate(45deg);
  width: 120px;
  background-color: var(--primary-blue);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  :root {
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.85rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-section, .welcome-section, .services-section, 
  .testimonials-section, .about-section, .mission-vision-section, 
  .contact-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  :root {
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
  }
  
  .hero-section, .welcome-section, .services-section, 
  .testimonials-section, .about-section, .mission-vision-section, 
  .contact-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-outline-primary {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}
