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

/* Remove default outline and use box-shadow for focus (respects border-radius) */
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.contact-item-clickable
[role="button"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
.btn:focus,
.contact-item-clickable
[role="button"]:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

:root {
  --primary-red: #dc2626;
  --dark-red: #991b1b;
  --light-red: #ef4444;
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--black);
  overflow-x: hidden;
  background: var(--white);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.rtl {
  direction: rtl;
  font-family: "Tajawal", "Inter", sans-serif;
}

/* Allow text selection for form inputs and editable content */
input,
textarea,
[contenteditable="true"],
[contenteditable],
pre,
code {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* .logo {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
} */

.logo-image {
  width: 50px;
  height: 50px;
  margin-bottom: -0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-red);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

/* RTL support for Arabic - underline starts from right */
.rtl .nav-links a::after {
  left: auto;
  right: 0;
}

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

/* Active navigation item */
.nav-links a.active {
  color: var(--primary-red);
}

.nav-links a.active::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
}

.lang-btn {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--gray);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 2rem;
  animation: fadeInUp 1s ease;
}

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

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-title span,
.section-title span {
  background: linear-gradient(90deg, var(--primary-red), var(--light-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-buttons, .testimonials-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonials-buttons {
  margin-top: 25px;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--light-red));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

/* Animated Background */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.5;
}

@keyframes float {
  from {
    transform: translateY(100vh) translateX(0);
  }
  to {
    transform: translateY(-100vh) translateX(100px);
  }
}

/* Section Styles */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

/* About Section */
#about {
  background: var(--light-gray);
}

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

.about-text {
  font-size: 1.1rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

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

.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-red);
}

.stat-label {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red), var(--light-red));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
}

.service-description {
  color: var(--gray);
  line-height: 1.6;
}

/* Portfolio Section */
#portfolio {
  background: var(--light-gray);
  padding: 2rem 0.5rem;
}

.portfolio-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0 0.5rem;
}

/* Swap button order in RTL mode to match swapped functionality */
body.rtl .portfolio-nav-left {
  order: 3;
}

body.rtl .portfolio-nav-right {
  order: 1;
}

body.rtl .portfolio-container {
  order: 2;
}

.portfolio-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 1.5rem;
}

.portfolio-slider {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.portfolio-item {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
  z-index: 5;
  position: relative;
}

.portfolio-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary-red);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.portfolio-nav-btn:hover:not(:disabled) {
  background: var(--primary-red);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.portfolio-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.portfolio-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.portfolio-nav-btn:disabled:hover {
  background: var(--white);
  color: var(--primary-red);
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-nav-btn.hidden {
  display: none;
}

.portfolio-image {
  height: 250px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
}

.portfolio-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  flex: 1;
}

.portfolio-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}

.tech-tag {
  background: var(--light-gray);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Founder Section */
#founder {
  background: var(--white);
  padding: 4rem 1rem;
}

.founder-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.founder-avatar {
  margin-bottom: 1rem;
}

.avatar-circle {
  height: 240px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.founder-content {
  max-width: 600px;
}

.founder-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--dark-gray);
}

.founder-role {
  font-size: 1.2rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.founder-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
  text-align: center;
}

/* Testimonials */
#testimonials {
  background: var(--light-gray);
  padding: 2rem 0.5rem;
}

.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0 0.5rem;
}

/* Swap button order in RTL mode to match swapped functionality */
body.rtl .testimonial-nav-left {
  order: 3;
}

body.rtl .testimonial-nav-right {
  order: 1;
}

body.rtl .testimonials-container {
  order: 2;
}

.testimonials-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.testimonials-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary-red);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.testimonial-nav-btn:hover:not(:disabled) {
  background: var(--primary-red);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.testimonial-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.testimonial-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.testimonial-nav-btn:disabled:hover {
  background: var(--white);
  color: var(--primary-red);
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn.hidden {
  display: none;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--black);
}

.author-company {
  color: var(--gray);
  font-size: 0.9rem;
}

.quote-icon {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  color: var(--primary-red);
  opacity: 0.2;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-clickable {
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border-radius: 10px;
}

.contact-item-clickable:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* Ensure phone numbers display correctly in all languages */
.contact-phone {
  direction: ltr;
  text-align: left;
  unicode-bidi: bidi-override;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-red), var(--light-red));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.contact-form .char-counter {
  text-align: right;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.contact-form .char-counter .char-count {
  font-weight: 600;
}

.contact-form .char-counter .char-count.warning {
  color: #ff9800;
}

.contact-form .char-counter .char-count.error {
  color: var(--primary-red);
}

.colored-checkbox {
  accent-color: var(--primary-red);
  height: 20px;
  width: 20px;
  vertical-align: sub;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 38px;
  height: 42px;
  background: var(--dark-gray);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-red);
  transform: translateY(-5px);
}

.footer-text {
  color: var(--gray);
  padding-top: 2rem;
  border-top: 1px solid var(--dark-gray);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.animate {
  animation: hamburgerSlide 0.5s ease;
}

/* RTL support - slide left instead of right */
body.rtl .mobile-menu-toggle.animate {
  animation: hamburgerSlideRTL 0.5s ease;
}

@keyframes hamburgerSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes hamburgerSlideRTL {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

.hamburger {
  width: 30px;
  height: 3px;
  background: var(--black);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--black);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -10px;
}

.hamburger::after {
  bottom: -10px;
}

.red-fa-icon {
  color: var(--primary-red);
}

.white-fa-icon {
  color: var(--white);
}

.social-fa-icon {
  font-size: 3rem;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  section {
    padding: 4rem 1.5rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .testimonial-card,
  .portfolio-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

/* Tablets */
@media (max-width: 768px) {
  #navbar {
    direction: rtl;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  /* RTL (Arabic) mobile navigation - slide from right */
  .rtl .nav-links {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
  }

  .rtl .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .lang-switcher {
    margin-top: 1rem;
    justify-content: center;
  }

  section {
    padding: 3rem 1rem;
  }

  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .portfolio-wrapper,
  .testimonials-wrapper {
    padding: 0;
    gap: 0.5rem;
  }

  .portfolio-nav-btn,
  .testimonial-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .founder-container {
    padding: 0 1rem;
  }
  
  .avatar-circle {
    height: 240px;
  }

  .cta-buttons, .testimonials-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .testimonials-buttons {
    margin: 20px 20px 0 20px;
  }

  .btn {
    width: 100%;
    padding: 1rem 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonials-wrapper {
    gap: 0.5rem;
  }

  .portfolio-content {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 650px) {
  #navbar {
    direction: rtl;
  }

  .testimonial-card,
  .portfolio-item {
    flex: 0 0 100%;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  #navbar {
    direction: rtl;
  }

  .portfolio-wrapper {
    padding: 0;
  }
  
  .portfolio-container {
    padding: 1.5rem 0;
  }

  .portfolio-item:hover {
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
  }
  
  .testimonials-wrapper {
    padding: 0;
  }

  body:not(.rtl) .nav-container {
    padding: 0 0.8rem 0 1.5rem;
  }

  body.rtl .nav-container {
    padding: 0 1.5rem 0 0.8rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 0.5rem;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

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

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

  .founder-container {
    padding: 0 0.5rem;
  }
  
  .avatar-circle {
    height: 200px;
  }
  
  .founder-name {
    font-size: 1.5rem;
  }
  
  .founder-description {
    font-size: 1rem;
  }

  .service-card {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 1rem;
    flex: 0 0 100%;
  }

  .portfolio-item {
    flex: 0 0 100%;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .contact-form {
    padding: 0;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .lang-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
  }

  .nav-links {
    padding: 1rem;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    width: 100%;
  }
}

/* Review Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 2.5rem;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary-red);
}

.modal-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-form .form-group label {
  font-weight: 600;
  color: var(--black);
}

.review-form .form-group input,
.review-form .form-group textarea {
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.review-form .form-group input:focus,
.review-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

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

.review-form .btn {
  margin-top: 0.5rem;
}

.char-counter {
  text-align: right;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.char-counter .char-count {
  font-weight: 600;
}

.char-counter .char-count.warning {
  color: #ff9800;
}

.char-counter .char-count.error {
  color: var(--primary-red);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
  }
}
