@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');
@import url('video-portfolio.css');
@import url('whatsapp.css');

:root {
  /* Corporate Palette - Light Theme */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  /* Ultra light gray for sections */
  --color-bg-accent: #f1f5f9;

  --color-text-primary: #1f2937;
  /* Charcoal */
  --color-text-secondary: #6b7280;
  /* Cool Gray */
  --color-text-light: #9ca3af;

  --color-brand-primary: #111827;
  /* Deep Navy/Black */
  --color-brand-accent: #64748b;
  /* Slate Blue - Subtle */

  --color-border: #e5e7eb;

  /* Typography */
  --font-main: 'Cairo', sans-serif;

  /* Spacing & Layout */
  --spacing-container: 1140px;
  /* Slightly tighter for text readability */
  --spacing-section: 6rem;
  /* Standard Generous Spacing */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-primary);
  /* Harmonious Gradient Background - Slightly more visible */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  line-height: 1.8;
  /* Elegant line height */
  overflow-x: hidden;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-brand-primary);
  line-height: 1.3;
  font-weight: 700;
}

/* Cinematic Backgrounds */
.bg-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 244, 246, 0.8) 100%), url('../assets/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-services {
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)), url('../assets/bg-services.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-about {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url('../assets/bg-about.jpg');
  background-size: cover;
  background-position: center;
}

p {
  color: var(--color-text-secondary);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  /* Slightly rounded, almost sharp */
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: white;
  border: 1px solid var(--color-brand-primary);
}

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  /* Transparent fill */
  border: 1px solid var(--color-text-secondary);
  color: var(--color-text-primary);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
  background: white;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  /* More transparent */
  backdrop-filter: blur(20px);
  /* Stronger blur */
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.menu-btn {
  display: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-brand-primary);
}

/* Minimal Card */
/* Minimal Card with Glassmorphism */
.card {
  background: rgba(255, 255, 255, 0.65);
  /* Semi-transparent */
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  /* Glass effect */
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
  /* Very subtle shadow */
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.85);
  /* Whiter on hover */
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

.card-icon {
  font-size: 2rem;
  color: var(--color-brand-accent);
  margin-bottom: 1.5rem;
  display: block;
}

/* Hero Buttons - Responsive & Unified Design */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  /* مسافة واضحة ومتناسقة بين الأزرار */
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-buttons .btn {
  /* توحيد العرض والارتفاع لجميع الأزرار */
  min-width: 200px;
  max-width: 250px;
  padding: 1rem 2.5rem;
  margin: 0;
  /* إلغاء أي margins خارجية */
  white-space: nowrap;
  /* منع تكسر النص */
  flex: 0 1 auto;
  /* عدم التمدد أكثر من اللازم */
}

/* استجابة للشاشات المتوسطة (Tablets) */
@media (max-width: 992px) {
  .hero-buttons .btn {
    min-width: 180px;
    max-width: 220px;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
}

/* استجابة للموبايل - تحويل الأزرار لعمود واحد */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    /* الأزرار تحت بعض */
    gap: 1rem;
    /* مسافة مريحة بين الأزرار */
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    /* عرض كامل على الموبايل */
    max-width: 100%;
    min-width: auto;
    padding: 1rem 2rem;
  }
}

/* استجابة للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .hero-buttons .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  background: #f3f4f6;
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Contact Cards */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--color-text-primary);
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
}

.contact-card i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.contact-card:hover i {
  transform: scale(1.1);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Brand Colors */
.contact-card.instagram i {
  color: #E1306C;
}

/* Responsive Design */
@media (max-width: 768px) {

  /* Header & Nav */
  /* Header & Nav */
  nav {
    flex-direction: row;
    justify-content: space-between;
    height: 70px;
    padding: 0;
    position: relative;
  }

  .menu-btn {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-brand-primary);
    z-index: 1001;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    text-align: center;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  nav .btn {
    display: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    text-align: center;
  }

  .logo {
    margin-bottom: 0.5rem;
  }

  /* Typography */
  h1 {
    font-size: 2rem !important;
  }

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

  /* Layout */
  .container {
    padding: 0 1.5rem;
  }

  .contact-wrapper {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  footer {
    padding: 3rem 0;
  }


  footer .social-links {
    gap: 1.5rem;
  }
}

/* Partners Section */
.partners-section {
  padding: var(--spacing-section) 0;
  background-color: var(--color-bg-primary);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.partner-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 180px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partner-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: grayscale(100%);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-accent);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1) translateY(-5px);
}

.partner-card:hover .partner-name {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .partners-grid {
    gap: 1.5rem;
  }

  .partner-card {
    width: 160px;
    height: 150px;
  }

  .partner-logo {
    height: 50px;
  }
}