/* Ananas Tech — Design Polish Overlay
   Loaded after main.css. Safe to keep/update independently. */

:root {
  --default-font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --heading-font: "Exo 2", "IBM Plex Sans Arabic", sans-serif;
  --nav-font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif;

  --background-color: #ffffff;
  --background-color-rgb: 255, 255, 255;
  --surface-color: #f6f7f9;
  --default-color: #2b2d35;
  --default-color-rgb: 43, 45, 53;
  --primary-color: #e63946;
  --primary-color-rgb: 230, 57, 70;
  --secondary-color: #16162a;
  --secondary-color-rgb: 22, 22, 42;
  --accent-color: #f4a261;
  --accent-color-rgb: 244, 162, 97;
  --contrast-color: #ffffff;
  --contrast-color-rgb: 255, 255, 255;
  --muted-color: rgba(43, 45, 53, 0.65);

  --nav-hover-color: #e63946;
  --nav-dropdown-hover-color: #e63946;

  --section-spacing: 88px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 20px rgba(22, 22, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(22, 22, 42, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] {
  --default-font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --heading-font: "IBM Plex Sans Arabic", sans-serif;
  --nav-font: "IBM Plex Sans Arabic", sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--default-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--secondary-color);
  line-height: 1.3;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6 {
  letter-spacing: 0.02em;
}

section {
  padding: var(--section-spacing) 0;
}

.section-bg,
#about.about,
#features.features,
#team.team,
#contact.contact {
  background-color: var(--surface-color);
}

/* ---------- Section titles ---------- */
.section-title {
  text-align: center;
  padding-bottom: 48px;
  max-width: 760px;
  margin-inline: auto;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title h2:before,
.section-title h2:after {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  vertical-align: middle;
}

.section-title p {
  color: var(--muted-color);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
  margin-inline: auto;
}

[dir="ltr"] .section-title h2 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* ---------- Header ---------- */
.header {
  padding: 14px 0;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header > .container-fluid {
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.header .logo h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: var(--heading-font);
}

[dir="ltr"] .header .logo h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.index-page.scrolled .header,
.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.92);
  --secondary-color: #222;
  --nav-color: #333;
  --nav-hover-color: var(--primary-color);
  box-shadow: 0 4px 28px rgba(22, 22, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    font-family: var(--nav-font);
    font-weight: 500;
    font-size: 15px;
    padding: 18px 13px;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hero .hero-bg-image,
.hero img.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero .pixel-blast-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  /* Red pixels stay vivid over the photo */
  mix-blend-mode: screen;
}

.hero .pixel-blast-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    165deg,
    rgba(22, 22, 42, 0.22) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(230, 57, 70, 0.12) 100%
  );
  pointer-events: none;
}

.hero .container {
  z-index: 4;
}

.hero .hero-content {
  position: relative;
  z-index: 4;
  min-height: 420px;
  max-width: 820px;
  pointer-events: none;
}

.hero .hero-content a {
  pointer-events: auto;
}

.hero h2.hero-title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

/* Arabic-first hero (Thmanyah-inspired clarity) */
[dir="rtl"] .hero h2.hero-title {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

[dir="ltr"] .hero h2.hero-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h2.hero-subtitle {
  font-family: var(--default-font);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  opacity: 0.94;
  margin: 20px auto 0;
  max-width: 640px;
  line-height: 1.85;
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .hero h2.hero-subtitle {
  font-weight: 400;
  line-height: 1.9;
}

.hero .hero-actions {
  margin-top: 36px;
  gap: 14px;
}

.hero-btn-primary,
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: var(--transition);
}

.hero-btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.35);
}

.hero-btn-primary:hover {
  background: rgba(var(--primary-color-rgb), 0.9);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--primary-color-rgb), 0.45);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.hero-btn-outline:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ---------- About ---------- */
.about {
  --background-color: var(--surface-color);
}

.about .content h3 {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.about .content h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.about .content p {
  color: var(--muted-color);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about .icon-box {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--default-color-rgb), 0.06);
  background: #fff;
  height: 100%;
  transition: var(--transition);
}

.about .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-color-rgb), 0.18);
}

.about .icon-box i {
  width: 64px;
  height: 64px;
  font-size: 28px;
  margin-bottom: 18px;
  background: rgba(var(--primary-color-rgb), 0.08);
}

.about .icon-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---------- Stats ---------- */
.stats {
  padding: 96px 0;
}

.stats:before {
  background: linear-gradient(135deg, rgba(22, 22, 42, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.stats .stats-item {
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stats .stats-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(var(--accent-color-rgb), 0.45);
  transform: translateY(-4px);
}

.stats .stats-item span {
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--heading-font);
  line-height: 1;
  margin-bottom: 10px;
}

.stats .stats-item p {
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Services ---------- */
.services .service-item {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(var(--default-color-rgb), 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-inline-start: 3px solid transparent;
  height: 100%;
  transition: var(--transition);
  align-items: center;
}

.services .service-item:before,
.services .service-item::after {
  display: none !important;
}

.services .service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-inline-start-color: var(--primary-color);
}

.services .service-item .icon {
  margin-inline-end: 28px;
  margin-right: 28px;
  flex-shrink: 0;
}

[dir="rtl"] .services .service-item .icon {
  margin-right: 0;
  margin-left: 28px;
}

.services .service-item .icon i {
  color: var(--primary-color);
  font-size: 42px;
}

.services .service-item .icon:before {
  background: rgba(var(--primary-color-rgb), 0.12);
  height: 34px;
  width: 34px;
  bottom: -6px;
  right: -6px;
}

.services .service-item .title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- Features ---------- */
.features {
  --background-color: var(--surface-color);
}

.features .features-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--default-color-rgb), 0.06);
}

.features .features-item + .features-item {
  margin-top: 36px;
}

.features .features-item h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.features .features-item p {
  color: var(--muted-color);
  line-height: 1.85;
  margin-bottom: 22px;
}

.features .features-item .btn-get-started {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.features .features-item .btn-get-started:hover {
  background: rgba(var(--primary-color-rgb), 0.9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--primary-color-rgb), 0.3);
}

.features .features-item img {
  border-radius: var(--radius-md);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .features .features-item {
    padding: 28px 20px;
  }

  .features .features-item + .features-item {
    margin-top: 20px;
  }
}

/* ---------- Portfolio ---------- */
.portfolio .portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.portfolio .portfolio-filters li {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--nav-font);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--default-color-rgb), 0.12);
  background: #fff;
  color: var(--default-color);
  margin: 0;
  transition: var(--transition);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
}

.portfolio .portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio .portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio .portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio .portfolio-item .portfolio-info {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 18px 16px;
  background: linear-gradient(0deg, rgba(22, 22, 42, 0.92), transparent);
  border-radius: 0;
}

.portfolio .portfolio-item .portfolio-info h4 {
  color: #fff;
  font-size: 1rem;
  padding-inline-end: 90px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 52px;
  right: 52px;
}

.portfolio .portfolio-item .portfolio-info .details-link {
  inset-inline-end: 12px;
  right: 12px;
  font-size: 20px;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  background: var(--primary-color);
  color: #fff;
}

[dir="rtl"] .portfolio .portfolio-item .portfolio-info .preview-link {
  right: auto;
  left: 52px;
}

[dir="rtl"] .portfolio .portfolio-item .portfolio-info .details-link {
  right: auto;
  left: 12px;
}

/* ---------- Team ---------- */
.team {
  --background-color: var(--surface-color);
}

.team .team-row {
  --bs-gutter-x: 2rem;
}

@media (min-width: 992px) {
  .team .team-row {
    --bs-gutter-x: 2.75rem;
  }
}

.team .member {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--default-color-rgb), 0.06);
  height: 100%;
  transition: var(--transition);
  margin-inline: 0;
}

.team .member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team .member .member-img {
  margin: 0 auto;
  max-width: 200px;
  border: 4px solid var(--surface-color);
  box-shadow: var(--shadow-sm);
}

.team .member .member-info {
  margin-top: 22px;
}

.team .member .member-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team .member .member-info span {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* ---------- FAQ ---------- */
.faq .content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.faq .content p {
  color: var(--muted-color);
  line-height: 1.8;
}

.faq .faq-container .faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  padding: 18px 22px;
  transition: var(--transition);
}

.faq .faq-container .faq-item:hover {
  background: rgba(var(--primary-color-rgb), 0.04);
}

.faq .faq-container .faq-active {
  background: rgba(var(--primary-color-rgb), 0.1);
  box-shadow: none;
}

.faq .faq-container .faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  padding-inline-end: 36px;
  color: var(--secondary-color);
  transition: color var(--transition);
}

.faq .faq-container .faq-item h3 .num {
  color: var(--primary-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--primary-color);
}

.faq .faq-container .faq-active .faq-toggle {
  color: var(--primary-color);
}

.faq .faq-container .faq-item .faq-content p {
  color: var(--muted-color);
  line-height: 1.8;
}

[dir="rtl"] .faq .faq-container .faq-item .faq-toggle {
  right: auto;
  left: 16px;
  transform: scaleX(-1);
}

[dir="rtl"] .faq .faq-container .faq-active .faq-toggle {
  transform: scaleX(-1) rotate(90deg);
}

/* ---------- CTA / Vision ---------- */
.call-to-action {
  padding: 100px 0;
}

.call-to-action:before {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.78) 0%, rgba(22, 22, 42, 0.88) 100%);
}

.call-to-action h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.call-to-action p {
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 760px;
  margin-inline: auto;
  opacity: 0.95;
}

/* ---------- Contact ---------- */
.contact .info-item {
  background: #fff;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--default-color-rgb), 0.08);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}

.contact .info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-color-rgb), 0.2);
}

.contact .info-item i {
  font-size: 22px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.contact .info-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 14px 0 6px;
}

.contact .info-item p {
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.7;
}

.contact .php-email-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--default-color-rgb), 0.08);
  box-shadow: var(--shadow-sm);
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-color);
  border: 1px solid rgba(var(--default-color-rgb), 0.12);
  transition: var(--transition);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
  outline: none;
}

.contact .php-email-form button[type="submit"] {
  padding: 14px 40px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--primary-color-rgb), 0.3);
}

[dir="rtl"] .php-email-form input,
[dir="rtl"] .php-email-form textarea {
  text-align: right;
}

/* ---------- Footer ---------- */
.footer {
  --background-color: #12121f;
  --default-color: rgba(255, 255, 255, 0.75);
  --default-color-rgb: 255, 255, 255;
  --secondary-color: #ffffff;
  background: #12121f;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  padding-bottom: 0;
 
}

.footer .footer-top {
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer .footer-about .logo span {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 400px;
  font-family: var(--default-font);
}

.footer .social-links a {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  margin-inline-end: 10px;
  margin-right: 10px;
  transition: var(--transition);
}

[dir="rtl"] .footer .social-links a {
  margin-right: 0;
  margin-left: 10px;
}

.footer .social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 14px;
  position: relative;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

[dir="rtl"] .footer h4::after {
  left: auto;
  right: 0;
}

.footer .footer-links,
.footer .footer-link {
  margin-bottom: 20px;
}

.footer .footer-links ul,
.footer .footer-link ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li,
.footer .footer-link ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul i,
.footer .footer-link ul i {
  color: var(--primary-color);
  padding-inline-end: 8px;
  font-size: 12px;
}

.footer .footer-links ul a,
.footer .footer-link ul a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer .footer-links ul a:hover,
.footer .footer-link ul a:hover {
  color: #fff;
}

.footer .footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.footer .footer-contact p i {
  color: var(--primary-color);
  margin-inline-end: 8px;
}

.footer .copyright {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.footer .copyright p,
.footer .credits {
  color: rgba(255, 255, 255, 0.5);
}

.footer .copyright strong {
  color: #fff;
}

.footer .credits a {
  color: var(--accent-color);
}

/* ---------- Scroll top ---------- */
.scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(var(--primary-color-rgb), 0.4);
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 15px;
}

/* ---------- RTL extras ---------- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .section-title h2:before {
  margin: 0 0 10px 15px;
}

[dir="rtl"] .section-title h2:after {
  margin: 0 15px 10px 0;
}

[dir="rtl"] .footer .footer-links ul i.bi-chevron-right::before {
  content: "\f284";
}

@media (min-width: 1200px) {
  [dir="rtl"] .navmenu .dropdown ul {
    left: auto;
    right: 14px;
  }
}

@media (max-width: 1199px) {
  [dir="rtl"] .mobile-nav-active .mobile-nav-toggle {
    right: auto;
    left: 15px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --section-spacing: 56px;
  }

  .section-title {
    padding-bottom: 32px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .contact .php-email-form {
    padding: 24px 18px;
  }
}
