@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

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

:root {
  --purple: #6C63FF;
  --cyan: #00D4FF;
  --dark: #0A0A0F;
  --dark2: #111118;
  --dark3: #1a1a26;
  --card: #13131e;
  --border: rgba(108,99,255,0.2);
  --text: #e8e8f0;
  --muted: #7a7a9a;
  --grad: linear-gradient(135deg, #6C63FF, #00D4FF);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  height: 68px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px; text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--grad); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 8px 22px; border-radius: 8px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(108,99,255,0.45); }

/* ── HAMBURGER (mobile) ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 6% 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(108,99,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0,212,255,0.08) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,0.1); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 18px;
  font-size: 0.78rem; color: var(--cyan); font-weight: 600; letter-spacing: 1.5px;
  margin-bottom: 28px; text-transform: uppercase;
  animation: fadeUp 0.6s ease forwards;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s forwards; opacity: 0;
}
h1 .grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto 40px;
  line-height: 1.75; font-weight: 400;
  animation: fadeUp 0.6s ease 0.2s forwards; opacity: 0;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s forwards; opacity: 0;
}
.btn-primary {
  padding: 14px 32px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.55); }
.btn-outline {
  padding: 14px 32px; border-radius: 10px;
  background: transparent; color: var(--text); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--purple); background: rgba(108,99,255,0.07); }

.hero-stats {
  display: flex; justify-content: center; margin-top: 72px;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--card);
  animation: fadeUp 0.6s ease 0.4s forwards; opacity: 0;
}
.stat { flex: 1; padding: 22px 28px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SECTIONS GENERIC ── */
section { padding: 110px 6%; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 4px;
  background: rgba(108,99,255,0.1); color: var(--purple);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px; font-family: 'JetBrains Mono', monospace;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.section-center { text-align: center; margin-bottom: 64px; }
.section-center .section-sub { max-width: 540px; margin: 0 auto; }

/* ── SERVICES ── */
#services { background: var(--dark2); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; max-width: 1140px; margin: 0 auto;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(108,99,255,0.13);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(108,99,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px; border: 1px solid var(--border);
}
.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ── TAGS ── */
.tag {
  padding: 3px 11px; border-radius: 5px;
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.18);
  color: var(--cyan); font-size: 0.7rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px;
}
.tag.purple {
  background: rgba(108,99,255,0.08); border-color: rgba(108,99,255,0.2);
  color: #a89fff;
}

/* ── PROCESS ── */
#process { background: var(--dark); }
.process-inner { display: flex; gap: 80px; align-items: flex-start; max-width: 1140px; margin: 0 auto; }
.process-left { flex: 0 0 380px; }
.process-right { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.values-box {
  padding: 28px; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; margin-top: 36px;
}
.values-box .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 16px; }
.value-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 0.88rem; }
.value-item:last-child { margin-bottom: 0; }
.value-check { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.step {
  display: flex; gap: 18px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover { border-color: rgba(108,99,255,0.4); transform: translateX(4px); }
.step-num {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.step-title { font-weight: 700; margin-bottom: 5px; font-size: 0.97rem; }
.step-desc { color: var(--muted); font-size: 0.84rem; line-height: 1.65; }

/* ── TEAM ── */
#team { background: var(--dark2); }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px; max-width: 1000px; margin: 0 auto;
}
.team-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 40px 28px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(108,99,255,0.18);
  border-color: rgba(108,99,255,0.5);
}
.team-avatar-wrap {
  position: relative; width: 90px; height: 90px; margin: 0 auto 22px;
}
.team-avatar-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: var(--grad); z-index: 0;
}
.team-avatar {
  position: relative; z-index: 1;
  width: 84px; height: 84px; border-radius: 50%; margin: 3px auto 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #fff;
  background: var(--dark3);
}
.team-name { font-size: 1.18rem; font-weight: 800; margin-bottom: 5px; }
.team-role {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.team-bio { color: var(--muted); font-size: 0.85rem; line-height: 1.72; margin-bottom: 22px; }
.team-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ── PROJECTS ── */
#projects { background: var(--dark); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px; max-width: 1140px; margin: 0 auto;
}
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
}
.project-thumb {
  height: 148px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; position: relative; overflow: hidden;
}
.project-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--card));
}
.project-body { padding: 26px; }
.project-type {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px; font-family: 'JetBrains Mono', monospace;
}
.project-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-desc { color: var(--muted); font-size: 0.83rem; line-height: 1.65; margin-bottom: 16px; }

/* ── CONTACT ── */
#contact { background: var(--dark2); }
.cta-box {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.07), rgba(0,212,255,0.04));
  border: 1px solid var(--border);
  border-radius: 26px; padding: 64px 48px;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta-box > p { color: var(--muted); margin-bottom: 40px; line-height: 1.7; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-input {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-submit {
  padding: 15px; border-radius: 10px; background: var(--grad);
  color: #fff; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.35);
}
.form-submit:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.5); }

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 44px 6%; text-align: center; color: var(--muted); font-size: 0.85rem;
}
.footer-logo {
  font-size: 1.5rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px; display: block;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .process-inner { flex-direction: column; gap: 48px; }
  .process-left { flex: none; width: 100%; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 5%; }
  .hero-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  section { padding: 80px 5%; }
}
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 24px 6%;
  flex-direction: column; gap: 20px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
