/* تنسيق عام */
:root {
  --primary-color: #FF7700;
  --secondary-color: #2C3E50;
  --accent-color: #FFA500;
  --background-color: #FFFFFF;
  --text-color: #333333;
  --light-gray: #f8f9fa;
  --dark-gray: #495057;
  --border-color: #e0e0e0;
  --section-bg: #F7FBFC;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Almarai', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* قائمة التنقل */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 10px;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar-item a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

.navbar-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-item a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* رأس الصفحة */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/background.jpg') center/cover;
  opacity: 0.2;
  z-index: 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.logo-container h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
}

.slogan {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.3s both;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeIn 1s ease 0.6s both;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--dark-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* الأقسام */
.section {
  padding: 7rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--section-bg);
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1.5rem;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* قسم من نحن */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* قسم ساعات العمل */
.hours-content {
  display: flex;
  justify-content: center;
}

.hours-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.hours-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 1.2rem;
  text-align: right;
  font-size: 1.1rem;
}

.hours-table td:last-child {
  text-align: left;
  font-weight: bold;
  color: var(--primary-color);
}

.hours-highlight {
  background-color: var(--accent-color);
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: bold;
}

/* قسم كيفية الطلب */
.order-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.order-method {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 2.5rem;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.order-method:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: white;
}

.order-method:hover::before {
  opacity: 1;
}

.order-method:hover i,
.order-method:hover h3 {
  color: white;
}

.order-method i {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.order-method h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.order-method p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.order-method .btn {
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.order-method:hover .btn {
  opacity: 1;
  transform: translateY(0);
}

/* قسم معلومات الاتصال */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* قسم وسائل التواصل الاجتماعي */
.social-content {
  text-align: center;
}

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

.social-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-10px) rotate(360deg);
  background-color: var(--secondary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.social-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* تذييل الصفحة */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 1rem;
}

.footer-link a {
  color: white;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-link a:hover {
  color: var(--primary-color);
}

.footer-link a:hover::after {
  width: 100%;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--primary-color);
  margin-left: 1rem;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* زر العودة للأعلى */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* إشعار ملفات تعريف الارتباط */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1001;
  display: flex;
  justify-content: center;
}

.cookie-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
  margin: 0;
}

.cookie-link {
  color: var(--primary-color);
  margin-left: 1rem;
  text-decoration: underline;
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .navbar-menu.active {
    transform: translateY(0);
  }

  .navbar-toggle {
    display: block;
  }

  .logo-container h1 {
    font-size: 2.5rem;
  }

  .slogan {
    font-size: 1.2rem;
  }

  .header-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .about-image {
    order: -1;
  }

  .feature,
  .order-method {
    min-width: 100%;
  }

  .social-icons {
    gap: 1rem;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  /* تحسين المسافات بين الأقسام في الهاتف */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    margin-bottom: 2rem;
  }
  
  .about-features {
    margin-top: 2rem;
    gap: 1.5rem;
  }
  
  .feature {
    padding: 1.5rem;
  }
  
  .order-content {
    gap: 1.5rem;
  }
  
  .order-method {
    padding: 2rem;
  }
  
  .social-icons {
    margin-bottom: 2rem;
  }
}

/* تحريك العناصر */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.fade-in {
  animation: fadeIn 1s ease both;
}

.fade-in-up {
  animation: fadeInUp 1s ease both;
}

.fade-in-down {
  animation: fadeInDown 1s ease both;
}

/* تأثيرات إضافية */
.text-shadow-effect {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pulse-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.icon-rotate:hover {
  animation: rotate 0.5s ease;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.zoom-on-hover:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.border-animation {
  position: relative;
}

.border-animation::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.border-animation:hover::after {
  width: 100%;
}

.gradient-animation {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient 3s linear infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(255, 149, 0, 0.2);
  z-index: -1;
  transform: skewX(-15deg);
}

/* تحسينات إضافية للهواتف المحمولة */
@media (max-width: 480px) {
  .logo-container h1 {
    font-size: 2rem;
  }

  .slogan {
    font-size: 1rem;
  }

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

  .hours-card {
    padding: 2rem;
  }

  .hours-table td {
    padding: 1rem;
    font-size: 1rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-left: 1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}
