/* Modern Design for MB CARE PC */

:root {
  --primary-color: #2c5f7d;
  --secondary-color: #4a90b8;
  --accent-color: #67b7dc;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height, padding, opacity;
}

.header-top.collapsed {
  height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-info a:hover {
  opacity: 0.8;
}

.header-main {
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  will-change: height, padding, opacity;
}

.header-main.collapsed {
  height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  max-height: 80px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-title h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.site-title p {
  font-size: 1rem;
  opacity: 0.9;
}

.doctor-info {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
}

.doctor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.doctor-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.doctor-details p {
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0;
}

/* Navigation */
nav {
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2c5f7d 0%, #4a90b8 35%, #67b7dc 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: subtle-pulse 15s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  margin: 10px;
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  margin: 10px;
}

/* Main Content */
main {
  padding: 40px 0;
  min-height: 60vh;
}

.content-section {
  background-color: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
}

.content-section h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
}

.content-section p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.content-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.content-section li {
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.feature-card img {
  max-width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.info-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-box ul {
  list-style: none;
  margin-left: 0;
}

.info-box li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.info-box li:last-child {
  border-bottom: none;
}

/* Alert Boxes */
.alert {
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  border-left: 4px solid;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: var(--warning-color);
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: var(--secondary-color);
  color: #0c5460;
}

/* Insurance Logos */
.insurance-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.insurance-logos img {
  max-width: 200px;
  height: auto;
}

/* Forms Section */
.forms-list {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.form-item {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.form-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.form-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.form-item a:hover {
  color: var(--secondary-color);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li a {
    padding: 12px 20px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-section {
    flex-direction: column;
  }

  .doctor-info {
    justify-content: center;
  }

  .doctor-photo {
    width: 60px;
    height: 60px;
  }

  .doctor-details h3 {
    font-size: 1rem;
  }

  .doctor-details p {
    font-size: 0.85rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-section {
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-title h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 30px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* iPhone-sized screens and smaller */
@media (max-width: 420px) {
  .header-top {
    padding: 8px 0;
  }

  .header-top .container {
    flex-direction: column;
    gap: 8px;
  }

  .contact-info {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 0.8rem;
  }

  .header-main {
    padding: 8px 0;
  }

  .logo {
    max-height: 60px;
  }

  .site-title h1 {
    font-size: 1.3rem;
  }

  .site-title p {
    font-size: 0.9rem;
  }

  .doctor-photo {
    width: 50px;
    height: 50px;
  }

  .doctor-details h3 {
    font-size: 0.9rem;
  }

  .doctor-details p {
    font-size: 0.8rem;
  }

  nav {
    padding: 8px 0;
  }

  nav ul li a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 20px 15px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  nav,
  .mobile-menu-toggle {
    display: none;
  }

  body {
    color: black;
  }

  .content-section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
