:root {
  --bg-image: url('../res/bg.png');
  --bg-tint: 0, 0, 0;
  --bg-tint-alpha: 0.000;
  --max-tilt: 12px;
  --ripple-color: 255,255,255;
}

html, body {
  height: 100%;
  margin: 0;
  background: #0a0a0a;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.bg-stage {
  position: fixed;
  inset: 0;
  perspective: 1000px;
  background: #fff;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
  transform-origin: center;
  will-change: transform;
  filter: saturate(1.05) contrast(1.02);
}

.bg-tint {
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-tint), var(--bg-tint-alpha));
  pointer-events: none;
}

.ripple-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(var(--ripple-color), 0.45) 0%, rgba(var(--ripple-color), 0.2) 35%, rgba(var(--ripple-color), 0) 70%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.9;
  filter: blur(0.5px);
  animation: ripple-expand 900ms ease-out forwards;
}

@keyframes ripple-expand {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.95; }
  60%  { transform: translate(-50%, -50%) scale(18);  opacity: 0.40; }
  100% { transform: translate(-50%, -50%) scale(28);  opacity: 0; }
}
	
	
	
.logo {
  position: fixed;
  top: 20px;
  left: 30px;
  width: 140px;
  height: 40px;
  background: url("../res/Logo.svg") no-repeat center/contain;
  z-index: 10;
}
/**/

@keyframes slideImage {
  from { transform: translateX(0); }
  to { transform: translateX(-10%); } /* adjust for subtle pan */
}

.main-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 60px);
  height: 60vh;
  border: 1px solid #8a8a87;
  box-sizing: border-box;
  overflow: hidden;
}

@font-face {
font-family: 'KairosSans';
src: url('../res/Kairos Sans Font.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}


.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1; /* push video below text */
}

.title-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'KairosSans', sans-serif;
  font-weight: 100;
  font-size: 4rem;
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: #fff;
  text-align: left;
  z-index: 2; /* ensure text is above video */
}

.title-text {
  transition: opacity 1s ease;
}


/* === Responsive text size for mobile === */
@media (max-width: 900px) {
  .title-text {
    font-size: 2.5rem;     /* smaller but still impactful */
    line-height: 1.05;     /* more breathing space */
    text-align: center;    /* center-align on narrow screens */
    width: 90%;            /* prevents overflow on very small devices */
  }
}

@media (max-width: 600px) {
  .title-text {
    font-size: 1.9rem;     /* fine-tuned for phones */
    line-height: 1.1;
  }
}

.cursor {
  display: inline-block;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/*text anim*/
.ml11 {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  line-height: 1;
  font-family: 'KairosSans', sans-serif;
}

.ml11 .letter {
  display: inline-block;
  line-height: 1em;
  white-space: pre;
}

.ml11 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.1em;
  padding-right: 0.05em;
  padding-bottom: 0.15em;
}

.ml11 .line {
  opacity: 1;
  position: absolute;
  bottom: 0;          
  left: 0;
  height: 100%;
  width: 3px;
  background-color: #fff;
  transform-origin: 0 50%;
}

.ml11 .line1 { top: 0; left: 0; }

.ml11 .letter {
  display: inline-block;
  line-height: 1em;
}


/*end text anim*/


/* Carousel  */
.clients-carousel {
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Track is moved by JS (requestAnimationFrame) */
.clients-track {
  display: inline-flex;
  align-items: center;
  gap: 100px;
  will-change: transform;
  transform: translateX(0); /* JS updates this */
}

/* client logos */
.clients-track img {
  height: 45px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: opacity .3s ease, filter .3s ease;
}
.clients-track img:hover { opacity: 1; filter: grayscale(0%); }

/* Edge fades */
.fade-left, .fade-right {
  position: absolute; top: 0; width: 160px; height: 100%;
  pointer-events: none; z-index: 2;
}
.fade-left  { left: 0;  background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0) 100%); }
.fade-right { right: 0; background: linear-gradient(to left,  #fff 40%, rgba(255,255,255,0) 100%); }

/* Responsive */
@media (max-width: 900px) {
  .clients-track { gap: 60px; }
  .clients-track img { height: 30px; }
}
@media (max-width: 600px) {
  .clients-track { gap: 40px; }
  .clients-track img { height: 25px; }
}



/*buttons*/


/* === Category buttons row (preserved style with mobile scroll) === */
.category-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 5;
  flex-wrap: nowrap;
  top: calc(50% - 30vh - 60px);
}

.cta-btn {
  font-family: 'KairosSans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #0a0a0a;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 24px;
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
  flex: 0 0 auto;
}

.cta-btn:hover {
  background-color: #f3f319;
  border-color: #f3f319;
  color: #0a0a0a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* === Mobile refinement === */
@media (max-width: 900px) {
  .category-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 10px;
    max-width: 90vw;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }

  .category-buttons::after {
    display: none;
  }

  /* Compact button scaling */
  .cta-btn {
    font-size: 0.9rem;       /* slightly smaller text */
    padding: 5px 15px;       /* reduced padding */
    border-radius: 8px;      /* proportional rounding */
    min-width: 90px;        /* narrower default width */
  }

  .category-buttons::-webkit-scrollbar {
    height: 4px;
  }
  .category-buttons::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }
  .category-buttons::-webkit-scrollbar-track {
    background: transparent;
  }
}




/* === Sound toggle button === */
.sound-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 3;
  background: rgba(0,0,0,0.09);
  border: none;
  border-radius: 20%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sound-btn:hover {
  
  transform: scale(1.01);
}