/* ===== style.css ===== */
/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #0a2e4d;
  --primary-dark: #061e33;
  --primary-light: #1a4a6e;
  --accent: #2aa7a0;
  --accent-hover: #23918a;
  --accent-light: #e0f5f3;
  --bg-white: #ffffff;
  --bg-light: #f4f8fb;
  --bg-grey: #eef2f6;
  --text-dark: #1a2b3c;
  --text-medium: #4a5a6a;
  --text-light: #6b7a8a;
  --border: #dce5ec;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-family: 'Cairo', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left {
  transform: translateX(40px);
}

.reveal-right {
  transform: translateX(-40px);
}

.reveal-fade {
  transform: none;
  opacity: 0;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(42, 167, 160, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(42, 167, 160, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 18px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.3s;
}
.nav-logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-weight: 600;
  color: var(--primary);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a2e4d 0%, #0d3b60 40%, #1a5f7a 100%);
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(42, 167, 160, 0.25) 0%, transparent 60%);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(42, 167, 160, 0.2);
  border: 1px solid rgba(42, 167, 160, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 15px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-indicator span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}
.hero-scroll-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-scroll-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-10px); opacity: 1; }
}

/* ===== Section Headings ===== */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 4px;
}

.section-description {
  color: var(--text-medium);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background: var(--bg-light);
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 55%;
}

.about-lead {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-detail {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 30px;
}

.about-contact-inline {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.about-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s;
}
.about-contact-item:hover {
  color: var(--accent);
}
.about-contact-item .icon {
  font-size: 1.3rem;
}

.about-visual {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual-inner {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-light) 30%, var(--bg-white) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.medical-symbol {
  font-size: 7rem;
  color: var(--accent);
  font-weight: 900;
  z-index: 2;
}

.pulse-circle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

.orbiting-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(42, 167, 160, 0.7);
}
.dot-1 {
  top: 20px;
  right: 40px;
  animation: orbit1 3s linear infinite;
}
.dot-2 {
  bottom: 30px;
  left: 25px;
  animation: orbit2 4s linear infinite;
}
.dot-3 {
  top: 50%;
  left: -5px;
  animation: orbit3 3.5s linear infinite;
}

@keyframes orbit1 {
  0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
@keyframes orbit2 {
  0% { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes orbit3 {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* ===== Activities Section ===== */
.activities {
  padding: 100px 0;
  background: var(--bg-white);
}

.accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}

.accordion-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-family);
  transition: background 0.3s;
}
.accordion-header:hover {
  background: var(--bg-light);
}

.acc-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 40px;
}

.acc-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.acc-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.acc-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
}
.acc-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
}
.accordion-item.active .acc-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.accordion-item.active .acc-icon::before {
  background: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--bg-light);
}

.accordion-inner {
  padding: 20px 28px 28px;
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.9;
  border-top: 1px solid var(--border);
}

.accordion-inner p {
  margin: 0;
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: var(--bg-light);
}

.contact-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-form-wrapper {
  flex: 1 1 55%;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-form .form-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.contact-form .form-row .form-group {
  flex: 1 1 calc(50% - 12.5px);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 167, 160, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  font-size: 1.1rem;
  justify-content: center;
  background: var(--primary);
  color: #fff;
}
.btn-submit:hover {
  background: var(--primary-dark);
}
.btn-arrow {
  font-size: 1.2rem;
}

/* Contact Info Cards */
.contact-info {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info-card p {
  color: var(--text-medium);
  margin-bottom: 10px;
}

.contact-info-link {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-info-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 0;
}

.footer-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  flex: 1 1 30%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}
.footer-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  flex: 1 1 20%;
}
.footer-links h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact {
  flex: 1 1 25%;
}
.footer-contact h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact ul li span {
  font-size: 1.2rem;
}
.footer-contact ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.footer-contact ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(42, 167, 160, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-contact-inline {
    justify-content: center;
  }
  .contact-grid {
    flex-direction: column;
  }
  .contact-form-wrapper,
  .contact-info {
    flex: 1 1 100%;
  }
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    padding: 20px;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    font-size: 1.3rem;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding-top: 100px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .accordion-header {
    padding: 18px 20px;
    gap: 15px;
  }
  .acc-number {
    font-size: 1rem;
    min-width: 30px;
  }
  .acc-title {
    font-size: 1rem;
  }
  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-form .form-row .form-group {
    flex: 1 1 100%;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}