* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  height: 100%;
  touch-action: pan-y;
}
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
body {
  position: relative;
  background: white;
}
html[lang="en"] body {
  font-family: "Montserrat", sans-serif;
}
html[lang="ar"] body {
  font-family: 'Tahoma';
  direction: rtl;
}

/* Loading Animation Styles */
.mainsec {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  z-index: 9999;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.main-blue,
.main-purple {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
  opacity: 0.8; /* Ensure initial visibility */
}

.main-blue {
  background: rgba(21, 191, 190, 0.6);
  left: -30%;
  top: -5%;
}

.main-purple {
  background: rgba(91, 83, 182, 0.6);
  right: -13%;
  bottom: -16%;
}
.mainsec img {
  z-index: 9999;
  position: relative;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Blur Circles */
.global-blue,
.global-purple {
  position: absolute;
  width: 400px;
  height: 450px;

  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center center;
}

.global-blue::before {
  content: "";
  z-index: 1;
  position: absolute;
  border-radius: 50%;
  background: rgba(21, 191, 190, 0.6);
  animation: infiniteRotate 40s linear infinite;
  filter: blur(60px);
  width: 400px;
  height: 450px;
  transform-origin: center center;
  box-shadow: 0px 0px 13px 9px rgba(21, 191, 190, 0.6);
}

.global-purple::before {
  content: "";
  z-index: 1;
  position: absolute;
  border-radius: 50%;
  background: rgba(91, 83, 182, 0.6);
  animation: infiniteRotate 40s linear infinite;
  filter: blur(60px);
  width: 400px;
  height: 450px;
  transform-origin: center center;
  box-shadow: 0px 0px 13px 9px rgba(91, 83, 182, 0.6);
}

@keyframes infiniteRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */
.nav {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s ease;
  position: fixed;
  top: 0;
}

.nav.show-logo {
  height: 70px;
  background: #ffffff47;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
}

.nav img.header-img {
  display: none !important;
  width: 150px;
}

.nav.show-logo img.header-img {
  display: block !important;
}

.language-toggle {
  position: absolute;
  right: 20px;
}

.language-toggle button {
  background: transparent;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.language-toggle img {
  width: 15px;
  margin: 0 5px;
}

/* Sections */
.slider-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.sec-five.active {
    height: 71vh !important;
    bottom: 0;
    top: unset !important;
}
.slider-section.sec-five-active {
  height: 70vh !important;
  overflow: hidden;
}
.slider-section.sec-five-active .sec-five {
  height: 100% !important;
}
.sec-five .section-content {
  text-align: left;
}

.section {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform: translateY(100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.section.active {
  transform: translateY(0);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.sec-one h1 {
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.1;
  margin-bottom: 2vh;
}

.section h1,
.section h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #00d7d6, #5b53b6, #2b228b, #00d7d6) 0 0 /
    300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

.section h2 {
  font-size: 50px !important;
  line-height: 1.2;
}

.section p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 28px;
  font-weight: 400;
}

.section-subtitle {
  font-size: 16px !important;
  margin-bottom: 15px !important;
  color: #000;
  font-weight: 300;
  text-transform: uppercase;
}

.sec-one .logo img {
 width: 200px !important;
  margin-bottom: 70px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.scroll-indicator-bar {
  width: 10px;
  height: 50px;
  background: linear-gradient(143deg, #5b53b6 0%, #02026c 50%, #15bfbe 100%);
  animation: scrollDown 1.5s infinite;
  border-radius: 10px;
}

/* Dots Navigation */
.dots {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.dot.active {
  background: #02026c;
  transform: scale(1.3);
  height: 17px;
  border-radius: 12px;
  width: 8px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.service-card {
  background: rgba(91, 83, 182, 0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #02026c;
  margin-bottom: 20px;
  line-height: 28px;
}

.service-card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Industries Marquee */
.industries-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: 40px 0;
  width: 100%;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.industry-tag {
  display: inline-block;
  background: #5b53b614;
  border-radius: 6px;
  padding: 12px 20px;
  margin: 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #02026c;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contact-btn {
  font-family: "Montserrat", sans-serif;
  background: #02026ccc;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
  border: 0;
  font-size: 15px;
  cursor: pointer;
  width: fit-content;
}

.contact-btn:hover {
  background: rgba(2, 2, 108, 1);
}

.contact-btn img {
  width: 15px;
}

/* Animations */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(15px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer Styles */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #282f3d;
  padding: 40px 20px;
  transform: translateY(100%);
  opacity: 0;
  overflow-y: auto;
  max-height: 80vh;
  transition: opacity 0.3s ease,
    transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

footer.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer img {
  width: 14%;
  margin-bottom: 20px;
}

.footer h2 {
  color: #99a1af;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer p {
  color: #99a1af;
  font-size: 14px;
  font-weight: 200;
}

body.footer-visible {
  padding-bottom: 80vh;
}

.main-blue,
.main-purple {
  position: absolute;
  z-index: 1; /* Behind logo */
}

.mainsec img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .section h1,
  .section h2 {
    font-size: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .sec-five h2.section-title:first-child {
    margin-bottom: 0!important;
}
    .section {
  height: 100vh;
  height: 100dvh; /* dynamic viewport height */
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.slider-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

    .slider-section.sec-five-active {
    height: 80vh !important;
    overflow: hidden;
}
.nav {
  direction: ltr !important;
}
.sec-three h2 {
    font-size: 35px !important;
}
.sec-five h2:first-child {
   margin-bottom:10px;
}
.section-content {
    text-align: center !IMPORTANT;
}

button.contact-btn {
    justify-content: center !important;
    margin: 0 auto;
}
  html,
  body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  p.section-text {
    font-size: 16px !important;
    line-height: normal !important;
  }

  @supports (-webkit-touch-callout: none) {
    .section {
      height: -webkit-fill-available;
    }
  }
  .slider-section {
    height: 100vh;
    height: -webkit-fill-available;
    overflow: hidden;
  }

  .section {
    height: 100vh;
    height: -webkit-fill-available;
    overflow: hidden;
  }

  .sec-five.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-indicator {
    bottom: 10%;
  }
  .service-card {
    padding: 10px;
  }

  .nav img.header-img {
    width: 100px;
  }

  footer {
    padding: 20px;
  }

  .footer img {
    width: 35%;
  }

  .footer h2 {
    font-size: 14px;
  }

  .footer p {
    font-size: 10px;
  }

  .sec-five .section-content {
    padding-bottom: 20px;
    text-align: center;
  }

  p.section-subtitle {
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  .global-blue,
  .global-purple {
    width: 100px;
    height: 100px;
  }
  .section {
    padding: 30px;
    overflow-y: scroll;
  }

  .services-grid {
    margin-top: 10px;
  }

  .section h1 {
    font-size: 42px !important;
  }
  .section h2 {
    font-size: 35px !important;
    margin-bottom: 14px;
  }
  .section p {
    font-size: 22px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card h3 {
    font-size: 14px;
    line-height: normal;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 13px !important;
    line-height: 1;
  }

  .section-content {
    padding: 0;
    width: 100%;
  }

  .dots {
    bottom: 20px;
    top: auto;
    flex-direction: row;
    left: 15px;
    gap: 10px;
    display: none;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 20px;
    height: 8px;
  }

  nav.nav.show-logo {
    justify-content: flex-start;
    padding: 10px;
    height: 50px;
  }
  .global-blue::before {
    width: 200px;
    height: 240px;
  }
  .global-purple::before {
    width: 200px;
    height: 240px;
  }
  .main-blue,
  .main-purple {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  #services h2 {
    font-size: 24px !important;
}
  .global-blue::before {
    width: 200px;
    height: 240px;
  }
  .global-purple::before {
    width: 200px;
    height: 240px;
  }
  .main-blue,
  .main-purple {
    width: 200px;
    height: 200px;
  }
  .section h1{
    font-size: 35px!important;  
  }
  .section h2 {
    font-size: 28px!important;
  }

  .section p {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap:10px;
  }

  .industry-tag {
    font-size: 16px;
  }
}

/* Safari/iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .section {
    height: -webkit-fill-available;
  }

  .slider-section {
    height: 100vh;
    height: -webkit-fill-available;
  }
}

@media (max-height: 600px) {
  .section {
    align-items: flex-start;
    padding-top: 60px;
  }

  .sec-one .logo img {
    margin-bottom: 20px;
    width: 180px;
  }
}
