/* Body Styles */
*{
  scroll-behavior: smooth;
}
body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 20px;
  color: white;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  position: relative;
  overflow: hidden;
  background: #1b6765;
  border-bottom: 2px solid #fff;
}

/* Container within Header */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
}

/* Logo Style */
.logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLogo 1s ease-out forwards;
  color: #ffffff;
}

.logo a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Navbar Style */
.nav {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInNavbar 1s ease-out forwards;
  z-index: 2;
}

/* Navbar Links */
.nav a {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  background-image: linear-gradient(
    45deg,
    transparent 25%,
    #fff 25%,
    #fff 50%,
    transparent 50%,
    transparent 75%,
    #fff 75%,
    #fff
  );
  background-size: 5px 5px;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out;
  opacity: 0;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
  opacity: 1;
}

.nav a:hover {
  color: white;
}

/* Search Box Style */
.search-container {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInSearch 1s ease-out forwards;
  z-index: 2;
}

.search-container input {
  width: 200px;
  height: 40px;
  padding: 0 15px;
  border: none;
  border-radius: 20px;
  outline: none;
  transition: all 0.4s ease;
  font-size: 16px;
}

.search-container input:focus {
  width: 400px;
  background: #fff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-container::before {
  content: "🔍";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

/* Stronger and More Pronounced Wavy Background */
.header::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 150%;
  height: 160px;
  background: linear-gradient(to top, #4e73df, #2c3e50);
  border-top-left-radius: 50% 80px;
  border-top-right-radius: 50% 80px;
  z-index: 1;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.4);
  animation: waveAnimation 6s ease-in-out infinite;
  background-image: url("https://www.transparenttextures.com/patterns/wave-pattern.png");
  background-size: cover;
  background-position: bottom;
}

/* Keyframe Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInLogo {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInNavbar {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInSearch {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Wavy Background Animation */
@keyframes waveAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    height: auto;
    padding: 20px 10px;
    justify-content: space-between;
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    font-size: 1.6rem;
    margin-bottom: 0;
    z-index: 2;
  }

  /* Hamburger icon only visible on mobile (hidden on larger screens) */
  .hamburger {
    display: block; /* Show the hamburger on mobile */
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    z-index: 2;
  }

  /* Hide hamburger icon on larger screens */
  @media (min-width: 769px) {
    .hamburger {
      display: none;
    }
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: #1b6765;
    padding: 1rem;
    align-items: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-20px);
    opacity: 0;
  }

  .nav.show {
    display: flex !important;
    transform: translateY(0);
    opacity: 1;
  }

  .nav a {
    font-size: 1.2rem;
  }

  .search-container input {
    width: 100%;
    font-size: 14px;
  }

  .search-container input:focus {
    width: 300px;
  }
}

/* On larger screens, hamburger should be hidden */
@media (min-width: 769px) {
  .hamburger {
    display: none; /* Hide on large screens */
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  .nav {
    gap: 0.8rem;
  }

  .nav a {
    font-size: 1rem;
  }

  .search-container input {
    width: 120px;
    font-size: 14px;
  }

  .search-container input:focus {
    width: 250px;
  }

  .header::before {
    height: 140px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center; /* Center text and image vertically */
  justify-content: space-between; /* Space between text and image */
  padding: 60px 20px; /* Padding for spacing */
}

.hero-bg-container {
  position: relative;
  flex: 1; /* Allow image to take available space */
  max-width: 35vw; /* Limit width to 45% of the viewport */
}

.hero-bg-img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure the image covers its container */
  border-radius: 15px; /* Optional: Add rounded corners */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Shadow effect for image */
}

.container {
  position: relative;
  z-index: 10;
  flex: 1; /* Allow text container to take available space */
}

/* Animation */
.animate-title {
  opacity: 0;
  animation: fadeInTitle 2s forwards;
}

.animate-text {
  opacity: 0;
  animation: fadeInText 2s forwards;
  animation-delay: 1s;
}

.animate-btn {
  opacity: 0;
  animation: fadeInBtn 2s forwards;
  animation-delay: 2s;
}

@keyframes fadeInTitle {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBtn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .col-md-6 {
  text-align: right; /* Align text to the right for RTL */
  padding: 0 15px;
}

.hero-section .col-md-6 h1 {
  font-size: 3.5rem; /* Large title size */
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 800;
  color: #2c3e50;
}

.hero-section .col-md-6 h3 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-top: 20px;
  font-weight: 600;
}

.hero-section .btn {
  background: linear-gradient(90deg, #1b6765, #4db6ac);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  background: linear-gradient(90deg, hsl(178, 64%, 27%), #1b6765);
  transform: translateY(-3px); /* Slight elevation on hover */
}

.hero-section .lead {
  font-size: 1.25rem;
  color: #34495e;
  line-height: 1.6;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column; /* Stack image and text vertically on smaller screens */
    text-align: center;
  }

  .hero-bg-container {
    max-width: 100%; /* Full width on mobile */
    margin-bottom: 20px; /* Space between image and text */
  }

  .container {
    margin-left: 0;
  }

  .hero-section .col-md-6 h1 {
    font-size: 2.5rem; /* Adjust title size for mobile */
  }

  .hero-section .col-md-6 h3 {
    font-size: 1.5rem; /* Adjust subheading size for mobile */
  }

  .hero-section .lead {
    font-size: 1rem; /* Adjust paragraph size for mobile */
  }
}

/* خدمة البطاقات بشكل عصري */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: linear-gradient(145deg, #f5f5f5, #ffffff);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 330px;
  border-top: 4px solid #1b6765;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at top right, #1b6765 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 200px !important;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid #1b6765;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #1b6765;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1b6765;
  font-family: "Cairo", sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #e0f7f5, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 1s ease forwards;
  margin-top: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #1b6765;
  margin: 10px auto 0;
  border-radius: 4px;
}

.icon-style {
  font-size: 1.6rem;
  color: #1b6765;
}

/* Portfolio Section */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.portfolio-item {
  position: relative;
  width: 100%;
  max-width: 350px; /* Controls the maximum size of each portfolio item */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .portfolio-item {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .portfolio-item {
    max-width: 48%;
  }
}

@media (min-width: 1024px) {
  .portfolio-item {
    max-width: 30%;
  }
}

/* Reviews Section */
/* === Swiper Container === */
.swiper.mySwiper {
  position: relative;
  background: linear-gradient(145deg, #f5f5f5, #ffffff);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  /* direction: rtl; */
  width: 100%;
  /* height: 100vh;  */
}

/* === Swiper Wrapper === */
.swiper-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center; /* Vertically align the slides */
  justify-content: center; /* Center align the slides */
  height: 100%; /* Ensure swiper wrapper takes full height */
}

/* === Swiper Slide (Review Card) === */
.swiper-slide {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  border-top: 4px solid #1b6765;
  font-family: "Cairo", sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  flex-shrink: 0;
  transform: scale(1);
  width: 90%; /* Slight margin from the sides */
  max-width: 100%; /* Prevent overflow */
  height: auto; /* Allow dynamic height */
}

/* === Active Slide (Middle Card) === */
.swiper-slide-active {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === Inactive Slides === */
.swiper-slide-next, .swiper-slide-prev {
  transform: scale(0.95);
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Swiper Navigation Buttons === */
.swiper-button-next,
.swiper-button-prev {
  background-color: #1b6765;
  color: #fff !important;
  border-radius: 50%;
  width: 48px !important;
  height: 48px !important;
  font-size: 1.5rem !important;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effect on navigation buttons */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #14514f;
  transform: translateY(-50%) scale(1.1);
}

/* Swiper pagination bullets */
.swiper-pagination-bullet {
  background-color: #ccc;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* Active bullet */
.swiper-pagination-bullet-active {
  background-color: #1b6765;
  width: 16px;
  height: 16px;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* === Responsive Styles === */

/* For Tablets */
@media (max-width: 1024px) {
  .swiper-slide {
    width: 280px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .swiper-pagination-bullet-active {
    width: 14px;
    height: 14px;
  }
}

/* For Mobile Landscape */
@media (max-width: 768px) {
  .swiper-slide {
    width: 250px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
  }
}

/* For Mobile Portrait */
@media (max-width: 480px) {
  .swiper.mySwiper {
    padding: 0; /* Remove padding to maximize space */
    /* height: 100vh;  */
  }

  .swiper-wrapper {
    align-items: center;
    justify-content: center;
    height: 100%; /* Full height for swiper */
  }

  .swiper-slide {
    width: 75vw !important;
 height: auto !important;
    padding: 2rem !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
  }

  .swiper-pagination-bullet-active {
    width: 10px !important;
    height: 10px !important;
  }
}

/* === Default (Inactive) Pagination Bullets === */
.swiper-pagination-bullet {
  background-color: #ccc;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* === Active Pagination Bullet === */
.swiper-pagination-bullet-active {
  background-color: #1b6765 !important;
  width: 16px;
  height: 16px;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* === Optional: Hover Effect on Pagination Bullets === */
.swiper-pagination-bullet:hover {
  background-color: #3498db;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-family: swiper-icons;
  font-size: 1.5rem !important;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
}

/* hashtag */
#get-in-touch {
  padding: 50px 20px;
  background: linear-gradient(
      135deg,
      rgba(27, 103, 101, 0.95),
      rgba(77, 182, 172, 0.95)
    ),
    url("https://www.transparenttextures.com/patterns/cubes.png"); /* subtle pattern overlay */
  background-size: cover;
  text-align: center;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.get-in-touch-heading {
  font-size: 32px;
  margin-bottom: 20px;
}

.get-in-touch-description {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.get-in-touch-btn {
  display: inline-block;
  background-color: #fff;
  color: #1b6765;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.get-in-touch-btn:hover {
  background-color: #e0f2f1;
  color: #004d40;
}

.get-in-touch-map {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.get-in-touch-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.get-in-touch-tags {
  margin-top: 40px;
  text-align: center;
}

.get-in-touch-tags p {
  font-size: 20px;
  margin-bottom: 15px;
}

.get-in-touch-tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.get-in-touch-tags li {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .get-in-touch-heading {
    font-size: 24px;
  }

  .get-in-touch-description {
    font-size: 16px;
  }

  .get-in-touch-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .get-in-touch-map iframe {
    height: 300px;
  }

  .get-in-touch-tags ul {
    gap: 8px;
  }

  .get-in-touch-tags li {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  align-self: center;
}

.contact-form .btn {
  background: linear-gradient(90deg, #1b6765, #4db6ac);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: linear-gradient(90deg, hsl(178, 64%, 27%), #1b6765);
  transform: translateY(-3px); /* Slight elevation on hover */
}
/* Footer */
.footer {
  background: linear-gradient(90deg, #1b6765, #4db6ac);
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer:hover {
  background: linear-gradient(90deg, hsl(178, 64%, 27%), #1b6765);
  transform: translateY(-2px); /* subtle hover effect */
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
}

.whatsapp-float img {
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .service-grid,
  .portfolio-grid,
  .review-cards {
    flex-direction: column;
    align-items: center;
  }

  .search-container input {
    width: 100%;
  }

  .service-card {
    width: 100%;
    max-width: 350px;
  }

  .portfolio-item {
    width: 100%;
    max-width: 350px;
  }
}

.phone-float {
  position: fixed;
  bottom: 100px; /* adjust as needed */
  left: 20px;
  z-index: 1000;
  cursor: pointer;
}

.phone-float img {
  width: 55px;
  height: auto;
}



.scroll-top-btn {
  position: fixed;
  bottom: 20px;     /* distance from bottom */
  right: 20px;      /* distance from right */
  z-index: 1000;    /* make sure it's on top */
  padding: 10px 15px;
  font-size: 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;    /* hide initially if you want to show it only on scroll */
}

.scroll-top-btn:hover {
  background-color: #555;
}
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important; /* adjust if using icons inside */
    background-size : contain !important; /* if using custom background image */
  }
}
@media (max-width: 767px) {
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important; /* default is 44px */
  }
}
.swiper-button-next,
.swiper-button-prev {
  top: 50% !important;
  transform: translateY(-50%) !important;
}


/* Hide all bullets */
/* .swiper-pagination-bullet {
  display: none !important;
} */

/* Show only the active bullet */
/* .swiper-pagination-bullet-active {
  display: inline-block !important;
}
.swiper-pagination-bullet {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  display: inline-block;
  opacity: 1;
} */
