/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #0a0a0f;
  --c-surface: #111118;
  --c-border: rgba(255,255,255,0.07);
  --c-text: #e8e8f0;
  --c-muted: #8888aa;
  --c-accent: #6c63ff;
  --c-accent-light: #8b85ff;
  --c-accent-glow: rgba(108,99,255,0.15);

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;

  --radius: 12px;
  --section-gap: 120px;
  --container: 1100px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--c-accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--c-muted);
  max-width: 480px;
  margin-bottom: 48px;
}

/* ===== About ===== */
.about {
  border-top: 1px solid var(--c-border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p {
  color: var(--c-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 0 0 1px rgba(108,99,255,0.1), 0 8px 24px rgba(0,0,0,0.3);
}

.value-icon {
  color: var(--c-accent);
  font-size: 10px;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ===== Work ===== */
.work {
  border-top: 1px solid var(--c-border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.project-card.placeholder {
  border-style: dashed;
}

.project-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  background: var(--c-accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: var(--c-muted);
}

/* ===== Contact ===== */
.contact {
  border-top: 1px solid var(--c-border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 { margin-bottom: 16px; }
.contact-text p {
  color: var(--c-muted);
  font-size: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--c-accent);
  font-size: 8px;
  margin-top: 6px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--c-accent-light); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text { font-weight: 700; font-size: 15px; }

.footer-copy {
  font-size: 13px;
  color: var(--c-muted);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  :root { --section-gap: 80px; }

  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .projects-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid var(--c-border);
  }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
