/* ===== ADVANCED DESIGN SYSTEM ===== */
:root {
  --primary: #007AFF;
  --primary-rgb: 0, 122, 255;
  --secondary: #00D2FF;
  --accent: #8E2DE2;
  --bg: #FFFFFF;
  --text: #0E0E10;
  --text-dim: #6E6E73;
  --white: #FFFFFF;
  --soft-blue: #F0F4FF;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 1025px) {
  * {
    cursor: none;
  }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  opacity: 0.3;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
  opacity: 1;
}

/* ===== BACKGROUND & GLOW ===== */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #FFFFFF;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: float 30s ease-in-out infinite;
}

.orb-primary {
  width: 1000px;
  height: 1000px;
  background: var(--primary);
  top: -400px;
  left: -200px;
}

.orb-secondary {
  width: 800px;
  height: 800px;
  background: var(--secondary);
  bottom: -300px;
  right: -100px;
  animation-delay: -7s;
}

.orb-accent {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: 30%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(50px, -80px) rotate(10deg) scale(1.1);
  }

  66% {
    transform: translate(-40px, 40px) rotate(-5deg) scale(0.9);
  }
}

#main-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

/* ===== PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 2000;
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 30px 0;
  transition: all 0.6s var(--ease-out);
}

.main-nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav-logo-img {
  height: clamp(60px, 10vw, 120px);
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav.scrolled #nav-logo-img {
  height: clamp(50px, 8vw, 75px);
}

.nav-links-desktop {
  display: flex;
  gap: 50px;
}

.nav-item {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.nav-item a:hover {
  color: var(--text);
}

.nav-dot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  transition: 0.3s var(--ease-out);
}

.nav-item:hover .nav-dot {
  transform: translateX(-50%) scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-nav-cta {
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--text);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.3s;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
}

.menu-toggle .bar {
  width: 28px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.4s var(--ease-out);
}

/* ===== HERO SECTION ===== */
.hero-v2 {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 50%);
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left {
  flex: 1.2;
  z-index: 2;
  width: 100%;
}

.hero-right {
  flex: 0.8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 400px;
}

.hero-main-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
  animation: floatHero 8s ease-in-out infinite;
  object-fit: cover;
}

@keyframes floatHero {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.floating-visual {
  position: relative;
  width: 100%;
  height: auto;
}

.badge-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
}

.hero-display {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  color: var(--text);
}

.reveal-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero-display .gradient-text {
  display: inline-block;
  padding: 5px 0;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 5px;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
}

.btn-primary-v2 {
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2);
}

.btn-primary-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 122, 255, 0.3);
}

.btn-link {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-link .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn-link:hover .arrow {
  transform: translateX(8px);
}

.floating-visual {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.visual-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 30vw, 300px);
  height: clamp(200px, 30vw, 300px);
  background: radial-gradient(circle, var(--primary), var(--secondary));
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(50px);
}

.visual-card {
  position: absolute;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  animation: floatCard 6s ease-in-out infinite;
}

.card-top {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.card-bottom {
  bottom: 10%;
  left: 0;
  animation-delay: -3s;
}

.vc-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.vc-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Outfit';
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.mouse {
  width: 20px;
  height: 35px;
  border: 2px solid var(--text-dim);
  border-radius: 10px;
  margin: 0 auto 10px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* ===== LOGO CLOUD ===== */
.logo-cloud {
  padding: 60px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cloud-title {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.cloud-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.4;
  filter: grayscale(1);
}

.cloud-item {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 2px;
}

/* ===== INDUSTRIES SERVED ===== */
.industries {
  padding: clamp(60px, 10vw, 120px) 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.ind-card {
  padding: 40px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.4s;
  text-align: center;
}

.ind-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.08);
}

.ind-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.ind-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.ind-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== TECH STACK ===== */
.tech-stack {
  padding: 100px 0;
  overflow: hidden;
  background: #fafcff;
}

.tech-header {
  text-align: center;
  margin-bottom: 60px;
}

.tech-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-track {
  display: flex;
  gap: 20px;
  animation: scrollTrack 40s linear infinite;
  width: max-content;
}

.tech-track.reverse {
  animation-direction: reverse;
}

@keyframes scrollTrack {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-pill {
  padding: 16px 32px;
  background: var(--white);
  border-radius: 100px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.tech-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===== EXPERTISE ===== */
.expertise {
  padding: clamp(80px, 12vw, 160px) 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.exp-item {
  padding: 50px 30px;
  background: var(--white);
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: 0.4s var(--ease-out);
}

.exp-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 122, 255, 0.08);
  border-color: var(--primary);
}

.exp-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.exp-item h4 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* ===== PHILOSOPHY SECTION ===== */
.philosophy {
  padding: clamp(80px, 15vw, 200px) 0;
  background: #fff;
}

.phi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.section-tag-v2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 24px;
}

.phi-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 40px;
}

.phi-text {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  line-height: 1.6;
}

.phi-stats {
  display: flex;
  gap: 60px;
  margin-top: 60px;
}

.p-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.p-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phi-vision-mission {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vm-item h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.vm-item h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--primary);
}

.vm-item p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== CORE VALUES ===== */
.values {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--soft-blue);
  border-radius: clamp(20px, 5vw, 60px);
  margin: 0 clamp(10px, 3vw, 20px);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.value-card {
  padding: 40px;
  background: var(--white);
  border-radius: 30px;
  transition: 0.4s;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.1);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== ENGAGEMENT MODELS ===== */
.engagement-models {
  padding: clamp(80px, 12vw, 160px) 0;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.model-card {
  padding: 50px 40px;
  border-radius: 40px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.model-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(0, 122, 255, 0.05);
  padding: 6px 12px;
  border-radius: 50px;
}

.model-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.model-card p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== LEADERSHIP ===== */
.leadership {
  padding: clamp(80px, 12vw, 160px) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.team-member {
  text-align: center;
}

.member-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s var(--ease-out);
  filter: grayscale(1);
}

.team-member:hover .member-img img {
  transform: scale(1.1);
  filter: grayscale(0);
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.member-info span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== GLOBAL PRESENCE ===== */
.global-presence {
  padding: clamp(80px, 12vw, 160px) 0;
  background: #fafcff;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.loc-card {
  padding: 40px;
  background: var(--white);
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.4s;
}

.loc-card:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.loc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.loc-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== GROWTH TIMELINE ===== */
.timeline {
  padding: 120px 0;
  position: relative;
}

.timeline-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 80px;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.timeline-item {
  flex: 1;
  text-align: center;
}

.time-year {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dim);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  transition: 0.4s;
}

.timeline-item.active .time-year {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.1);
}

.time-info h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.time-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.method-details {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.method-details li {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 122, 255, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  width: max-content;
}

.capabilities {
  padding: 200px 0;
  background: #fafcff;
  overflow: hidden;
}

.cap-header {
  text-align: center;
  margin-bottom: 100px;
  padding: 0 40px;
}

.section-title-v2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.cap-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding: 0 40px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.cap-scroll-container::-webkit-scrollbar {
  display: none;
}

.cap-scroll-container:active {
  cursor: grabbing;
}

.cap-grid {
  display: flex;
  gap: 30px;
  width: max-content;
}

.cap-card {
  width: clamp(280px, 85vw, 400px);
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  transition: all 0.6s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 122, 255, 0.05);
  scroll-snap-align: center;
  flex-shrink: 0;
}

.cap-card:hover {
  transform: translateY(-15px) scale(1.02);
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 40px 80px rgba(0, 122, 255, 0.12);
}

.cap-icon {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 122, 255, 0.1);
  margin-bottom: 30px;
  transition: 0.4s;
  line-height: 1;
}

.cap-card:hover .cap-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.cap-card h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--text);
}

.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cap-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.cap-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

.cap-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.cap-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--white);
  cursor: pointer;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
}

.cap-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ===== THE METHOD ===== */
.method {
  padding: clamp(80px, 18vw, 240px) 0;
  background: var(--white);
  position: relative;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(60px, 10vw, 120px);
  align-items: start;
}

.method-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 24px;
}

.method-desc {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 60px;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.m-step {
  display: flex;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ms-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  padding-top: 5px;
}

.ms-info h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.ms-info p {
  color: var(--text-dim);
  line-height: 1.6;
}

.method-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.method-orb {
  width: clamp(280px, 40vw, 400px);
  height: clamp(280px, 40vw, 400px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--primary), var(--accent));
  animation: rotateOrb 10s linear infinite;
}

.mo-ring {
  position: absolute;
  width: 120%;
  height: 120%;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: rotateOrb 15s linear infinite reverse;
}

.mo-tag {
  position: absolute;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes rotateOrb {
  to {
    transform: rotate(360deg);
  }
}

/* ===== SHOWCASE (PORTFOLIO) ===== */
.showcase {
  padding: 160px 0;
}

.showcase-header {
  margin-bottom: 80px;
}

.showcase-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  transition: 0.6s var(--ease-out);
}

.work-item.large {
  grid-column: 1 / -1;
  height: clamp(300px, 50vh, 600px);
}

.work-img-wrapper {
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  background: #eef2ff;
}

.work-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  opacity: 0.9;
}

.work-item:hover .work-full-img {
  transform: scale(1.05);
  opacity: 1;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6));
  z-index: 2;
  transition: 0.4s;
}

.work-item:hover .work-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.7));
}

.work-item:hover .work-img-wrapper {
  transform: scale(0.99);
}

.work-info {
  padding: 30px 10px;
}

.work-cat {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.work-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  transition: 0.3s;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-btn {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.work-btn:hover {
  color: var(--primary);
}

.work-btn:hover .arrow {
  transform: translateX(5px);
}

.work-icon-big {
  font-size: 6rem;
  opacity: 0.2;
  transform: rotate(-15deg);
}

/* Showcase Mockups */
.mock-browser {
  width: 80%;
  height: 70%;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: rotateX(10deg) rotateY(-5deg);
  transition: 0.6s var(--ease-out);
}

.work-item:hover .mock-browser {
  transform: rotateX(0) rotateY(0) scale(1.05);
}

.mb-top {
  padding: 12px 16px;
  background: #F5F5F7;
  display: flex;
  gap: 6px;
}

.mb-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E1E1E1;
}

.work-mockup-mobile {
  width: 140px;
  height: 280px;
  background: var(--text);
  border-radius: 24px;
  border: 4px solid var(--text);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.mm-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 20px;
}

/* ===== FAQ ===== */
.faq {
  padding: 160px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-title {
  font-size: 3rem;
  margin-bottom: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 30px 40px;
  transition: 0.4s var(--ease-out);
  cursor: pointer;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.05);
}

.faq-question {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== RESPONSIVE DESIGN SYSTEM ===== */

/* Laptop / Desktop (Default) */
@media (max-width: 1440px) {

  .hero-container,
  .container {
    padding: 0 5%;
  }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .hero-v2 {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .nav-links-desktop,
  .btn-magnetic {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .phi-grid,
  .method-grid {
    gap: 40px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .hero-v2 {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-display {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -1px;
  }

  .section-tag-v2 {
    letter-spacing: 2px;
    font-size: 0.7rem;
  }

  .section-title-v2,
  .phi-title,
  .method-title,
  .showcase-title,
  .faq-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .cap-scroll-container {
    padding: 0 5% 20px;
    width: calc(100% + 10%);
    margin-left: -5%;
  }

  /* Fix for overlapping grids on small screens */
  .phi-grid, .values-grid, .models-grid, .expertise-grid, .industries-grid, .locations-grid, .cta-wrapper, .method-grid {
    grid-template-columns: 1fr;
  }

  /* Scale down floating elements to prevent overlap */
  .visual-card {
    padding: 12px 16px;
    border-radius: 12px;
  }
  .vc-val {
    font-size: 1.5rem;
  }
  .hero-main-img {
    max-width: 80%;
  }
  .method-orb {
    width: 80vw;
    height: 80vw;
  }

  .phi-stats {
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
  }

  .p-num {
    font-size: 2.5rem;
  }

  .timeline-wrapper {
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }

  .timeline-wrapper::before {
    display: none;
  }

  .timeline-item {
    text-align: left;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 122, 255, 0.1);
  }

  .timeline-item.active {
    border-left-color: var(--primary);
  }

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

  .f-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .hero-actions .btn-primary-v2 {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .stat-sep {
    display: none;
  }

  .phi-stats {
    align-items: flex-start;
  }

  .cta-btns {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .cta-btns a {
    width: 100%;
    text-align: center;
  }

  .m-link {
    font-size: 2.2rem;
  }
}

.plus {
  width: 20px;
  height: 20px;
  position: relative;
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  transition: 0.4s;
}

.plus::before {
  width: 100%;
  height: 2px;
}

.plus::after {
  width: 2px;
  height: 100%;
}

.faq-item.active .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
  height: auto;
  padding-top: 24px;
}

.faq-answer p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== FOOTER CTA ===== */
.footer-cta {
  padding: clamp(60px, 10vw, 120px) 0;
}

.cta-wrapper {
  background: var(--text);
  border-radius: clamp(30px, 5vw, 60px);
  padding: clamp(40px, 8vw, 100px) clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  overflow: hidden;
  position: relative;
}

.cta-title {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  color: var(--white);
  margin-bottom: 30px;
}

.cta-desc {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 50px;
  max-width: 500px;
}

.cta-btns {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-btns .btn-link {
  color: var(--white);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
}

.cta-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 122, 255, 0.3);
  animation: ringScale 4s ease-out infinite;
}

.r1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.r2 {
  width: 200px;
  height: 200px;
  animation-delay: 1s;
}

.r3 {
  width: 300px;
  height: 300px;
  animation-delay: 2s;
}

@keyframes ringScale {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===== FOOTER ===== */
.main-footer {
  padding: clamp(60px, 10vw, 100px) 0 60px;
  background: var(--soft-blue);
  border-radius: clamp(40px, 8vw, 80px) clamp(40px, 8vw, 80px) 0 0;
  margin: 0 clamp(10px, 3vw, 20px);
}

.f-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.f-logo {
  height: clamp(60px, 10vw, 110px);
  margin-bottom: 24px;
}

.f-brand p {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.f-links {
  display: flex;
  gap: clamp(40px, 8vw, 100px);
  flex-wrap: wrap;
}

.f-col h5 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.f-col a,
.f-col p {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.f-col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.f-bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.f-legal {
  display: flex;
  gap: 30px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-init {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-out);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entry for hero */
.animate-in {
  opacity: 0;
  animation: revealUp 1s var(--ease-out) forwards;
}

.animate-in-delayed {
  opacity: 0;
  animation: revealUp 1s var(--ease-out) 0.3s forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Styles Refined */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-in-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 40px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}

.m-link {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  position: relative;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.m-link:hover {
  color: var(--primary);
}

.mobile-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.mobile-footer p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 15px;
}

.m-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.m-social a {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: translateY(-0px) rotate(-45deg);
}