

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, sans-serif;
  --heading-font: "Nunito", sans-serif;
  --nav-font: "Poppins", sans-serif;

  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #493c3e;
  --accent-color: #e43c5c;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #ffffff;
  --nav-hover-color: #e43c5c;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #e43c5c;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.text-center { text-align: center; }

/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

.section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.section-title .description-title {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --heading-color: #ffffff;
  background-color: var(--background-color);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  transition: all 0.5s;
}

.header.scrolled {
  --background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.15);
}

.header .logo h1.sitename {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

/* Scroll detection via CSS */
@supports (animation-timeline: scroll()) {
  .header {
    animation: header-scroll linear both;
    animation-timeline: scroll();
    animation-range: 0px 80px;
  }

  @keyframes header-scroll {
    to {
      background-color: rgba(0, 0, 0, 0.85);
      box-shadow: 0px 0 18px rgba(0, 0, 0, 0.15);
    }
  }
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.nav-toggle-checkbox {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--nav-color);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
  padding: 15px 14px;
  white-space: nowrap;
}

.nav-list li a {
  color: var(--nav-color);
  font-size: 15px;
  font-family: var(--nav-font);
  font-weight: 400;
  display: inline-block;
  position: relative;
  padding: 0 2px;
  transition: 0.3s;
}

.nav-list li a::before {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--nav-hover-color);
  visibility: hidden;
  width: 0;
  transition: all 0.3s ease-in-out;
}

.nav-list li a:hover::before,
.nav-list li a.active::before {
  visibility: visible;
  width: 100%;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--nav-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color);
}

.hero p {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: var(--heading-color);
}

.btn-get-started {
  color: var(--default-color);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 40px;
  margin: 30px 0 0 0;
  border-radius: 50px;
  text-transform: uppercase;
  transition: 0.3s;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 50%);
}

.btn-get-started:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 18px; }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.about-content h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 30px;
  color: var(--default-color);
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 30px;
  color: var(--accent-color);
  border-radius: 50px;
  border: 2px solid var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  transition: 0.3s;
}

.about-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.about-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.icon-box {
  padding: 10px 0;
}

.icon-box i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.icon-box h4 a:hover {
  color: var(--accent-color);
}

.icon-box p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-boxes { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  background: var(--accent-color);
  inset: 100% 0 0 0;
  transition: all 0.3s;
  z-index: -1;
}

.service-item .icon {
  margin-bottom: 10px;
}

.service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: ease-in-out 0.3s;
}

.service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.service-item p {
  line-height: 24px;
  font-size: 14px;
  margin: 0;
  color: var(--default-color);
  transition: ease-in-out 0.3s;
}

.service-item:hover h4 a,
.service-item:hover .icon i,
.service-item:hover p {
  color: var(--contrast-color);
}

.service-item:hover::before {
  inset: 0;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features {
  padding-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.features-item i {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.features-item h3 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}

.features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features-item:hover {
  border-color: var(--accent-color);
}

.features-item:hover h3 a {
  color: var(--accent-color);
}

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cta-overlay {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--default-color);
  margin-bottom: 16px;
}

.call-to-action p {
  color: var(--default-color);
  margin-bottom: 20px;
}

.cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.3s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.cta-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
  user-select: none;
  color: var(--default-color);
  background: transparent;
}

.filter-btn:hover,
.filter-btn.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}


.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  list-style: none;
}

.filter-btn {
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 500;
  transition: 0.3s;
  background: #f4f4f4;
}

.filter-btn.filter-active {
  background: #e43c5c;
  color: #fff;
}


.portfolio-grid {
  column-count: 3; /* تقسيم المحتوى لـ 3 أعمدة */
  column-gap: 20px; /* المسافة بين الأعمدة */
  width: 100%;
}

.portfolio-item {
  display: inline-block; /* هام جداً ليعمل الـ column-count بشكل صحيح */
  width: 100%;
  margin-bottom: 20px; /* المسافة الرأسية بين الصور */
  position: relative;
  overflow: hidden;
  break-inside: avoid; /* يمنع انقسام الصورة بين عمودين */
}

.portfolio-item img {
  width: 100%;
  height: auto; /* ترك الطول الأصلي للصورة (أساسي للشكل المطلوب) */
  display: block;
  transition: transform 0.3s ease;
}

/* تأثير الـ Hover */
.portfolio-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%; /* مخفية تحت */
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  transition: 0.3s;
  text-align: center;
}

.portfolio-item:hover .portfolio-info {
  bottom: 0; /* تظهر عند الـ Hover */
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* ضبط التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
  .portfolio-grid {
    column-count: 2; /* عمودين في التابلت */
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    column-count: 1; /* عمود واحد في الفون */
  }
}



/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing {
  padding: 60px 0 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0 3px 20px -2px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
  position: relative;
  border-radius: 15px;
  height: 100%;
}

.pricing-item h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
  color: var(--heading-color);
}

.pricing-icon {
  margin: 30px auto 20px;
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  position: relative;
}

.pricing-icon::before {
  content: "";
  position: absolute;
  height: 86px;
  width: 86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.pricing-icon::after {
  content: "";
  position: absolute;
  height: 102px;
  width: 102px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.pricing-icon i {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.pricing-item h4 {
  font-size: 48px;
  color: var(--accent-color);
  font-weight: 700;
  font-family: var(--heading-font);
  margin-bottom: 25px;
  text-align: center;
}

.pricing-item h4 sup {
  font-size: 28px;
}

.pricing-item h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
  font-weight: 400;
}

.pricing-item ul {
  padding: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  text-align: left;
  line-height: 20px;
}

.pricing-item ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-item ul .bi-check {
  color: #059652;
  font-size: 24px;
}

.pricing-item ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.pricing-item ul .na .bi-x {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.pricing-item ul .na span {
  text-decoration: line-through;
}

.buy-btn {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  padding: 8px 40px 10px;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: 0.3s;
}

.buy-btn:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.pricing-item.featured {
  border: 3px solid var(--accent-color);
  z-index: 1;
}

@media (min-width: 992px) {
  .pricing-item.featured {
    transform: scale(1.05);
  }
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 20px 50px 20px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--heading-color);
  font-family: var(--heading-font);
  transition: 0.3s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
  color: var(--accent-color);
}

.faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  transition: transform 0.3s;
  color: var(--heading-color);
}

.faq-item[open] > .faq-question {
  color: var(--accent-color);
}

.faq-item[open] {
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.faq-item[open] .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.faq-content {
  padding: 0 20px 20px;
}

.faq-content p {
  margin: 0;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 5px;
}

.member-img {
  position: relative;
  overflow: hidden;
}

.member-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.team-member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  background: color-mix(in srgb, var(--background-color), transparent 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.team-member .social a {
  color: var(--heading-color);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.team-member .social a:hover {
  color: var(--accent-color);
}

.team-member:hover .social {
  opacity: 1;
}

.member-info {
  padding: 25px 15px;
  text-align: center;
}

.member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}



 
.container {
  max-width: 1140px; /* العرض القياسي المريح للعين */
  margin: 0 auto;
  padding: 0 15px;
}

/* تنسيق العنوان العلوي (TEAM) */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-badge {
  background: #fef1f2; /* لون وردي فاتح جداً */
  color: #e84545; /* لون أحمر/وردي غامق */
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #364d59;
}

.section-header h2 span {
  color: #e84545; /* الكلمة الملونة */
}


.staff-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 أعمدة */
  gap: 20px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease; /* تأثير زوم خفيف */
}

/* طبقة الـ Hover السوداء */
.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* لون أسود شفاف */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* مخفية في البداية */
  transition: opacity 0.3s ease;
}

/* تنسيق النصوص داخل الـ Hover */
.profile-details h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-details .role {
  color: #fff;
  font-size: 13px;
  font-style: italic;
  display: block;
  margin-bottom: 15px;
}


/* تنسيق أيقونات السوشيال ميديا لتكون بيضاء مثل النصوص */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  color: #ffffff; /* اللون الأبيض للأيقونة */
  font-size: 1.1rem; /* حجم الأيقونة */
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* لضمان أن الأيقونة نفسها تأخذ اللون الأبيض */
.social-links a i {
  color: #ffffff;
}

/* تأثير الـ Hover (اختياري: جعلها تبهت قليلاً بدلاً من تغيير اللون) */
.social-links a:hover {
  color: #ffffff; /* الحفاظ على اللون الأبيض */
  opacity: 0.7;   /* جعلها شفافة قليلاً عند الوقوف عليها لتشعر المستخدم بالتفاعل */
  transform: scale(1.1); /* تكبير بسيط جداً */
}

/* --------------------------------------------------------------
   تفعيل الـ Hover
-------------------------------------------------------------- */

.profile-card:hover .profile-overlay {
  opacity: 1; /* إظهار الطبقة السوداء */
}

.profile-card:hover img {
  transform: scale(1.1); /* زوم خفيف للصورة عند الـ Hover */
}

/* ضبط الجوال (Mobile) */
@media (max-width: 992px) {
  .staff-layout {
    grid-template-columns: repeat(2, 1fr); /* صورتين في الصف للأجهزة المتوسطة */
  }
}

@media (max-width: 576px) {
  .staff-layout {
    grid-template-columns: 1fr; /* صورة واحدة في الصف للجوال */
  }
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.map-wrapper {
  margin-bottom: 30px;
}

.map-wrapper iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 270px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  padding: 0;
}

.info-item p {
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.contact-form form {
  height: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  font-size: 14px;
  padding: 10px 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  font-family: var(--default-font);
  outline: none;
  transition: border-color 0.3s;
  display: block;
  margin-bottom: 16px;
}

.contact-form input[type=text]:focus,
.contact-form input[type=email]:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .form-row input {
  margin-bottom: 0;
}

.contact-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  cursor: pointer;
  transition: 0.4s;
  border-radius: 50px;
  font-size: 15px;
  font-family: var(--default-font);
}

.contact-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row input { margin-bottom: 16px !important; }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
}

.footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 40px;
}

.footer-about .logo {
  display: block;
  margin-bottom: 25px;
}

.footer-about .logo .sitename {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.footer-links ul li {
  padding: 10px 0;
  border-bottom: none;
}

.footer-links ul li:first-child {
  padding-top: 0;
}

.footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  line-height: 1;
  transition: 0.3s;
}

.footer-links ul a:hover {
  color: var(--accent-color);
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-contact .mt-4 {
  margin-top: 16px;
}

.footer-copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  margin-top: 40px;
}

.footer-copyright p {
  margin: 0;
}

.footer-copyright .credits {
  margin-top: 6px;
  font-size: 13px;
}

.footer-copyright .credits a {
  color: var(--accent-color);
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color);
  font-size: 24px;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

/* Show scroll-top button via CSS scroll detection */
@supports (animation-timeline: scroll()) {
  .scroll-top {
    animation: scroll-top-show linear both;
    animation-timeline: scroll();
    animation-range: 200px 300px;
  }

  @keyframes scroll-top-show {
    to {
      visibility: visible;
      opacity: 1;
      bottom: 15px;
    }
  }
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 60px 20px 20px 20px;
    background-color: var(--nav-mobile-background-color);
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--default-color, #444), transparent 90%);
    padding: 10px 0;
    overflow-y: auto;
    z-index: 9998;
    gap: 0;
    align-items: flex-start;
  }

  .nav-list li {
    padding: 0;
    width: 100%;
  }

  .nav-list li a {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-size: 17px;
    font-weight: 500;
    display: block;
    width: 100%;
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    color: var(--nav-dropdown-hover-color);
  }

  .nav-list li a::before {
    display: none;
  }

  .nav-toggle-checkbox:checked ~ .nav-list {
    display: flex;
  }

  .nav-toggle-checkbox:checked ~ .mobile-nav-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ .mobile-nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ .mobile-nav-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    -webkit-transform: translateY(-8px) rotate(-45deg);
    -moz-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    -o-transform: translateY(-8px) rotate(-45deg);
}
}

/*--------------------------------------------------------------
# Responsive utility
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .section-title p {
    font-size: 24px;
  }
}