@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap");

/* =========================================
   BASE STYLES & SCROLLBAR
========================================= */
/* =========================================
   BASE STYLES & SCROLLBAR
========================================= */
body {
  background-color: #030305;
  color: white;
  overflow-x: hidden;
  /* මේ පේළි 3න් මුළු සයිට් එකේම Select වෙන එක නවත්තනවා */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Contact Form එකේ Input සහ Textarea වල විතරක් අකුරු Select කරන්න දෙනවා */
input,
textarea {
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body.js-loading {
  opacity: 0;
}

/* Custom Thin Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #059669 #030305; /* Firefox */
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #030305;
  border-left: 1px solid rgba(16, 185, 129, 0.05);
}

::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* =========================================
   PRELOADER & CURSOR
========================================= */
.preloader-text {
  animation: pulse-glow-preloader 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-glow-preloader {
  0% {
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.2));
    opacity: 0.8;
  }
  100% {
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.6));
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes loading-swipe {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* =========================================
   BACKGROUND EFFECTS (MESH, GRID, GRAIN)
========================================= */
.mesh-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: meshFloat 25s infinite ease-in-out;
}

.mesh-blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.4) 0%,
    transparent 70%
  );
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.mesh-blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(5, 150, 105, 0.3) 0%,
    transparent 70%
  );
  bottom: -15%;
  right: -10%;
  animation-delay: -8s;
}

.mesh-blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(52, 211, 153, 0.3) 0%,
    transparent 70%
  );
  top: 40%;
  left: 60%;
  animation-delay: -16s;
}

@keyframes meshFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(50px, -80px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 40px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(80px, 20px) scale(1.05) rotate(270deg);
  }
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* =========================================
   HERO SLIDER
========================================= */
:root {
  --nav-gap: 6.5rem;
}

.hero-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: transparent;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 2s ease-out;
  transform: scale(1.03);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 10;
}

@keyframes cinematicGlint {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.massive-text {
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  animation: cinematicGlint 7s linear infinite;
}

.text-slide-1-massive {
  left: 6%;
  text-align: left;
  right: auto;
}
.text-slide-2-massive {
  right: 6%;
  text-align: right;
  left: auto;
}
.text-slide-3-massive {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.slide-bg {
  position: absolute;
  top: var(--nav-gap);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.off-the-shelf-img {
  background-image: url("photos/loose-suit.png");
  background-position: 80% bottom;
  background-size: auto 100%;
  background-repeat: no-repeat;
  filter: grayscale(40%) drop-shadow(0 0 40px rgba(0, 0, 0, 0.8))
    brightness(0.85);
}

.custom-built-img {
  background-image: url("photos/perfect-suit.png");
  background-position: 20% bottom;
  background-size: auto 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.25));
}

.vision-bg {
  background: radial-gradient(
    circle at center,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 60%
  );
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.slide:nth-child(1) .overlay {
  background: linear-gradient(
    to right,
    rgba(3, 3, 5, 0.95) 0%,
    rgba(3, 3, 5, 0.7) 45%,
    transparent 100%
  );
}
.slide:nth-child(2) .overlay {
  background: linear-gradient(
    to left,
    rgba(3, 3, 5, 0.95) 0%,
    rgba(3, 3, 5, 0.7) 45%,
    transparent 100%
  );
}
.slide:nth-child(3) .overlay {
  background: radial-gradient(
    circle at center,
    rgba(3, 3, 5, 0.3) 0%,
    rgba(3, 3, 5, 0.8) 100%
  );
}

.cinematic-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(5px);
  transition:
    opacity 1.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    filter 1.2s ease;
}

.slide.active .cinematic-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.slide.active .reveal-delay-1 {
  transition-delay: 0.1s;
}
.slide.active .reveal-delay-2 {
  transition-delay: 0.3s;
}
.slide.active .reveal-delay-3 {
  transition-delay: 0.5s;
}

.slide-content {
  position: relative;
  z-index: 4;
  height: calc(100% - var(--nav-gap));
  margin-top: var(--nav-gap);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 3rem;
  padding-left: clamp(4rem, 10vw, 12rem);
  padding-right: 45vw;
}

.slide:nth-child(2) .slide-content {
  padding-left: 45vw;
  padding-right: clamp(4rem, 10vw, 12rem);
  text-align: right;
  align-items: flex-end;
}

.slide:nth-child(3) .slide-content {
  justify-content: center;
  margin-top: 0;
  height: 100%;
  padding-top: var(--nav-gap);
  padding-left: clamp(4rem, 10vw, 12rem);
  padding-right: clamp(4rem, 10vw, 12rem);
  text-align: center;
  align-items: center;
}

.vertical-nav {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-line {
  width: 3px;
  height: 35px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
}

.nav-line.active {
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
}
/* අලුත් Keyframe Animation එකක් හැදුවා */
@keyframes fillBar {
  0% {
    height: 0%;
  }
  100% {
    height: 100%;
  }
}

.nav-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  /* කලින් තිබ්බ transition එක අයින් කළා */
}

.nav-line.active::after {
  animation: fillBar 6s linear forwards; /* තත්පර 6න් පිරෙන්න හැදුවා */
}

/* මේකෙන් තමයි Mouse එක ගෙනාවම පිරෙන එක එතනම Pause වෙන්නේ */
#hero:hover .nav-line.active::after {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .hero-container .slide-bg.off-the-shelf-img {
    background-position: center 15% !important;
    background-size: cover !important;
  }
  /* 1. පසුබිමේ තියෙන ලොකු අකුරු වල සයිස් එක, පැහැදිලි බව (Opacity) සහ තැන හැදීම */
  .massive-text {
    font-size: 3rem !important;
    top: 15% !important;
    left: 4rem !important;
    transform: translateY(0) !important;
    opacity: 0.35 !important;
    color: rgba(255, 255, 255, 0.35) !important;
    text-align: left !important;
  }

  /* 2. හැම Slide එකකම Text එක වමට (Left) ලස්සනට Align කිරීම සහ Navigation වලට ඉඩ වෙන් කිරීම */
  .slide-content,
  #hero h1,
  #hero p,
  .slide-content button {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* 3. Slide Content එකේ Padding සහ උස හැදීම (Text එක මැදට ගෙනීම) */
  .slide-content {
    margin-top: 0 !important;
    height: 100vh !important;
    padding-top: 5rem !important;
    padding-left: 4rem !important; /* වම් පැත්තේ Navigation වලට ඉඩ වෙන් කළා */
    padding-right: 1.5rem !important;
    padding-bottom: 2rem !important;
    justify-content: center !important; /* Text එක හරි මැදට ගෙනාවා */
  }

  /* 4. පසුබිම් පින්තූර Text එකට උඩින් නොපෙනෙන්න පහළට කිරීම සහ Opacity අඩු කිරීම */
  .off-the-shelf-img,
  .custom-built-img {
    background-position: center 30% !important; /* මුහුණු පේන්න පින්තූරයේ උඩ කොටස පහළට කළා */
    background-size: cover !important;
    opacity: 0.4 !important; /* පින්තූරයේ opacity එක පොඩ්ඩක් වැඩි කළා පැහැදිලිව පේන්න */
  }

  /* 5. අකුරු පේන්න තියෙන කළු පාට Overlay එක හැදීම (පින්තූරය තියෙන හරිය අඳුරු කළා) */
  .overlay {
    background: linear-gradient(
      to top,
      rgba(3, 3, 5, 1) 0%,
      rgba(3, 3, 5, 0.9) 30%,
      rgba(3, 3, 5, 0.1) 100%
    ) !important;
  }

  /* 6. ෆෝන් එකේදී අකුරු කැඩෙන එක නතර කිරීම (HTML වෙනස් නොකර CSS වලින්ම) */
  #hero h1 br {
    display: none !important;
  }

  /* 7. ෆෝන් එකට ගැලපෙන්න අකුරු වල සයිස් එක හැදීම */
  #hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
  }

  /* 8. Navigation ඉරි ටිකේ තැන හැදීම */
  .vertical-nav {
    left: 1.25rem;
  }
}

/* =========================================
   CLIENTS SECTION
========================================= */
.mask-fade {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.scroll-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 70s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  flex-shrink: 0;
  height: 65px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%) brightness(150%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .client-logo {
    height: 40px;
  }
  .scroll-track {
    gap: 2rem;
  }
}

/* =========================================
   VISION & MISSION CARDS
========================================= */
.mission-card-combined {
  position: relative;
  padding-top: 2rem;
}
.mission-card-combined::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px #10b981;
}
.mission-card-combined:hover::before {
  width: 100%;
}
.mission-card-combined:hover h3 {
  color: #10b981;
  transition: color 0.3s ease;
}

/* =========================================
   SERVICES ANIMATIONS
========================================= */
@keyframes code-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.3));
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.8));
  }
}
.animate-code-unique {
  animation: code-blink 2s ease-in-out infinite;
}

@keyframes rotate-gear-unique {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-gear-unique {
  animation: rotate-gear-unique 8s linear infinite;
  transform-origin: center;
}

@keyframes connection-pulse-unique {
  0%,
  100% {
    stroke-dashoffset: 20;
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}
.animate-embedded-unique path {
  stroke-dasharray: 20;
  animation: connection-pulse-unique 3s linear infinite;
}

@keyframes tech-breathing {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 18px rgba(52, 211, 153, 1));
  }
}
.animate-custom-it-new {
  animation: tech-breathing 3s ease-in-out infinite;
}

@keyframes pin-levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-site-visit-new {
  animation: pin-levitate 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes shadow-pulse {
  0%,
  100% {
    transform: scale(1) translateX(-50%);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.5) translateX(-100%);
    opacity: 0.2;
  }
}
.pin-shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background: rgba(52, 211, 153, 0.6);
  border-radius: 50%;
  filter: blur(2px);
  animation: shadow-pulse 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes arrow-grow-unique {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.animate-arrow-unique {
  stroke-dasharray: 50;
  animation: arrow-grow-unique 2s ease-out infinite;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.8));
}

/* =========================================
   PROJECTS LAYOUT
========================================= */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hollow-number {
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.main-hollow-number {
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(10rem, 20vw, 22rem);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.04);
  z-index: 1;
  line-height: 1;
}
.list-hollow-number {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4.5rem;
  font-weight: 900;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  color: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-list-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}
.project-list-item:hover:not(.active) {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
}
.item-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  transition: all 0.5s ease;
}

.project-list-item.active {
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4);
  transform: scale(1.03);
  border-color: rgba(16, 185, 129, 0.5);
  z-index: 10;
}
.project-list-item.active .item-overlay {
  background: linear-gradient(
    to right,
    rgba(16, 185, 129, 0.75) 0%,
    rgba(5, 150, 105, 0.4) 100%
  );
}
.project-list-item.active .list-hollow-number {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}
.project-list-item.active .subtitle-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

#main-project-content,
#main-project-bg {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.fade-out {
  opacity: 0;
  transform: translateY(10px);
}
.bg-fade-out {
  opacity: 0.5;
  transform: scale(1);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: white;
  transition: all 0.3s ease;
}
.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}
.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}
.contact-icon-box {
  position: relative;
}
.contact-icon-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-info-card:hover .contact-icon-box::before {
  opacity: 0.8;
}

/* =========================================
   UTILITIES (Delays, Shadows)
========================================= */
.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}
.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}
.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}
.delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}
.delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

.shadow-loose {
  filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.9)) grayscale(100%);
  opacity: 0.7;
  transition: all 0.5s ease;
}
.shadow-perfect {
  filter: drop-shadow(0px 10px 30px rgba(16, 185, 129, 0.3));
  transition: all 0.5s ease;
}
.image-wrapper:hover .shadow-loose {
  filter: drop-shadow(0px 20px 25px rgba(0, 0, 0, 1)) grayscale(40%);
  opacity: 1;
  transform: scale(1.02);
}
.image-wrapper:hover .shadow-perfect {
  filter: drop-shadow(0px 15px 40px rgba(16, 185, 129, 0.6));
  transform: scale(1.03) translateY(-5px);
}

/* =========================================
   SLIDER DESKTOP FIXES (Moved from HTML)
========================================= */
@media (min-width: 769px) {
  #hero .slide:nth-child(2) .overlay {
    background: radial-gradient(
      circle at center,
      rgba(3, 3, 5, 0.3) 0%,
      rgba(3, 3, 5, 0.8) 100%
    ) !important;
  }

  #hero .slide:nth-child(2) .slide-content {
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding-top: var(--nav-gap) !important;
    height: 100% !important;
  }

  #hero .slide:nth-child(2) .massive-text {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  #hero .slide:nth-child(3) .overlay {
    background: linear-gradient(
      to left,
      rgba(3, 3, 5, 0.95) 0%,
      rgba(3, 3, 5, 0.7) 45%,
      transparent 100%
    ) !important;
  }

  /* Slide 3 Perfect Alignment Fix */
  #hero .slide:nth-child(3) .slide-content {
    text-align: right !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-left: 35vw !important;
    padding-right: 10vw !important;
    height: 100% !important;
    padding-top: 0 !important;
    margin-top: var(--nav-gap) !important;
  }

  #hero .slide:nth-child(3) .massive-text {
    right: 6% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    text-align: right !important;
  }

  #hero .slide:nth-child(3) h1,
  #hero .slide:nth-child(3) p,
  #hero .slide:nth-child(3) button {
    text-align: right !important;
  }

  #hero .slide:nth-child(3) button {
    margin-left: auto !important;
  }
}

/* ============================================== */
/* PERFECT MOBILE HERO STYLES (FULL BODY FIX)    */
/* ============================================== */

.mobile-hero-container {
  position: relative;
  width: 100%;
  height: 100vh; /* තිරයේ උස සම්පූර්ණයෙන්ම */
  overflow: hidden;
  background-color: #030305;
}

/* මුළු Slide එකම හදන ආකාරය */
.m-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
  display: flex;
  flex-direction: column;
  /* අකුරු ටික ස්ලයිඩ් එකේ යට කොටසට (Bottom) ගමු */
  justify-content: flex-end;
  padding: 0 20px;
  padding-bottom: 10vh; /* අකුරු සහ Dots අතර ඉඩ */
  z-index: 1;
}

.m-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* --- පින්තූරයට දීපු අලුත් Styles (මෙන්න මේකයි වෙනස) --- */
.m-slide-bg {
  position: absolute;
  top: 95px; /* Navbar එකට යටින් පටන් ගන්නවා */
  left: 0;
  width: 100%;
  /* පින්තූරය තිරයෙන් 65% ක් විතර උසක් ගන්නවා (Zoom නොවී Full Body පේන්න) */
  height: 65vh;

  /* CRITICAL CHANGE: "contain" මගින් පින්තූරයේ මුළු ශරීරයම කැපෙන්නේ නැතුව Frame එකට Fit කරනවා */
  background-size: contain;
  /* පින්තූරය තිරයේ මැදට වුණත්, ටිකක් උඩට වෙන්න හැදුවා (අකුරු වලට යටින් ඉඩ තියාගන්න) */
  background-position: center 10%;
  background-repeat: no-repeat;
  z-index: -2;
  filter: brightness(0.9); /* පොඩ්ඩක් අඳුරු කළා අකුරු පැහැදිලි වෙන්න */

  /* කලින් තිබ්බ Masking Effects අයින් කළා */
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* 1 වෙනි ස්ලයිඩයේ පින්තූරය (Loose Suit) */
.m-off-the-shelf-img {
  background-image: url("photos/loose-suit.png");
}

/* 2 වෙනි ස්ලයිඩය (ලස්සන වර්ණ රටාවක්) */
.m-vision-bg {
  background: radial-gradient(
    circle at center,
    rgba(16, 185, 129, 0.25) 0%,
    #030305 70%
  );
  height: 100%; /* පින්තූරයක් නැති නිසා Full screen space එකම ගන්නවා */
}

/* 3 වෙනි ස්ලයිඩයේ පින්තූරය (Perfect Suit) */
.m-custom-built-img {
  background-image: url("photos/perfect-suit.png");
}

/* අකුරු ටික කියවන්න පුළුවන් වෙන්න අර්ධ-පාරදෘශ්‍ය Overlay එකක් (Smooth Fade) */
.m-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Gradient එක යට සිට උඩට (Text area emphasizes bottom-up focus) */
  background: linear-gradient(
    to top,
    rgba(3, 3, 5, 1) 0%,
    /* යටම කොටස හොඳටම කළුයි */ rgba(3, 3, 5, 0.85) 35%,
    /* අකුරු තියෙන හරිය අඳුරුයි */ rgba(3, 3, 5, 0.4) 60%,
    /* පින්තූරය පේන හරිය transparent */ rgba(3, 3, 5, 0) 100%
  );
  z-index: -1;
}

/* --- අකුරු වල Styles (ලස්සනට Balance වෙන්න) --- */
.m-slide-content {
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.m-slide.active .m-slide-content {
  transform: translateY(0);
  opacity: 1;
}

/* Title එක (h1) */
.m-slide-content h1 {
  font-size: 2.2rem !important; /* ටිකක් කුඩා කළා මුළු පින්තූරයම පේන නිසා Balance වෙන්න */
  line-height: 1.15 !important;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 12px !important;
}

/* Title එකට උඩින් පොඩි අකුරු */
.m-slide-content p:first-child {
  font-size: 0.65rem !important;
  letter-spacing: 0.3em !important;
  margin-bottom: 10px !important;
}

/* Title එකට යටින් විස්තර */
.m-slide-content p:not(:first-child) {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5 !important;
}

/* Navigation Dots */
.m-nav-dots {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.m-dot.active {
  background-color: #10b981;
  width: 20px;
  border-radius: 4px;
}

/* ============================================== */
/* SLIDE 2 DESKTOP FIXES (IoT Image & Alignment)  */
/* ============================================== */

/* පින්තූරයේ සයිස් එක ගානට හදාගැනීම */
.desktop-iot-bg {
  background-image: url("photos/iot.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 55%; /* පින්තූරය ඕනෑවට වඩා ලොකු වෙන එක නවත්වයි */
  opacity: 0.45; /* අකුරු කැපී පේන්න පින්තූරය ටිකක් අඳුරු කළා */
}

/* Blur effect එක අකුරු වලට නොවදින්න Background එකට පමණක් ලබා දීම */
.d-vision-slide {
  filter: none !important;
}

.d-vision-slide .desktop-iot-bg {
  transition:
    filter 1.5s cubic-bezier(0.2, 0, 0.2, 1),
    transform 2s ease-out;
  filter: blur(15px);
  transform: scale(1.05);
}

.slide.active.d-vision-slide .desktop-iot-bg {
  filter: blur(0px);
  transform: scale(1);
}

@media (min-width: 769px) {
  /* අකුරු වලට යටින් තියෙන Overlay එක මැදින් තද කළු වෙන්න හැදුවා (Contrast වැඩි වෙන්න) */
  #hero .slide:nth-child(2) .overlay {
    background: radial-gradient(
      circle at center,
      rgba(3, 3, 5, 0.85) 0%,
      rgba(3, 3, 5, 0.4) 50%,
      transparent 100%
    ) !important;
  }

  /* Text එක හරියටම Center Align කිරීම */
  #hero .slide:nth-child(2) .slide-content {
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding-top: var(--nav-gap) !important;
    height: 100% !important;
  }
}

/* ============================================== */
/* SLIDE 2: CONTINUOUS EFFECTS (IMAGE & TEXT)     */
/* ============================================== */

/* 1. Image Breathing, Floating & Glowing Effect */
@keyframes desktopTechBreathe {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.45;
    filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));
  }
  50% {
    transform: scale(1.03) translateY(-15px); /* හෙමින් ටිකක් උඩට ගිහින් ලොකු වෙනවා */
    opacity: 0.75; /* ටිකක් පැහැදිලි වෙනවා */
    filter: drop-shadow(
      0 0 60px rgba(16, 185, 129, 0.5)
    ); /* වටෙන්ම කොළ පාටින් දිලිසෙනවා */
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.45;
    filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));
  }
}

/* Slide එකට ආවට පස්සේ Animation එක දිගටම වැඩ කරන්න */
.slide.active.d-vision-slide .desktop-iot-bg {
  filter: blur(0px); /* Initial blur එක අයින් කරනවා */
  animation: desktopTechBreathe 8s ease-in-out infinite;
  animation-delay: 1.5s; /* මුලින් තියෙන Reveal Animation එක ඉවර වෙනකම් තත්පර 1.5ක් ඉඳලා පටන් ගන්නවා */
}

/* 2. Text Neon Glow Pulse Effect ("Limitless Growth" අකුරු වලට) */
@keyframes textNeonPulse {
  0%,
  100% {
    text-shadow:
      0 0 15px rgba(16, 185, 129, 0.2),
      0 0 30px rgba(16, 185, 129, 0.1);
  }
  50% {
    text-shadow:
      0 0 25px rgba(16, 185, 129, 0.8),
      0 0 50px rgba(16, 185, 129, 0.5),
      0 0 80px rgba(16, 185, 129, 0.3);
  }
}

.d-vision-slide h1 span {
  display: inline-block;
  animation: textNeonPulse 4s ease-in-out infinite;
}

/* --- slide.css එකේ Mobile style block එකට එකතු කරන්න --- */

/* Slide 2 picture configuration */
.m-iot-bg {
  background-image: url("photos/iot.png");
  background-position: 50% 15% !important; /* 50% මගින් හරියටම තිරයේ මැදට ගනී */
  background-size: 75% !important;
  background-repeat: no-repeat !important;
}
/* Specific reveal effect for Slide 2 image on entry */
.m-slide.active .m-iot-bg {
  transform: scale(1.08) translateY(0px); /* Pronounced zoom */
  filter: brightness(1.2) blur(0px) contrast(1.1)
    drop-shadow(0 0 30px rgba(16, 185, 129, 0.3)); /* Brighter flare with green glow on entry */
}

/* IoT පින්තූරයට දාන අලුත් Breathing & Glowing Animation එක */
@keyframes tech-breathe {
  0% {
    transform: scale(1) translateY(0);
    filter: brightness(0.8) contrast(1.1)
      drop-shadow(0 0 10px rgba(16, 185, 129, 0.1));
  }
  50% {
    transform: scale(1.08) translateY(-8px); /* හෙමීට Zoom වෙලා උඩට එනවා */
    filter: brightness(1.15) contrast(1.2)
      drop-shadow(0 0 45px rgba(16, 185, 129, 0.8)); /* තද කොළ පාටින් දිලිසෙනවා */
  }
  100% {
    transform: scale(1) translateY(0);
    filter: brightness(0.8) contrast(1.1)
      drop-shadow(0 0 10px rgba(16, 185, 129, 0.1));
  }
}

/* කලින් දුන්න කොටස වෙනුවට මේක දාන්න (තත්පර 6න් 6ට effect එක repeat වෙනවා) */
.m-slide.active .m-iot-bg {
  animation: tech-breathe 6s ease-in-out infinite !important;
}

/* =========================================
   DESKTOP NAV LINKS & ACTIVE STATE
========================================= */
.desktop-nav-link {
  color: #9ca3af; /* text-gray-400 */
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.desktop-nav-link:hover {
  color: #67e8f9; /* hover:text-cyan-300 */
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.6));
}

.desktop-nav-link.active-link {
  color: #6ee7b7; /* text-emerald-300 */
  background-color: rgba(16, 185, 129, 0.1); /* bg-emerald-500/10 */
  border-color: rgba(16, 185, 129, 0.4); /* border-emerald-500/40 */
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.8));
}
