* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Cairo", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Top Bar - Glassmorphism Style */

.top-bar {
  position: sticky;
  top: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  color: #cbd5e1;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.nav-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  opacity: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-phone {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.top-phone:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(139, 92, 246, 0.5);
}

.lang-toggle span {
  opacity: 0.5;
  transition: all 0.3s ease;
}

body.lang-ar .lang-ar-label {
  opacity: 1;
  color: #8b5cf6;
}

body.lang-en .lang-en-label {
  opacity: 1;
  color: #8b5cf6;
}

/* Hero Section - full-width with blurred background image */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 3.5rem 2rem;
  border-radius: 24px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100vh - 150px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.65)),
    url("pics/WhatsApp Image 2026-01-03 at 7.19.11 PM.jpeg") center/cover no-repeat;
  filter: blur(10px);
  transform: scale(1.05);
  transform-origin: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  display: block;
  font-size: 1em;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid rgba(139, 92, 246, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 600;
  color: #c4b5fd;
  transition: all 0.3s ease;
}

.hero-tags span:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-link {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.instagram {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.1);
}

.social-link.instagram:hover {
  border-color: #ec4899;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.social-link.tiktok {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.social-link.tiktok:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.hero-media {
  position: relative;
  display: grid;
  gap: 1rem;
  z-index: 2;
}

.hero-main-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-main-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-main-image:hover::before {
  opacity: 1;
}

.hero-main-image img {
  transform: scale(1);
  transition: transform 0.8s ease;
}

.hero:hover .hero-main-image img {
  transform: scale(1.08);
}

.hero-secondary-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-secondary-images > div {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-secondary-images > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.2);
}

.hero-secondary-images img {
  transition: transform 0.5s ease;
}

.hero-secondary-images > div:hover img {
  transform: scale(1.1);
}

/* Sections */

.section {
  margin-top: 5rem;
  animation: fadeInUp 0.8s ease both;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  color: #e2e8f0;
}

.card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
}

.keywords {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.4);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(8px);
}

.keywords h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #e2e8f0;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.keywords-cloud span {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
}

.keywords-cloud span:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 1;
  transition: all 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(139, 92, 246, 0.3);
}

.gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.contact-main {
  border-radius: 24px;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.contact-item + .contact-item {
  margin-top: 1.5rem;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.contact-note {
  border-radius: 24px;
  padding: 2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.contact-note p + p {
  margin-top: 1rem;
}

.footer {
  margin-top: 5rem;
  padding-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reveal animations */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* English mode adjustments */

body.lang-en {
  direction: ltr;
}

body.lang-en .hero,
body.lang-en .services-grid,
body.lang-en .gallery-grid,
body.lang-en .contact-grid {
  direction: ltr;
}

/* Responsive Design */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .section {
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem;
  }

  .top-bar {
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}