@font-face {
  font-family: 'Red Hat Display';
  src: url('fonts/RedHatDisplay-Regular.woff2') format('woff2'); /* <--- CHECK THIS PATH */
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* <--- THIS FIXES THE 2.6s DELAY */
}

@font-face {
  font-family: 'Red Hat Display';
  src: url('fonts/RedHatDisplay-Bold.woff2') format('woff2'); /* <--- CHECK THIS PATH */
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* <--- THIS FIXES THE 2.6s DELAY */
}



/* Header */
:root {
            --primary-text: #ffffff;
            --secondary-text: #e0e0e0;
            --background-start: #1f262e;
            --background-end: #0f1216;
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.2);
            --hover-bg: rgba(255, 255, 255, 0.1);
        }

.bg-black {
  background-color: #000000;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400; /* This sets the default weight */
}


.info-widget {
  /* Initial state: hidden */
  opacity: 0; 
  /* Run the animation called 'fadeInUp' */
  animation: fadeInUp 1.5s ease-out forwards;
}

/* Define the animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End in natural position */
  }
}

/* --- Header & Glassmorphism Effect --- */
/* --- LEFT-SIDE WIDGET (Time/Location) --- */
.info-widget {
  position: absolute;
  left: 0.5%;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  z-index: 1001;
  border-radius: 15px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);

  color: var(--primary-text);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.time-display {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.location-display {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
}

.weather-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.weather-svg {
  width: 100%;
  height: 100%;
  fill: #FFD700;
  transition: all 0.5s ease;
}
.weather-svg.moon { fill: #ffffff; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spinning { animation: spin-slow 10s linear infinite; }

.main-header {
  /* Initial state: hidden */
  opacity: 0; 
  /* Run the animation called 'fadeInUp' */
  animation: fadeInUp 1.5s ease-out forwards;
}

/* Define the animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End in natural position */
  }
}

/* --- RIGHT-SIDE HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  right: 0.5%;
  width: 20.5%;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 30px;
  height: 40px;
  z-index: 1001;
  border-radius: 15px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  
}

/* LOGO IMAGE STYLES */
.logo img {
  display: block;
  width: 150px; /* Default desktop size */
  height: auto;
  cursor: pointer;
  filter: brightness(0) invert(1); /* Makes the logo WHITE if it's black/colored */
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px; 
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; 
}

.hamburger-menu .bar,
.bar2 {
  display: block;
  width: 100%; 
  height: 2px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger-menu.open .bar { transform: translateY(4.5px) rotate(45deg); }
.hamburger-menu.open .bar2 { transform: translateY(-4.5px) rotate(-45deg); }

/* --- NAVIGATION MENU --- */
.side-nav {
  position: fixed;
  top: 110px;
  right: 0.5%;
  height: 0; 
  width: 20.5%;
  border: 1px solid transparent;
  border-radius: 15px; 
  z-index: 999; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-nav.open {
  height: 50vh; 
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding-bottom: 20px;
}

.side-nav-content { padding: 20px 0 20px 30px; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav ul li a {
  display: block;
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.side-nav ul li a:hover { color: var(--primary-text); padding-left: 10px; }

.social-icons { display: flex; gap: 25px; padding: 0 30px; }
.social-icons a { color: var(--secondary-text); font-size: 1.5rem; transition: 0.3s; }
.social-icons a:hover { color: var(--primary-text); transform: scale(1.1); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .info-widget { left: 20px; top: 20px;}
  .info-widget {
    border: none;
    background: transparent;
    box-shadow: none; /* Optional: Remove shadow if it looks weird without bg */
    backdrop-filter: none; /* Optional: Removes the blur effect */
    -webkit-backdrop-filter: none;
  }
  .main-header { width: 30%; right: 20px; top: 0; margin-top: 20px; padding: 32px 20px; }
  .side-nav { width: 30%; right: 20px; }
  .side-nav.open { width: 30%; }
}

@media (max-width: 768px) {
  .info-widget { left: 15px; top: 15px; padding: 10px 15px; gap: 10px; display: none;}
  .info-text .location-display { font-size: 0.7rem; }
  .time-display { font-size: 0.95rem; }
  .weather-icon { width: 24px; height: 24px; }

  .main-header {
    width: auto; min-width: 240px; right: 15px; left: 15px;
    top: 0; margin-top: 15px; padding: 25px 20px;
  }

  .main-header {
    border: none;
  }
  
  /* Adjusted Logo size for Mobile */
  .logo img { width: 120px; }
  
  .side-nav { top: 90px; right: 15px; width: 45%; }
  .side-nav.open { width: 50%; height: 55%; }
}

@media (max-width: 480px) {
  .info-widget {  left: 10px; top: 15px; padding: 8px 12px; }
  .info-text .location-display { display: none; } 
  
    .main-header {
    width: 92vw;
    min-width: 200px;
    right: 40px;
    margin-top: 15px;
    padding: 20.5px 15px;
  }
  
  /* Adjusted Logo size for Small Mobile */
  .logo img { width: 100px; }
  
  .side-nav { top: 80px; right: 10px; width: 150px; }
  .side-nav.open { width: 95%;  }
}

@media (max-width: 320px) {
  .info-widget {  left: 10px; top: 15px; padding: 8px 12px; }
  .info-text .location-display { display: none; } 
  
  .main-header { right: 10px; margin-top: 15px; padding: 8px 15px; }
  
  /* Adjusted Logo size for Small Mobile */
  .logo img { width: 100px; }
  
  .side-nav { top: 80px; right: 10px; width: 150px; }
  .side-nav.open { width: 200px; right: 10px; }
}

/* Body content */
.hero-section {
  padding: 0 !important; /* Force removal of padding */
  height: 100vh !important;         /* Occupy full viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.my-3d-widget {
  /* Initial state: hidden */
  opacity: 0; 
  /* Run the animation called 'fadeInUp' */
  animation: fadeInUp 1.5s ease-out forwards;
}

/* Define the animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End in natural position */
  }
}


.my-3d-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: visible;
  
}

.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.my-3d-widget #card:active {
  cursor: grabbing;
}

.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 250px;
  transform-origin: center center;
  display: flex;
  gap: 40px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}

.my-3d-widget .card__panel--vertical   { transform: translate(-50%, -50%); }
.my-3d-widget .card__panel--angle60     { transform: translate(-50%,-50%) rotateY(30deg)  translateZ(1px); }
.my-3d-widget .card__panel--horizontal { transform: translate(-50%,-50%) rotateY(60deg)  translateZ(1px); }
.my-3d-widget .card__panel--angle120   { transform: translate(-50%,-50%) rotateY(90deg) translateZ(1px); }
.my-3d-widget .card__panel--angle150   { transform: translate(-50%,-50%) rotateY(120deg) translateZ(1px); }
.my-3d-widget .card__panel--angle210   { transform: translate(-50%,-50%) rotateY(150deg) translateZ(1px); }
.my-3d-widget .card__panel--angle240   { transform: translate(-50%,-50%) rotateY(180deg) translateZ(1px); }
.my-3d-widget .card__panel--angle270   { transform: translate(-50%,-50%) rotateY(210deg) translateZ(1px); }

.my-3d-widget .panel__image {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

@media (max-width: 3840px) {

.hero-section{
  padding: 150px 0;
}

.my-3d-widget {
  margin-bottom: 150px;
}    
.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 750px;
  height: 250px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}

.my-3d-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60vh;
  overflow: visible;
}

.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}


@media (max-width: 3440px) {

.hero-section{
  padding: 150px 0;
}


.my-3d-widget {
  margin-bottom: 150px;
}    
.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 750px;
  height: 250px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}

@media (max-width: 2560px) {

.hero-section{
  padding: 150px 0;
}

.my-3d-widget {
  margin-bottom: 150px;
}    
.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 750px;
  height: 250px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}


@media (max-width: 1920px) {

.my-3d-widget {
  margin-bottom: 140px;
  margin-top: 50px;
}    

.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 740px;
  height: 240px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1400px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}


@media (max-width: 1440px) {

.my-3d-widget {
  margin-bottom: 100px;
}    

.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 650px;
  height: 200px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}


.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}


@media (max-width: 1366px) {

.my-3d-widget {
  margin-bottom: 200px;
}    

.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 600px;
  height: 180px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}


@media (max-width: 1024px) {

.my-3d-widget {
  margin-bottom: 200px;
}    

.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 600px;
  height: 180px;
  transform-origin: center center;
  display: flex;
  gap: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}

@media (max-width: 768px) {

.my-3d-widget {
  margin-bottom: 200px;
}        
.my-3d-widget .card__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 0;
  width: 400px;
  height: 150px;
  transform-origin: center center;
  display: flex;
  gap: 10px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}



.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

}

@media (max-width: 480px) {

.my-3d-widget {
margin-top: 120px;
  margin-bottom: 120px;
}    
    
.my-3d-widget .card__panel {
  position: absolute;
  top: 60%;
  left: 50%;
  bottom: 0;
  width: 320px;
  height: 120px;
  transform-origin: center center;
  display: flex;
  gap: 10px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backface-visibility: visible;
}


.my-3d-widget .scene {
  width: 300px;
  height: 300px;
  perspective: 1200px;
}

.my-3d-widget #card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
    
}


.text1 {
  /* Initial state: hidden */
  opacity: 0; 
  /* Run the animation called 'fadeInUp' */
  animation: fadeInUp 1.5s ease-out forwards;
}

/* Define the animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End in natural position */
  }
}


/* Text section styles */
.text1 {
  font-size: clamp(2rem, 17.3vw, 40rem);
  margin-top: 0px;
  line-height: 1;
  width: 100%;
  display: block;
  letter-spacing: 0.05em;
  overflow: visible;
  color: #E3E2DC;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-family: "Red Hat Display", sans-serif ;
  /* prevent text selection on drag */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/*Interactive lines*/
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* MAIN COMPONENT BLOCK */
.interactive-lines {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Red Hat Display", sans-serif !important;
  /* ensure it’s tall enough to show the lines */
  padding: 0 05px 0px 05px;
}

/* CONTAINER ELEMENT */
.interactive-lines__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 177px;
  overflow: visible;
}

/* LINE ELEMENT */
.interactive-lines__line {
  --initW: 4px;
  width: var(--initW);
  height: 177px;
  background: #f0eee8;
}

/* LINE MODIFIER -- PURPLE */
.interactive-lines__line--purple {
  background: #a22cff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease;
}

/* LINE MODIFIER -- ACTIVE (also hover state) */
.interactive-lines__line--purple:hover,
.interactive-lines__line--purple.interactive-lines__line--active {
  width: 177px !important;
  height: 177px !important;
}

/* TEXT ELEMENT */
.interactive-lines__text {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow: hidden;
  height: auto;
  max-height: calc(100% - 20px);
  color: #fff; /* Added for better visibility */
}

/* DOTS ELEMENT (inside text) */
.interactive-lines__dots {
  display: inline-block;
  margin-left: 4px;
}
.interactive-lines__dots span {
  opacity: 0;
  display: inline-block;
  animation: blink-dot 1.5s infinite;
}
.interactive-lines__dots span:nth-child(1) { animation-delay: 0s;   }
.interactive-lines__dots span:nth-child(2) { animation-delay: 0.3s; }
.interactive-lines__dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes blink-dot {
  0%,20%   { opacity: 0; }
  40%,60%  { opacity: 1; }
  80%,100% { opacity: 0; }
}

/* Cards */

 /* Base Title Style */
        .works {
            width: 100vw;
            padding-left: 60px;

            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 500;
            padding-bottom: -60px;
            font-family: "Red Hat Display", sans-serif !important;
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            position: absolute;
            margin-top: 0px;
            z-index: 10;
            text-align: left;
            color: rgb(227 226 220 / 86%);
             /* Assumed white based on dark UI */
        }

        .ksa-animation-container {
            position: sticky;
            top: 0;
            height: 100vh;
            padding-top: 180px !important;
            overflow: hidden;
            width: 100vw; /* Dark background so cards stand out */
        }

        /* This wrapper holds the header and cards in a row */
        .ksa-content-wrapper {
            display: flex;
            align-items: center;
            height: 100%;
            width: max-content;
            padding-left: 0vw;
            will-change: transform;
            margin-top: 20px;
        }

        /* --- Styling for the transforming header section --- */
        .ksa-header-section {
            flex-shrink: 0;
            height: 100vh;
            width: 100vw;
            border-radius: 0px;
            position: relative;
            overflow: hidden; 
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            margin-right: 3.5vw !important;
        }

        .ksa-header-section video {
            position: absolute;
            top: 0;
            left: 0px;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        .ksa-header-section .ksa-header-text {
             transition: opacity 0.3s ease;
        }

        /* --- Styling for the cards --- */
        .ksa-card {
            flex-shrink: 0;
            width: 70vw; 
            height: 70vh;
            border-radius: 20px;
            margin: 0 3vw;
            overflow: hidden;
            position: relative;
            background-color: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .ksa-card video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .ksa-card img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* This makes the image cover the container like a background */
            display: block;    /* Removes potential whitespace below the image */
        }

        /* --- Glassmorphism UI Elements --- */
        .ksa-card-title {
            position: absolute;
            bottom: 30px; 
            left: 20px;
            border-radius: 12px;
            padding: 10px 12px;
            font-size: 1rem;
            font-weight: 600;
            z-index: 2;
            opacity: 0;
            color: #fff;
            max-width: 50%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ksa-view-project-btn {
            position: absolute;
            bottom: 30px;
            right: 20px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 10px 16px;
            z-index: 2;
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #fff;
            font-size: 0.9rem;
            font-weight: 500;
            transition: background 0.3s ease;
        }

        .ksa-view-project-btn:hover {
            background: rgba(0, 0, 0, 0.5);
        }

        .ksa-view-project-btn img {
            width: 16px;
            height: 16px;
            margin-left: 8px;
        }

        .ksa-header-section .ksa-card-title,
        .ksa-header-section .ksa-view-project-btn {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* --- TABLET BREAKPOINTS --- */
        @media (max-width: 1366px) {
            .ksa-card { width: 95vw; height: 70vh; }
            .ksa-header-section { width: 100vw !important; height: 70vh !important; margin-right: 5vw !important; }
        }
        @media (max-width: 1024px) {
            .ksa-scroll-height-setter {display: none;}
            .ksa-card { width: 85vw; height: 35vh; }
            .ksa-header-section { width: 100vw !important; height: 40vh !important; margin-right: 5vw !important; }
        }
        @media (max-width: 768px) {
        
            .ksa-header-section { width: 98vw !important; height: 28vh !important; margin-right: 5vw !important; }
            .ksa-card { width: 98vw; height: 28vh; margin: 0 4vw; }
            .ksa-scroll-height-setter{
              display: none;
            }
            .ksa-animation-container {
            position: sticky; 
            display: none;
            top: 0;
            height: 50vh;
            padding-top: 0px !important;
            overflow: hidden;
            width: 100vw; /* Dark background so cards stand out */
        }
        .works {
                position: absolute;
                top: 50px; /* Adjust distance from top */
                left: 0;
                padding-left: 15px !important;
                width: 100%;
                text-align: left;
                font-size: clamp(1.125rem, 1.5vw, 3rem);
                padding: 0;
            }
        }

        /* --- MOBILE (Portrait < 480px) SPECIFIC CHANGES --- */
        @media (max-width: 480px) {
            
            /* 1. Use Flexbox to Center the Cards vertically */
           .ksa-animation-container {
            position: sticky;
            top: 0;
            height: 40vh;
            padding-top: 0px !important;
            overflow: hidden;
            width: 100vw; /* Dark background so cards stand out */
        }

            /* 2. Position Title at the top, independent of the flex center */
            .works {
                position: absolute;
                top: 20px; /* Adjust distance from top */
                left: 0;
                padding-left: 15px !important;
                width: 100%;
                text-align: left;
                font-size: clamp(1.125rem, 1.5vw, 3rem);
                padding: 0;
            }

            /* 3. Header Section: Fixed 50vh height */
            .ksa-header-section {
                width: 100vw !important;
                height: 50vh !important; /* Force 50vh */
                margin-right: 0 !important;
                padding: 0 10px;
                border-radius: 16px !important; /* Force rounded corners immediately */
            }

            /* 4. Cards: Fixed 50vh height */
            .ksa-card {
                width: 90vw;    
                height: 50vh !important; /* Force 50vh */
                margin: 0 10px;
                border-radius: 16px;
            }

            /* UI Adjustments for the new height */
            .ksa-card-title {
                bottom: 15px;
                left: 15px;
                font-size: 0.85rem;
                padding: 6px 10px;
                max-width: 55%;
            }

            .ksa-view-project-btn {
                bottom: 15px;
                right: 15px;
                font-size: 0.75rem;
                padding: 6px 10px;
            }
        }
/* --- Services --- */




/* --- Styles for Blur Text Effect --- */

/* --- Loader (for font preloading) --- */
    /* --- Loader (Unchanged) --- */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: #fff;
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

/* --- Layout Structure --- */
body {
    margin: 0;
    background-color: #000; /* Ensure bg is black */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.backclr {
    background-color: #000000;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 15px;
}

/* --- MAIN CONTAINER (Always Stacked) --- */
.content {
    display: flex;
    flex-direction: column; /* ALWAYS STACKED */
    width: 100%;
    min-height: 60vh;
    justify-content: center;
    color: rgb(227 226 220 / 86%);
    
    /* Default Desktop Padding (Max 60px) */
    padding: 120px 60px; 
}

.content-wrapper {
    display: flex;
    flex-direction: column; /* ALWAYS STACKED */
    width: 100%;
}

/* --- TYPOGRAPHY --- */

/* Label: "WHY KENTAURX" */
.about {
    width: 100%;
    margin-bottom: 30px; /* Space between label and text */
    color: rgb(227 226 220 / 86%);
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Your Fluid Font Size */
    font-size: clamp(1.125rem, 1.5vw, 3rem); 
    opacity: 0.8;
}

/* Main Text Container */
.blur1 {
    width: 100%;
    padding-left: 0 !important; /* No indent needed for stacked layout */
}

/* The Big Text */
.blur-text {
    width: 100%;
    line-height: 1.25;
    font-weight: 400;
    color: rgb(227 226 220 / 86%);
    
    /* Your Exact Fluid Font Size */
    font-size: clamp(0.8rem, 2.8vw + 1rem, 6rem);
}

.blur-text--1 {
    font-variation-settings: "wght" 100%, "wdth" 100;
    letter-spacing: -0.02em;
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* 1. Large Screens (1920px+) */
@media screen and (min-width: 1920px) {
    .content {
        padding: 140px 60px; /* Max side padding stays 60px */
    }
    .blur-text {
        font-size: clamp(3rem, 4vw, 6rem); /* Scale up text slightly */
    }
}

/* 2. Laptops (1440px) */
@media screen and (max-width: 1440px) {
    .content {
        padding: 100px 60px;
    }
}

/* 3. Small Laptops (1366px) */
@media screen and (max-width: 1366px) {
    .content {
        padding: 80px 60px;
    }
    .about {
        margin-bottom: 25px;
    }
}

/* 4. Tablets Landscape (1024px) */
@media screen and (max-width: 1024px) {
    .content {
        padding: 60px 30px; /* Slightly reduced side padding */
    }
    .blur-text {
        font-size: clamp(2rem, 4vw, 4rem);
    }
}

/* 5. Tablets Portrait (768px) */
@media screen and (max-width: 768px) {
    .content {
        padding: 50px 30px;
    }
    .about {
        font-size: 16px; /* Fixed readable label size */
    }
    .blur-text {
        font-size: clamp(24px, 5vw, 36px);
    }
}

/* 6. Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .content {
        /* STRICT MOBILE PADDING: 15px */
        padding: 40px 15px !important; 
    }
    
    .about {
        margin-bottom: 20px;
        font-size: 14px;
        opacity: 0.7;
    }
    
    .blur-text {
        font-size: 22px; /* Minimum readable size */
        line-height: 1.4;
    }
}



/* Marquee */

/* Container setup */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background-color: #000; /* Assuming black bg */
  
  /* Fade Effect */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 60px; /* Space between logos */
  animation: scroll 40s linear infinite; /* Adjusted speed for 20 total items */
  padding: 20px 0;
  will-change: transform;
}

/* === GENERAL LOGO STYLES === */
.marquee-track img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  /* Default: Turn white (optional, remove if you want original colors) */
  /* filter: brightness(0) invert(1); */ 
}

/* === SPECIAL CLASS: AFOX & AR PLASTIC === */
.marquee-track img.special-afox-ar {
  /* Example: Make these slightly larger? */
  width: 80px;
  
  /* Example: Keep original colors? */
  filter: none; 
}

/* === SPECIAL CLASS: HAYAGRIVAS === */
.marquee-track img.special-hayagriva {
  /* Example: Specific styling for Hayagrivas */
  filter: none; 
  width: 100px;
}

/* === THE LOOP FIX === */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Moves exactly half the distance. */
    /* Calculation: -50% minus half of the gap size (30px) to seal the seam. */
    transform: translateX(calc(-50% - 30px));
  }
}

  /*content*/

 :root {
            /* Scoped Variables */
            --gb-text-main: #ffffff;
            --gb-text-muted: #ffffff;
            
            --gb-glass-light: rgba(255, 255, 255, 0);
            --gb-glass-dark: rgb(0, 0, 0);
            --gb-border: 1px solid rgba(255, 255, 255, 0.178);
            --gb-blur: blur(10px);

            --gb-radius: 24px;
            --gb-font: "Red Hat Display", sans-serif;
            --gb-light-text: rgba(255, 255, 255, 0.86);
            --gb-gap: 12px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: var(--gb-font);
            /* Background and Height removed as requested */
        }

        /* --- Main Container --- */
        .gb-container {
            max-width: 100%;
            width: 100%;
            padding: 60px 50px 200px 60px; /* Added top/bottom padding for spacing */
            margin: 0 auto;
            visibility: hidden; /* Kept hidden until ScrollTrigger activates */
        }

        /* --- Header Section --- */
        .gb-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .gb-header-left { max-width: 600px; }

        .gb-badge {
            display: inline-block;
            padding: 0px;
            border: 1px solid rgba(0,0,0,0.1);
            border-radius: 50px;
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            font-weight: 400;
            color: #c3c2bd;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }

        .gb-title {
            font-size: clamp(2.4rem, 2vw, 10rem);
            line-height: 1.1;
            color: #c3c2bd;
            font-weight: 400;
            margin: 0;
        }

        .gb-title span {
            display: block;
            color: var(--gb-text-main);
            font-weight: 400;
        }

        .gb-header-right {
            max-width: 320px;
            text-align: right;
            color: var(--gb-text-muted);
            font-size: 1rem;
            line-height: 1.5;
            margin-right: 10px;
        }

        /* --- Grid Layout --- */
        .gb-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1.75fr; 
            gap: 5px; 
            width: 100%;
        }

        .gb-col {
            display: flex;
            flex-direction: column;
            gap: 10px; 
        }

        /* --- Glass Card Base Styles --- */
        .gb-card {
            background: var(--gb-glass-light);
            backdrop-filter: var(--gb-blur);
            -webkit-backdrop-filter: var(--gb-blur);
            border: var(--gb-border);
            border-radius: var(--gb-radius);
            padding: 30px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
            margin: 0;
            text-decoration: none;
        }

        .gb-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.034);
            z-index: 10;
        }

        /* --- Partners Card --- */
        .gb-card-partners {
            flex-direction: row;
            align-items: center;
            gap: 15px;
            min-height: 90px;
        }

        .gb-avatars { display: flex; }
        .gb-avatars img {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 2px solid white;
            margin-left: -10px;
            object-fit: cover;
        }
        .gb-avatars img:first-child { margin-left: 0; }
        .gb-partner-text { font-weight: 600; font-size: 0.85rem; color: var(--gb-text-muted); }

        /* --- ROI Card --- */
        .gb-card-roi { min-height: 240px; flex-grow: 1; }
        .gb-card-roi p { color: var(--gb-text-main); font-weight: 500; margin: 0; }
        .gb-big-stat {
            font-size: 4rem;
            font-weight: 500;
            color: var(--gb-text-main);
            letter-spacing: -2px;
            margin-top: 20px;
        }
        .gb-stat-label { color: var(--gb-text-muted); font-size: 0.85rem; margin-top: 5px; }

        /* --- Revenue Card --- */
        .gb-card-revenue { flex-grow: 1; }
        .gb-card-revenue p { color: var(--gb-text-main); font-weight: 500; font-size: 1.05rem; margin: 0; }

        /* --- Availability/Call Card --- */
        .gb-card-avail {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 30px;
            min-height: 70px;
            cursor: pointer;
        }

        .gb-avail-text { 
            font-size: 0.9rem; 
            font-weight: 700; 
            color: var(--gb-text-main); 
            text-transform: uppercase; 
            letter-spacing: 0.5px;
        }

        .gb-arrow-icon {
            width: 20px;
            height: auto;
            transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .gb-card-avail:hover {
            color: #000; 
            background: rgb(255, 255, 255);
            border-color: rgba(255,255,255, 0.1);
        }
        
        .gb-card-avail:hover .gb-avail-text {
    color: #000; /* You can also use 'inherit' here to take the parent's color */
}

        .gb-card-avail:hover .gb-arrow-icon { transform: translateX(6px); }

        /* --- Dark Card --- */
        .gb-card-dark {
            background: var(--gb-glass-dark);
            position: relative;
            overflow: hidden;
            justify-content: space-between;
            height: 100%;
            padding: 25px;
        }
        
        .gb-card-dark:hover { background: rgba(0, 0, 0, 0.9); }

        .gb-desc {
            font-size: 1.2rem;
            line-height: 1.6;
            color: var(--gb-light-text);
            margin-bottom: 60px;
            margin-top: 0;
            position: relative;
            z-index: 2;
        }

        .gb-rating-container { position: relative; z-index: 2; align-self: flex-start; /* Ensure text aligns right as well */
    text-align: left;}
        .gb-rating-score { font-size: 4rem; font-weight: 500; color: white; }
        .gb-rating-score span { font-size: 1.4rem; color: #555; }
        .gb-stars { color: #facc15; margin-bottom: 8px; font-size: 1.1rem; }
        .gb-rating-label { font-size: 0.75rem; color: #ffffff; text-transform: uppercase; font-weight: 600; }

        .gb-bottom-logo {
    position: absolute;
    bottom: -5px;
    left: 0%;
    transform: translateX(-3%);
    max-width: 300px;
    width: auto;
    opacity: 0.2; 
    z-index: 1;
    pointer-events: none;
    
    /* Smoother, longer transition with a natural ease */
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
        .gb-card-dark:hover .gb-bottom-logo {
    opacity: 0.6; 
    transform: translateX(-3%) scale(1.05); 
}

        @media (max-width: 1920px) {
        .gb-container {
                    max-width: 100%;
                    width: 100%;
                    padding: 60px 50px 200px 50px; /* Added top/bottom padding for spacing */
                    visibility: hidden; /* Kept hidden until ScrollTrigger activates */
                }
        
        .gb-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 30px;
            flex-wrap: wrap;
            padding-left: 10px;
            gap: 20px;
        }

        .gb-header-left { max-width: 600px; }

        .gb-header-right {
            max-width: 320px;
            text-align: right;
            color: var(--gb-text-muted);
            font-size: 1rem;
            line-height: 1.5;
            margin-right: 10px;
        }
            }

        @media (max-width: 1440px) {
        .gb-container {
        max-width: 100%;
        width: 100%;
        padding: 60px 60px 200px 60px; /* Added top/bottom padding for spacing */
        margin: 0 auto;
        visibility: hidden; /* Kept hidden until ScrollTrigger activates */
            }
        .gb-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 30px;
            flex-wrap: wrap;
            padding-left: 0px;
            gap: 20px;
        }

        .gb-header-left { max-width: 600px; }

            }


        @media (max-width: 1366px) {
        .gb-container {
        max-width: 100%;
        width: 100%;
        padding: 60px 60px 200px 60px; /* Added top/bottom padding for spacing */
        margin: 0 auto;
        visibility: hidden; /* Kept hidden until ScrollTrigger activates */
            }

            .gb-header-right {
            max-width: 320px;
            text-align: right;
            color: var(--gb-text-muted);
            font-size: 1rem;
            line-height: 1.5;
            margin-right: 0px;
        }
        }

        /* --- Responsive --- */
        @media (max-width: 1024px) {

            .gb-grid { grid-template-columns: 1fr 1fr; }
            .gb-card-dark { grid-column: span 2; min-height: 380px; }
            .gb-container { padding: 30px;}
        }




        @media (max-width: 768px) {
            .gb-container { padding: 40px 0px; }
        }

        @media (max-width: 600px) {
            .gb-header { flex-direction: column; align-items: flex-start; }
            .gb-header-right { text-align: left; margin: 0; padding-left: 15px;}
            .gb-grid { display: flex; flex-direction: column; gap: 8px; padding: 5px;}
            .gb-title { font-size: 2.2rem; margin: 0; padding-left: 15px;}
            .gb-card-dark { padding: 30px; }
            .gb-badge {padding: 0 0 0 15px; } 
        }


        /*Service*/
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow-x: hidden;
        }

        .main-wrapper3 {
            width: 100% !important;
            display: flex;
            justify-content: center;
            padding: 100px 0;
        }

        .container3 {
            width: 100%;
            max-width: none;    /* IMPORTANT: Remove any pixel limit */
            margin: 0;
            padding: 0 60px;
        }

        .section-label {
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #888;
            margin-bottom: 60px;
            border-bottom: 1px solid #333;
            padding-bottom: 20px;
            font-weight: 400;
        }

        /* --- SERVICE ITEM --- */
        .service-item {
            border-bottom: 1px solid #333;
            padding: 70px 0;
            display: flex;
            flex-direction: column;
            gap: 30px;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.3s ease;
        }

        .service-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .service-item:hover {
            border-bottom: 1px solid #666;
        }

        /* --- TOP ROW ALIGNMENT FIX --- */
        .service-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start; /* Aligns containers to top */
            width: 100%;
        }

        .service-title-group {
            display: flex;
            align-items: flex-start; /* Key: Align number and title to top */
            gap: 30px;
            flex: 1;
        }

        .service-num {
            font-weight: 300;
            font-size: 18px;
            color: #555;
            /* OPTICAL FIX: Pushes number down to align with top of Title Cap-Height */
            margin-top: 18px; 
            line-height: 1;
        }

        .service-title {
            font-size: 5rem; /* Large Display Size */
            font-weight: 500;
            /* TIGHTER LINE HEIGHT: Removes empty space above the letters */
            line-height: 0.95; 
            color: #fff;
            letter-spacing: -2px;
            margin-top: 0; /* Ensure no browser default margin interferes */
        }

        .service-desc {
            flex: 0 0 35%; 
            font-weight: 300;
            font-size: 1.15rem;
            line-height: 1.5;
            color: #cccccc;
            text-align: left;
            padding-left: 40px;
            
            /* OPTICAL FIX: This pushes the text down to align with the Title visually */
            padding-top: 14px; 
        }

        /* --- TAGS --- */
        .service-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 15px;
            /* Indentation to align with the Title start (skipping the number width) */
            padding-left: 65px; 
        }

        /* --- GLASSMORPHISM BUTTON --- */
        .tag {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            padding: 12px 28px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px; 
            color: #fff;
            font-size: 1rem;
            font-weight: 400;
            background: transparent;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            position: relative;
        }

        .tag::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background-color: #fff;
            border-radius: 50%;
            margin-right: 12px;
            transition: background-color 0.3s ease;
            box-shadow: 0 0 5px rgba(255, 255, 255, 0); 
        }

        .tag:hover {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }
        
        .tag:hover::before {
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
        }

        /* --- RESPONSIVENESS --- */
        
        /* Large Laptops (1440px) */
        @media screen and (max-width: 1440px) {
            .service-title { font-size: 4rem; }
            /* Adjust padding as font gets smaller to maintain alignment */
            .service-desc { padding-top: 10px; } 
            .service-num { margin-top: 12px; }
            .container { width: 100%; padding: 50px; }
        }

        /* Standard Laptops (1366px) */
        @media screen and (max-width: 1366px) {
            .service-title { font-size: 3.5rem; }
            .service-desc { padding-top: 8px; font-size: 1.1rem; }
            .service-num { margin-top: 10px; }
            .container3 { width: 100%; }
        }

        /* Tablets Landscape (1024px) */
        @media screen and (max-width: 1024px) {
            .service-title { font-size: 2rem; }
            .service-desc { flex: 0 0 45%; font-size: 0.8rem; padding-top: 6px; }
            .service-tags { padding-left: 0; }
            .service-num { margin-top: 8px; }
            .container3 { width: 100%; padding: 30px;  }
        }

        /* Tablets Portrait (768px) */
        @media screen and (max-width: 768px) {
            .service-top { flex-direction: column; gap: 20px; }
            .service-title-group { gap: 15px; }
            
            /* Reset specific alignment paddings for mobile stack */
            .service-desc { 
                font-size: 0.8rem;
                width: 100%; 
                padding-left: 0; 
                padding-top: 0; 
                color: #aaa; 
            }
            .container3 { width: 100%; padding: 15px; }
        }

        /* Mobile (480px) */
        @media screen and (max-width: 480px) {
            .service-item { padding: 50px 0; }
            .service-title { font-size: 1.4rem; letter-spacing: 0.05rem; padding-top: 05px;}
            .tag { padding: 10px 20px; font-size: 0.9rem; }
            .container3 { width: 100%; padding: 15px;}
            .section-label{
              margin-bottom: 0px;
            }
            .main-wrapper3 {padding: 80px 0 30px 0;}
        }

    
        /* Main Section Container */
        .kx-section-wrapper {
            width: 100%;
            /* Removed max-width restriction to ensure full width usage */
            display: flex;
            flex-direction: column;
          padding: 150px 60px;
        }

        /* Section Heading */
        .kx-main-title {
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #888;
            margin-bottom: 60px;
            border-bottom: 1px solid #333;
            padding-bottom: 20px;
            font-weight: 400;
        }

        /* Grid Layout */
        .kx-articles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
            margin-bottom: 5rem;
            width: 100%;
        }

        /* --- GLASSMORPHISM CARD STYLES --- */
        .kx-glass-card {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            position: relative;
            
            /* Glassmorphism Core Properties */
            background: rgba(255, 255, 255, 0.03); /* Very transparent fill */
            backdrop-filter: blur(12px); /* The Blur Effect */
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle glass border */
            
            padding: 20px; /* Internal spacing for glass look */
            border-radius: 4px; /* Slight rounded corners */
            transition: transform 0.4s ease, border-color 0.3s ease, background-color 0.3s;
        }

        /* Card Hover Effect */
        .kx-glass-card:hover {
            transform: translateY(-5px);
            border-color: rgba(162, 44, 255, 0.3);
            background: rgba(255, 255, 255, 0.05);
        }

        /* Image Container */
        .kx-media-frame {
            width: 100%;
            height: 300px;
            background-color: #1a1a1a;
            margin-bottom: 0; 
            overflow: hidden;
            border-radius: 2px;
        }

        .kx-media-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .kx-glass-card:hover .kx-media-frame img {
            transform: scale(1.08);
        }

        /* Divider Line */
        .kx-divider-line {
            width: 100%;
            height: 1px;
            background-color: rgba(255, 255, 255, 0.1);
            margin-top: 20px;
            margin-bottom: 20px; 
            transition: background-color 0.3s ease;
        }

        .kx-glass-card:hover .kx-divider-line {
            background-color: rgba(162, 44, 255, 0.5); 
        }

        /* Meta Data Row (Date & Button) */
        .kx-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 1.2rem;
            font-weight: 700;
            height: 32px;
        }

        .kx-meta-info {
            display: flex;
            align-items: center;
            color: #b0b0b0; 
        }

        .kx-date-highlight {
            color: #a22cff; 
            margin-right: 12px;
            font-weight: 700;
        }

        /* Typography */
        .kx-article-heading {
            font-size: 1.8rem;
            font-weight: 400; 
            margin-bottom: 1rem;
            line-height: 1.3;
            transition: color 0.3s ease;
            color: #ffffff;
        }

        .kx-glass-card:hover .kx-article-heading {
            color: #a22cff;
        }

        .kx-article-excerpt {
            font-size: 1.1rem;
            color: #cccccc; 
            line-height: 1.6;
            font-weight: 300;
        }

        /* --- BUTTON STYLES --- */
        .kx-btn-action {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            background-color: rgba(162, 44, 255, 0.9); 
            color: #fff;
            transition: all 0.3s ease;
            overflow: hidden;
            border: none;
            cursor: pointer;
        }

        .kx-btn-action:hover {
            background-color: rgba(162, 44, 255, 1);
            box-shadow: 0 0 15px rgba(162, 44, 255, 0.4);
        }

        .kx-icon-svg {
            stroke: currentColor;
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .kx-btn-action:hover .kx-icon-svg {
            transform: translate(3px, -3px);
        }

        /* Small Button Modifier */
        .kx-btn-sm {
            padding: 8px 14px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            border-radius: 2px;
        }

        .kx-btn-sm .kx-icon-svg {
            width: 10px;
            height: 10px;
            margin-left: 8px;
        }

        /* Large Footer Button Modifier */
        .kx-btn-lg {
            height: 70px;
            padding-right: 40px;
            border-radius: 0; /* Sharp edges for main button */
        }

        .kx-btn-divider-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 100%;
            margin-right: 30px;
            border-right: 1px solid rgba(255,255,255, 0.3); 
            background: rgba(0,0,0,0.1);
        }

        .kx-btn-lg .kx-icon-svg {
            width: 20px;
            height: 20px;
        }

        .kx-btn-text {
            font-size: 1.3rem;
            font-weight: 500;
        }

        /* Footer Section */
        .kx-footer-row {
            padding-top: 0.1rem;
            width: 100%;
            display: flex;
            justify-content: flex-start;
        }

        /* --- RESPONSIVE BREAKPOINTS --- */
        
        /* 1600px+ Wide Screens */
        @media screen and (min-width: 1600px) {
            .kx-articles-grid { gap: 4rem; }
            .kx-media-frame { height: 380px; }
             .kx-section-wrapper {
            width: 100%;
            /* Removed max-width restriction to ensure full width usage */
            display: flex;
            flex-direction: column;
          padding: 60px;
        }
            
        }

        /* 1440px Laptops */
        @media screen and (max-width: 1440px) {
            .kx-articles-grid { gap: 2rem; }
            .kx-media-frame { height: 280px; }
             .kx-section-wrapper {
            width: 100%;
            /* Removed max-width restriction to ensure full width usage */
            display: flex;
            flex-direction: column;
          padding: 60px;
        }
            
        }

        /* 1024px Tablets/Small Laptops */
        @media screen and (max-width: 1024px) {
            
            .kx-articles-grid { grid-template-columns: repeat(2, 1fr); }
            .kx-main-title { margin-bottom: 2rem; }
            .kx-media-frame { height: 260px; }
            .kx-section-wrapper {padding: 120px 30px; }
        }

        /* 768px Tablets Portrait */
        @media screen and (max-width: 768px) {
            
            .kx-articles-grid { grid-template-columns: 1fr; gap: 3rem; }
            .kx-section-wrapper {padding: 15px; }
            .kx-media-frame { height: 350px; }
        }

        /* 480px Mobile */
        @media screen and (max-width: 480px) {
            .kx-section-wrapper {padding: 15px; }
            .kx-main-title { margin-bottom: 2rem; }
            .kx-meta-row { flex-wrap: wrap; height: auto; gap: 10px; margin-bottom: 12px; }
            .kx-media-frame { height: 220px; }
            .kx-article-heading { font-size: 1.5rem; }
            .kx-footer-row { justify-content: center; }
            .kx-btn-lg { width: 100%; }
            .kx-btn-divider-box { flex-shrink: 0; }
        }



        /* Base Style (Large Desktop / Default) */
        .FOUNDER {
          width: 100%;
          padding: 100px 60px;
        }

        /* 1440px - Standard Laptops/Desktops */
        @media screen and (max-width: 1440px) {
          .FOUNDER {
            padding: 60px 60px;
          }
        }

        /* 1366px - Smaller Laptops */
        @media screen and (max-width: 1366px) {
          .FOUNDER {
            padding: 60px 60px;
          }
        }

        /* 1024px - Tablets (Landscape) / Small Laptops */
        @media screen and (max-width: 1024px) {
          .FOUNDER {
            padding: 30px 30px;
          }
        }

        /* 768px - Tablets (Portrait) / Large Phones */
        @media screen and (max-width: 768px) {
          .FOUNDER {
            padding: 20px 20px;
          }
        }

        /* 480px - Mobile Phones */
        @media screen and (max-width: 480px) {
          .FOUNDER {
            padding: 50px 15px; /* Your requested mobile padding */
          }
        }

  


/* testimonials */
        .kx-ts-section {
            width: 100%;
            height: 60vh; /* Full viewport height */
            padding: 100px 60px;
            display: flex;
            flex-direction: column;
            position: relative;
            background-color: #000;
        }

        /* Top Bar Layout */
        .kx-ts-top-bar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 20px;
        }

        .kx-ts-label {
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #888;
            font-weight: 500;
        }

        /* The Horizontal Line */
        .kx-ts-divider {
            width: 100%;
            height: 1px;
            background-color: #333;
            margin-bottom: 30px;
        }

        /* LOGO Display Container */
        .kx-ts-logo-container {
            height: 70px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            overflow: hidden;
            position: relative;
        }

        /* Generic Logo Style */
        .kx-ts-logo {
            position: absolute;
            top: 0;
            left: 0;
            max-height: 50px;
            max-width: 200px;
            object-fit: contain;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.5s ease-in-out;
            /* Standard filter: Turn black logos white */
            filter: brightness(0) invert(1); 
        }

        /* SPECIAL LOGO (AR Plastic Surgery) - No Filter */
        .kx-ts-logo.kx-ts-special {
            filter: none !important; 
            max-height: 65px; 
        }

        .kx-ts-logo.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Slider Wrapper */
        .kx-ts-slider {
            flex-grow: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        /* Individual Slide */
        .kx-ts-slide {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transition: all 0.6s ease-in-out;
        }

        .kx-ts-slide.active {
            opacity: 1;
            visibility: visible;
        }

        /* Quote Text */
        .kx-ts-quote {
            font-size: 2.8rem;
            line-height: 1.2;
            font-weight: 500;
            color: #fff;
            max-width: 90%;
            margin-bottom: 40px;
            letter-spacing: -0.01em;
        }

        /* Author Info Container */
        .kx-ts-author-info {
            display: flex;
            gap: 15px;
        }

        /* Author Tags/Pills */
        .kx-ts-tag {
            background-color: #1a1a1a;
            color: #ccc;
            padding: 10px 20px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-radius: 4px;
        }

        /* Next Button */
        .kx-ts-next-btn {
            position: absolute;
            bottom: 40px;
            right: 60px;
            background-color: #1a1a1a;
            color: #fff;
            border: none;
            padding: 15px 30px;
            font-family: 'Red Hat Display', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: background 0.3s;
            border-radius: 4px;
        }

        .kx-ts-next-btn:hover {
            background-color: #333;
        }

        /* Responsive Adjustments (Mobile) */
        @media (max-width: 1920px) {
        
        .kx-ts-section {
            width: 100%;
            height: 80vh; /* Base height */
            min-height: 600px; /* Prevent it from getting too squashed on wide monitors */
            padding: 100px 60px;
            display: flex;
            flex-direction: column;
            position: relative;
            background-color: #000;
            overflow: hidden; /* Ensure no scrollbars from animations */
        }

        .kx-ts-top-bar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 20px;
        }

        .kx-ts-label {
            font-size: clamp(1.125rem, 1.5vw, 3rem); /* Fluid typography */
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #888;
            font-weight: 400;
        }

        .kx-ts-divider {
            width: 100%;
            height: 1px;
            background-color: #333;
            margin-bottom: 30px;
        }

        /* Logo Container */
        .kx-ts-logo-container {
            height: 60px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            position: relative;
        }

        .kx-ts-logo {
            position: absolute;
            top: 0;
            left: 0;
            max-height: 50px;
            max-width: 200px;
            object-fit: contain;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.5s ease-in-out;
            filter: brightness(0) invert(1); 
        }

        .kx-ts-logo.kx-ts-special {
            filter: none !important; 
            max-height: 65px; 
        }

        .kx-ts-logo.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Slider Wrapper */
        .kx-ts-slider {
            flex-grow: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        .kx-ts-slide {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transition: all 0.6s ease-in-out;
        }

        .kx-ts-slide.active {
            opacity: 1;
            visibility: visible;
        }

        .kx-ts-quote {
            font-size: 2.8rem;
            line-height: 1.2;
            font-weight: 500;
            color: #fff;
            max-width: 90%;
            margin-bottom: 40px;
            letter-spacing: -0.01em;
        }

        .kx-ts-author-info {
            display: flex;
            gap: 15px;
        }

        .kx-ts-tag {
            background-color: #1a1a1a;
            color: #ccc;
            padding: 10px 20px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-radius: 4px;
        }

        /* Next Button */
        .kx-ts-next-btn {
            position: absolute;
            bottom: 40px;
            right: 60px;
            background-color: #1a1a1a;
            color: #fff;
            border: none;
            padding: 15px 30px;
            font-family: 'Red Hat Display', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: background 0.3s;
            border-radius: 4px;
            z-index: 10;
        }

        .kx-ts-next-btn:hover {
            background-color: #333;
        }
    }
        /* --- BREAKPOINTS --- */

        /* 1440px (Laptop L) */
        @media (max-width: 1440px) {
            .kx-ts-section {
                padding: 80px 60px; /* Slight padding reduction */
                height: 55vh;
            }
            .kx-ts-quote {
                font-size: 2.5rem; /* Slightly smaller quote */
            }
        }

        /* 1366px (Standard Laptop) */
        @media (max-width: 1366px) {
            .kx-ts-section {
                padding: 70px 60px;
                min-height: 550px;
            }
            .kx-ts-quote {
                font-size: 2.2rem;
                max-width: 95%; /* Use more width */
            }
            .kx-ts-logo {
                max-height: 45px;
            }
        }

        /* 1024px (Tablet Landscape / Small Laptop) */
        @media (max-width: 1024px) {
            .kx-ts-section {
                padding: 60px 30px;
                height: auto; /* Remove fixed height constraint */
                min-height: 500px;
            }
            
            .kx-ts-quote {
                font-size: 2rem;
                margin-bottom: 30px;
            }

            .kx-ts-next-btn {
                bottom: 30px;
                right: 40px;
            }
        }

        /* 768px (Tablet Portrait) */
        @media (max-width: 768px) {
            .kx-ts-section {
                padding: 60px 15px;
                height: auto; /* Remove fixed height constraint */
                min-height: 600px;
            }
            
            .kx-ts-quote { font-size: 1.3rem; }
            
            .kx-ts-next-btn { 
                bottom: 20px; 
                right: 20px;
                /* Mobile: Remove background, keep text only */
                background: transparent;
                padding: 0;
            }
            .kx-ts-next-btn:hover {
                background: transparent;
                color: #ccc;
            }

            .kx-ts-author-info { flex-direction: column; gap: 10px; align-items: flex-start; }
            .kx-ts-logo-container { height: 70px; margin-bottom: 0px; }
            .kx-ts-logo { max-height: 40px; }
        }


/* FAQs */

      .page-wrapper {
            display: flex;
            width: 100%;
            min-height: 50vh;
            padding: 120px 60px;
        }

        /* LEFT COLUMN */
        .left-col {
            width: 50%;
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        h1.faq-heading {
            font-size: clamp(1.125rem, 1.5vw, 3rem);
            font-weight: 400;
            color: #888;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            line-height: 1;
        }

        /* RIGHT COLUMN */
        .right-col {
            width: 50%;
            padding-left: 40px; 
        }

        /* ACCORDION STYLES */
        .faq-item {
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            width: 100%;
        }

        .faq-item:last-child {
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            color: #fff;
            padding: 2.5rem 0;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Red Hat Display', sans-serif;
            font-size: 1.5rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }

        .faq-question:hover {
            color: #ccc;
        }

        /* --- UPDATED ICON STYLES --- */
        .icon {
            width: 24px;  /* Set appropriate size for the image */
            height: 24px;
            margin-left: 20px;
            /* Smooth rotation transition */
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            object-fit: contain;
        }

        /* When active, rotate the DOWN arrow 180deg to point UP */
        .faq-question.active .icon {
            transform: rotate(180deg);
        }
        /* --------------------------- */

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            color: #a1a1a1;
        }

        .faq-answer p {
            padding-bottom: 2.5rem;
            font-size: 1.125rem;
            line-height: 1.6;
            max-width: 90%;
        }

        /* === RESPONSIVE BREAKPOINTS === */

        @media (min-width: 1920px) {
            .page-wrapper { padding: 150px 60px; }
            .faq-question { font-size: 1.75rem; }
        }

        @media (max-width: 1440px) {
            .page-wrapper { padding: 100px 60px; }
            .faq-question { padding: 2rem 0; font-size: 1.35rem; }
        }

        @media (max-width: 1024px) {
            .page-wrapper { padding: 80px 30px; }
            .left-col { width: 45%; }
            .right-col { width: 55%; padding-left: 30px; }
            .faq-question { font-size: 0.9rem; }
            .faq-question {font-size: 0.8rem; padding: 1.5rem 0;}
        }

        @media (max-width: 768px) {
            .page-wrapper {
                flex-direction: column;
                padding: 60px 15px;
            }

            .left-col {
                width: 100%;
                position: static;
                margin-bottom: 40px;
            }

            .right-col {
                width: 100%;
                padding-left: 0;
            }

            h1.faq-heading {
                font-size: clamp(1.125rem, 1.5vw, 3rem);
            }

            .faq-question {
                font-size: 0.9rem;
                padding: 1.75rem 0;
            }
            .faq-answer p {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 480px) {
            .page-wrapper {
                padding: 50px 15px;
            }

            h1.faq-heading {
                font-size: clamp(1.125rem, 1.5vw, 3rem);
                margin-bottom: 10px;
            }

            .faq-question {
                font-size: 1rem;
                padding: 1.5rem 0;
            }

            .faq-answer p {
                font-size: 0.95rem;
            }
            
            /* Adjusted mobile icon size */
            .icon {
                width: 16px;
                height: 16px;
            }
        }
           


 /* portfolio mobile view */       

    /* --- CONTAINER & BASE --- */
.k21-mobile-featuredworks-section {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    padding: 15px; /* Default Mobile Padding */
    background-color: transparent;
    font-family: 'Red Hat Display', sans-serif;
    box-sizing: border-box;
    display: block;
}

/* --- HEADER --- */
.k21-mobile-featuredworks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 0;
}

.k21-mobile-featuredworks-title {
    font-size: clamp(1.125rem, 1.5vw, 3rem);
    font-weight: 400;
    margin: 0;
    color: rgb(227 226 220 / 86%); /* White text for dark background */
    letter-spacing: -0.5px;
}

.k21-mobile-featuredworks-link {
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    color: rgb(227 226 220 / 86%);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.k21-mobile-featuredworks-icon {
    width: 14px;
    height: auto;
    display: block;
    filter: invert(0); /* Makes black icons white */
}

/* --- CARD LIST --- */
.k21-mobile-featuredworks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- CARD STYLING --- */
.k21-mobile-featuredworks-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
    border-radius: 08px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.k21-card-orange { background-color: #000000; }
.k21-card-dark { background-color: #111111; }

.k21-mobile-featuredworks-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.k21-mobile-featuredworks-card:hover .k21-mobile-featuredworks-media {
    transform: scale(1.05);
}

/* --- OVERLAY CONTENT --- */
.k21-mobile-featuredworks-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.k21-project-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.k21-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.k21-pt-tag {
    font-family: 'Red Hat Display', sans-serif;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.k21-mobile-featuredworks-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
}

/* --- RESPONSIVE LOGIC --- */

/* TABLET (600px - 1100px): Increase padding/font */
@media (min-width: 600px) {
    .k21-mobile-featuredworks-section {
        padding: 30px; 
    }
    .k21-project-title {
        font-size: 28px;
    }
}

/* DESKTOP (1100px+): HIDE THIS SECTION COMPLETELY */
@media (min-width: 1101px) {
    .k21-mobile-featuredworks-section {
        display: none !important;
    }
}


/* footer*/


  @property --k97-x {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }
        @property --k97-y {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

       .k97-main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 0 60px;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: opacity 0.3s ease;
        }

        /* --- TOP CONTAINER --- */
        .k97-top-container {
            width: 100%;
            padding: 80px 0;
            box-sizing: border-box;
            background-color: #000;
            color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 3rem;
            z-index: 10;
            position: relative;
        }

        .k97-cta-section {
            flex: 1;
            min-width: 300px;
        }

        .k97-cta-section h2 {
            font-size: clamp(2.5rem, 5vw, 6rem);
            font-weight: 500;
            line-height: 1.1;
            margin: 0 0 2rem 0;
            letter-spacing: -0.02em;
        }

        /* --- SLIDE TO CONTACT STYLES --- */
        .k97-slider-container {
            position: relative;
            width: 280px; /* Default desktop width */
            height: 64px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 100px;
            display: flex;
            align-items: center;
            padding: 4px;
            box-sizing: border-box;
            overflow: hidden;
            user-select: none;
            -webkit-user-select: none;
            cursor: pointer;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .k97-slider-text {
            position: absolute;
            width: 100%;
            text-align: center;
            font-size: 1rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            z-index: 1;
            transition: opacity 0.1s ease;
            letter-spacing: 0.5px;
            
            /* Shimmer */
            background: linear-gradient(to right, rgba(255,255,255,0.4) 0%, #fff 50%, rgba(255,255,255,0.4) 100%);
            background-size: 200% auto;
            color: transparent;
            -webkit-background-clip: text;
            background-clip: text;
            animation: k97-shimmer 3s linear infinite;
        }

        @keyframes k97-shimmer {
            to { background-position: 200% center; }
        }

        .k97-slider-handle {
            width: 56px;
            height: 56px;
            background-color: #ffffff;
            border-radius: 50%;
            position: absolute;
            left: 4px;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: grab;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            touch-action: none; 
        }

        .k97-slider-handle:active {
            cursor: grabbing;
            transform: scale(0.98);
        }

        .k97-slider-icon {
            width: 24px;
            height: 24px;
            object-fit: contain;
            pointer-events: none;
            user-select: none;
            -webkit-user-drag: none;
        }

        /* --- INFO SECTION --- */
        .k97-info-section {
            flex: 1;
            min-width: 250px;
            display: flex;
            align-self: flex-end;
            flex-direction: column;
            gap: 2rem;
            text-align: right;
            font-size: 1rem;
            color: #ccc;
        }

        .k97-info-group h3 {
            color: #fff;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .k97-info-group p {
            margin: 0.5rem 0;
            line-height: 1.5;
        }

        .k97-social-links {
            display: flex;
            justify-content: flex-end;
            gap: 1.5rem;
            align-items: center;
            margin-top: 1rem;
        }

        .k97-social-icon {
            width: 24px;
            height: 24px;
            object-fit: contain;
            transition: transform 0.2s ease;
        }
        
        .k97-social-icon:hover {
            transform: scale(1.1);
        }

        /* --- FOOTER --- */
        .k97-divider {
            width: 100%;
            height: 1px;
            background-color: #222;
            margin: 0 auto;
        }

        .k97-copyright-bar {
            width: 100%;
            padding: 20px 0;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #666;
            font-size: 0.85rem;
        }

        .k97-footer-container {
            width: 98%;
            padding: 0rem; 
            background-color: #000000;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .k97-torch-text {
            font-size: clamp(2rem, 19vw, 40rem);
            font-weight: 500;
            width: 100%;
            text-align: center;
            margin: 0;
            line-height: 0.9;
            letter-spacing: -0.04em;
            text-transform: uppercase;
            cursor: default;
            user-select: none;
            color: transparent; 
            /* Using prefixed CSS variables */
            background-image: radial-gradient(
                circle 600px at var(--k97-x, 50%) var(--k97-y, 50%), 
                #E3E2DC 0%,        
                rgba(227, 226, 220, 0.3) 40%, 
                transparent 70%
            );
            background-clip: text;
            -webkit-background-clip: text;
            background-attachment: scroll; 
            -webkit-font-smoothing: antialiased;
            transition: --k97-x 1s ease-out, --k97-y 1s ease-out; 
            will-change: --k97-x, --k97-y;
        }
        
        .k97-torch-text::before {
            content: 'KENTAURX';
            position: absolute;
            left: 0;
            right: 0;
            margin: 0 auto;
            color: transparent;
            -webkit-text-stroke: 1px rgba(227, 226, 220, 0.05);
            z-index: -1;
        }

        @media (max-width: 1920px) {
    .k97-main-wrapper {
      padding: 20px 60px;
        /* Center the layout on huge screens */
    }
}

/* --- 1440px (Large Laptops) --- */
@media (max-width: 1440px) {
    .k97-main-wrapper{
        padding: 20px 60px; /* Reduce padding slightly */
    }

    .k97-cta-section h2 {
        /* Slightly reduce headline size */
        font-size: clamp(2.2rem, 4.5vw, 5rem);
    }
}

/* --- 1366px (Standard Laptops) --- */
@media (max-width: 1366px) {
    .k97-top-container {
        padding: 50px 0px;
        gap: 2rem;
    }

    .k97-info-section {
        /* Ensure font size is readable on laptop screens */
        font-size: 0.95rem;
    }

    .k97-torch-text {
        /* Adjust footer text scaling */
        font-size: 17vw;
    }

    .k97-footer-container {
            width: 100%;
            padding: 0rem; 
            background-color: #000000;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

    .k97-footer-container {
            padding-bottom: 0.5rem;
            margin: 0 -10px;
        }
    .k97-torch-text{
            font-size: 19vw;
            }

}

/* --- 1024px (Tablets / Small Laptops) --- 
   Major layout shift: Info section moves from right-aligned 
   to left-aligned or stacked. */
@media (max-width: 1024px) {
    .k97-top-container {
        padding: 2.5rem 0rem;
        flex-wrap: wrap; /* Ensure wrapping happens here */
    }

    .k97-main-wrapper{
        padding: 30px;
    }
    .k97-cta-section {
        /* Make CTA take full width if needed, or keep 50% depending on preference */
        min-width: 100%;
        margin-bottom: 2rem;
    }

    .k97-info-section {
        min-width: 100%;
        text-align: left; /* Switch from right-align to left */
        align-items: flex-end;
        
        /* Optional: Arrange Contact and Socials side-by-side on tablet */
        flex-direction: row; 
        justify-content: space-between;
    }

    .k97-social-links {
        justify-content: flex-start; /* Align social icons to left */
    }

    .k97-slider-container {
        /* Make the slider slightly wider for easier touch on tablets */
        width: 320px; 
    }
     .k97-footer-container {
             padding-bottom: 0.5rem;
            margin: 0 -10px;
          }
            .k97-torch-text{
                font-size: 20vw;
            }
}


        /* --- MOBILE RESPONSIVE TWEAKS --- */
        @media (max-width: 768px) {
            .k97-top-container {
                padding: 0; /* Slightly less padding */
                flex-direction: column;
                gap: 2rem;
            }

            .k97-main-wrapper {
                padding: 60px 15px 10px 15px;
              }

            .k97-info-section {
                text-align: left;
                align-items: flex-start;
                padding-bottom: 40px;
                width: 100%;
            }

            .k97-social-links {
                justify-content: flex-start;
            }

            /* --- FIX 1: Slider Full Width on Mobile --- */
            .k97-cta-section {
                width: 100%;
            }
            .k97-slider-container {
                width: 100%; /* Force full width */
            }

            /* --- FIX 2: Copyright Bar Left/Right on Mobile --- */
            .k97-copyright-bar {
                padding: 20px 0;
                flex-direction: row; /* Force side-by-side */
                justify-content: space-between; /* Spread them out */
                text-align: left; /* Remove center align */
                gap: 0;
                font-size: 0.75rem; /* Slightly smaller to fit on small screens */
            }
            .k97-footer-container {
             padding-bottom: 0.5rem;
            margin: 0 -10px;
          }
            .k97-torch-text{
                font-size: 20vw;
            }
        
        }

/* --- 480px (Mobile Devices) --- 
   Full stack layout, maximized touch targets. */
@media (max-width: 480px) {
    .k97-top-container {
        
        flex-direction: column;
        gap: 2.5rem;
    }

    .k97-main-wrapper {
        padding: 60px 15px 05px 15px;
    }

    .k97-cta-section h2 {
        font-size: 2.2rem; /* readable fixed size */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    /* Force Slider to full width of screen */
    .k97-slider-container {
        width: 100%; 
    }

    /* Stack the info section vertically again */
    .k97-info-section {
        flex-direction: column;
        gap: 2rem;
    }

    .k97-copyright-bar {
        padding: 20px 0  ;
        flex-direction: column; /* Stack copyright text */
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .k97-footer-container {
        padding-bottom: 0.5rem;
        margin: 0 -5px;
    }

    .k97-torch-text {
        /* Prevent text from disappearing or being too small */
        font-size: 19vw; 
    }
}

.kfeaturedworks-section{
padding-top: 80px !important;
}