/* ---------- Tokens ---------- */
:root {
  --bg: #0a0d12;
  --bg-alt: #0e1218;
  --surface: #12161e;
  --surface-hover: #171c26;
  --border: #22293580;
  --border-strong: #2c3442;
  --text: #e8ecf1;
  --text-dim: #9aa4b2;
  --text-faint: #666f7e;
  --accent: #7c5cff;
  --accent-2: #2fe6b8;
  --accent-grad: linear-gradient(120deg, #7c5cff, #2fe6b8);
  --radius: 14px;
  --max-w: 1120px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

p { color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 13, 18, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-cta { font-size: 0.88rem; padding: 9px 18px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button.active {
  background: var(--accent-grad);
  color: #08090c;
}
.lang-switch button:not(.active):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-grad);
  color: #08090c;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px #7c5cff80;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(500px circle at 20% 20%, #7c5cff33, transparent 60%),
    radial-gradient(450px circle at 80% 30%, #2fe6b826, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-text {
  max-width: 660px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.08rem;
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stack span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}
.hero-photo-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 5px;
  background: var(--accent-grad);
  flex-shrink: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg);
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 20px;
  max-width: 640px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  margin-bottom: 18px;
  font-size: 1rem;
}
.about-facts {
  display: grid;
  gap: 14px;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fact-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff22, #2fe6b822);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Projects ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.project-header {
  margin-bottom: 16px;
}
.project-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  display: block;
  margin-bottom: 8px;
}
.project-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 #2fe6b899; }
  70%  { box-shadow: 0 0 0 7px #2fe6b800; }
  100% { box-shadow: 0 0 0 0 #2fe6b800; }
}
@media (prefers-reduced-motion: reduce) {
  .project-live::before { animation: none; }
}
.project-header h3 {
  font-size: 1.25rem;
}
.project-desc {
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.project-desc strong { color: var(--text); }
.project-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.project-list li { margin-bottom: 8px; }
.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  background: #ffffff08;
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.testimonial-card p {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 14px;
}
.testimonial-card footer {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Contact ---------- */
.contact-inner {
  text-align: center;
}
.contact-inner .section-title,
.contact-inner .about-text {
  margin-left: auto;
  margin-right: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .25s ease, transform .25s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.contact-card svg { color: var(--accent-2); flex-shrink: 0; }
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.contact-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-actions, .hero-stack { justify-content: center; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-ring { width: 180px; height: 180px; }
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 20px;
  }
  .nav.open .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  .nav.open .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
}
