@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
:root {
  --white: #FFFFFF;
  --off: #F7F8FC;
  --bg: #F2F4FA;
  --black: #0A0A0A;
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --muted: #7a7a94;
  --accent: #0047FF;
  --accent-d: #0035CC;
  --accent-l: #4478ff;
  --border: #E0E4F0;
  --blue-bg: #EEF2FF;
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(0, 71, 255, 0.08);
  --card-shadow: 0 8px 32px rgba(0, 30, 120, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(0, 30, 120, 0.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1)
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  cursor: none !important;
  -webkit-font-smoothing: antialiased
}
*, a, button, input, select, textarea, [role="button"], label, [data-hover], [tabindex] { cursor: none !important }

/* CURSOR */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s;
  will-change: transform;
  mix-blend-mode: normal;
}
#cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid rgba(0, 71, 255, .4);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .25s;
  will-change: transform
}
.cursor-hover #cursor { width: 20px; height: 20px; background: var(--accent-l) }
.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: var(--accent) }

/* PRELOADER */
#preloader {
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center
}
#preloader-canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.pre-text {
  position: relative; z-index: 2;
  font-size: clamp(2.5rem, 9vw, 6rem); font-weight: 900;
  letter-spacing: .25em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out)
}
.pre-sub {
  position: relative; z-index: 2;
  font-size: clamp(.65rem, 1.3vw, .85rem); letter-spacing: .55em;
  color: var(--muted); margin-top: .9rem; opacity: 0;
  transition: opacity .7s ease .3s
}
.pre-bar-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: rgba(0, 71, 255, .08)
}
.pre-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-l));
  width: 0; transition: width .08s linear
}

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 71, 255, 0.06);
  transform: translateY(-100%);
  transition: transform .7s var(--ease-out), background .3s, box-shadow .3s
}
#nav.nav-in { transform: translateY(0) }
#nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 30px rgba(0, 30, 120, 0.06);
}
.nav-logo {
  font-size: 1.25rem; font-weight: 900; letter-spacing: .18em;
  background: linear-gradient(90deg, var(--accent), var(--accent-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none
}
.nav-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 2.8rem; list-style: none }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: .83rem; letter-spacing: .07em; font-weight: 500;
  transition: color .3s; position: relative
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .3s var(--ease-out);
  transform-origin: left; border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent) }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1) }
.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: .6rem 1.5rem; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  transition: background .3s, transform .2s, box-shadow .3s;
  text-decoration: none; display: inline-block
}
.nav-cta:hover {
  background: var(--accent-l); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 71, 255, .25)
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; z-index: 1010; position: relative }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .4s var(--ease-out); border-radius: 2px }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0) }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
  padding: 6rem 2rem 3rem;
}
.mobile-menu.open { opacity: 1; visibility: visible }
.mobile-menu a {
  display: block; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700;
  color: var(--text); text-decoration: none;
  padding: 1rem 0; text-align: center;
  transition: color .3s, transform .3s;
  transform: translateY(20px); opacity: 0;
  letter-spacing: -.01em;
}
.mobile-menu.open a {
  transform: translateY(0); opacity: 1;
}
.mobile-menu.open a:nth-child(1) { transition-delay: .05s }
.mobile-menu.open a:nth-child(2) { transition-delay: .1s }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s }
.mobile-menu.open a:nth-child(4) { transition-delay: .2s }
.mobile-menu.open a:nth-child(5) { transition-delay: .25s }
.mobile-menu.open a:nth-child(6) { transition-delay: .3s }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent) }
.mobile-menu a.active::after {
  content: ''; display: block; width: 30px; height: 3px;
  background: var(--accent); border-radius: 2px;
  margin: .4rem auto 0;
}
.mobile-menu .mobile-cta {
  margin-top: 1.5rem; font-size: 1rem;
  background: var(--accent); color: #fff !important;
  padding: .9rem 2.5rem; border-radius: 100px;
  font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 12px 32px rgba(0,71,255,.2);
}

/* CARD SYSTEMS */
.light-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text);
  box-shadow: var(--card-shadow);
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

/* TYPOGRAPHY */
.label {
  display: inline-block; font-size: .72rem; letter-spacing: .45em;
  font-weight: 600; color: var(--accent);
  margin-bottom: 1rem; text-transform: uppercase
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -.02em;
  color: var(--text)
}
.section-title .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-l) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.85; max-width: 560px
}

/* BUTTONS */
.btn-p {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .85rem 2rem; border-radius: 100px;
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; border: none;
  transition: background .3s, transform .25s, box-shadow .3s
}
.btn-p:hover {
  background: var(--accent-l); transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 71, 255, .25)
}
.btn-p:active { transform: scale(.97) }
.btn-o {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--accent);
  padding: .85rem 2rem; border-radius: 100px;
  font-size: .88rem; font-weight: 600;
  border: 1.5px solid rgba(0, 71, 255, .2);
  text-decoration: none;
  transition: border-color .3s, color .3s, transform .25s, background .3s
}
.btn-o:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px);
  background: rgba(0, 71, 255, .04)
}

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out)
}
.reveal.revealed { opacity: 1; transform: translateY(0) }
.rev-d1{transition-delay:.1s}.rev-d2{transition-delay:.2s}.rev-d3{transition-delay:.3s}.rev-d4{transition-delay:.45s}.rev-d5{transition-delay:.6s}

/* NOISE — very subtle for light theme */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 3; opacity: .3
}

/* BG CANVAS */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: .4;
}

#page { position: relative; z-index: 2 }

/* SECTION DIVIDER */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 71, 255, .15), transparent);
  margin: 0 3.5rem
}

/* FOOTER — light premium */
footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 71, 255, .06);
  padding: 5rem 3.5rem 3rem;
  position: relative; z-index: 2
}
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3.5rem
}
.footer-brand p {
  font-size: .85rem; color: var(--muted);
  line-height: 1.8; margin: 1rem 0 1.5rem; max-width: 280px
}
.footer-logo {
  font-size: 1.4rem; font-weight: 900; letter-spacing: .18em;
  background: linear-gradient(90deg, var(--accent), var(--accent-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: .3rem
}
.footer-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}
.social-row { display: flex; gap: .8rem }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0, 71, 255, .05);
  border: 1px solid rgba(0, 71, 255, .1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  transition: all .3s; color: var(--accent);
  text-decoration: none
}
.social-btn:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 71, 255, .2)
}
.footer-col h4 {
  font-size: .72rem; letter-spacing: .22em;
  color: var(--muted); margin-bottom: 1.2rem; text-transform: uppercase
}
.footer-col a {
  display: block; color: var(--text-secondary);
  text-decoration: none; font-size: .85rem;
  margin-bottom: .7rem; transition: color .3s
}
.footer-col a:hover { color: var(--accent) }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  border-top: 1px solid rgba(0, 71, 255, .06);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem
}
.footer-bottom p, .footer-bottom a {
  font-size: .78rem; color: var(--muted);
  text-decoration: none; transition: color .3s
}
.footer-bottom a:hover { color: var(--accent) }

/* Hide cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  #cursor, #cursor-ring { display: none !important }
  body, *, a, button, input, select, textarea, [role="button"], label, [data-hover], [tabindex] { cursor: auto !important }
}

@media(max-width:900px) {
  #nav { padding: 1rem 1.5rem }
  .nav-links { display: none }
  .nav-cta { display: none }
  .hamburger { display: flex }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .section-divider { margin: 0 1.5rem }
  footer { padding: 3.5rem 1.5rem 2rem }
  .footer-bottom { flex-direction: column; text-align: center; gap: .8rem }
}
@media(max-width:600px) {
  .footer-grid { grid-template-columns: 1fr }
  #nav { padding: .8rem 1rem }
  .nav-logo { font-size: 1.1rem }
  footer { padding: 2.5rem 1rem 1.5rem }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.5rem) }
  .label { font-size: .66rem; letter-spacing: .35em }
  .btn-p, .btn-o { padding: .75rem 1.6rem; font-size: .82rem }
}

/* ── PERFORMANCE: GPU acceleration hints ── */
canvas { will-change: contents }
.stat-card, .work-card, .portfolio-card, .testi-card, .value-card, .team-card,
.btn-p, .btn-o, .nav-cta, .social-btn { will-change: transform }

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none }
  .stat-card { opacity: 1; transform: none }
  #preloader { display: none !important }
  #bg-canvas { display: none !important }
  .marquee-track { animation: none }
}
