/* الألوان الرئيسية */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --accent-color: #3498db;
  --background-color: #f5f5f5;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #1a1a1a;
  --gray-color: #cccccc;
  --footer-color: #2c3e50;
}

/* إعادة ضبط عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* زر الاتصال */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

/* شريط التنقل */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
}

.nav-item {
  margin-right: 20px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
  transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-info {
  display: flex;
  align-items: center;
}

.phone-number {
  margin-left: 15px;
  font-weight: bold;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* قسم الترحيب */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  margin-top: 0;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.hero-btns {
  animation: fadeIn 1.5s ease;
}

/* قسم الخدمات */
.services {
  background-color: var(--light-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

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

/* قسم من نحن */
.about {
  background-color: var(--background-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-content p {
  margin-bottom: 20px;
}

/* قسم معرض الأعمال */
.portfolio {
  background-color: var(--light-color);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 5px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-title {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-category {
  color: var(--secondary-color);
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
  transform: translateY(0);
}

/* قسم الشهادات */
.testimonials {
  background-color: var(--background-color);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--light-color);
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: relative;
}

.testimonial-card::before {
  content: '\201D';
  font-size: 5rem;
  color: var(--secondary-color);
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-left: 15px;
}

.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* قسم الاتصال */
.contact {
  background-color: var(--light-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-container h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-left: 15px;
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.map-container {
  margin-top: 50px;
  height: 400px;
  border-radius: 5px;
  overflow: hidden;
}

/* تذييل الصفحة */
.footer {
  background-color: var(--footer-color);
  color: var(--light-color);
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  right: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-color);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-left: 10px;
  color: var(--secondary-color);
}

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

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* التصميم المتجاوب */
@media screen and (max-width: 992px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  .navbar-container {
    padding: 0 20px;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--light-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .contact-info {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .portfolio-filter {
    flex-wrap: wrap;
  }
  
  .filter-btn {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* الرسوم المتحركة */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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