@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

html {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans" !important;
}
body {
  font-family: "Nunito Sans ";
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2%;
  background-color: white;
  flex-wrap: wrap;
  gap: 1rem;
  -webkit-box-align: center; /* Safari prefix */
}

nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  -webkit-box-pack: center; /* Safari prefix */
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

button {
  border: none;
  width: 100px;
  height: 40px;
  background-color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.8s ease;
  border-radius: 4px;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 5% auto 0;
  padding: 2rem 5%;
  box-sizing: border-box;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  height: 200px;
}

.animate__animated.animate__fadeInUpBig {
  --animate-duration: 1s;
}

section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-top: 17rem;
}

section div:first-child {
  padding: 1rem;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: #333;
}

section p {
  line-height: 1.6;
  color: #555;
  font-size: 1.1rem;
}

#Image {
  width: 100%;
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#Image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    font-size: 1.5rem;
    width: auto;
    padding: 0 1.5rem;
    background: transparent;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 2%;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }

  main {
    padding: 2rem 1.5rem;
    margin-top: 10%;
  }

  section {
    /* margin-top: 3rem; */
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  #menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
  }
}

/* Scroll animation classes */
.scroll-animate {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
}

/* Animation for h2 (left to right with fade) */
.scroll-animate.h2-animate {
  transform: translateX(-50px);
}

.scroll-animate.visible.h2-animate {
  transform: translateX(0);
}

/* Animation for p (down to up with fade) */
.scroll-animate.p-animate {
  transform: translateY(50px);
}

.scroll-animate.visible.p-animate {
  transform: translateY(0);
}

/* Animation for image (right to left with fade) */
.scroll-animate.img-animate {
  transform: translateX(100px);
}

.scroll-animate.visible.img-animate {
  transform: translateX(0);
}

/* Stagger the animations */
.scroll-animate.visible.h2-animate {
  transition-delay: 0.4s;
}

.scroll-animate.visible.p-animate {
  transition-delay: 0.4s;
}

.scroll-animate.visible.img-animate {
  transition-delay: 0.5s;
}

/* h4 Animation (down to up with fade) */
.scroll-animate.h4-animate {
  transform: translateY(30px);
}

.scroll-animate.visible.h4-animate {
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Tab system */
.tab-content {
  display: none;
}
#about-content {
  font-family: "Nunito Sans" !important;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

.tab-btn.active {
  background-color: #0468dd;
  color: white;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer Styles */
.site-footer {
  background-color: #161e27;
  color: #ffff;
  padding: 3rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  font-weight: bold;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.footer-column p {
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #bdc3c7;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0.5rem 0;
  color: #bdc3c7;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: #bdc3c7;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.legal-links a:hover {
  color: #3498db;
}

.legal-links a:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -1rem;
  color: #7f8c8d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legal-links a:not(:last-child)::after {
    display: none;
  }

  .legal-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-column h3 {
    font-size: 1.5rem;
  }

  .footer-column p {
    font-size: 1rem;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/*Contact Section */
.Contact-Section {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  min-height: 500px;
  align-items: stretch; /* ← Makes children stretch vertically */
  margin-bottom: 8%;
}

.Contact-map {
  flex: 1 1 40%;
  min-width: 300px;
  min-height: 100%;
  display: flex;
}

.Contact-map iframe {
  flex: 1;
  border-radius: 6px;
}

/* Social Links Section (60%) */
.Contact-SocialLink {
  flex: 1 1 55%; /* 55% width (leaves room for gap) */
  min-width: 300px;
  padding: 1.5rem;
  display: flex; /* New */
  flex-direction: column; /* Stack content vertically */
}
.contact-info {
  padding: 1rem;
  margin-bottom: 15px;
}
.contact-info h2 {
  margin-bottom: 10px;
  font-weight: bold;
}
.PhoneNum h2 {
  margin-bottom: 10px;
  font-weight: bold;
}

/* Make social content fill available space */
.social-icons,
.contact-info {
  width: 100%;
}
.Email {
  display: flex;
  gap: 5px;
}
.size-6 {
  width: 24px;
  height: 24px;
}
.Phone {
  display: flex;
  gap: 5px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .Contact-Section {
    flex-direction: column;
    min-height: 600px;
  }

  .Contact-map,
  .Contact-SocialLink {
    flex: 1 1 100%;
    min-height: 300px; /* Equal minimum heights */
  }

  /* Fix iframe height on mobile */
  .Contact-map iframe {
    min-height: 300px;
  }
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
  padding: 0 10px;
}

.FaceBook,
.Instagram,
.Telegram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  flex: 1 1 250px;
  max-width: 300px;
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Icon wrapper */
.Icon-FaceBook {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.Icon-FaceBook svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Label text */
.facebook-text {
  width: 100%;
  font-weight: bold;
  text-align: center;
  font-size: 1.4rem;
}

/* Platform-specific colors */
.FaceBook {
  background-color: #1877f2;
}
.FaceBook:hover {
  transform: translateY(-1px);
}

.Instagram {
  background-color: #e4405f;
}
.Instagram:hover {
  transform: translateY(-1px);
}

.Telegram {
  background-color: #37aee2;
}
.Telegram:hover {
  transform: translateY(-1px);
}

/* Mobile friendly */
@media (max-width: 600px) {
  .social-icons {
    flex-direction: column;
    align-items: center;
  }

  .FaceBook,
  .Instagram,
  .Telegram {
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
    max-height: 80px;
  }
}

.member-shapes {
  position: relative;
  width: 100%;
  height: 500px;
  padding: 10px;
  margin-bottom: 10%;
}
.shape-1 {
  position: absolute;
  top: 25vh;
  left: 30vw;
  width: 12vw;
  height: 12vw;
}
.circle-1 {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-color: #f20101;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-box-1 {
  width: 110px;
  height: 40px;
  background-color: #e6edf4;
  border: 2px solid #000;
  position: absolute;
  right: -50px;
  top: 30%;
  transform: translateY(-50%);
  background-color: white;
  opacity: 0.9;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 3px;
}

.shape-2 {
  position: absolute;
  top: 35vh;
  left: 10vw;
  width: 10vw;
  height: 10vw;
}
.circle-2 {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-color: #f19900;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-box-2 {
  width: 110px;
  height: 40px;
  background-color: #cce5ff;
  border: 2px solid #000;
  position: absolute;
  right: -80px;
  top: 30%;
  transform: translateY(-50%);
  background-color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 3px;
}

.shape-3 {
  position: absolute;
  top: 45vh;
  left: 45vw;
  width: 8vw;
  height: 8vw;
}

.circle-3 {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background-color: #ffc404;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-box-3 {
  width: 140px;
  height: 40px;
  background-color: #cce5ff;
  border: 2px solid #000;
  position: absolute;
  right: -139px;
  top: 35%;
  transform: translateY(-50%);
  background-color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 3px;
}

.shape-4 {
  position: absolute;
  top: -2vh;
  left: 20vw;
  width: 12vw;
  height: 12vw;
}
.circle-4 {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-color: #0468dd;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-box-4 {
  width: 120px;
  height: 40px;
  background-color: #cce5ff;
  border: 2px solid #000;
  position: absolute;
  right: -60px;
  top: 20%;
  transform: translateY(-50%);
  background-color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 3px;
}

.shape-7 {
  position: absolute;
  top: 3vh;
  left: 45vw;
  width: 12vw;
  height: 12vw;
}
.circle-7 {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-color: #21e20f;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text-box-7 {
  width: 120px;
  height: 40px;
  background-color: #cce5ff;
  border: 2px solid #000;
  position: absolute;
  right: -70px;
  top: 25%;
  transform: translateY(-50%);
  background-color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 3px;
}

.member-name {
  font-weight: bold;
}

.member-h1 {
  line-height: 1.5;
}

.photo-icon {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 0%;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .shape-1,
  .shape-2,
  .shape-3 {
    width: 20vw;
    height: 20vw;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3 {
    width: 20vw;
    font-size: 10px;
  }
  .member-shapes {
    margin-bottom: 10%;
  }
}

@media (max-width: 480px) {
  .shape-1,
  .shape-2,
  .shape-3 {
    width: 25vw;
    height: 25vw;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3 {
    width: 25vw;
    font-size: 9px;
  }
}

.shape {
  transition: all 0.4s ease;
  z-index: 1;
}
.member-shapes {
  margin-bottom: 10%;
}

.shape:hover {
  transform: scale(1.3);
  z-index: 2;
}

/* Only blur other .shape elements */
.shape:hover ~ .shape {
  filter: blur(3px);
  opacity: 0.6;
  transform: scale(0.95);
}

.shape:has(~ .shape:hover) {
  filter: blur(3px);
  opacity: 0.6;
  transform: scale(0.95);
}

.shape:hover:has(~ .shape) {
  filter: none;
  opacity: 1;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .shape-1 {
    top: 5vh;
    left: 10vw;
  }
  .member-shapes {
    margin-bottom: 10%;
  }

  .shape-2 {
    top: 25vh;
    left: 50vw;
  }

  .shape-3 {
    top: 45vh;
    left: 20vw;
  }


  .shape-7 {
    top: -15vh;
    left: 50vw;
  }

  .member-shapes {
    height: 140vh; /* increase for vertical space */
  }
}

/*Service Card*/
.service-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Strict 3 columns */
  gap: 30px;
}

.service-card {
  height: 350px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 8px 1px #0468dd;
}

.service-image {
  height: 200px;
  overflow: hidden;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px,
    rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-text {
  padding: 20px;
}

.service-text h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #222;
}

.service-text p {
  margin: 0 0 20px;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.service-btn:hover {
  background-color: #0358b8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .service-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .service-container {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 20px;
  }
}
/* Add this to your existing CSS */
@media (max-width: 768px) {
  .service-image img.image-service {
    width: 100%;
    height: 100%;
    object-fit: contain;
    scale: 1.2; /* Changed from cover to contain to prevent cropping */
    max-height: 180px; /* Added max-height to control size */
    padding: 10px; /* Added some padding */
  }

  .service-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5; /* Added background for better appearance */
  }
}

@media (max-width: 480px) {
  .service-image img.image-service {
    max-height: 150px; /* Smaller max-height for very small screens */
  }
}
.about-flex {
  font-size: 1.15rem; /* Base font size increased */
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}
.intro,
.about-flex,
.flex-identity,
.origin-story,
.mission,
.goals {
  font-family: "Nunito Sans", sans-serif !important;
}

.intro {
  font-size: 1.25rem; /* Larger intro text */
}

h2 {
  font-size: 2rem;
  color: #222;
}

blockquote {
  font-size: 1.3rem;
  font-weight: bold; /* Bold quotes */
  border-left: 4px solid #0468dd;
  padding-left: 1.5rem;
  margin: 2rem 0;
}

strong {
  font-weight: 700; /* Extra-bold emphasis */
}

time {
  font-weight: 700;
  text-decoration: underline dotted;
}

.goals li,
.flex-identity li {
  margin-bottom: 0.8rem; /* Better list spacing */
}

.icon-3d {
  width: 100px;
  height: 100px;
  color: #ffff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.shape:hover .icon-3d {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

/* Member Shapes Mobile Fix - Add this to your existing media queries */
@media (max-width: 768px) {
  .member-shapes {
    height: 180vh; /* Increased height to fit all members */
  }

  /* Fixed size for all shapes */
  .shape {
    width: 120px !important;
    height: 120px !important;
  }

  /* Fixed circle sizes */
  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 150px !important;
    height: 150px !important;
  }

  /* Fixed icon sizes */
  .icon-3d {
    width: 70px !important;
    height: 70px !important;
  }

  /* Fixed text box sizes */
  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 100px !important;
    height: 40px !important;
    font-size: 0.8rem !important;
    right: -80px !important;
  }

  /* Special case for wider text box */
  .text-box-3 {
    width: 120px !important;
    right: -100px !important;
  }
  .text-box-4 {
    top: 40px !important;
  }

  /* Position adjustments */
  .shape-1 {
    top: 5%;
    left: 10%;
  }
  .shape-2 {
    top: 5%;
    left: 60%;
  }
  .shape-3 {
    top: 25%;
    left: 35%;
  }
  .shape-4 {
    top: 45%;
    left: 10%;
  }
  .shape-7 {
    top: 55%;
    left: 50%;
  }
  .member-shapes {
    margin-bottom: 10%;
  }
}

@media (max-width: 480px) {
  .member-shapes {
    height: 200vh; /* More height for smallest screens */
  }

  /* Slightly smaller sizes for very small screens */
  .shape {
    width: 100px !important;
    height: 100px !important;
  }

  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 130px !important;
    height: 130px !important;
  }

  .icon-3d {
    width: 40px !important;
    height: 40px !important;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 90px !important;
    font-size: 0.7rem !important;
    right: -45px !important;
  }

  .text-box-3 {
    width: 110px !important;
    right: -55px !important;
  }
  .member-shapes {
    margin-bottom: 10%;
  }
}
@media (min-width: 800px) and (max-width: 1084px) {
  .member-shapes {
    height: 220vh; /* Adjusted height for larger tablets */
  }
  .member-shapes {
    margin-bottom: 10%;
  }

  /* Medium-large shape */
  .shape {
    width: 150px !important;
    height: 150px !important;
  }

  /* Medium-large circle */
  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 160px !important;
    height: 160px !important;
  }

  /* Icon scaling */
  .icon-3d {
    width: 75px !important;
    height: 75px !important;
  }

  /* Text box styling */
  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 120px !important;
    height: 45px !important;
    font-size: 1rem !important;
    right: -70px !important;
    top: 23% !important;
    transform: translateY(-50%);
    position: absolute !important;
    text-align: center;
  }

  .text-box-3 {
    width: 140px !important;
    right: -90px !important;
  }

  /* Keep same positions (you can adjust if needed) */
  .shape-1 {
    top: 5%;
    left: 10%;
  }
  .shape-2 {
    top: 5%;
    left: 60%;
  }
  .shape-3 {
    top: 25%;
    left: 35%;
  }
  .shape-4 {
    top: 45%;
    left: 10%;
  }
  .shape-7 {
    top: 85%;
    left: 10%;
  }
}
@media (max-width: 400px) {
  body {
    font-size: 12px;
  }
  .nav-links {
    width: 100%;
    right: 0;
  }
  .service-card {
    height: auto;
  }
  .member-shapes {
    height: auto;
  }
}
@media (max-width: 400px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  p {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  section.Home-Section p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow-x: hidden;
  }

  section.Home-Section h2,
  section.Home-Section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #home-content section {
    margin-top: 6rem;
  }

  #home-content {
    padding-bottom: 2rem;
  }
  body {
    width: 100%;
  }
}

@media (min-width: 200px) and (max-width: 400px) {
  .member-shapes {
    height: 250vh; /* More vertical room to avoid overlap */
    position: relative;
    padding: 1rem;
  }

  .shape {
    width: 90px !important;
    height: 90px !important;
  }

  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 110px !important;
    height: 110px !important;
  }

  .icon-3d {
    width: 55px !important;
    height: 55px !important;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 85px !important;
    height: auto !important;
    font-size: 0.65rem !important;
    right: -70px !important;
    top: 35% !important;
    transform: translateY(-50%);
    padding: 2px;
    text-align: center;
  }

  .text-box-3 {
    width: 100px !important;
    right: -80px !important;
  }

  /* Adjust top/left positioning to reduce overlaps */
  .shape-1 {
    top: 4%;
    left: 5%;
  }
  .shape-2 {
    top: 18%;
    left: 50%;
  }
  .shape-3 {
    top: 32%;
    left: 25%;
  }
  .shape-4 {
    top: 48%;
    left: 10%;
  }
  .shape-7 {
    top: 32%;
    left: 10%;
  }
}

@media (max-width: 300px) {
  section#about-flex,
  section#home-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
  }

  section > div {
    width: 100%;
  }

  #home-content,
  #about-content {
    overflow-x: hidden;
  }
}
@media (min-width: 200px) and (max-width: 400px) {
  .member-shapes {
    height: 280vh;
    position: relative;
    padding: 1rem;
  }

  .shape {
    width: 75px !important;
    height: 75px !important;
  }

  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 90px !important;
    height: 90px !important;
  }

  .icon-3d {
    width: 48px !important;
    height: 48px !important;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 80px !important;
    font-size: 0.6rem !important;
    padding: 2px;
    right: -65px !important;
    top: 35% !important;
    transform: translateY(-50%);
    text-align: start;
  }

  .text-box-3 {
    width: 90px !important;
    text-align: start;
    right: -75px !important;
  }

  /* Adjusted top/left positions for small screen spacing */
  .shape-1 {
    top: 4%;
    left: 4%;
  }
  .shape-2 {
    top: 16%;
    left: 52%;
  }
  .shape-3 {
    top: 30%;
    left: 22%;
  }
  .shape-4 {
    top: 44%;
    left: 8%;
  }

  .shape-7 {
    top: 46%;
    left: 8%;
  }
}

/* ===== Enhanced Mobile Contact Section ===== */
@media (max-width: 768px) {
  #contact-content h1 {
    height: auto;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .Contact-Section {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 2rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .Contact-map,
  .Contact-SocialLink {
    flex: 1 1 100%;
    min-width: 100%;
    min-height: 250px;
    border-radius: 0;
  }

  .Contact-map {
    order: 2; /* Move map below contact info on mobile */
    margin-top: 1.5rem;
  }

  .Contact-map iframe {
    min-height: 250px;
    border-radius: 8px;
  }

  .Contact-SocialLink {
    padding: 1rem;
  }

  /* Contact info styling */
  .PhoneNum,
  .contact-info {
    margin-bottom: 1.5rem;
  }

  .PhoneNum h2,
  .contact-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .Phone h3,
  .Email h3 {
    font-size: 1rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
  }

  .size-6 {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .Phone,
  .Email {
    align-items: center;
    text-align: start;
  }
  .Email,
  .email-class {
    margin-left: -20px;
  }

  /* Social media buttons */
  .social-icons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0;
  }

  .FaceBook,
  .Instagram,
  .Telegram {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 1rem;
    justify-content: center;
    max-height: 60px;
    border-radius: 8px;
  }

  .facebook-text {
    font-size: 1.1rem;
  }

  .Icon-FaceBook svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .Contact-SocialLink {
    padding: 1rem 0.5rem;
  }

  .PhoneNum h2,
  .contact-info h2 {
    font-size: 1.3rem;
  }

  .Phone h3,
  .Email h3 {
    font-size: 0.95rem;
  }

  .FaceBook,
  .Instagram,
  .Telegram {
    max-width: 100%;
    padding: 0.8rem;
  }

  .facebook-text {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .Phone h3,
  .Email h3 {
    font-size: 0.7rem;
    text-align: start;
  }

  .size-6 {
    width: 20px;
    height: 20px;
  }
}

/* ===== Improved Contact Info Alignment ===== */
.PhoneNum,
.contact-info {
  padding: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

.PhoneNum h2,
.contact-info h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 700;
  width: 100%;
}

.Phone,
.Email {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.Phone h3,
.Email h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: #555;
  font-weight: 500;
  word-break: break-word;
  margin: 0;
  flex: 1;
}

.size-6 {
  width: clamp(18px, 4vw, 24px);
  height: clamp(18px, 4vw, 24px);
  flex-shrink: 0;
}

/* Remove any negative margins that might be causing issues */
.Email,
.email-class {
  margin-left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .Phone,
  .Email {
    gap: 0.6rem;
  }

  .Phone h3,
  .Email h3 {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }
}

@media (max-width: 480px) {
  .Phone,
  .Email {
    flex-wrap: nowrap;
  }

  .Phone h3,
  .Email h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
select {
  border: none;
  width: 100px;
  height: 40px;
  background-color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.8s ease;
  border-radius: 4px;
}
select.active {
  background-color: #0468dd;
}
/* RTL Layout for Arabic */
[lang="ar"] .service-container,
[lang="ar"] .service-text {
  direction: rtl;
  text-align: right;
}

/* Service card adjustments for RTL */
[lang="ar"] .service-card {
  flex-direction: row-reverse; /* Reverse image/text order */
}

/* Fix line heights for Arabic */
[lang="ar"] .service-text h3,
[lang="ar"] .service-text p {
  line-height: 1.8;
  margin-right: 15px;
  margin-left: 0;
}

@media (max-width: 482px) {
  .member-shapes {
    height: 220vh; /* Adjusted height for better spacing */
    padding: 1rem;
  }

  .shape {
    width: 100px !important;
    height: 100px !important;
  }

  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    width: 120px !important;
    height: 120px !important;
  }

  .icon-3d {
    width: 60px !important;
    height: 60px !important;
  }

  .text-box-1,
  .text-box-2,
  .text-box-3,
  .text-box-4,
  .text-box-5,
  .text-box-6,
  .text-box-7 {
    width: 90px !important;
    height: 35px !important;
    font-size: 0.7rem !important;
    right: -70px !important;
    top: 30% !important;
    padding: 2px;
    text-align: center;
  }

  .text-box-3 {
    width: 100px !important;
    right: -80px !important;
  }

  /* Position adjustments for better spacing */
  .shape-1 {
    top: 5%;
    left: 5%;
  }
  .shape-2 {
    top: 20%;
    left: 35%;
  }
  .shape-3 {
    top: 35%;
    left: 30%;
  }
  .shape-4 {
    top: 50%;
    left: 5%;
  }
  .shape-7 {
    top: 65%;
    left: 5%;
  }
}
/* Add this to your existing CSS */
.logo {
  width: 80px; /* Fixed width for logo container */
  height: 80px; /* Fixed height for logo container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default behavior for desktop */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .logo img {
    object-fit: contain; /* Switch to contain on mobile */
    max-width: 100%;
    max-height: 100%;
  }
}