/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; width: 38px; height: 38px;
  border: 2px solid rgba(155,137,255,0.7);
  border-radius: 50%; pointer-events: none;
  z-index: 999999; transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
#cursor.hovered { width: 60px; height: 60px; background: rgba(155,137,255,0.12); border-color: var(--accent); }
#cursorDot {
  position: fixed; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 999999;
  transform: translate(-50%,-50%);
}
@media(hover:none){ #cursor,#cursorDot{display:none;} }

/* ── HERO CANVAS ── */
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ── HERO ENHANCEMENTS ── */
#hero {
  background: linear-gradient(160deg, #F5F4F8 0%, #eeecf6 50%, #F5F4F8 100%);
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(155,137,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(155,137,255,0.07) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
#heroContent { position: relative; z-index: 2; }

/* floating ring decorations */
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(155,137,255,0.18);
  pointer-events: none; z-index: 1;
}
.hero-ring-1 {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  animation: spinRing 28s linear infinite;
}
.hero-ring-2 {
  width: 300px; height: 300px;
  bottom: 60px; right: 8%;
  border-color: rgba(155,137,255,0.1);
  animation: spinRing 20s linear infinite reverse;
}
.hero-ring-3 {
  width: 160px; height: 160px;
  top: 30%; right: 22%;
  border-color: rgba(155,137,255,0.25);
  animation: spinRing 14s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* ── SECTION TRANSITIONS ── */
.wave-divider {
  position: relative; overflow: hidden;
  height: 80px; margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ── STAGGER ANIMATIONS ── */
.stagger-child {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.stagger-child.visible { opacity: 1; transform: none; }

/* ── SECTION HEADING UNDERLINE ANIMATION ── */
.section-h2 .animated-underline {
  display: inline-block; position: relative;
}
.section-h2 .animated-underline::after {
  content: ''; position: absolute;
  left: 0; bottom: -4px;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #c4b8ff);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.section-visible .section-h2 .animated-underline::after { width: 100%; }

/* ── ABOUT SECTION ENHANCED ── */
#about-new {
  position: relative;
}

/* ── FOUNDERS ENHANCED ── */
#founders {
  background: var(--white);
  position: relative;
}
#founders::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155,137,255,0.04), transparent);
  pointer-events: none;
}
.founder-card {
  position: relative; overflow: hidden;
}
.founder-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #c4b8ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.founder-card:hover::before { transform: scaleX(1); }

/* ── PROJECTS SECTION ENHANCED ── */
#projects {
  position: relative;
  background: var(--bg);
}
#projects::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(155,137,255,0.05));
  pointer-events: none;
}
.project-card {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  will-change: transform;
}
.project-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,21,38,0.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover .project-thumb::after { opacity: 1; }
.project-card-title {
  transition: color 0.3s ease;
}
.project-card:hover .project-card-title { color: var(--accent); }

/* ── TESTIMONIALS ENHANCED ── */
#testimonials {
  position: relative;
}


/* ── CONTACT SECTION ENHANCED ── */
#contact {
  background: linear-gradient(180deg, #f0eef8 0%, var(--bg) 100%);
  padding-top: 100px;
}


/* ── MARQUEE ENHANCED ── */
.marquee-wrap {
  background: var(--white);
  position: relative; overflow: hidden;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.marquee-item { transition: color 0.3s; }
.marquee-item:hover { color: var(--accent); }

/* ── SCROLL PROGRESS BAR ── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #c4b8ff);
  z-index: 9998; width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(155,137,255,0.5);
}

/* ── ENHANCED REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── STAT CARD FLOATING ANIMATION ── */
.hero-float-el { animation: floatBob 5s ease-in-out infinite, floatIn 1s 1s both; }
@keyframes floatBob {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* ── GRAIN TEXTURE ── */
body::after {
  content:'';
  position:fixed; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity:0.6;
  pointer-events:none; z-index:9990;
}

/* ── SECTION NUMBER BADGE ── */
.section-number {
  font-family: 'Satoshi', sans-serif;
  font-size: 7rem; font-weight: 900;
  color: rgba(155,137,255,0.06);
  position: absolute; top: -20px; right: 0;
  line-height: 1; pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ── ABOUT VISUAL UPGRADED ── */
.about-blob {
  background: linear-gradient(135deg,rgba(155,137,255,0.18),rgba(155,137,255,0.04));
  border: 1px solid rgba(155,137,255,0.15);
}
.about-visual::before {
  content: '';
  position: absolute; inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,137,255,0.08) 0%, transparent 70%);
  animation: pulsate 4s ease-in-out infinite;
}
@keyframes pulsate {
  0%,100%{ transform: scale(1); opacity:1; }
  50%{ transform: scale(1.08); opacity:0.6; }
}

/* ── FOOTER ── */
footer { position: relative; overflow: hidden; }
footer::before {
  content:'';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155,137,255,0.08), transparent);
  pointer-events: none;
}

@media(max-width:900px){
  #about { clip-path: none; padding-top:100px; padding-bottom:100px; }
  #testimonials { clip-path: none; padding-top:100px; padding-bottom:100px; }
  #contact { clip-path: none; padding-top:100px; }
}

/* ── HERO DRIFT CANVAS ── */
#heroDriftCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* ── FLOW TRAIL CANVAS ── */
#flowTrailCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9997;
  /* Fade trail slightly when device has touch (no mouse) */
}
@media (hover: none) {
  #flowTrailCanvas { display: none; }
}

/* Prevent cursor double-render — hide default when on desktop */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .project-card, .founder-card,
  .testimonial-card, .filter-btn, input, textarea {
    cursor: none;
  }
}
