/* CSS Custom Properties for Theming */
:root {
  --primary-color: #245116;
  /* Extracted Logo Color */
  --secondary-color: #3b7b20;
  --accent-color: #fca311;
  --text-dark: #2d3748;
  --text-light: #ffffff;
  --bg-color: #f8f9fa;
  --bg-light: #ffffff;
  --transition-speed: 0.3s;
  --font-family: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1.15rem;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: none;
  text-align: center;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(36, 81, 22, 0.3);
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 81, 22, 0.4);
}

.secondary-btn {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader-content {
  text-align: center;
  animation: pulse 2s infinite ease-in-out;
}

.loader-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

.loader-text {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
  animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: padding var(--transition-speed);
}

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

.nav-logo {
  max-height: 100px;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-number {
  font-weight: 600;
  color: var(--primary-color);
  display: none;
}

@media (min-width: 768px) {
  .phone-number {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: url('images/hero_bg.png') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(36, 81, 22, 0.9) 0%, rgba(36, 81, 22, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--text-light);
  max-width: 800px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out;
}

.hero-title span {
  display: block;
  font-weight: 400;
  font-size: 2rem;
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.6s both;
}

/* Services */
.services {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--accent-color);
  margin: 0 auto;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-color);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(36, 81, 22, 0.15);
  border-bottom-color: var(--primary-color);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 10px 25px rgba(36, 81, 22, 0.3);
}

.service-card:hover .service-img {
  transform: scale(1.1) rotate(5deg);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 50px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.contact-info>p {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-item p {
  opacity: 0.9;
}

.info-item a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1a3a10;
  color: rgba(255, 255, 255, 0.8);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-center {
  order: -1;
}

@media (min-width: 768px) {
  .footer-center {
    order: 0;
  }
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: var(--text-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .contact-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.contact-text p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .loader-text {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .nav-hospital-name {
    font-size: 1rem !important;
  }
}

#back-to-top:hover {
  background: #e59310;
  transform: translateY(-3px);
}

.footer a {
  color: var(--accent-color);
}

/* Responsive specific */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-title span {
    font-size: 1.5rem;
  }

  .contact-card {
    padding: 30px 20px;
  }
}