/* أنماط عامة */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00aaff;
  --accent-color: #00ccff;
  --dark-color: #0a192f;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.aqua {
  color: var(--accent-color);
}

/* الهيدر */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 170, 255, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 15px 5%;
  box-shadow: 0 5px 30px rgba(0, 170, 255, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  font-weight: 500;
  font-size: 18px;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent-color);
}

/* قسم البطل */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 180px 5% 100px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-color) 0%, #112240 100%);
  color: white;
}

.hero-text {
  flex: 1;
  padding-right: 50px;
  animation: fadeInLeft 1s ease;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccd6f6;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
  background-color: white;
}

.hero-image {
  flex: 1;
  animation: fadeInRight 1s ease;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 40px rgba(0, 170, 255, 0.3);
}

/* قسم الخدمات */
.services {
  padding: 100px 5%;
  background-color: white;
}

.services h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
}

.services h1:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background-color: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 170, 255, 0.1);
}

.service-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: all 0.5s ease;
}

.service-box:hover:before {
  opacity: 1;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 170, 255, 0.2);
  color: white;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-box:hover .service-icon {
  color: white;
  transform: rotate(15deg) scale(1.1);
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.service-box h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.service-box:hover h3:after {
  background-color: white;
  width: 70px;
}

.service-box p {
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* قسم المشاريع */
.portfolio {
  padding: 100px 5%;
  background-color: #f9f9f9;
}

.portfolio h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
}

.portfolio h1:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
}

.project-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-box:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 102, 204, 0.7), transparent);
  opacity: 0;
  transition: all 0.5s ease;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 170, 255, 0.3);
}

.project-box:hover img {
  transform: scale(1.1);
}

.project-box:hover:after {
  opacity: 1;
}

.portfolio-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: block;
}

.portfolio-grid img:hover {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 170, 255, 0.3);
}

/* يمكنك إضافة التأثيرات الأخرى بنفس الطريقة */

/* قسم من نحن */
.about {
  padding: 100px 5%;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-color) 0%, #112240 100%);
  color: white;
}

.founder-image {
  flex: 1;
  padding-right: 50px;
  animation: fadeInLeft 1s ease;
}

.founder-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
}

.founder-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 170, 255, 0.3);
}

.founder-info {
  flex: 1;
  animation: fadeInRight 1s ease;
}

.founder-info h4 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.founder-info p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ccd6f6;
}

/* قسم فريق العمل */
.team {
  padding: 100px 5%;
  background-color: white;
  text-align: center;
}

.team h3 {
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
  display: inline-block;
}

.team h3:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  width: 200px;
  transition: all 0.5s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(0, 170, 255, 0.2);
  margin-bottom: 20px;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member:hover img {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 170, 255, 0.3);
}

.team-member p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* قسم التواصل */
.contact {
  padding: 100px 5%;
  background-color: #f9f9f9;
  text-align: center;
}

.contact h1 {
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
  display: inline-block;
}

.contact h1:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.2);
  outline: none;
}

.contact textarea {
  height: 150px;
  resize: vertical;
}

.contact button {
  padding: 15px 40px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.contact button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

.social-media {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp {
  background-color: #25d366;
}

.facebook {
  background-color: #3b5998;
}

.instagram {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
}

/* الفوتر */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 70px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.footer-logo .logo {
  font-size: 2rem;
  margin-bottom: 20px;
}

.footer-logo p {
  color: #ccd6f6;
  line-height: 1.8;
}

.quick-links h4,
.contact-info h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.quick-links h4:after,
.contact-info h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.quick-links ul {
  list-style: none;
}

.quick-links li {
  margin-bottom: 10px;
}

.quick-links a {
  color: #ccd6f6;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 0;
}

.quick-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.contact-info p {
  color: #ccd6f6;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-left: 10px;
  color: var(--accent-color);
  width: 25px;
  text-align: center;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccd6f6;
}

/* تأثيرات الحركة */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأثيرات الظهور عند التمرير */
.service-box,
.project-box,
.team-member,
.founder-info,
.contact form {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.service-box.show,
.project-box.show,
.team-member.show,
.founder-info.show,
.contact form.show {
  opacity: 1;
  transform: translateY(0);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
  .hero,
  .about {
    flex-direction: column;
    text-align: center;
    padding: 150px 5% 80px;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .founder-image {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero-image img,
  .founder-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 5%;
    flex-direction: column;
  }

  nav ul {
    margin-top: 15px;
  }

  nav ul li {
    margin: 0 10px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .services h1,
  .portfolio h1,
  .team h3,
  .contact h1 {
    font-size: 2.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .quick-links h4:after,
  .contact-info h4:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .quick-links a:hover {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .services h1,
  .portfolio h1,
  .team h3,
  .contact h1 {
    font-size: 1.8rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact form {
    padding: 30px 20px;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* شبكة مرنة */
  gap: 20px;
}

.portfolio-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* يملأ الصورة بدون تشويه */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* General Styles */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00aaff;
  --accent-color: #00ccff;
  --dark-color: #0a192f;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.aqua {
  color: var(--accent-color);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 170, 255, 0.1);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 180px 5% 100px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-color) 0%, #112240 100%);
  color: white;
}

/* Portfolio Section with Clickable Projects */
.portfolio {
  padding: 100px 5%;
  background-color: #f9f9f9;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-link {
  text-decoration: none;
  color: inherit;
}

.project-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
  height: 250px;
}

.project-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 204, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-box:hover .project-overlay {
  opacity: 1;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 170, 255, 0.3);
}

.project-box:hover img {
  transform: scale(1.1);
}

/* باقي الأنماط تبقى كما هي مع تعديلات بسيطة للغة الإنجليزية */
/* The rest of the styles remain the same with minor adjustments for English */
