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

body {
  font-family: "Instrument Sans", "Instrument Sans Placeholder", sans-serif;
  color: #000000;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* iOS-specific fixes */
input, select, textarea, button {
  font-size: 16px !important;
}

.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  display: block;
  height: 25px;
  width: auto;
  transition: transform 0.3s ease;
  fill: white;
  object-fit: contain;
}

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

.nav ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transform: translateX(-50%);
  transition: width 0.3s ease-in-out;
}

.nav ul li a:hover::after {
  width: 100%;
}


.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 48px;
  background-color: black;
  padding-bottom: 88px;
} 

/* iOS video fixes - critical */
.bg-video, .bg-videoo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 1s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity;
}

.bg-video {
  opacity: 1;
}

.bg-videoo {
  opacity: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left; 
  max-width: 800px;
  color: white; 
  height: 100%;
  position: relative;
  z-index: 1;
}  

.hero-content h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 56px;
  margin-bottom: 15px;
}

.hero-content p {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 35px;
}

.hero-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
  font-size: 18px;
  color: white;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-content a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out 6.4s forwards;
}

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

.arrow-svg {
  display: inline-block;
  transform: translateX(0);
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out 6.4s forwards;
  transition: transform 0.4s ease-in-out;
}

.hero-content a:hover .arrow-svg {
  transform: translateX(6px);
}

@media (max-width: 480px) {
  .hero-content {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left; 
    height: 100%;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-content a {
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
  }

  .hero {
    padding: 20px;
    padding-bottom: 88px;
    max-height: 700px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .hero {
    padding: 48px;
  }
  
  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }
  
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  
}

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

.clients-section {
  padding: 48px;
  text-align: left;
  background: #fafafa;
  overflow: hidden;
}

.clients-section h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 32px;
  color: #222;
}

.clients-section p {
  font-size: 20px;
  font-weight: 200;
  margin-bottom: 48px;
  color: #222;
  max-width: 700px;
}

.clients-slider {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

/* iOS animation optimization - critical */
.clients-track {
  display: flex;
  gap: 48px;
  align-items: center;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.client-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.client-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.client-logo:hover img {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .clients-section {
    padding: 48px;
  }

  .clients-section h2 {
    font-size: 32px;
  }

  .client-logo img {
    height: 40px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .clients-section {
    padding: 48px 20px;
    padding-top: 32px;
  }

  .clients-section h2 {
    font-size: 24px;
    font-weight: 500;
  }

  .clients-section p {
    font-size: 16px;
  }

  .clients-track {
    gap: 60px;
  }

  .client-logo img {
    height: 40px;
    width: auto;
  }
}

.footer {
  background: #0b0b0b;
  color: #eaeaea;
  padding-top: 20px!important;
  padding-bottom: 20px!important;
  padding: 48px;
  text-align: left;
}

.footer-container {
  margin: 0 auto;
}

.footer-title {
  font-size: 20px;
  font-weight: 200;
  color: #fff;
  text-align: center;
  padding-bottom: 0px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 20px;
  margin-bottom: 48px;
  min-width: 100%;
}

.footer-menus {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #cfcfcf;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
  font-weight: 200;
  -webkit-tap-highlight-color: transparent;
}

.footer-column ul li a:hover {
  color: #c9a8f2;
}

.contact-list a {
  color: #cfcfcf;
  text-decoration: none;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:hover {
  background: #6528b1;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* Copyright */
.footer-bottom {
  font-size: 14px;
  color: #fff;
  margin: 0;
  padding-bottom: 0px;
}

/* Social Icons */
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-socials img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 40px 24px;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-socials {
    order: -1; /* Move socials above copyright */
    gap: 16px;
  }

  .footer-menus {
    flex-direction: column;
    gap: 32px;
  }

  .footer-title {
    text-align: center;
  }
}