/* styles.css */

/* Reset */
body, h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    padding-top: 80px; /* تعويض مساحة الشريط واللوجو المثبت */
}

/* Navbar */
nav {
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    position: fixed; /* جعل الشريط ثابت */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #ffffff;
}

/* Hero Section */
#hero {
    background-color: #1e1e1e;
    text-align: center;
    padding: 50px 20px;
}

#hero h1 {
    font-size: 36px;
    color: #ffffff;
}

#hero p {
    font-size: 18px;
    color: #bbbbbb;
}

/* Project Gallery */
.project-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1);
}

.project-card img {
    width: 100%;
    height: auto;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #cccccc;
}

/* About Section */
#about {
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.about-description {
    text-align: center;
    font-size: 18px;
    color: #aaaaaa;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيق صفحة الخدمات */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* تنسيق الهيدر */
.header {
    text-align: center;
    margin-top: 50px;
}

/* تنسيق الحاوية التي تحتوي على الخدمات */
.service-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
}

/* تنسيق قسم الخدمات */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 70%;
    max-width: 1000px;
}

/* تنسيق كل خدمة */
.service-item {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

/* تنسيق العنوان داخل كل خدمة */
.service-item h2 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #50fa7b;
}

/* تنسيق النص داخل كل خدمة */
.service-item p {
    font-size: 18px;
    line-height: 1.6;
}

/* تنسيق الفوتر */
footer {
    text-align: center;
    margin-top: 20px;
    color: #bbbbbb;
    background-color: #1e1e1e;
}

/* تنسيق المحتوى داخل قسم التواصل */
.contact-content {
    text-align: center;
    animation: slideUp 1s ease-out;
}

.contact-content h1 {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* تنسيق رابط إنستغرام */
.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #2e0110;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.instagram-link:hover {
    background-color: #640039;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.instagram-icon {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(70px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Blog Page */
.blog-header {
    text-align: center;
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 20px;
}

.blog-header h1 {
    font-size: 36px;
}

.search-container {
    text-align: center;
    margin-top: 20px;
}

.search-container input {
    padding: 10px;
    width: 50%;
    font-size: 16px;
    border: 2px solid #444444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

.categories {
    background-color: #1a1a1a;
    padding: 20px;
    margin-top: 20px;
}

.categories h2 {
    font-size: 24px;
}

.categories ul {
    list-style-type: none;
    padding: 0;
}

.categories ul li {
    margin: 10px 0;
}

.categories ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 18px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.post {
    background-color: #292929;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

.post h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post p {
    font-size: 18px;
}

.read-more {
    color: #50fa7b;
    font-size: 16px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Logo Container */
.logo-container {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1100;
}

.logo-container img {
    width:45px;
    height: auto;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#contact-us {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 5px 0;
    text-align: center;
    margin-top: 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: #50fa7b;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #cccccc;
}

.contact-link img {
    width: 20px;
    height: 20px;
}

#testimonials {
  padding: 60px 20px;
  background: #232323;
  text-align: center;
}

#testimonials h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.testimonial-card {
  background: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease-in-out;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-card h3 {
  margin: 10px 0 5px;
  color: #333;
}

.testimonial-card p {
  color: #555;
  margin-bottom: 10px;
}

.stars {
  color: gold;
  font-size: 20px;
}

.fade-in-up {
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
