:root {
  --primary-color: #2196f3;
  --secondary-color: #1976d2;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
}

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

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  direction: rtl;
}

/* New Header Styles */
header {
  background-color: var(--primary-color) !important;
  box-shadow: none;
  padding: 0;
  padding-right: 0;
}

.main-nav.new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 100px;
  background: var(--primary-color);
  flex-direction: row;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  margin-right: 60px;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-center h1 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0;
  font-weight: bold;
  letter-spacing: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.icon {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 2px;
  transition: color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.icon:hover {
  color: #25d366; /* WhatsApp green for hover */
}

.header-right .icon {
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  margin-right: 140px;
}

/* Remove old header styles */
.logo,
.nav-links,
.social-icons,
.social-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .main-nav.new-header {
    padding: 0 1rem;
    height: 80px;
    width: 100%;
  }

  .header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-center h1 {
    font-size: 1.5rem;
  }

  .icon {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
  }

  header {
    padding-right: 0;
  }

  .header-right .icon {
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
    margin-right: 0;
  }

  .header-left {
    display: none;
  }

  .site-logo {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .main-nav.new-header {
    padding: 0 0.5rem;
    height: 70px;
  }

  .site-logo {
    max-width: 150px;
  }

  .header-right .icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: right;
  padding: 8rem 4vw 4rem 0;
  width: 100%;
  box-sizing: border-box;
  display: block;
  position: relative;
}
.hero-separator {
  width: 100%;
  height: 1px;
  background: #0002;
  margin: 1.5rem 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0);
}

.hero h2,
.hero p,
.cta-button {
  text-align: right !important;
  margin-right: 4vw !important;
  margin-left: 0 !important;
  display: block;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 10vw 1.5rem 0;
  text-align: center;
}
.hero-text-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  max-width: 600px;
}

.hero-text-button p {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: right;
}

.hero-text-button .cta-button {
  margin-top: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.hero-flex {
  display: flex;
  flex-direction: row-reverse; /* keep image on the right */
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* responsive support */
}

.hero-text-button {
  display: flex;
  flex-direction: column;
  align-items: center; /* center text & button horizontally */
  text-align: center;
  max-width: 600px;
}

.hero-text-button p {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-button {
  background-color: white;
  color: #2196f3;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s;
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .hero-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-gif-corner {
    width: 60px;
    height: 60px;
  }
}

/* Services Section */
.services {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.services h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
}

/* Stats Section */
.stats-section {
  background: #efefef;
  padding: 4rem 0 4rem 0;
  text-align: center;
}

.stats-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.stats-desc {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2.1;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.stat-block {
  background: none;
  font-size: 1.15rem;
  color: #222;
  line-height: 2.1;
  font-weight: 400;
  text-align: center;
}

.stat-block b {
  font-size: 1.18rem;
  font-weight: bold;
  color: #111;
}

@media (max-width: 700px) {
  .stats-title {
    font-size: 1.5rem;
  }
  .stats-desc,
  .stat-block {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
  }

  .stats-container {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Sidebar Overlay Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  justify-content: flex-end;
  align-items: stretch;
  direction: ltr !important;
}
.sidebar-overlay.active {
  display: flex;
}
.sidebar {
  background: var(--primary-color);
  width: 350px;
  max-width: 90vw;
  height: 100%;
  padding: 0 24px 24px 24px;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideInSidebarRight 0.3s ease;
}
@keyframes slideInSidebarRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  color: #fff;
  font-size: 1.5rem;
  z-index: 10;
  text-decoration: none;
}
.sidebar-title {
  color: #fff;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  font-family: "Cairo", sans-serif;
  margin-top: 0;
  padding-top: 0;
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.sidebar-links li {
  border-bottom: 1px solid #333;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.sidebar-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 18px 0 12px 24px;
  transition: color 0.2s;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  padding-right: 24px;
}
.sidebar-links a:hover {
  color: #fff;
  background: #222;
  transition: color 0.4s, background 0.4s;
}
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: auto;
  margin-bottom: 16px;
}
.sidebar-social .icon {
  background: #222;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.5s;
}
.sidebar-social .icon:hover {
  color: #fff;
  transform: translateY(-3px);
  transition: transform 0.5s all;
}
@media (max-width: 500px) {
  .sidebar {
    width: 100vw;
    padding: 24px 8px 16px 8px;
  }
  .sidebar-title {
    font-size: 2.5rem;
  }
  .sidebar-links a {
    font-size: 1.1rem;
  }
  .sidebar-social .icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

.site-logo {
  margin-top: 8px;
  margin-bottom: 0;
  display: block;
  margin: 0 auto;
  max-width: 300px;
  height: auto;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: brightness(0) invert(1);
}

.header-left .icon {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-left .icon:hover {
  color: #111;
  transition: color 0.5s all;
}

.header-left .icon i {
  font-size: 1.5rem;
}

.sidebar-title .site-logo {
  max-width: 120px;
}

.hero-logo {
  display: block;
  margin-right: 30vw;
  margin-bottom: 1rem;
  max-width: 400px;
  width: 500px;
  height: 500px;
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 200px;
    margin-right: 2vw;
  }
}

.intro-arabic {
  background: #f5f5f5;
  padding: 6rem 2vw;
  margin: 0 0 2rem 0;
}
.intro-arabic p {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
  margin: 0 auto;
  max-width: 1400px;
}

.important-notice {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 4rem 2vw;
  margin: 0 0 2rem 0;
  border-radius: 0;
}
.important-notice h2 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}
.important-notice p {
  font-size: 2.2rem;
  font-weight: 400;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.7;
}
.important-notice b {
  font-weight: bold;
}

.account-benefits {
  background: #f7f7f7;
  padding: 4rem 0 4rem 0;
  margin-bottom: 2rem;
}
.benefits-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.benefits-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.benefits-image img {
  width: 350px;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}
.benefits-btn {
  font-family: "Cairo", sans-serif;
  font-size: 1.1rem;
  padding: 0.3rem 1.2rem;
  border-radius: 6px;
  background: #fff;
  color: #222;
  cursor: pointer;
  margin-bottom: 1rem;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.benefits-btn:hover {
  background: #2196f3;
  color: #fff;
}
.benefits-text {
  flex: 2;
  text-align: right;
}
.benefits-text h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.benefits-text h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.benefits-text p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 2.1;
}
@media (max-width: 900px) {
  .benefits-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .benefits-image img {
    width: 220px;
  }
  .benefits-text h2 {
    font-size: 1.5rem;
  }
  .benefits-text h3 {
    font-size: 1.1rem;
  }
  .benefits-text p {
    font-size: 1rem;
  }
}

.timeline-section {
  padding: 4rem 0 2rem 0;
  background: #fff;
}
.timeline-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 4px;
  background: #e0e0e0;
  transform: translateX(50%);
  z-index: 0;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  margin-bottom: 3.5rem;
  z-index: 1;
}
.timeline-step:nth-child(odd) {
  flex-direction: row-reverse;
}
.timeline-step:nth-child(even) {
  flex-direction: row;
}
.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2196f3;
  color: #2196f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: absolute;
  right: 50%;
  top: 0;
  transform: translate(50%, 0);
  z-index: 2;
}
.timeline-icon.done {
  background: #2196f3;
  color: #fff;
  border: 2px solid #2196f3;
}
.timeline-content {
  background: #f3f3f3;
  padding: 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: none;
  min-width: 320px;
  max-width: 400px;
  text-align: right;
  position: relative;
}
.timeline-step:nth-child(odd) .timeline-content {
  margin-left: -7px;
  margin-right: 60px;
}
.timeline-step:nth-child(even) .timeline-content {
  margin-right: -7px;
  margin-left: 60px;
  text-align: left;
}
.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.timeline-content p {
  font-size: 1rem;
  color: #222;
  margin: 0;
  line-height: 2;
}
@media (max-width: 900px) {
  .timeline {
    padding: 0 0.5rem;
  }
  .timeline-content {
    min-width: 0;
    max-width: 100%;
    padding: 1rem 1rem;
  }
  .timeline-step:nth-child(odd) .timeline-content {
    margin-right: 40px;
    margin-left: 0;
  }
  .timeline-step:nth-child(even) .timeline-content {
    margin-left: 40px;
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  .timeline-section {
    padding: 2rem 0 1rem 0;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
  .timeline {
    max-width: 100%;
    padding: 0;
  }
  .timeline-content {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
  .timeline-icon {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
  .timeline-step:nth-child(odd) .timeline-content,
  .timeline-step:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }
}


/* Footer Section */
footer {
  background-color: #1a2226;
  color: white;
  padding: clamp(3rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.footer-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-bottom .footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  background: #222;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  transition: background 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.footer-bottom .footer-social-icon:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  box-shadow: 0 4px 18px 0 rgba(33, 150, 243, 0.25);
  color: #fff;
}


.appointment-btn {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.appointment-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.appointment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

.appointment-btn:hover::before {
  left: 100%;
}

.appointment-btn .btn-text {
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.appointment-btn i {
  font-size: 1.2em;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .header-center {
    flex-direction: column;
    gap: 10px;
  }
  
  .appointment-btn {
    display: none;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.modal.show .modal-icon {
  animation: bounce 1s ease;
}

/* Portfolio Page Styles */
.portfolio-hero {
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.portfolio-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portfolio-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: auto;
}

.portfolio-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  height: 280px;
  text-decoration: none;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.1);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(25, 118, 210, 0.8) 0%, rgba(33, 150, 243, 0.9) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.portfolio-card-overlay .visit-btn {
  padding: 10px 20px;
  border: 2px solid white;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.portfolio-card-overlay .visit-btn:hover {
  background-color: white;
  color: #1976d2;
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2rem 0.5rem;
  }
  .portfolio-card {
    height: 200px;
    min-width: 0;
    width: 100%;
    border-radius: 10px;
  }
  .portfolio-card-overlay h3 {
    font-size: 1.1rem;
  }
  .portfolio-card-overlay .visit-btn {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .portfolio-card {
    height: 240px;
    border-radius: 7px;
  }
  .portfolio-card-overlay h3 {
    font-size: 0.95rem;
  }
  .portfolio-card-overlay .visit-btn {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}
