:root {
  --primary-color: #4169E1;
  --secondary-color: #4CAF50;
  --text-color: #333;
  --background-color: #f8f9fa;
  --card-bg: #fff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --neon-glow: 0 0 10px rgba(76, 175, 80, 0.7);
}

[data-theme="dark"] {
  --primary-color: #3a5dd9;
  --secondary-color: #3d8b40;
  --text-color: #f0f0f0;
  --background-color: #121212;
  --card-bg: #1e1e1e;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --neon-glow: 0 0 15px rgba(76, 175, 80, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  direction: rtl;
}

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

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background-color: var(--card-bg);
  box-shadow: 0 4px 6px var(--shadow-color);
  border-radius: 10px;
  margin-bottom: 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.logo {
  width: 120px;
  height: auto;
  margin-left: 15px;
}

.center-info {
  text-align: center;
  margin-bottom: 20px;
}

.center-info h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.center-info h2 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.center-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.doctor-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  margin: 20px 0;
  box-shadow: 0 0 15px var(--shadow-color);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
  width: 80px;
  height: 40px;
  border-radius: 20px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 5px var(--shadow-color);
  display: flex;
  align-items: center;
  padding: 5px;
  transition: all 0.3s ease;
}

.theme-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transform: translateX(0);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .theme-toggle-icon {
  transform: translateX(40px);
}

.theme-toggle-day {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background-color: #FFD700;
  border-radius: 50%;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.theme-toggle-night {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background-color: #C0C0C0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle-day {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle-night {
  opacity: 1;
}

.clock {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--card-bg);
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px var(--shadow-color);
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--card-bg);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-align: center;
}

.nav-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.nav-item i {
  margin-left: 8px;
  font-size: 1.2rem;
}

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

.card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.card h3 i {
  margin-left: 10px;
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.services-grid, .specialties-grid, .strengths-list, .media-list, .workplace-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-item, .specialty-item, .strength-item, .media-item, .workplace-item {
  background-color: var(--background-color);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
}

.service-item:hover, .specialty-item:hover, .strength-item:hover, .media-item:hover, .workplace-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.service-item i, .specialty-item i, .strength-item i, .media-item i, .workplace-item i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.service-item h4, .workplace-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-item p, .specialty-item p, .strength-item p, .media-item p, .workplace-item p {
  color: var(--text-color);
}

.card p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.card-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2rem;
  color: var(--secondary-color);
  opacity: 0.2;
}

.disease-card {
  cursor: pointer;
}

.disease-details {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--shadow-color);
}

.disease-card.active .disease-details {
  display: block;
}

.contact-section {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px var(--shadow-color);
  margin-bottom: 30px;
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: var(--background-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.contact-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-left: 15px;
}

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-info p {
  color: var(--text-color);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.action-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.action-button i {
  margin-left: 10px;
  font-size: 1.5rem;
}

.whatsapp-button {
  background-color: #25D366;
}

.call-button {
  background-color: #FF5722;
}

footer {
  background-color: var(--card-bg);
  padding: 30px 0;
  text-align: center;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 6px var(--shadow-color);
}

footer p {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

/* 3D Effect for Icons */
.icon-3d {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: var(--secondary-color);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4),
               0 2px 0 rgba(255,255,255,0.3),
               0 3px 0 rgba(255,255,255,0.2),
               0 4px 0 rgba(255,255,255,0.1),
               0 5px 0 rgba(255,255,255,0.05),
               0 6px 1px rgba(0,0,0,0.1),
               0 0 5px rgba(0,0,0,0.1),
               0 1px 3px rgba(0,0,0,0.3),
               0 3px 5px rgba(0,0,0,0.2),
               0 5px 10px rgba(0,0,0,0.25),
               0 10px 10px rgba(0,0,0,0.2),
               0 20px 20px rgba(0,0,0,0.15);
}

/* Neon Effect */
.neon-effect {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--secondary-color),
               0 0 10px var(--secondary-color),
               0 0 15px var(--secondary-color),
               0 0 20px var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .center-info h1 {
    font-size: 1.8rem;
  }
  
  .center-info h2 {
    font-size: 1.5rem;
  }
  
  .center-info h3 {
    font-size: 1.3rem;
  }
  
  .doctor-image {
    width: 150px;
    height: 150px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .theme-toggle, .clock {
    position: static;
    margin: 10px auto;
  }
  
  header {
    padding-top: 60px;
  }
  
  .nav-item {
    min-width: 120px;
    padding: 10px 15px;
  }
}
