/* ===== CSS Variables ===== */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-1: #ff6b35;
  --accent-2: #f7c94b;
  --accent-3: #7c3aed;
  --accent-4: #06b6d4;
  --text: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.6);
  --font-display: 'Syne', 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Animated Background ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 107, 53, 0.15), transparent),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(6, 182, 212, 0.12), transparent);
  opacity: 0.8;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.bg-blobs {
  position: absolute;
  inset: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-3);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-1);
  bottom: 10%;
  left: -5%;
  animation-delay: -5s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-4);
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: var(--accent-2);
  top: 60%;
  right: 20%;
  animation-delay: -7s;
}

.blob-5 {
  width: 200px;
  height: 200px;
  background: var(--accent-3);
  top: 20%;
  left: 60%;
  animation-delay: -12s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

.bg-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Logo - Menu - Right Actions */
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.7);
  /* Consistent with always blurred request, but keeping scrolled class just in case */
  backdrop-filter: blur(20px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

.btn-nav-cta {
  padding: 0.6rem 1.2rem;
  background: var(--text);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 8rem;
  position: relative;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex-shrink: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0.6s;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg-dark);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.4);
}

.hero-slider-dots {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.hero-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-slider-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-slider-dots .dot.active {
  background: var(--accent-1);
  transform: scale(1.3);
}

/* Hero Projects Slider (under hero - agency-showcase style) */
.hero-projects-slider {
  position: relative;
  margin-top: 4rem;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 0;
}

.hero-projects-track {
  overflow: hidden;
}

.hero-projects-inner {
  display: flex;
  gap: 1.25rem;
  padding: 0 2rem;
  animation: heroProjectsScroll 40s linear infinite;
}

.hero-projects-inner:hover {
  animation-play-state: paused;
}

@keyframes heroProjectsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hero-project-card {
  flex: 0 0 280px;
  width: 280px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.hero-project-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-project-card {
  position: relative;
}

.btn-nav {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

/* ===== Section Common ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent-2);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Services ===== */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent-1);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Portfolio - Uniform Grid (same size/height, high quality) ===== */
.portfolio {
  padding: 6rem 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 107, 53, 0.2);
  border-color: var(--accent-1);
  color: var(--text);
}

.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-item-img {
  transform: scale(1.08);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-category {
  font-size: 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.portfolio-item-view {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== Contact (agency-showcase structure) ===== */
.contact {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info .section-tag {
  display: block;
  margin-bottom: 0.75rem;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-detail a,
.contact-detail span {
  color: var(--text);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--accent-1);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: rgba(20, 20, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: 85vh;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.modal-iframe-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Load More Button */
.portfolio-actions {
  text-align: center;
  margin-top: 4rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-1);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-load-more.hidden {
  display: none;
}

/* Modal Visit Button */
.modal-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg-dark);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
  color: var(--bg-dark);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* Header Blur Always */
.nav {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  /* Example Arabic font fallback */
}

/* Import Arabic Font if needed, e.g. Cairo or Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .nav-links {
  margin: 0;
  /* Reset margin */
}

[dir="rtl"] .nav-right {
  justify-self: end;
  /* In RTL grid, end is left */
}

[dir="rtl"] .lang-switch {
  margin: 0;
}

[dir="rtl"] .blob-1 {
  left: -5%;
  right: auto;
}

[dir="rtl"] .blob-2 {
  right: -5%;
  left: auto;
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .portfolio-actions {
  text-align: center;
  /* Keep center elements centered */
}

[dir="rtl"] .contact-info .section-title,
[dir="rtl"] .contact-desc {
  text-align: right;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1rem;
}

/* Mobile RTL */
@media (max-width: 768px) {
  /* RTL specific overrides if any */
  [dir="rtl"] .nav-toggle {
    margin-left: 0;
    margin-right: 1rem;
  }
  [dir="rtl"] .contact-info {
    text-align: center;
  }
}

/* ===== Footer ===== */
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a, .footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--accent-1);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer-desc {
    margin: 0 auto;
  }
  .footer-links, .footer-social {
    align-items: center;
  }
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-links {
    flex: 1 1 100%;
    display: none; /* hidden by default */
    flex-direction: column;
    padding-top: 2rem;
    gap: 1.5rem;
    order: 3;
    text-align: center;
  }

  .nav-right {
    flex: 1 1 100%;
    display: none; /* hidden by default */
    flex-direction: column;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
    order: 4;
  }

  .nav.menu-open {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    height: 100vh;
    align-items: flex-start;
  }

  .nav.menu-open .nav-links,
  .nav.menu-open .nav-right {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.3s, opacity 0.3s; }

  /* Typography & Hero */
  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-slider-dots {
    margin-top: 2rem;
  }

  .hero-project-card {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
  }

  .hero-projects-slider {
    margin-top: 2.5rem;
  }

  /* Portfolio Grid */
  .portfolio-bento {
    grid-template-columns: 1fr;
  }
  .portfolio-item:nth-child(n) {
    grid-column: span 1 !important;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* About Section */
  .about {
    padding: 4rem 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    text-align: center;
  }
  .stat {
    align-items: center;
  }

  /* Services */
  .services {
    padding: 4rem 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 1.5rem;
  }

  /* Contact */
  .contact {
    padding: 4rem 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info .section-title {
    text-align: center;
  }
  [dir="rtl"] .contact-info .section-title {
    text-align: center;
  }
  .contact-info {
    text-align: center;
  }
  .contact-details {
    align-items: center;
  }
}

