@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
  height: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 70px; /* إضافة padding للهيدر الثابت */
  background: #fafafa;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* General styles for header, nav, footer removed to avoid conflicts */
/* General nav styles removed to avoid conflicts with header-specific styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 0;
  color: #181818;
}
h1 {
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 0.06em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}
p, label, input, textarea, select, button {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.container {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 1rem;
  flex: 1;
}
.grid {
  display: grid;
  gap: 2rem;
}
.btn {
  background: #222;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn:hover {
  background: #444;
}
input, textarea, select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Header and Navigation Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 0;
  min-height: 100px;
  display: flex;
  align-items: center;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1.5rem 2rem;
  width: 100%;
}
.header-flex h1 {
  flex: 1;
  text-align: left;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 700;
  margin: 0;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #fff;
}
nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: #f5c518;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5c518;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: #181818;
  color: #fff;
  box-shadow: -2px 0 16px #0005;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar a {
  margin: 0.7rem 0;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.sidebar a:hover {
  color: #ff4081;
}
.close-sidebar {
  background: none;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 1.5rem;
  cursor: pointer;
  color: #fff;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 1001;
}
.sidebar.open ~ .sidebar-overlay {
  display: block;
}

/* Footer Styles */
footer {
  background: #181818;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 700px) {
  .footer-links {
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer-links a {
    display: block !important;
  }
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #f5c518;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 700px) {
  html, body {
    overflow-x: hidden !important;
    padding-top: 55px; /* تقليل padding للجوال - يلاصق الهيرو بالهيدر */
  }
  
  header {
    padding: 0;
    min-height: 55px;
  }
  
  .header-flex {
    padding: 1rem 1rem;
  }
  
  .header-flex h1 {
    text-align: left;
    font-size: 1.5rem;
  }
  
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}
body.sidebar-open {
  overflow: hidden !important;
}

/* Social Media Icons - Fixed Instagram Icon */
.footer-social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.footer-social a:hover svg {
  transform: scale(1.1);
}

/* Instagram Icon Fix */
.instagram-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* تحسين الروابط الاجتماعية للجوال */
.footer-social a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* تحسين خاص لأيقونة الإنستغرام */
.footer-social a[aria-label="Instagram"] {
  position: relative;
  z-index: 10;
}

.footer-social a[aria-label="Instagram"]:active {
  transform: scale(0.95);
}

/* تحسين إضافي للروابط في الجوال */
@media (max-width: 768px) {
  .footer-social a {
    padding: 8px;
    margin: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
  }
  
  .footer-social a:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
  }
  
  .footer-social a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
  }
  
  .footer-social a[aria-label="Instagram"]:active {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #f09433 100%);
    transform: scale(0.85);
  }
}

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

/* TikTok Icon Fix */
.tiktok-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* تطبيق موحد لأيقونات الفوتر في جميع الصفحات */
.footer-social .instagram-icon,
.footer-social .tiktok-icon {
  width: 28px !important;
  height: 28px !important;
  fill: currentColor !important;
  transition: opacity 0.2s ease !important;
}

.footer-social a:hover .instagram-icon,
.footer-social a:hover .tiktok-icon {
  opacity: 0.7 !important;
}

/* تطبيق عام لجميع أيقونات SVG في الفوتر */
.footer-social svg {
  width: 28px !important;
  height: 28px !important;
  fill: currentColor !important;
  transition: opacity 0.2s ease !important;
}

.footer-social a:hover svg {
  opacity: 0.7 !important;
}

/* إصلاح أيقونات الفوتر للجوال - تطبيق موحد */
@media (max-width: 768px) {
  .footer-social .instagram-icon,
  .footer-social .tiktok-icon {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    transition: fill 0.2s ease !important;
  }
  
  .footer-social a:hover .instagram-icon,
  .footer-social a:hover .tiktok-icon {
    opacity: 0.7 !important;
  }
  
  /* إزالة التأثيرات الخاصة للإنستغرام في الجوال */
  .footer-social a[aria-label="Instagram"] {
    background: transparent !important;
    animation: none !important;
  }
  
  .footer-social a[aria-label="Instagram"]:active {
    background: transparent !important;
    transform: scale(0.95) !important;
  }
  
  /* ضمان ظهور الأيقونات بنفس الحجم في الجوال */
  .footer-social svg {
    width: 28px !important;
    height: 28px !important;
    fill: currentColor !important;
  }
  
  .footer-social a:hover svg {
    opacity: 0.7 !important;
    transform: none !important;
  }
  
  /* إزالة جميع التأثيرات الخاصة في الجوال */
  .footer-social a {
    background: transparent !important;
    animation: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .footer-social a:active {
    background: transparent !important;
    transform: scale(0.95) !important;
  }
  
  /* ضمان ظهور الأيقونات بنفس التصميم في الجوال */
  .footer-social .instagram-icon,
  .footer-social .tiktok-icon {
    width: 28px !important;
    height: 28px !important;
    fill: currentColor !important;
    transition: fill 0.2s ease !important;
  }
  
  .footer-social a:hover .instagram-icon,
  .footer-social a:hover .tiktok-icon {
    opacity: 0.7 !important;
  }
} 