* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
  color: #333;
}

header {
  background: rgba(0, 119, 204, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

header h1 {
  color: #fff;
  font-size: 1.8rem;
}

header ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

header a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

header a:hover,
header a.active {
  color: #00e0ff;
}

.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1950&q=80")
      center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.hero .btn {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  padding: 16px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 25px rgba(0, 114, 255, 0.7);
  transition: 0.4s;
}

.hero .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 114, 255, 1);
}

.services {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0077cc, #00c6ff);
  color: white;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
}

.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 30px 20px;
  border-radius: 20px;
  width: 230px;
  color: white;
  text-align: center;
  transition: 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card i {
  margin-bottom: 15px;
  color: #00e0ff;
  transition: 0.3s;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 114, 255, 0.8);
}

.card:hover i {
  transform: scale(1.2);
  color: #fff;
}

.doctors-section {
  padding: 80px 20px;
  text-align: center;
  background: #f5f5f5;
}

.doctors-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.doctors-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.doctor-card {
  background: #fff;
  border-radius: 15px;
  width: 200px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.doctor-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #0072ff;
}

.doctor-card h3 {
  margin: 5px 0;
  font-size: 1.1rem;
}

.doctor-card p {
  font-size: 0.9rem;
  color: #555;
}

.doctor-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 114, 255, 0.6);
}

footer {
  background: #0b1f3a;
  color: #fff;
  padding: 50px 20px 20px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
}

.footer-col p,
.footer-col ul li {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #00c6ff;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #00c6ff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.form-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 20px;
  width: 400px;
  margin: 30px auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 114, 255, 0.3);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  outline: none;
  font-size: 0.95rem;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.7);
}

.form-card input:focus,
.form-card textarea:focus {
  border: 1px solid #00c6ff;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
}

.form-card button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
  transition: 0.4s;
}

.form-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 114, 255, 0.9);
}

.edit-btn,
.delete-btn {
  padding: 6px 12px;
  margin: 0 5px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.edit-btn {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: #fff;
}

.edit-btn:hover {
  background: linear-gradient(45deg, #0072ff, #00e0ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.5);
}

.delete-btn {
  background: #ff4b5c;
  color: #fff;
}

.delete-btn:hover {
  background: #e03e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 62, 80, 0.5);
}

.table-card {
  width: 90%;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: linear-gradient(45deg, #0077cc, #00c6ff);
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

tr:hover {
  background: rgba(0, 198, 255, 0.1);
  transition: 0.3s;
}

.patient-portal,
.dashboard-section,
.contact-section {
  padding: 80px 20px;
  text-align: center;
  min-height: 80vh;
  background: #f5f5f5;
}

.patient-portal h2,
.dashboard-section h2,
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  header a {
    font-size: 0.95rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .hero .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .services h2 {
    font-size: 2rem;
  }

  .card {
    width: 90%;
    padding: 20px;
  }

  .doctors-section h2 {
    font-size: 2rem;
  }

  .doctor-card {
    width: 80%;
    padding: 15px;
  }

  .doctor-card img {
    width: 80px;
    height: 80px;
  }

  .form-card,
  .table-card {
    width: 100%;
    padding: 15px;
  }

  .edit-btn,
  .delete-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  .patient-portal,
  .dashboard-section,
  .contact-section {
    padding: 50px 15px;
  }
}
