/* Layout CSS - Common Styles for Express Hospital */

* { 
  scroll-behavior: smooth; 
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 700;
  color: #0d6efd !important;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  margin: 0 8px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #0d6efd;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-appointment {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: white !important;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 15px;
  background: linear-gradient(rgba(0, 0, 0, 0.644), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.3s;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 1.5s forwards 0.8s;
}

.btn-main {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  margin-top: 20px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  border: none;
  transition: all 0.4s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  opacity: 0;
  animation: fadeIn 1s forwards 1.2s;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
}

/* Floating elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
  }
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, transparent);
  bottom: -8px;
  left: 0;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

/* Features */
.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateY(50px);
  opacity: 0;
}

.feature-card.show {
  transform: translateY(0);
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

.feature-title {
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.feature-text {
  color: #666;
  font-size: 0.95rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: white;
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
  height: 50px;
  border-radius: 8px;
  border: 1px solid #eee;
  padding-left: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
  height: auto;
  padding-top: 15px;
}

.contact-info {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border-radius: 15px;
  padding: 40px;
  color: white;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h5 {
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-text p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 80px 0 30px;
}

.footer-logo {
  font-weight: 700;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about {
  margin-bottom: 20px;
}

.footer-links h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #0d6efd;
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 50px;
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* Responsive */
@media(max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  section {
    padding: 70px 0;
  }
}

@media(max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media(max-width: 576px) {
  .hero {
    height: 90vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-main {
    padding: 10px 25px;
    font-size: 1rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .feature-card {
    margin-bottom: 30px;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rounded-lg {
  border-radius: 15px;
}

/* Page specific spacing */
#main-content {
  margin-top: 80px; /* Account for fixed navbar */
}

/* About Page Specific Styles */

/* Mission Vision Values */
.mv-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateY(50px);
  opacity: 0;
}

.mv-card.show {
  transform: translateY(0);
  opacity: 1;
}

.mv-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.mv-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.mv-card:hover .mv-icon {
  transform: scale(1.2);
}

.mv-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.4rem;
}

.mv-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Team Section */
.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  margin-bottom: 30px;
  transform: translateY(50px);
  opacity: 0;
}

.team-card.show {
  transform: translateY(0);
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.team-img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 30px;
  text-align: center;
}

.team-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 1.3rem;
}

.team-position {
  color: #0d6efd;
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1rem;
}

.team-bio {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.team-social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.team-social-links a {
  color: #666;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.team-social-links a:hover {
  color: #0d6efd;
  background: #e3f2fd;
  transform: translateY(-3px);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0d6efd, #0b5ed7);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
}

.timeline-content.show {
  transform: translateY(0);
  opacity: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: white;
}

.timeline-year {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.timeline-text {
  color: #666;
  line-height: 1.6;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #0d6efd;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px #e3f2fd;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

/* Responsive Timeline */
@media(max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px;
    padding-right: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
    right: auto;
    border-left-color: transparent;
    border-right-color: white;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot {
    left: 10px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
  }
}
