/* ===== Global ===== */
html, body {
  max-width: 100%;
   overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden; /* منع السحب يمين */
  background-color: #040E27;
}

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

.fade-in { animation: fadeInUp 1s forwards; }

/* ===== Navbar ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #040E27;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #1e90ff;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ===== Navbar Responsive ===== */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: fit-content; /* يتناسب مع المحتوى */
    flex-direction: column;
    background-color: #040E27;
    text-align: right;
    padding: 20px;
    gap: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

/* ===== Mid Section ===== */
.mid {
  text-align: center;
  padding: 60px 20px;
}

.mid {
  text-align: center;
  padding: 60px 20px;
}



.mid p {
  font-size: 50px;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: -90px;
  line-height: 70px;
  font-weight: 400;
  padding-bottom: 20px;
  animation: fadeInUp 1.3s ease forwards;
  white-space: normal; /* يسمح بالنص للالتفاف على الموبايل */
}

/* ===== Responsive Mid ===== */
@media (max-width: 1024px) {
  .mid h1 { font-size: 150px; }
  .mid p { font-size: 35px; line-height: 50px; margin-top: -40px; }
}

@media (max-width: 768px) {
  .mid h1 { font-size: 80px; white-space: normal; }
  .mid h1 span { font-size: 22px; }
  .mid p { font-size: 22px; line-height: 35px; margin-top: -20px; }
}

@media (max-width: 480px) {
  .mid h1 { font-size: 50px; }
  .mid h1 span { font-size: 18px; }
  .mid p { font-size: 18px; line-height: 28px; margin-top: -10px; }
}
/* Portfolio */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  animation: fadeInUp 1s ease forwards;
}

.project {
  position: relative;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project:hover img {
  transform: scale(1.05);
}

.project .overlay {
  position: absolute;
  bottom: -400px;
  left: -400px;
  width: 400px;
  height: 400px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  transition: all 0.7s ease-in-out;
}

.project:hover .overlay {
  bottom: -50px;
  left: -50px;
}

.project h3 {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.project h2 {
  font-size: 25px;
  margin: 10px 0 0;
  line-height: 1.3;
}

/* Services Section */
.services {
  position: relative;
  padding: 80px 20px;
  animation: fadeInUp 1s ease forwards;
}

.section-title {
  font-size: 200px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #f2f2f2;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.service-card i {
  font-size: 60px;
  color: transparent;
  -webkit-text-stroke: 2px #0066ff;
  margin-bottom: 10px;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111;
}

.service-card p {
  font-size: 0.95rem;
  color: #424141;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ========================= */
/*   Responsive Fixes        */
/* ========================= */
@media (max-width: 1024px) {
  .section-title {
    font-size: 120px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 80px;
  }
  .services-grid {
    grid-template-columns: 1fr; /* عمود واحد */
  }
  .service-card i {
    font-size: 50px;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 50px;
    -webkit-text-stroke: 1px #f2f2f2;
  }
  .service-card i {
    font-size: 40px;
  }
}

/* Blog Section */
.blog-section {
  font-family: Arial, sans-serif;
  animation: fadeInUp 1s ease forwards;
}

/* Header */
.blog-header {
  background: #026fc9;
  padding: 100px 60px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.blog-text {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 160px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  opacity: 0.15;
  margin: 0;
  pointer-events: none;
}

.blog-title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  z-index: 2;
}

.blog-but {
  border: 2px solid #fff;
  padding: 12px 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 4px;
  z-index: 2;
}

.blog-but:hover {
  background: #fff;
  color: #0288f7;
}

/* Blog Cards Container */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  background: #040E27;
  padding: 80px 60px;
}

/* Blog Card */
.blog-card {
  background: #0a1738;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* Blog Content */
.blog-content {
  padding: 20px;
}

.blog-date {
  color: #0288f7;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.blog-heading {
  font-size: 20px;
  margin: 10px 0 20px;
  font-weight: 700;
}

/* Author Info */
.blog-names {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-names img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-names h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.blog-names p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .blog-header {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .blog-text {
    font-size: 80px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .blog-title {
    font-size: 28px;
  }
}

.testimonial-section {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
  animation: fadeInUp 1s ease forwards;
}

.testimonial-title {
  font-size: 100px; 
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #e0e0e0;
  letter-spacing: 5px;
  margin-bottom: 40px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.6;
}

/* 🎯 Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
  .testimonial-title {
    font-size: 70px;
    -webkit-text-stroke: 1.5px #d0d0d0;
  }
}

@media (max-width: 768px) {
  .testimonial-title {
    font-size: 40px;  
    -webkit-text-stroke: 1px #ccc;
    margin-bottom: 20px;
    opacity: 1; /* عشان يبقى واضح أكتر */
  }

  .testimonial-img {
    width: 90px;
    height: 90px;
  }

  .testimonial-text {
    font-size: 16px;
    padding: 0 10px;
  }
}

.testimonial-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.testimonial-box {
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.testimonial-item {
  display: none;
  animation: fade 0.6s ease;
}

.testimonial-item.active {
  display: block;
}

.testimonial-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  padding: 0 20px;
}

.testimonial-name {
  color: #0066ff;
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

.testimonial-role {
  color: #777;
  font-size: 16px;
}

.nav-btn {
  background: #fff;
  border: 1px solid #ccc;
  font-size: 22px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #0066ff;
  color: #fff;
  border-color: #0066ff;
}

/* Animation */
@keyframes fade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* Call Section */
.c-section {
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease forwards;
}

.c-outline {
  font-size: 150px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.2);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

.c-title {
  font-size: 60px;
  font-weight: 400;
  position: relative;
  z-index: 2;
  margin: 0;
}

.c-btn {
  display: inline-block;
  margin-top: 90px;
  padding: 15px 40px;
  font-size: 18px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

.c-btn:hover {
  background: #fff;
  color: #007bff;
}

/* Footer */
footer {
  background-color: #040E27;
  color: #fff;
  padding: 100px 80px;
  position: relative;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

footer h2 {
  font-size: 32px;
  margin: 0;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 30px 50px 0 0;
}

footer ul li {
  margin-bottom: 12px;
  color: #b0b8c4;
  transition: 0.4s;
}

footer ul li a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

footer ul li a:hover {
  color: #1e90ff;
}

footer ul li h3 {
  margin-bottom: 18px;
  font-size: 20px;
  color: #fff;
}

footer p {
  text-align: center;
  color: #b0b8c4;
  margin-top: 120px;
  width: 100%;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
  .mid h1 {
    font-size: 120px;
  }
  .mid p {
    font-size: 32px;
    line-height: 45px;
    margin-top: -50px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-outline {
    font-size: 100px;
  }
  .c-title {
    font-size: 45px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .projects {
    grid-template-columns: 1fr;
  }
  .mid h1 {
    font-size: 80px;
  }
  .mid p {
    font-size: 24px;
    line-height: 35px;
    margin-top: -30px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Call Section Fix */
  .c-outline {
    font-size: 50px;   /* أصغر عشان ما يطلعش بره الشاشة */
    top: 10px;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  }
  .c-title {
    font-size: 28px;
  }
  .c-btn {
    margin-top: 50px;
    padding: 12px 30px;
    font-size: 16px;
  }

  /* Footer Fix */
  footer {
    padding: 40px 20px;
    text-align: center;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  footer ul {
    margin: 20px 0;
  }
  footer h2 {
    font-size: 24px;
  }
}