/* =======================
   CSS Reset & Root Variables
======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #f9ad01;
  --color-secondary: #ff008c;
  --color-accent: #08a29a;
  --color-white: #fff;
  --color-black: #000;
}

/* =======================
   Global Styles
======================= */
body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: "Jost", Arial, sans-serif;
  min-height: 100vh;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
}

/* =======================
   Navigation Bar Section
======================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
  width: 80vw;
  margin: 1rem auto 0 auto;
  max-width: 1200px;
}
.navbar__logo img {
  height: 70px;
  width: auto;
  display: block;
}
.navbar__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.navbar__links li a {
  position: relative;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 4px 0;
}
.navbar__links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar__links li a:hover,
.navbar__links li a:focus {
  color: var(--color-white);
}
.navbar__links li a:hover::after,
.navbar__links li a:focus::after {
  width: 100%;
  background: linear-gradient(135deg, #06b4fb, #407dec, #db31cf, #fe727d);
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}
.navbar__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.navbar__toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* Navigation Bar Responsive */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem;
    width: 80vw;
  }
  .navbar__links {
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .navbar {
    width: 85vw;
    max-width: 100vw;
    padding: 1rem 1.2rem;
  }
  .navbar__links {
    background: linear-gradient(180deg, #06b4fb, #407dec, #db31cf, #fe727d);
    position: fixed;
    top: 7rem;
    right: -220px;
    flex-direction: column;
    width: 200px;
    height: 40vh;
    padding: 2rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .navbar__links.active {
    right: 0;
  }
  .navbar__toggle {
    display: flex;
  }
}

/* =======================
   Hero Section
======================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 2rem;
  color: var(--color-white);
}
.hero__content h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #06b4fb, #407dec, #db31cf, #fe727d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__content p {
  font-size: 2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero__btn {
  display: inline-block;
  background: linear-gradient(135deg, #06b4fb, #407dec, #db31cf, #fe727d);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(6, 180, 251, 0.2);
}
.hero__btn:hover,
.hero__btn:focus {
  background: linear-gradient(135deg, white, white);
  color: var(--color-black);
}
/* Hero Responsive */
@media (max-width: 900px) {
  .hero__content h1 {
    font-size: 4.5rem;
  }
  .hero__content p {
    font-size: 2rem;
  }
  .hero__btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}
@media (max-width: 700px) {
  .hero {
    padding: 2rem 0.5rem 1.5rem;
  }
  .hero__content h1 {
    font-size: 3.5rem;
  }
  .hero__content p {
    font-size: 1.9rem;
    max-width: 90vw;
  }
  .hero__btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* =======================
   Main Section
======================= */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}
.hero-media-left,
.hero-media-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
  position: relative;
}
.hero-img-left,
.hero-img-right-top,
.hero-img-right-bottom {
  border-radius: 1.2rem;
  border: none;
  object-fit: cover;
  width: 220px;
  max-width: 30vw;
}
.hero-img-right-top {
  width: 250px;
  max-width: 25vw;
  position: relative;
  right: 26%;
  transform: translateY(-30px);
}
.hero-img-right-bottom {
  width: 160px;
  max-width: 27vw;
  position: relative;
}
.hero-video-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-video {
  display: block;
  width: 700px;
  max-width: 60vw;
  height: auto;
  border-radius: 1rem;
  aspect-ratio: 16/9;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-video.expanded {
  transform: scale(1.12) !important;
  box-shadow: 0 8px 40px rgba(6, 180, 251, 0.1);
  z-index: 2;
  position: relative;
}
/* Main Section Responsive */
@media (max-width: 1237px) {
  .hero-video {
    width: 500px;
    max-width: 70vw;
  }
  .hero-img-left {
    width: 150px;
  }
  .hero-img-right-top {
    width: 180px;
    right: 30%;
  }
  .hero-img-right-bottom {
    width: 130px;
  }
}
@media (max-width: 900px) {
  .hero-media {
    gap: 1.2rem;
    max-width: 98vw;
  }
  .hero-img-left,
  .hero-img-right-top,
  .hero-img-right-bottom {
    display: none;
  }
  .hero-video {
    margin-top: 1rem;
    width: 510px;
    max-width: 70vw;
    border-radius: 1rem;
  }
}
@media (max-width: 503px) {
  .hero-media {
    gap: 1.2rem;
    max-width: 98vw;
    flex-direction: row;
    align-items: center;
  }
  .hero-img-left,
  .hero-img-right-top,
  .hero-img-right-bottom {
    display: none;
  }
  .hero-video {
    width: 400px;
    max-width: 80vw;
    border-radius: 1rem;
  }
}

/* =======================
   Clients Section
======================= */
.clients-section {
  background: none;
  padding: 60px 0 40px 0;
  text-align: center;
}
.clients-section h1 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  background: none;
}
.clients-section .clients-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  background: none;
  color: var(--color-secondary, #ff008c);
  margin-top: 0.5rem;
}
.clients-carousel {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  padding: 20px 0;
  background: none;
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scrollClients 60s linear infinite;
  background: none;
}
.clients-track:hover {
  animation-play-state: paused;
}
.clients-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
  user-select: none;
  box-shadow: none !important;
}
.clients-track img:hover {
  filter: grayscale(0%);
  box-shadow: none !important;
}
@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .clients-track img {
    height: 80px;
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .clients-section h1 {
    font-size: 2rem;
  }
  .client-logo {
    height: 80px;
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .clients-section {
    padding: 2rem 0 1.5rem 0;
  }
  .clients-section h1 {
    padding: 0 2rem;
    font-size: 2rem;
  }
}

/* =======================
   Service Title Section
======================= */
.service-title-section {
  width: 100%;
  padding: 3rem 0 1.5rem 0;
  background: none;
  text-align: center;
}
.services-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #06b4fb, #407dec, #db31cf, #fe727d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.services-description {
  font-size: 1.9rem;
  color: var(--color-white, #fff);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Service Title Responsive */
@media (max-width: 700px) {
  .service-title-section {
    padding: 2rem 0 1rem 0;
  }
  .services-title {
    font-size: 2.5rem;
  }
  .services-description {
    font-size: 1.5rem;
    max-width: 95vw;
  }
}

/* =======================
   Services Section
======================= */
.services-section {
  background: none;
  padding: 4rem 0 3rem 0;
  display: flex;
  justify-content: center;
}
.services-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services-flex-wrapper {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
  justify-content: center;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  max-width: 220px;
}
.services-list li {
  color: #fff;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  outline: none;
  border: none;
  user-select: none;
}
.services-list li.active,
.services-list li:hover,
.services-list li:focus {
  background: linear-gradient(90deg, #06b4fb, #db31cf 80%);
  color: #fff;
  transform: translateX(6px) scale(1.04);
}
.services-images {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.services-image-group {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  transition: opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}
.services-image-group.active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}
.services-image-group img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(6, 180, 251, 0.09);
  background: #222;
  transition: none;
}

/* Services Section Responsive */
@media (max-width: 1200px) {
  .services-section {
    padding: 3rem 0 2rem 0;
  }
  .services-container {
    max-width: 98vw;
    padding: 0 1rem;
  }
  .services-image-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    opacity: 1 !important;
    pointer-events: auto;
    position: static;
  }
  .services-image-group:not(.active) {
    display: none !important;
  }
  .services-image-group img {
    width: 300px;
    height: 360px;
  }
}
@media (max-width: 900px) {
  .services-flex-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .services-list {
    flex-direction: row;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    gap: 0.7rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    white-space: nowrap;
    background: none;
  }
  .services-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .services-list li {
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    flex: 0 0 auto;
  }
  .services-images {
    overflow-x: auto;
    display: block;
    width: 100%;
    max-width: none;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  .services-images::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .services-image-group {
    display: flex !important;
    flex-direction: row;
    gap: 1.2rem;
    opacity: 1 !important;
    pointer-events: auto;
    min-width: calc(300px * 6 + 1.2rem * 5); /* 6 images + 5 gaps */
    width: fit-content;
    max-width: none;
    transition: none;
    position: static;
  }
  .services-image-group:not(.active) {
    display: none !important;
  }
  .services-image-group img {
    width: 300px;
    height: 360px;
    flex: 0 0 auto;
  }
}

/* =======================
   Misc Transitions & Effects
======================= */
a,
button,
.hero-img,
.client-logo,
.services-list li,
.services-image-group img {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hide horizontal scrollbars for services images on small screens */
@media (max-width: 900px) {
  .services-images {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  .services-images::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
}
