:root {
  /*--------------------------------C  O  L  O  R  S----------------------------------*/
  --primary-color: #6a0dad;
  --accent-color: #bba36e;
  --off-white: #f8f8f8;
  --text-color: #333333;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #666666;
  --dark-gray: #222222;

  /*----------------------------------F  O  N  T  S-----------------------------------*/
  --ff-playfair: "playfair display", sans-serif;
  --ff-arabic: "Zain", serif;

  --fs-primary: 10px;
  --fw-bold: 700;
  --fw-medium: 500;
  --fw-normal: 400;
  --fw-light: 300;

  /*-------------------------------S  P  A  C  I  N  G--------------------------------*/
  --section-padding: 90px;
  --container-padding: 20px;

  /*---------------------------B O R D E R   R A D I U S------------------------------*/
  --radius-circle: 50%;
  --radius-pill: 100px;
  --radius-10: 10px;
  --radius-8: 8px;
  --radius-6: 6px;
  --radius-4: 4px;

  /*---------------------------T R A N S I T I O N S------------------------------*/
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/*----------------------------D E F A U L T   S T Y L E S---------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius-10);
  filter: grayscale(0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

li {
  list-style: none;
}

a,
img,
span,
input,
button {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--off-white);
  color: var(--text-color);
  font-family: var(--ff-playfair);
  font-size: 1.6rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Arabic styles */
body.arabic {
  font-family: var(--ff-arabic);
  text-align: right;
}

body.arabic * {
  text-align: right;
}

body.arabic .hero-content,
body.arabic .section-header {
  text-align: center;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: var(--medium-gray);
  border-radius: var(--radius-10);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(268, 83%, 35%);
}

/*!----------------------------------U T I L I T I E S----------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  font-family: var(--ff-playfair);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: var(--dark-gray);
}

body.arabic .section-title {
  font-family: var(--ff-arabic);
  line-height: 1.8;
}

.section-subtitle {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--medium-gray);
  margin-bottom: 3rem;
}

body.arabic .section-subtitle {
  line-height: 2;
}

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

.btn {
  display: inline-block;
  padding: 1.4rem 2.8rem;
  border-radius: var(--radius-8);
  font-weight: var(--fw-medium);
  font-size: 1.6rem;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: var(--primary-color);
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  text-align: center !important;
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  text-align: center !important;
}

.btn-secondary:hover {
  transform: translateY(-4px);
}

.btn-full {
  width: 100%;
}

/* Download Button Styles */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 2.8rem;
  background: linear-gradient(135deg, var(--primary-color), #8b1db8);
  color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-8);
  font-weight: var(--fw-medium);
  font-size: 1.6rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(106, 13, 173, 0.4);
  background: linear-gradient(135deg, #8b1db8, var(--primary-color));
}

.btn-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

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

.btn-download i {
  font-size: 1.8rem;
  animation: downloadPulse 2s infinite;
}

.btn-download.btn-small {
  padding: 1rem 2rem;
  font-size: 1.4rem;
}

.btn-download.btn-small i {
  font-size: 1.6rem;
}

@keyframes downloadPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Hero Download Section */
.hero-download {
  margin-top: 3rem;
  animation: downloadFadeIn 1s ease-out 1.5s forwards;
  opacity: 0;
}

@keyframes downloadFadeIn {
  to {
    opacity: 1;
  }
}

/*!---------------------------------N A V B A R---------------------------------------*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(106, 13, 173, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

body.arabic .nav-container {
  flex-direction: row-reverse;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.arabic .logo-container {
  flex-direction: row-reverse;
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.logo-icon {
  font-size: 2.5rem;
  color: var(--white);
}

.brand-name {
  font-family: var(--ff-playfair);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--primary-color);
}

body.arabic .brand-name {
  font-family: var(--ff-arabic);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

body.arabic .nav-menu {
  flex-direction: row-reverse;
}

.nav-link {
  font-weight: var(--fw-medium);
  font-size: 1.8rem;
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

body.arabic .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Toggle Styles */
.language-toggle {
  position: relative;
  margin-left: 2rem;
}

body.arabic .language-toggle {
  margin-left: 0;
  margin-right: 2rem;
}

.language-switch {
  display: none;
}

.language-label {
  display: flex;
  align-items: center;
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--light-gray);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

.language-text {
  position: absolute;
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  transition: var(--transition);
  z-index: 2;
}

.language-text.en {
  left: 8px;
  color: var(--primary-color);
}

.language-text.ar {
  right: 8px;
  color: var(--medium-gray);
  font-size: 1.6rem !important;
}

.language-slider {
  position: absolute;
  left: 1px;
  width: 26px;
  height: 26px;
  background-color: var(--primary-color);
  border-radius: var(--radius-circle);
  transition: var(--transition);
}

.language-switch:checked + .language-label .language-slider {
  transform: translateX(28px);
}

.language-switch:checked + .language-label .language-text.en {
  color: var(--medium-gray);
}

.language-switch:checked + .language-label .language-text.ar {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
  border-radius: var(--radius-4);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/*!---------------------------------M O D E R N   H E R O---------------------------------------*/
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #6a0dad 0%,
    #8b1db8 25%,
    #a83db3 50%,
    #c75aae 75%,
    #bba36e 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: var(--radius-circle);
  animation-delay: -0.5s;
}

.shape-2 {
  top: 60%;
  left: 80%;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: var(--radius-8);
  animation-delay: -2s;
  animation-duration: 8s;
}

.shape-3 {
  top: 80%;
  left: 20%;
  width: 40px;
  height: 40px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -4s;
  animation-duration: 10s;
}

.shape-4 {
  top: 30%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  border-radius: var(--radius-circle);
  animation-delay: -1s;
  animation-duration: 7s;
}

.shape-5 {
  top: 10%;
  left: 60%;
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: var(--radius-8);
  animation-delay: -3s;
}

.shape-6 {
  bottom: 20%;
  right: 30%;
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -6s;
  animation-duration: 9s;
}

.shape-7 {
  top: 50%;
  left: 5%;
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: var(--radius-circle);
  animation-delay: -7s;
  animation-duration: 12s;
}

.shape-8 {
  bottom: 40%;
  left: 70%;
  width: 90px;
  height: 90px;
  background: var(--accent-color);
  border-radius: var(--radius-8);
  animation-delay: -5s;
  animation-duration: 11s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) rotate(240deg);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Hero Content */
.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
  margin-top: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  from {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  }
}

.badge-icon {
  font-size: 1.8rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
}

/* Hero Title */
.hero-title {
  font-family: var(--ff-playfair);
  font-size: 7rem;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line {
  display: block;
  animation: titleSlideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
  text-align: center !important;
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes titleSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.arabic .hero-title {
  font-family: var(--ff-arabic);
  line-height: 1.5;
  text-align: center !important;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: var(--fw-normal);
  animation: subtitleFadeIn 1s ease-out 0.9s forwards;
  opacity: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes subtitleFadeIn {
  to {
    opacity: 0.95;
  }
}

body.arabic .hero-subtitle {
  line-height: 2;
  text-align: center !important;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: buttonsFadeIn 1s ease-out 1.2s forwards;
  opacity: 0;
}

@keyframes buttonsFadeIn {
  to {
    opacity: 1;
  }
}

body.arabic .hero-buttons {
  flex-direction: row-reverse;
}

/* Enhanced Button Styles */
.pulse-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 1rem;
  background: linear-gradient(135deg, var(--accent-color), #d4b882);
  border: none;
  box-shadow: 0 10px 30px rgba(187, 163, 110, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 30px rgba(187, 163, 110, 0.4);
  }
  50% {
    box-shadow: 0 15px 40px rgba(187, 163, 110, 0.6);
  }
  100% {
    box-shadow: 0 10px 30px rgba(187, 163, 110, 0.4);
  }
}

.pulse-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

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

.btn-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.pulse-btn:hover .btn-icon {
  transform: translateX(5px);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 1rem;
  text-align: center !important;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.play-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/*!----------------------------S T A T S---------------------------------*/
.stats {
  background-color: var(--white);
  padding: 6rem 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  background-color: var(--accent-color);
  border-radius: var(--radius-10);
}

.stat-number {
  font-family: var(--ff-playfair);
  font-size: 4rem;
  font-weight: var(--fw-bold);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

body.arabic .stat-number {
  text-align: center !important;
}

.stat-label {
  font-size: 1.6rem;
  font-weight: var(--fw-medium);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.arabic .stat-label {
  text-transform: none;
  letter-spacing: normal;
  text-align: center !important;
}

/*!----------------------------A B O U T---------------------------------*/
.about {
  padding: var(--section-padding) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

body.arabic .about-content {
  direction: rtl;
}

.about-features {
  margin: 4rem 0;
}

.feature-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-family: var(--ff-playfair);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.8rem;
  color: var(--dark-gray);
}

body.arabic .feature-content h3 {
  font-family: var(--ff-arabic);
}

.feature-content p {
  color: var(--medium-gray);
  line-height: 1.6;
}

body.arabic .feature-content p {
  line-height: 2;
}

.about-image {
  position: relative;
}

/* .about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--accent-color);
  border-radius: var(--radius-8);
  z-index: -1;
} */

/* body.arabic .about-image::before {
  left: auto;
  right: -20px;
} */

.about-image img {
  border-radius: var(--radius-10);
}

/*!----------------------------P R O J E C T S---------------------------------*/
.projects {
  background-color: var(--light-gray);
  padding: var(--section-padding) 0;
}

.projects .section-title,
.projects .section-subtitle {
  text-align: center !important;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

/*!----------------------------C A T E G O R Y   F I L T E R---------------------------------*/
.category-filter {
  margin-bottom: 5rem;
  text-align: center;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-icon {
  font-size: 2.4rem;
}

.filter-header h3 {
  font-family: var(--ff-playfair);
  font-size: 2.4rem;
  font-weight: var(--fw-bold);
  color: var(--dark-gray);
  margin: 0;
}

body.arabic .filter-header h3 {
  font-family: var(--ff-arabic);
}

.filter-dropdown-container {
  display: flex;
  justify-content: center;
}

.filter-dropdown {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.category-select {
  width: 100%;
  appearance: none;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-8);
  padding: 1.5rem 5rem 1.5rem 2rem;
  font-size: 1.6rem;
  font-weight: var(--fw-medium);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.1);
}

body.arabic .category-select {
  padding: 1.5rem 2rem 1.5rem 5rem;
  text-align: right;
  font-family: var(--ff-arabic);
}

.category-select:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.15);
  transform: translateY(-2px);
}

.category-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1);
  transform: translateY(-2px);
}

.dropdown-arrow {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary-color);
  transition: var(--transition);
}

body.arabic .dropdown-arrow {
  right: auto;
  left: 2rem;
}

.category-select:hover + .dropdown-arrow,
.category-select:focus + .dropdown-arrow {
  color: var(--accent-color);
  transform: translateY(-50%) rotate(180deg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-10);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.project-card.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: calc(50% - 1.5rem);
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  height: calc(50% - 1.5rem);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h3 {
  font-family: var(--ff-playfair);
  font-size: 2.2rem;
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

body.arabic .project-content h3 {
  font-family: var(--ff-arabic);
}

.project-content p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

body.arabic .project-content p {
  line-height: 2;
}

.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

body.arabic .project-meta {
  flex-direction: row-reverse;
}

.project-type,
.project-status {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.arabic .project-type,
body.arabic .project-status {
  text-transform: none;
  letter-spacing: normal;
}

.project-type {
  background-color: var(--primary-color);
  color: var(--white);
}

.project-status {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/*!----------------------------L O A D I N G   &   E M P T Y   S T A T E S---------------------------------*/
.loading-indicator {
  text-align: center;
  padding: 4rem 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: var(--radius-circle);
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  color: var(--medium-gray);
  font-size: 1.6rem;
}

.no-projects {
  text-align: center;
  padding: 6rem 2rem;
  background-color: var(--white);
  border-radius: var(--radius-10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-projects-icon {
  font-size: 6rem;
  margin-bottom: 2rem;
  opacity: 0.5;
  text-align: center !important;
}

.no-projects h3 {
  font-family: var(--ff-playfair);
  font-size: 2.4rem;
  font-weight: var(--fw-bold);
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

body.arabic .no-projects h3 {
  font-family: var(--ff-arabic);
  text-align: center !important;
}

.no-projects p {
  color: var(--medium-gray);
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center !important;
}

body.arabic .no-projects p {
  line-height: 2;
}

/*!----------------------------C O N T A C T---------------------------------*/
.contact {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

body.arabic .contact-content {
  direction: rtl;
}

.contact-details {
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-family: var(--ff-playfair);
  font-size: 1.8rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

body.arabic .contact-text h4 {
  font-family: var(--ff-arabic);
}

.contact-text p {
  color: var(--medium-gray);
  line-height: 1.6;
}

body.arabic .contact-text p {
  line-height: 2;
}

.contact-form-container {
  background-color: var(--light-gray);
  padding: 4rem;
  border-radius: var(--radius-10);
}

.contact-form h3 {
  font-family: var(--ff-playfair);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  margin-bottom: 3rem;
  color: var(--dark-gray);
  text-align: center;
}

body.arabic .contact-form h3 {
  font-family: var(--ff-arabic);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-6);
  font-size: 1.6rem;
  transition: var(--transition);
  background-color: var(--white);
}

body.arabic .form-group input,
body.arabic .form-group select,
body.arabic .form-group textarea {
  text-align: right;
  font-family: var(--ff-arabic);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

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

/*!----------------------------D O W N L O A D S   S E C T I O N---------------------------------*/
.downloads {
  background: linear-gradient(
    135deg,
    var(--light-gray) 0%,
    var(--off-white) 100%
  );
  padding: var(--section-padding) 0;
  position: relative;
}

.downloads::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%236a0dad" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></g></svg>');
  pointer-events: none;
}

.downloads-content {
  position: relative;
  z-index: 1;
}

.downloads-header {
  text-align: center;
  margin-bottom: 6rem;
}

.downloads-header .section-title,
.downloads-header .section-subtitle {
  text-align: center !important;
}

.download-button {
  display: flex;
  justify-content: center;
  margin-bottom: 6rem;
}

.downloads-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-10);
  padding: 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.downloads-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="20" cy="20" r="1"/></g></g></svg>');
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center !important;
}

.cta-content h3 {
  font-family: var(--ff-playfair);
  font-size: 2.8rem;
  font-weight: var(--fw-bold);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center !important;
}

body.arabic .cta-content h3 {
  font-family: var(--ff-arabic);
}

.cta-content p {
  font-size: 1.7rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.95;
  text-align: center !important;
}

body.arabic .cta-content p {
  line-height: 2;
}

.cta-content .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
  background-color: var(--off-white);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/*!----------------------------F O O T E R---------------------------------*/
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 6rem 0 2rem;
}

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

body.arabic .footer-content {
  direction: rtl;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.8rem;
}

body.arabic .footer-brand .brand-name {
  font-family: var(--ff-arabic);
}

.footer-section h4 {
  font-family: var(--ff-playfair);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  margin-bottom: 2rem;
  color: var(--accent-color);
}

body.arabic .footer-section h4 {
  font-family: var(--ff-arabic);
}

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

.footer-section ul li a {
  color: #ccc;
  transition: var(--transition);
}

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

.footer-section p {
  color: #ccc;
  line-height: 1.6;
}

body.arabic .footer-section p {
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center !important;
}

.footer-bottom p {
  color: #999;
  text-align: center !important;
}

/*!----------------------------R E S P O N S I V E---------------------------------*/
@media (max-width: 968px) {
  :root {
    --section-padding: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  body.arabic .nav-menu {
    flex-direction: column;
  }

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

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  .language-toggle {
    margin: 2rem 0 0 0;
  }

  body.arabic .language-toggle {
    margin: 2rem 0 0 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  body.arabic .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 250px;
  }

  .hero-download {
    display: flex;
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-image {
    order: -1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.arabic .about-image {
    order: 1;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-form-container {
    padding: 3rem 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .filter-dropdown {
    max-width: 100%;
  }

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

  .downloads-cta {
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 15px;
    --section-padding: 40px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.6rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .language-toggle {
    margin: 1rem 0 0 0;
  }

  .filter-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-header h3 {
    font-size: 2rem;
  }

  .category-select {
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    font-size: 1.4rem;
  }

  body.arabic .category-select {
    padding: 1.2rem 1.5rem 1.2rem 4rem;
  }

  .dropdown-arrow {
    right: 1.5rem;
  }

  body.arabic .dropdown-arrow {
    right: auto;
    left: 1.5rem;
  }

  /* Mobile Hero Optimizations */
  .hero {
    min-height: 600px;
  }

  .floating-shapes .shape {
    opacity: 0.05;
  }

  .hero-badge {
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    margin-bottom: 5rem;
  }

  .btn-download {
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }

  .btn-download i {
    font-size: 1.6rem;
  }

  .hero-download {
    margin-top: 2rem;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .download-card {
    padding: 2rem;
  }

  .download-icon {
    width: 60px;
    height: 60px;
  }

  .download-icon i {
    font-size: 2.4rem;
  }

  .download-content h3 {
    font-size: 2rem;
  }

  .downloads-cta {
    padding: 2rem 1.5rem;
  }

  .cta-content h3 {
    font-size: 2.4rem;
  }

  .cta-content p {
    font-size: 1.5rem;
  }
}

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

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header {
  text-align: center;
}

[dir="rtl"] .hero-buttons {
  justify-content: center;
}

[dir="rtl"] .stats-grid {
  text-align: center;
}

[dir="rtl"] .downloads-header {
  text-align: center;
}

[dir="rtl"] .downloads-cta {
  text-align: center;
}

/* Smooth transitions for language switching */
body,
.nav-container,
.hero-content,
.about-content,
.contact-content,
.footer-content,
.downloads-content {
  transition: var(--transition);
}
