/* الأساسيات */
:root {
  --primary-color: #9c27b0;
  --secondary-color: #673ab7;
  --dark-color: #212121;
  --light-color: #f5f5f5;
  --text-color: #333;
  --text-light: #777;
}

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

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

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

/* الهيدر */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.nav-links {
  display: flex;
}

.nav-links li {
  margin-right: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

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

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

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* الهيرو سيكشن */
.hero-section {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* الأقسام العامة */
.content-section {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

/* قسم من أنا */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.bio-details h3 {
  margin: 1.5rem 0 1rem;
  color: var(--secondary-color);
}

.bio-details li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.bio-details li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  right: 0;
}

/* قسم أعمالي - معدل لصور كاملة الحجم */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.work-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
}

.work-item img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.work-item-content {
  padding: 1.5rem;
}

.work-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.work-item p {
  color: var(--text-light);
}

/* معرض الصور - معدل لصور كاملة الحجم */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.video-item {
  grid-column: span 2;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* قسم التواصل
/* قسم التواصل */
.instagram-contact {
  text-align: center;
  margin-top: 2rem;
}

.instagram-contact a {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: color 0.3s;
}

.instagram-contact a:hover {
  color: #e1306c;
}

.instagram-contact i {
  margin-left: 0.5rem;
  font-size: 1.5rem;
}

/* الفوتر */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}
/* التنسيق للهاتف */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    background-color: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    clip-path: circle(0px at 90% -10%);
    transition: all 0.5s ease-out;
    pointer-events: none;
  }

  .nav-links.active {
    clip-path: circle(1000px at 90% -10%);
    pointer-events: all;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .burger {
    display: block;
  }

  .burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.active .line2 {
    opacity: 0;
  }

  .burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-container {
    flex-direction: column;
  }

  .works-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-item {
    grid-column: span 1;
  }

  .work-item img,
  .gallery-grid img {
    max-height: 400px;
  }

  .footer-content {
    flex-direction: column;
  }

  .social-links {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .content-section h2 {
    font-size: 1.8rem;
  }
  
  .work-item img,
  .gallery-grid img {
    max-height: 300px;
  }
}