:root {
  --bg: #07111d;
  --surface: #101c2d;
  --surface-2: #13253a;
  --text: #f5f7fb;
  --muted: #9fb0c3;
  --accent: #f6b26b;
  --accent-2: #7dd3fc;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg), #0f172a);
  color: var(--text);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(125, 211, 252, 0.18), transparent 30%), rgba(7, 17, 29, 0.95);
}

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

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-logo {
  margin-bottom: 1.8rem;
  display: inline-flex;
  justify-content: center;
}

.hero-logo img {
  width: 320px;
  max-width: 100%;
  display: block;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 5rem;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-card {
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.hero-card img {
  width: 100%;
  height: auto;
  max-width: 520px;
  padding: 0;
}

.hero-logo-card img {
  max-width: 520px;
}

.section {
  padding: 5rem 0;
}

.alt-section {
  background: rgba(255, 255, 255, 0.03);
}

.section-heading {
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  max-width: 650px;
}

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

.stats div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.card img {
  height: 220px;
}

.card-content {
  padding: 1.1rem;
}

.card-content p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-content span {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.service-item {
  padding: 1.3rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.service-item p {
  color: var(--muted);
}

.footer {
  padding: 3rem 0 4rem;
  background: rgba(0, 0, 0, 0.2);
}

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

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

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .hero-content {
    padding-top: 2rem;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
