:root {
  --bg: #07111f;
  --surface: #101b2d;
  --surface-2: #16263d;
  --text: #f4f7fb;
  --muted: #9db0c7;
  --accent: #7c93ff;
  --accent-2: #ff7db8;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 147, 255, 0.25), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 4.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero h1,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 1.4rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlights li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.card-top {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff6b6b;
}

.dot:nth-child(2) {
  background: #ffd166;
}

.dot:nth-child(3) {
  background: #4ecdc4;
}

.card-body {
  background: rgba(7, 17, 31, 0.7);
  border-radius: 1rem;
  padding: 1.2rem;
}

.card-body h2 {
  margin-top: 0;
}

.card-body p {
  color: var(--muted);
}

.metric-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.metric-row div {
  flex: 1;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.metric-row strong {
  display: block;
  font-size: 1.2rem;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 2rem 0 1rem;
  scroll-margin-top: 100px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  overflow: hidden;
}

.project-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.image-one {
  background-image: url('https://images.unsplash.com/photo-1598866594230-a7c12756260f?auto=format&fit=crop&w=900&q=80');
}

.image-two {
  background-image: url('https://images.unsplash.com/photo-1633681926022-84c23e8cb2d6?auto=format&fit=crop&w=900&q=80');
}

.image-three {
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=900&q=80');
}

.project-content {
  padding: 1rem 1rem 1.2rem;
}

.project-content h3 {
  margin: 0 0 0.5rem;
}

.project-content p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.project-content a {
  color: var(--accent);
  font-weight: 600;
}

.contact-section {
  margin-top: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.04);
}

.contact-card p {
  color: var(--muted);
  margin-top: 0;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero,
  .project-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  main {
    padding: 0 1rem 3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
