/* ===== CSS Variables ===== */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

@font-face {
  font-family: "Myriad Pro Regular";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro Regular"),
    url("../fonts/MYRIADPRO-REGULAR.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro Condensed";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro Condensed"),
    url("../fonts/MYRIADPRO-COND.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro Condensed Italic";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro Condensed Italic"),
    url("MYRIADPRO-CONDIT.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro Light";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro Light"),
    url("../fonts/MyriadPro-Light.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro Semibold";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro Semibold"),
    url("../fonts/MYRIADPRO-SEMIBOLD.woff") format("woff");
}

:root {
  --primary-dark: hsl(200, 40%, 8%);
  --primary-light: hsl(200, 40%, 8%);
  --accent-color: hsl(180, 100%, 45%);
  --secondary-color: hsl(180, 100%, 60%);
  --text-dark: hsl(0, 0%, 95%);
  --text-light: hsl(0, 0%, 90%);
  --border-color: hsla(180, 100%, 45%, 0.2);
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(0, 200, 255, 0.2);
  --shadow-md: 0 5px 20px rgba(0, 200, 255, 0.2);
  --shadow-lg: 0 10px 30px rgba(0, 200, 255, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Myriad Pro Regular", Cairo;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: hsl(200, 40%, 8%);
  overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  color: hsl(0, 0%, 95%);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-family: "Myriad Pro Regular", serif;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
h4 {
  margin-bottom: 10px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--secondary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Header & Navigation ===== */
header {
  background-color: rgba(20, 40, 60, 0.95);
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(200, 20%, 20%);
}

.header-scrolled {
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background-color: hsl(180, 100%, 45%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(200, 40%, 8%);
  font-weight: 700;
  font-size: 1.3rem;
  font-family: "Myriad Pro Regular", serif;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(0, 0%, 95%);
  font-family: "Myriad Pro Regular", serif;
}

.logo-text span {
  color: var(--accent-color);
}

.logo img {
  height: 70px;
}

/* Desktop Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: hsl(0, 0%, 95%);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
  opacity: 0.9;
}

nav a:hover {
  color: var(--accent-color);
  opacity: 1;
}

nav a.active {
  color: var(--accent-color);
}

nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.cta-button {
  background-color: hsl(180, 100%, 45%);
  color: hsl(200, 40%, 8%);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid hsl(180, 100%, 45%);
}

.cta-button:hover {
  background-color: transparent;
  color: hsl(180, 100%, 45%);
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: hsl(180, 100%, 45%);
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(20, 40, 60, 0.98);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin-bottom: 30px;
}

.mobile-nav a {
  text-decoration: none;
  color: hsl(0, 0%, 95%);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent-color);
}

.close-btn {
  position: absolute;
  top: 65px;
  right: 30px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: hsl(180, 100%, 45%);
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 45, 0.6) 0%,
    rgba(20, 40, 60, 0.4) 100%
  );
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 40px;
  right: 0;
  width: 43%;
  height: 100%;
  background: url("../imgs/hero-one.png");
  background-position: center;
  background-size: cover;
  z-index: 1;

  /* animation */
  animation: heroScale 5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heroScale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(180, 100%, 60%);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.secondary-button {
  background-color: transparent;
  color: hsl(0, 0%, 95%);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid hsla(180, 100%, 45%, 0.4);
}

.secondary-button:hover {
  border-color: hsl(180, 100%, 45%);
  color: hsl(180, 100%, 45%);
}

/* ===== Section Common Styles ===== */
.section {
  padding: 50px 0;
  position: relative;
  background-color: hsl(200, 40%, 8%);
}

.section-alt {
  background-color: hsla(200, 35%, 15%, 0.5);
}

/* ===== Beliefs Section ===== */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.belief-card {
  background-color: hsla(200, 35%, 15%, 0.5);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid hsla(180, 100%, 45%, 0.2);
  text-align: center;
}

.belief-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: hsla(180, 100%, 45%, 0.6);
}

.belief-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.belief-card h4 {
  color: hsl(180, 100%, 45%);
}

.belief-card p {
  color: hsl(0, 0%, 80%);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: hsla(200, 35%, 15%, 0.5);
  border-radius: var(--radius-md);
  padding: 40px 35px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid hsla(180, 100%, 45%, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: hsla(180, 100%, 45%, 0.6);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 5rem;
  font-weight: 700;
  color: hsla(180, 100%, 45%, 0.1);
  opacity: 0.5;
  line-height: 1;
  z-index: 1;
  font-family: "Myriad Pro Regular", serif;
}

.service-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 15px;
  color: hsl(180, 100%, 45%);
}

.service-card p {
  color: hsl(0, 0%, 80%);
}

/* ===== Work Process ===== */
.process-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 60px;
  position: relative;
}

.process-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 2px;
  height: 100%;
  background-color: hsla(180, 100%, 45%, 0.2);
  z-index: 1;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: hsl(180, 100%, 45%);
  color: hsl(200, 40%, 8%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: "Myriad Pro Regular", serif;
}

.step-content {
  flex: 1;
  padding-top: 15px;
}

.step-content h3 {
  color: hsl(180, 100%, 45%);
}

.step-content p {
  color: hsl(0, 0%, 80%);
}

/* ===== Portfolio Section ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid hsla(180, 100%, 45%, 0.2);
}

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

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(10, 30, 45, 0.9));
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 5px solid hsla(180, 100%, 45%, 0.3);
  box-shadow: var(--shadow-md);
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(
    135deg,
    hsl(200, 40%, 8%) 0%,
    hsl(200, 35%, 12%) 100%
  );
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid hsla(180, 100%, 45%, 0.2);
}

.contact-section:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  z-index: 1;
}

.contact-section h2,
.contact-section p {
  color: white;
  position: relative;
  z-index: 2;
}

.contact-section h2:after {
  background-color: hsl(180, 100%, 45%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: hsla(180, 100%, 45%, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-details h4 {
  color: white;
  margin-bottom: 5px;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.contact-form {
  background-color: hsla(200, 35%, 15%, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid hsla(180, 100%, 45%, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid hsla(180, 100%, 45%, 0.2);
  background-color: hsla(200, 35%, 10%, 0.5);
  color: white;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent-color);
  color: hsl(200, 40%, 8%);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
  width: 100%;
}

.submit-btn:hover {
  background-color: hsl(180, 100%, 60%);
  box-shadow: 0 5px 20px rgba(0, 200, 255, 0.4);
}

/* ===== Footer ===== */
footer {
  background-color: hsl(200, 40%, 8%);
  color: white;
  padding: 60px 0 10px;
  border-top: 1px solid hsl(200, 20%, 20%);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background-color: hsl(180, 100%, 45%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(200, 40%, 8%);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: "Myriad Pro Regular", serif;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  font-family: "Myriad Pro Regular", serif;
}

.footer-logo-text span {
  color: var(--accent-color);
}

.footer-about p {
  color: hsl(0, 0%, 80%);
}

.footer-links h4,
.footer-newsletter h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: hsl(0, 0%, 80%);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: none;
  font-family: "Inter", sans-serif;
  background-color: hsla(200, 35%, 15%, 0.8);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: hsl(200, 40%, 8%);
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: hsl(180, 100%, 60%);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(0, 0%, 70%);
  font-size: 0.9rem;
}

/* ===== Page Content ===== */
.page-hero {
  padding: 180px 0 100px;
  background: linear-gradient(
    135deg,
    hsl(200, 40%, 8%) 0%,
    hsl(200, 35%, 12%) 100%
  );
  color: white;
  text-align: center;
}

.page-hero h1 {
  color: white;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: 100px 0;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-color);
}

.mb-0 {
  margin-bottom: 0;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-60 {
  margin-top: 60px;
}

/* ======== arabic ======*/

/* ===== RTL Direction Support ===== */
[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] div {
  font-family: "Cairo", serif;
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3 {
  line-height: 1.6;
}

/* Header RTL Adjustments */
[dir="rtl"] .header-content {
  flex-direction: row-reverse;
  direction: ltr;
}

[dir="rtl"] nav ul {
  flex-direction: row-reverse;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row-reverse;
}

/* Language Switcher Styles */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid hsla(180, 100%, 45%, 0.4);
  color: hsl(0, 0%, 95%);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.lang-btn:hover {
  border-color: hsl(180, 100%, 45%);
  color: hsl(180, 100%, 45%);
}

.lang-btn i {
  font-size: 1rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: rgba(20, 40, 60, 0.98);
  border: 1px solid hsla(180, 100%, 45%, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  z-index: 100;
}

[dir="rtl"] .lang-dropdown {
  left: auto;
  right: 0;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: hsl(0, 0%, 95%);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  margin-bottom: 4px;
}

.lang-option:last-child {
  margin-bottom: 0;
}

.lang-option:hover {
  background: hsla(180, 100%, 45%, 0.1);
  color: hsl(180, 100%, 45%);
}

.lang-option.active {
  background: hsla(180, 100%, 45%, 0.2);
  color: hsl(180, 100%, 45%);
}

.lang-code {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  margin: 20px 0;
}

.mobile-lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: hsl(0, 0%, 95%);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 12px;
  border: 2px solid hsla(180, 100%, 45%, 0.4);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-lang-option:hover {
  border-color: hsl(180, 100%, 45%);
  color: hsl(180, 100%, 45%);
}

/* RTL Hero Section */
[dir="rtl"] .hero-bg {
  right: auto;
  left: 0;
}

/* RTL Section Title */
[dir="rtl"] h2:after {
  left: auto;
  right: 0;
}

[dir="rtl"] .section-title h2:after {
  right: 50%;
  left: auto;
  transform: translateX(50%);
}

/* RTL Service Card */
[dir="rtl"] .service-number {
  right: auto;
  left: 20px;
}

/* RTL Process Container */
[dir="rtl"] .process-container:before {
  left: auto;
  right: 40px;
}

/* RTL Contact Items */
[dir="rtl"] .contact-item {
  text-align: right;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .newsletter-form input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .newsletter-form button {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* RTL Contact Section Background */
[dir="rtl"] .contact-section:before {
  right: auto;
  left: -50%;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
  [dir="rtl"] .mobile-menu-btn {
    margin-left: 0;
    margin-right: auto;
  }

  [dir="rtl"] .close-btn {
    right: auto;
    left: 30px;
  }

  [dir="rtl"] .hero-cta {
    align-items: flex-end;
  }
}

/* Additional RTL Text Alignment */
[dir="rtl"] .text-center {
  text-align: center;
}

[dir="rtl"] .contact-details {
  text-align: right;
}

[dir="rtl"] .step-content {
  text-align: right;
}

[dir="rtl"] .belief-card {
  text-align: center;
}

[dir="rtl"] .service-card {
  text-align: right;
}

/* Form RTL */
[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .form-control {
  text-align: right;
}

/* Fix for hero content alignment */
[dir="rtl"] .hero-content {
  text-align: right;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .lang-switcher {
    display: none;
  }
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
  .logo img {
    height: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    place-items: unset !important;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
  }

  .header-cta {
    display: none;
  }

  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* Layout */
  .hero {
    padding: 150px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-cta {
    align-items: flex-start;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 60px 30px;
  }

  .process-container:before {
    left: 35px;
  }

  .step-number {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

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

  .section {
    padding: 60px 0;
  }

  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* ===== RESPONSIVE HEADER FIXES ===== */

/* Mobile Navigation Toggle - Show at 1024px and below */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block !important;
  }

  nav {
    display: none;
  }

  .header-cta {
    display: none;
  }
}

/* Ensure desktop nav is visible above 1024px */
@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }

  nav {
    display: block;
  }
}

/* Fix close button position */
.close-btn {
  position: absolute;
  top: 65px;
  right: 30px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: hsl(180, 100%, 45%);
  cursor: pointer;
  z-index: 1002;
}

[dir="rtl"] .close-btn {
  right: auto;
  left: 30px;
}

/* Ensure burger menu alignment */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-btn {
  margin-left: auto;
  order: 3;
}

[dir="rtl"] .mobile-menu-btn {
  margin-left: 0;
  margin-right: auto;
  order: 1;
}

@media (max-width: 1350px) {
  .hero-bg {
    width: 69%;
  }
}

@media (max-width: 769px) {
  .hero-bg {
    width: 100%;
    height: 80%;
    top: 15%;
    opacity: 0.4;
  }
  .footer-logo img {
    height: 50px;
  }
  [dir="rtl"] .process-container:before{
    right: 34px;
  }
}
