@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* --- CSS Variables --- */
:root {
  --bg-dark: #091338;
  --bg-medium: #061943;
  --text-light: #ccd6f6;
  --text-medium: #8892b0;
  --accent-primary: #6366f1;
  --accent-secondary: #00e5ff;
  --accent-hover: #4338ca; /* Darker variant of primary accent */
  --white: #ffffff;

  --font-family-sans: "Poppins", sans-serif;
  --transition-speed: 0.3s ease;
}

/* ===========================
   GLOBAL STYLES
   =========================== */

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

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

body {
  font-family: var(--font-family-sans);
  /* Set a base color for when the image/gradient is loading */
  background-color: var(--bg-dark);
  /* A multi-layered gradient for a deep, techy feel */
  background-image: radial-gradient(
      at 80% 10%,
      rgba(0, 229, 255, 0.15) 0px,
      transparent 50%
    ),
    radial-gradient(at 20% 90%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(17, 43, 100, 0.2) 0px, transparent 60%);
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 14px; /* Reduced to 14px as requested */
}

/* --- Typography --- */
h1,
h2,
h3 {
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Scaled down */
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem); /* Scaled down */
  text-align: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.15rem; /* Scaled down */
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-hover);
}
.txt_color1 {
  color: var(--accent-secondary);
}

.txt_color2 {
  color: var(--accent-primary);
}
/* --- Layout & Containers --- */
main > section {
  padding: 50px 0;
}

#home {
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Wider container for About section to match Hero */
#about .container {
  max-width: 1400px;
  padding: 0 60px;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(9, 19, 56, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem; 
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.logo img {
  height: 45px; 
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem; /* Reverted gap */
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0; /* Minimal padding */
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

/* Reverted to simple hover effect with subtle glow */
.nav-links a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none; /* Hidden on desktop */
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  display: block;
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger.toggle .line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.toggle .line:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle .line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Hero Section --- */
#home .hero {
  min-height: 100vh; /* Full viewport height */
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center; 

  padding: 0 60px; 
  position: relative;
  z-index: 1;
  overflow: visible;

}

.hero-content {
  max-width: 800px; 
  flex: 1 1 45%; 
  text-align: center; 
  display: flex; 
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* --- Hero Layout (CSS Grid) --- */
.hero-headline-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  margin-bottom: 1.5rem;
  width: 100%; 
}

.headline {
  grid-area: 1 / 1;
  width: 100%;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; 
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  pointer-events: none;
  visibility: visible; /* Contribute to layout height */
}

.headline.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

/* Responsive adjustment */
@media (max-width: 1440px) {
    .headline {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
    #home .hero {
        padding: 0 40px;
    }
}

.highlight {
  color: var(--accent-secondary);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--text-light),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  font-size: 1rem; /* Reduced to 1rem */
  max-width: 600px; 
  margin: 1.5rem 0; 
}

/* --- About Section Heading --- */
.about-heading-wrapper {
  text-align: right;
  margin-bottom: 4rem;
  position: relative;
  padding-right: 20px;
}

.about-heading {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.about-heading-line {
  display: block;
  background: linear-gradient(
    135deg,
    var(--text-light) 0%,
    var(--accent-primary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  animation: fadeInRight 0.8s ease-out;
}

.about-heading-highlight {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.about-heading-decoration {
  width: 200px;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-secondary) 50%,
    var(--accent-primary) 100%
  );
  margin-left: auto;
  margin-top: 1.5rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  animation: slideInRight 1s ease-out 0.4s backwards;
}

.about-heading-decoration::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* --- About Section Content - Premium Design --- */
.about-content-new {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-intro {
    margin-bottom: 1rem;
}

.story-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.story-lead {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 300;
    margin-top: 1.5rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}
.text-highlight2 {
    background: linear-gradient(90deg, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.story-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-block:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.story-block:hover::before {
    transform: scaleX(1);
}

.story-block-wide {
    grid-column: 1 / -1;
}

.block-number {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.block-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.block-text {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* --- Floating Mission Card --- */
.mission-card-floating {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(0, 229, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    position: sticky;
    top: 120px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mission-card-floating:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
    border-color: rgba(0, 229, 255, 0.3);
}

.mission-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mission-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mission-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.mission-emphasis {
    color: var(--accent-secondary);
    font-weight: 600;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Global Overlay */
.hero-global-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind everything */
    pointer-events: none;
}

.connection-lines {
    width: 100%;
    height: 100%;
}

/* Logo Connection Animation */
.logo-connect-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 3s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}





.highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(99, 102, 241, 0.3);
  z-index: -1;
  transform: skewX(-10deg);
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

/* --- Hero Visual Composition --- */
.hero-image {
  flex: 1 1 55%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  right: 0;
  perspective: 1000px;
  z-index: 2;
}

.hero-visual-composition {
    position: relative;
    width: 100%;
    height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mobile Mockups (Larger & Spaced) --- */
.mobile-mockup {
    position: absolute;
    width: 240px; 
    height: 480px; 
    background: #091338;
    border-radius: 35px;
    border: 6px solid #1e293b;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.screen-content {
    width: 100%;
    height: 100%;
    background-size: 550px auto;
    background-repeat: no-repeat;
}

.screen-left {
    transform: translateX(-140px) translateY(30px) rotateY(10deg); 
    z-index: 2;
}

.screen-left .screen-content {
    background-position: left center;
}

.screen-right {
    transform: translateX(140px) translateY(-30px) rotateY(-10deg); 
    z-index: 3;
}

.screen-right .screen-content {
    background-position: right center;
}

/* Hover Effect */
.hero-visual-composition:hover .screen-left {
    transform: translateX(-110px) translateY(30px) rotateY(15deg);
}

.hero-visual-composition:hover .screen-right {
    transform: translateX(110px) translateY(-30px) rotateY(-15deg);
}

/* --- Floating 3D Shapes --- */
.float-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 4;
    animation: floatShape 6s ease-in-out infinite;
}

.sphere-large {
    width: 100px; 
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #00E5FF, #091338);
    top: 5%;
    right: 5%;
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.3);
}

.sphere-small {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #6366F1, #091338);
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.cube-1 {
    width: 40px;
    height: 40px;
    background: #6366F1;
    border-radius: 6px;
    top: 15%;
    left: 15%;
    transform: rotate(45deg);
    opacity: 0.8;
    animation: floatRotate 8s linear infinite;
}

.cube-2 {
    width: 25px;
    height: 25px;
    background: #00E5FF;
    border-radius: 3px;
    bottom: 10%;
    right: 15%;
    transform: rotate(-30deg);
    opacity: 0.6;
    animation: floatRotate 10s linear infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatRotate {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-10px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* --- Animated Lines --- */
.hero-lines-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.line-flow {
    stroke-dasharray: 10;
    animation: dashFlow 20s linear infinite;
}

.line-flow-reverse {
    stroke-dasharray: 10;
    animation: dashFlowReverse 20s linear infinite;
}

.pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -1000; }
}

@keyframes dashFlowReverse {
    to { stroke-dashoffset: 1000; }
}

@keyframes pulseDot {
    0%, 100% { r: 4; opacity: 1; }
    50% { r: 6; opacity: 0.5; }
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: background-color var(--transition-speed);
}

.cta-button:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* --- Services Section - Premium Design --- */
#services {
    position: relative;
    overflow: visible;
    background-color: var(--bg-dark); 
    z-index: 100; 
}

.services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}



/* ========================================
   NEW STACK-TO-GRID SERVICES SECTION
   ======================================== */

/* ========================================
   NEW SPLIT LAYOUT SERVICES SECTION
   ======================================== */

.services-split {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* --- Dynamic Backgrounds (Subtle) --- */
.services-dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.bg-layer.active {
    opacity: 1;
}

/* Reusing gradients but making them more subtle for split layout */
.bg-layer[data-bg="default"] { background: radial-gradient(circle at 20% 50%, #112b64 0%, #091338 100%); }
.bg-layer[data-bg="fintech"] { background: radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.1), transparent), linear-gradient(to right, #091338, #0f172a); }
.bg-layer[data-bg="ai"] { background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1), transparent), linear-gradient(to right, #091338, #1e1b4b); }
.bg-layer[data-bg="web"] { background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05), transparent), linear-gradient(to right, #091338, #0f172a); }
.bg-layer[data-bg="cloud"] { background: radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.05), transparent), linear-gradient(to right, #091338, #1e293b); }
.bg-layer[data-bg="automation"] { background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05), transparent), linear-gradient(to right, #091338, #172554); }
.bg-layer[data-bg="design"] { background: radial-gradient(circle at 20% 50%, rgba(255, 0, 150, 0.05), transparent), linear-gradient(to right, #091338, #312e81); }

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 19, 56, 0.9); /* Darker overlay */
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* --- Split Container --- */
.split-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;

    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Left Panel: Visual --- */
.services-visual {
    position: relative;

}

.visual-sticky-content {
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;

}

.services-visual h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.visual-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);

    margin-bottom: 3rem;
}

/* Vector Wrapper */
.vector-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    position: relative;
}

.expertise-vector {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* SVG Animations */
.spin-slow {
    transform-origin: center;
    animation: spin 20s linear infinite;
}

.spin-reverse {
    transform-origin: center;
    animation: spinReverse 30s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }

/* --- Right Panel: List --- */
.services-list-wrapper {
    padding-top: 2rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.6;
}

.service-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover, .service-item.active {
    opacity: 1;
    padding-left: 20px;
    border-color: var(--accent-primary);
    background: linear-gradient(to right, rgba(255,255,255,0.02), transparent);
}

/* Header */
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-num {
    font-family: monospace;
    color: var(--accent-secondary);
    font-size: 1.2rem;
    margin-right: 2rem;
    opacity: 0.7;
}

.service-name {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    flex-grow: 1;
    transition: font-weight 0.3s ease, letter-spacing 0.3s ease;
}

.service-item:hover .service-name, .service-item.active .service-name {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transform: rotate(-45deg);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.service-item:hover .service-arrow, .service-item.active .service-arrow {
    transform: rotate(0deg);
    opacity: 1;
}

/* Details */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s ease;
    padding-left: 3.5rem;
}

.service-item.active .service-details {
    max-height: 500px;
    margin-top: 1.5rem;
}

.service-details p {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 500px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.details-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    font-weight: 600;
    position: relative;
    text-decoration: underline;
}

.details-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

.details-link:hover::after {
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .visual-sticky-content {
        position: relative;
        top: 0;
        text-align: center;
        align-items: center;
    }

    .services-visual h2 {
        font-size: 2.5rem;
    }

    .visual-subtitle {
        margin: 0 auto 2rem;
    }

    .vector-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .service-details {
        padding-left: 0;
    }
}

/* SERVICES heading */
.services-heading-animated {
    font-size: clamp(6rem, 19vh, 16rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0;
    
    /* Outlined text effect */
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: var(--accent-primary);
    paint-order: stroke fill;
    
    /* Glow effect */
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Service cards container - Holds the stack */
.services-cards-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Individual service cards - The Deck */
.service-card-new {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(350px, 28vw, 600px);
    height: 220px;
    top: 55%; 
    
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-card-new:nth-child(1) { margin-left: -480px; z-index: 1; transform: translateX(-50%) scale(0.85); filter: brightness(0.6); }
.service-card-new:nth-child(2) { margin-left: -320px; z-index: 2; transform: translateX(-50%) scale(0.9);  filter: brightness(0.7); }
.service-card-new:nth-child(3) { margin-left: -160px; z-index: 3; transform: translateX(-50%) scale(0.95); filter: brightness(0.8); }
.service-card-new:nth-child(4) { margin-left: 0px;    z-index: 10; transform: translateX(-50%) scale(1.05); filter: brightness(1); box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5); border-color: rgba(99, 102, 241, 0.6); }
.service-card-new:nth-child(5) { margin-left: 160px;  z-index: 3; transform: translateX(-50%) scale(0.95); filter: brightness(0.8); }
.service-card-new:nth-child(6) { margin-left: 320px;  z-index: 2; transform: translateX(-50%) scale(0.9);  filter: brightness(0.7); }


.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(0, 229, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card-new:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    z-index: 10 !important; /* Bring to front on hover */
}

.service-card-new:hover::before {
    opacity: 1;
}

.service-icon-new {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.service-title-new {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-description-new {
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   END NEW STACK-TO-GRID SECTION
   ======================================== */

/* --- AI & FinTech Section --- */
#ai-fintech {
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 3rem auto 0;
  padding: 0 20px;
}

.feature-grid .feature-badge:last-child:nth-child(odd) {
  grid-column: 1 / span 2;
  justify-self: center;
  width: calc(50% - 0.75rem);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--text-light);
  transition: transform var(--transition-speed),
    background var(--transition-speed);
}

.feature-badge:hover {
  transform: translateY(-5px);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(99, 102, 241, 0.05)
  );
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  min-width: 45px;
  height: 45px;
  background-color: rgba(0, 229, 255, 0.1);
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--accent-secondary);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.badge-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* --- Technologies Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tech-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.tech-item:hover .tech-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-primary);
}

.tech-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.tech-item p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonial-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-slider {
  width: 100%;
  overflow: hidden;
  padding: 20px 0; /* Space for hover effects */
}

.testimonial-container {
  display: flex;
  gap: 2rem;
  /* width will be set by JS */
}

.testimonial-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  flex: 0 0 calc(33.333% - 1.33rem); /* 3 cards per view */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none; /* Prevent text selection while dragging */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 229, 255, 0.3);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-secondary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1; 
}

.testimonial-card .author {
  margin-top: auto;
}

.testimonial-card .author h4 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.testimonial-card .author span {
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* --- Contact Section --- */
#contact {
  text-align: center;
}

.contact-email {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2rem 0;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-dark);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    border-color: var(--accent-primary);
}

footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }



  main > section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .feature-grid,
  .feature-grid .feature-badge:last-child:nth-child(odd) {
    grid-template-columns: 1fr;
    width: 100%;
  }

  #home .hero {
    flex-direction: column;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-heading-wrapper {
    text-align: center;
    padding-right: 0;
  }

  .about-heading {
    align-items: center;
    text-align: center;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .about-heading-decoration {
    margin-left: auto;
    margin-right: auto;
    width: 150px;
  }

  .about-content-new {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-block-wide {
    grid-column: 1;
  }

  .story-lead {
    font-size: 1.3rem;
  }

  .mission-card-floating {
    position: relative;
    top: 0;
    padding: 2rem;
  }

  .mission-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .services-wrapper {
    padding: 0 20px;
  }

  .services-heading-bg {
    font-size: clamp(4rem, 12vw, 6rem);
    top: -1rem;
  }

  .services-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 6rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  /* New Services section responsive */
  .services-heading-animated {
    font-size: clamp(4rem, 12vw, 8rem);
    -webkit-text-stroke: 2px transparent;
  }

  .services-cards-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 1.5rem;
  }

  .service-card-new {
    padding: 2rem;
  }

  .service-icon-new {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .testimonial-card {
    flex: 0 0 90%; /* Show one card at a time on mobile */
  }
}

/* --- Animation Visibility --- */
/* Hides elements for ScrollReveal */
[data-sr-id] {
  visibility: hidden;
}

/* ========================================
   NEW AI & FINTECH FOCUS SECTION
   ======================================== */

.ai-fintech-section {
    position: relative;
    background-color: var(--bg-dark);
    padding: 100px 0;
    overflow: hidden;
}

/* --- Background Vector Elements --- */
.ai-fintech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.vector-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.2;
}

.line-1 {
    top: 20%;
    left: -10%;
    width: 120%;
    height: 1px;
    transform: rotate(15deg);
}

.line-2 {
    bottom: 30%;
    left: -10%;
    width: 120%;
    height: 1px;
    transform: rotate(-10deg);
}

.vector-circle {
    position: absolute;
    border: 1px solid var(--accent-secondary);
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
}

.vector-rect {
    position: absolute;
    border: 1px solid var(--accent-primary);
    opacity: 0.1;
    transform: rotate(45deg);
}

.rect-1 {
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
}

/* --- Section Header --- */
.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-top: 1rem;
}

/* --- Network Layout --- */
.fintech-network-layout {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    z-index: 2;
}

/* SVG Lines */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.connector-line {
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-opacity: 0.3;
    stroke-dasharray: 10;
    animation: dashFlow 30s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -1000;
    }
}

/* --- Central Core --- */
.network-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-content {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--accent-secondary), var(--accent-primary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    position: relative;
    z-index: 2;
}

.core-content i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.core-content span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.core-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-secondary);
    opacity: 0;
    animation: pulseExpand 3s ease-out infinite;
}

.delay-1 {
    animation-delay: 1s;
}

@keyframes pulseExpand {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* --- Network Nodes --- */
.network-node {
    position: absolute;
    width: 220px;
    background: rgba(17, 43, 100, 0.6); /* bg-medium with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.network-node:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(17, 43, 100, 0.8);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    z-index: 20;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.network-node:hover .node-icon {
    background: var(--accent-primary);
    color: var(--white);
    box-shadow: 0 0 15px var(--accent-primary);
}

.node-text h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.node-text p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

/* Positioning Nodes */
/* Center is 400, 300 */
/* Top Center */
.node-top {
    top: 0; /* y=0 */
    left: 50%; /* x=400 */
    transform: translateX(-50%);
}
.node-top:hover { transform: translateX(-50%) translateY(-5px) scale(1.05); }


/* Top Left */
.node-top-left {
    top: 150px; /* y=150 */
    left: 5%; /* x=40 */
}

/* Top Right */
.node-top-right {
    top: 150px;
    right: 5%;
}

/* Bottom Left */
.node-bottom-left {
    bottom: 50px;
    left: 5%;
}

/* Bottom Right */
.node-bottom-right {
    bottom: 50px;
    right: 5%;
}


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .fintech-network-layout {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .network-lines {
        display: none; /* Hide SVG lines on mobile */
    }

    .network-core {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 2rem;
    }

    .network-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 400px;
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }
    
    .network-node:hover {
        transform: translateY(-5px) !important;
    }

    .node-icon {
        margin-bottom: 0;
        min-width: 50px;
    }
    
    .node-text {
        flex: 1;
    }
}

/* --- Clients Section (Futuristic Marquee) --- */
.clients-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--bg-dark);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Digital Grid Overlay */
.clients-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.clients-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.clients-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Marquee Container */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Logo Items */
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
    /* Default State: Ghostly/Holographic */
    filter: grayscale(100%) brightness(200%) opacity(0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect: Activation */
.client-logo-item:hover img {
    filter: grayscale(0%) brightness(100%) opacity(1) drop-shadow(0 0 15px rgba(0, 229, 255, 0.6));
    transform: scale(1.1);
}

/* Optional: Add a subtle glow dot below active item */
.client-logo-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    transition: transform 0.3s ease;
}

.client-logo-item:hover::after {
    transform: translateX(-50%) scale(1);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move by half the width (original set) */
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-track {
        gap: 2rem;
        animation-duration: 20s; /* Faster on mobile */
    }
    
    .client-logo-item {
        width: 120px;
        height: 80px;
    }
}

/* --- Clients Section (Redesign) --- */
.clients-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Perspective Grid Background */
.clients-bg-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.4;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.clients-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.clients-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Tube Marquee Container */
.marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Glow Lines on Top/Bottom */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.5;
}

.marquee-wrapper::before { top: 0; }
.marquee-wrapper::after { bottom: 0; }

.marquee-track {
    display: flex;
    gap: 6rem; /* Wider gap for cleaner look */
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Logo Items */
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    
    /* Default: Cyan Tint (Brand Color) */
    /* This filter approximates #00E5FF (Cyan) from black/color */
    filter: brightness(0) saturate(100%) invert(86%) sepia(23%) saturate(635%) hue-rotate(178deg) brightness(98%) contrast(92%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

/* Hover Effect: Full Color + Glow + Float */
.client-logo-item:hover {
    transform: translateY(-5px) scale(1.1);
}

.client-logo-item:hover img {
    filter: none; /* Restore original colors */
    opacity: 1;
    drop-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Spotlight Effect behind active logo */
.client-logo-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.client-logo-item:hover::before {
    opacity: 1;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-track {
        gap: 3rem;
        animation-duration: 25s; 
    }
    
    .client-logo-item {
        width: 140px;
        height: 80px;
    }
}



/* --- Cyber-Portal Mobile Menu --- */
@media (max-width: 768px) {
    /* Ensure Hamburger is ALWAYS visible and on top */
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001; /* Higher than menu */
        padding: 10px;
        transition: transform 0.3s ease;
    }

    .hamburger .line {
        background-color: var(--text-light); /* Default color */
        box-shadow: 0 0 5px rgba(0,0,0,0.5); /* Shadow for visibility */
    }

    /* Active Hamburger (The "X") */
    .hamburger.toggle .line {
        background-color: var(--accent-secondary); /* Neon Cyan */
        box-shadow: 0 0 10px var(--accent-secondary);
    }

    /* The Portal Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        /* Cyber Gradient Background */
        background: linear-gradient(135deg, #091338 0%, #1e1b4b 100%);
        
        /* Circular Reveal Animation */
        clip-path: circle(0px at 90% 5%); /* Starts at top-right near hamburger */
        -webkit-clip-path: circle(0px at 90% 5%);
        
        transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), -webkit-clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        
        /* Reset other props */
        opacity: 1;
        visibility: visible;
        transform: none;
        right: auto; 
    }

    /* Open State */
    .nav-links.nav-active {
        clip-path: circle(150% at 90% 5%);
        -webkit-clip-path: circle(150% at 90% 5%);
    }

    /* Links Animation */
    .nav-links li {
        opacity: 0;
        transform: translateX(50px) skewX(-20deg);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Staggered Entry */
    .nav-links.nav-active li:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateX(0) skewX(0); }
    .nav-links.nav-active li:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateX(0) skewX(0); }
    .nav-links.nav-active li:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateX(0) skewX(0); }
    .nav-links.nav-active li:nth-child(4) { transition-delay: 0.5s; opacity: 1; transform: translateX(0) skewX(0); }
    .nav-links.nav-active li:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateX(0) skewX(0); }
    .nav-links.nav-active li:nth-child(6) { transition-delay: 0.7s; opacity: 1; transform: translateX(0) skewX(0); }

    .nav-links a {
        font-size: 3rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.2); /* Ghost text */
        -webkit-text-stroke: 1px var(--text-light);
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        transition: all 0.3s ease;
    }

    /* Glitch/Fill Hover Effect */
    .nav-links a::before {
        content: attr(href); /* Placeholder */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: var(--accent-secondary);
        z-index: -1;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: skewX(-20deg);
    }

    .nav-links a:hover {
        color: #091338; /* Dark text on cyan bg */
        -webkit-text-stroke: 0px;
        padding: 0 10px;
    }

    .nav-links a:hover::before {
        width: 100%;
    }

    /* Cyber Grid Overlay inside Menu */
    .nav-links::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        z-index: -2;
    }
}

/* --- Hero Layout Fix (CSS Grid Stacking) --- */



/* --- Clients Section Refinement --- */
.client-logo-item {
    width: 180px; /* Fixed width for consistency */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 60px; /* Constrain height for equal visual weight */
    width: auto;
    object-fit: contain;
    /* Keep existing filter styles */
}


/* --- Contact Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 19, 56, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(9, 19, 56, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-secondary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-medium);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input{
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-family-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-family-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300E5FF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-5.6H18.6c-4.2%200-8.1%201.9-10.7%205.6-2.6%203.7-3.4%208.4-2.2%2012.8l130.2%20150.7c2.8%203.2%206.5%204.9%2010.7%204.9s7.9-1.7%2010.7-4.9L289.2%2082.2c1.2-4.4.4-9.1-2.2-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center; /* Position custom arrow with margin */
    background-size: 12px; /* Adjust arrow size */
    padding-right: 40px; /* Ensure text doesn't overlap the arrow */
}
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-family-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* --- Slim Clients Section --- */
.clients-section {
    padding: 40px 0; /* Reduced from 100px */
}

.clients-header {
    margin-bottom: 2rem; /* Reduced from 5rem */
}

.clients-header h2 {
    margin-bottom: 0; /* Remove bottom margin since subtitle is gone */
    font-size: 1.8rem; /* Slightly smaller heading */
}

.marquee-wrapper {
    padding: 1.5rem 0; /* Reduced from 3rem */
}

.client-logo-item {
    width: 160px; /* Slightly smaller width */
    height: 60px; /* Reduced height */
    padding: 5px;
}

.client-logo-item img {
    max-height: 40px; /* Smaller logos */
}

/* Adjust hover effect for smaller size */
.client-logo-item:hover {
    transform: translateY(-3px) scale(1.05);
}

.client-logo-item::before {
    width: 100px;
    height: 100px;
}
