/* ══════════════════════════════════════════
   ITCare — Dark Tech v2
   ══════════════════════════════════════════ */
:root {
  --bg: #06080f;
  --bg2: #0d1117;
  --blue: #38bdf8;
  --blue-dim: rgba(56,189,248,.12);
  --green: #4ade80;
  --gold: #C8A040;
  --border: #1e293b;
  --border2: #2d3f55;
  --text: #e2e8f0;
  --muted: #64748b;
  --muted2: #475569;
  --mono: 'DM Mono', monospace;
  --display: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.gold { color: var(--gold); font-family: var(--mono); }
.blue { color: var(--blue); }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.pre-inner { text-align: center; }
.pre-logo { font-family: var(--mono); font-size: 28px; color: var(--text); margin-bottom: 24px; letter-spacing: .02em; }
.pre-bar { width: 220px; height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; margin: 0 auto 12px; }
.pre-fill { height: 100%; width: 0%; background: var(--blue); border-radius: 1px; transition: width .3s; }
.pre-status { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── SCROLL PROGRESS ── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), #7dd3fc);
  z-index: 200;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(6,8,15,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30,41,59,.6);
  transition: background .3s, box-shadow .3s;
}
nav.scrolled { background: rgba(6,8,15,.92); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.nav-logo { font-family: var(--mono); font-size: 16px; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.nav-links { display: flex; gap: 34px; margin-left: auto; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: .05em; position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; margin-left: 28px; background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.lang-btn { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); background: transparent; padding: 6px 11px; border: none; cursor: pointer; transition: all .2s; }
.lang-btn.active { background: var(--blue); color: var(--bg); }
.lang-btn:hover:not(.active) { color: var(--blue); }

.nav-cta {
  margin-left: 18px; background: var(--blue); color: var(--bg);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 9px 20px; border-radius: 6px; text-decoration: none;
  transition: box-shadow .3s;
  display: inline-block;
}
.nav-cta:hover { box-shadow: 0 0 24px rgba(56,189,248,.4); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px clamp(20px, 4vw, 48px) 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8%;
  background-image: url('../assets/hero-bg.png');
  background-size: cover; background-position: center;
  opacity: .55; will-change: transform;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,15,.65) 0%, rgba(6,8,15,.15) 35%, rgba(6,8,15,.75) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(6,8,15,.5) 0%, transparent 65%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.hero-content { position: relative; z-index: 2; max-width: 1160px; width: 100%; }

.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800; line-height: 1.03; letter-spacing: -.03em;
  color: #fff; margin-bottom: 28px;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span { display: inline-block; will-change: transform; }
.hero-h1 .accent { color: var(--blue); text-shadow: 0 0 60px rgba(56,189,248,.45); }
.hero-sub { font-size: 17px; font-weight: 300; color: #94a3b8; max-width: 520px; margin-bottom: 40px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: var(--bg);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 14px 32px; border-radius: 7px; text-decoration: none;
  border: none; cursor: pointer; display: inline-block;
  transition: box-shadow .3s;
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(56,189,248,.5); }
.btn-outline {
  background: rgba(13,17,23,.5); color: #94a3b8;
  font-family: var(--mono); font-size: 13px;
  padding: 14px 32px; border-radius: 7px;
  border: 1px solid var(--border2); text-decoration: none;
  cursor: pointer; display: inline-block;
  backdrop-filter: blur(6px);
  transition: border-color .25s, color .25s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.hero-stats {
  display: flex; margin-top: 68px;
  border: 1px solid rgba(30,41,59,.8); border-radius: 10px;
  overflow: hidden; max-width: 640px;
  background: rgba(13,17,23,.55); backdrop-filter: blur(10px);
}
.hero-stat { flex: 1; padding: 18px 22px; border-right: 1px solid rgba(30,41,59,.8); }
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--blue); display: block; white-space: nowrap; }
.hero-stat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .05em; margin-top: 3px; display: block; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--border2); border-radius: 12px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; margin-left: -1.5px;
  width: 3px; height: 7px; background: var(--blue); border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(12px);opacity:0} 100%{opacity:0} }

/* ── MARQUEE ── */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); overflow: hidden; }
.marquee { padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.marquee-track i { color: var(--blue); font-style: normal; font-size: 8px; opacity: .6; }

/* ── SECTIONS ── */
section { padding: 110px clamp(20px, 4vw, 48px); position: relative; }
.section-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }
.section-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--blue); opacity: .5; }
.section-h {
  font-family: var(--display); font-size: clamp(30px, 4vw, 48px);
  font-weight: 800; letter-spacing: -.025em; color: #fff;
  line-height: 1.08; margin-bottom: 14px;
}
.section-sub { font-size: 16px; font-weight: 300; color: var(--muted); max-width: 540px; margin-bottom: 60px; }

/* ── TERMINAL ── */
.terminal-strip {
  background: #060d0a; border: 1px solid #17301f; border-radius: 10px;
  padding: 16px 22px 18px; font-family: var(--mono); font-size: 12.5px;
  color: var(--green); margin-bottom: 60px; overflow-x: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.35);
}
.t-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.t-dots i { width: 9px; height: 9px; border-radius: 50%; background: #1e293b; }
.t-dots i:first-child { background: #7f1d1d; }
.t-dots i:nth-child(2) { background: #713f12; }
.t-dots i:nth-child(3) { background: #14532d; }
.t-line { padding: 2px 0; white-space: nowrap; }
.t-cmd { color: var(--muted); }
.t-cursor { display: inline-block; width: 7px; height: 13px; background: var(--green); vertical-align: middle; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.svc-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 0; position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.svc-card:hover { border-color: var(--border2); box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(56,189,248,.08); }
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0); transition: transform .45s; z-index: 3;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card.core { border-color: #1e3a4a; }
.svc-card.wide { grid-column: 1 / -1; padding: 32px; }
.svc-card.has-img { display: flex; flex-direction: column; }
.svc-card:not(.wide) .svc-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card-bottom { margin-top: auto; padding-top: 18px; }

.svc-img { height: 190px; overflow: hidden; position: relative; }
.svc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg2) 100%); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.svc-card:hover .svc-img img { transform: scale(1.06); }

.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.svc-icon {
  height: 30px; background: var(--blue-dim); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--blue);
  padding: 0 12px; white-space: nowrap;
}
.core-pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  color: var(--blue); background: var(--blue-dim);
  padding: 4px 10px; border-radius: 4px;
}
.core-pill.dim { color: var(--muted); background: rgba(255,255,255,.04); }
.svc-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.svc-desc { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.m365-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 8px; }
.m365-block { background: rgba(56,189,248,.04); border: 1px solid #17384a; border-radius: 9px; padding: 16px; transition: border-color .25s, background .25s; }
.m365-block:hover { border-color: #2d5a70; background: rgba(56,189,248,.07); }
.m365-t { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--blue); margin-bottom: 10px; }
.m365-t::before { content: '// '; opacity: .4; font-size: 10px; }
.m365-block ul { list-style: none; }
.m365-block li { font-size: 12px; font-weight: 300; color: var(--muted); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.03); display: flex; align-items: center; gap: 7px; }
.m365-block li:last-child { border: none; }
.m365-block li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; opacity: .5; }

.plat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; margin: 14px 0 8px; }
.plats { display: flex; flex-wrap: wrap; gap: 7px; }
.plat {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, border-color .2s, background .2s;
  cursor: default;
}
.plat:hover { color: var(--blue); border-color: #2d5a70; background: var(--blue-dim); }
.plat.primary { color: var(--blue); background: var(--blue-dim); border-color: #2d5a70; }
.plat.primary:hover { color: #fff; background: rgba(56,189,248,.25); }
.plat.os { color: #94a3b8; border-color: #2d3f55; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted2);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 4px;
  transition: color .2s, border-color .2s, background .2s; cursor: default;
}
.tag:hover { color: var(--blue); border-color: #2d5a70; background: var(--blue-dim); }

/* ── PROCESS ── */
#process { background: var(--bg2); overflow: hidden; }
.process-bg { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.process-bg img { width: 100%; height: 100%; object-fit: cover; }
.process-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg2) 0%, transparent 35%, transparent 65%, var(--bg2) 100%); }

.timeline { position: relative; max-width: 720px; padding-left: 4px; }
.tl-line { position: absolute; left: 25px; top: 10px; bottom: 40px; width: 2px; background: var(--border); border-radius: 1px; overflow: hidden; }
.tl-fill { width: 100%; height: 0%; background: linear-gradient(180deg, var(--blue), var(--green)); }
.tl-item { display: flex; gap: 28px; padding-bottom: 52px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  flex-shrink: 0; position: relative; z-index: 2;
  transition: border-color .4s, color .4s, background .4s, box-shadow .4s;
}
.tl-item.active .tl-num { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); box-shadow: 0 0 24px rgba(56,189,248,.3); }
.tl-eyebrow { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: .06em; }
.tl-title { font-family: var(--display); font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tl-desc { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 560px; }
.tl-del {
  display: inline-flex; margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px; color: var(--blue);
  background: var(--blue-dim); padding: 5px 12px; border-radius: 4px;
}

/* ── WHY ── */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.why-p { font-size: 16px; font-weight: 300; color: var(--muted); margin-bottom: 36px; max-width: 480px; }
.why-points { display: flex; flex-direction: column; gap: 22px; }
.why-point { display: flex; gap: 14px; }
.why-point i { color: var(--blue); font-style: normal; font-size: 14px; padding-top: 2px; }
.why-point b { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.why-point span { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.65; }
.why-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 32px 80px rgba(0,0,0,.5); aspect-ratio: 4/3; }
.why-img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.c-item { display: flex; gap: 15px; margin-bottom: 26px; align-items: flex-start; }
.c-ic {
  width: 38px; height: 38px; background: var(--blue-dim); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--blue);
}
.c-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.c-val { font-size: 15px; color: var(--text); }
.c-promise { margin-top: 38px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.c-promise-t { font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: .08em; margin-bottom: 12px; }
.c-promise ul { list-style: none; }
.c-promise li { font-size: 13.5px; font-weight: 300; color: var(--muted); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.03); display: flex; align-items: center; gap: 9px; }
.c-promise li:last-child { border: none; }
.c-promise li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.c-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 34px; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.f-group { margin-bottom: 22px; }
.f-label { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.f-input, .f-textarea {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); font-family: var(--body); font-size: 14px; font-weight: 300;
  padding: 13px 15px; outline: none; resize: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.f-input:focus, .f-textarea:focus { border-color: var(--blue); background: rgba(56,189,248,.04); box-shadow: 0 0 0 3px rgba(56,189,248,.08); }
.f-input::placeholder, .f-textarea::placeholder { color: var(--muted2); }
.f-textarea { min-height: 130px; }
.f-submit {
  width: 100%; background: var(--blue); color: var(--bg);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 15px; border: none; border-radius: 7px; cursor: pointer;
  letter-spacing: .04em; transition: box-shadow .3s;
}
.f-submit:hover { box-shadow: 0 0 32px rgba(56,189,248,.45); }
.f-submit:disabled { opacity: .6; cursor: wait; }
.f-note { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 12px; text-align: center; }
.f-success { display: none; text-align: center; padding: 44px 20px; }
.f-ok {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(74,222,128,.1); border: 1.5px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-family: var(--mono); font-size: 21px; color: var(--green);
}
.f-success h3 { font-family: var(--display); font-size: 21px; color: #fff; margin-bottom: 8px; }
.f-success p { font-size: 13.5px; color: var(--muted); }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 34px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: 24px;
}
.footer-logo { font-family: var(--mono); font-size: 15px; color: var(--text); }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }

/* ── REVEAL base states (GSAP overrides) ── */
.reveal { opacity: 0; transform: translateY(32px); }
.reveal-hero { opacity: 0; transform: translateY(24px); }
.hero-h1 .line > span { transform: translateY(110%); }

/* ── MAGNETIC ── */
.magnetic { will-change: transform; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  section { padding: 80px 20px; }
  #hero { padding: 100px 20px 70px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 45%; border-bottom: 1px solid rgba(30,41,59,.8); }
  .svc-card.wide { padding: 24px; }
  .hero-bg { background-attachment: scroll; }
  /* mobile: no reveal animations */
  .reveal, .reveal-hero { opacity: 1; transform: none; }
  .hero-h1 .line > span { transform: none; }
  #heroCanvas { display: none; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; }
  .hero-h1 .line > span { transform: none !important; }
  #heroCanvas, .scroll-hint { display: none; }
}
