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

:root {
  --bg-main: #0d0d0d;
  --primary: #004aad;
  --primary-soft: #0096ff;
  --text-main: #ffffff;
  --text-muted: #c2c2c2;
  --card-bg: #151515;
  --border-subtle: #242424;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.2s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
  background: radial-gradient(circle at top left, rgba(0, 150, 255, 0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0, 74, 173, 0.16), transparent 50%);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.94), rgba(13, 13, 13, 0.86));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

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

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

.btn-nav {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 150, 255, 0.6);
  color: var(--text-main) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 34rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--primary-soft);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition-fast), transform 0.15s ease, box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 150, 255, 0.45);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.ghost:hover {
  border-color: var(--primary-soft);
}

.btn.full-width {
  width: 100%;
}

.hero-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.dashboard-card {
  width: 100%;
  max-width: 360px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 150, 255, 0.15);
  color: var(--primary-soft);
}

.kpi-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi {
  flex: 1;
  background: #101010;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #202020;
}

.kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-placeholder {
  height: 130px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: radial-gradient(circle at 10% 0%, rgba(0, 150, 255, 0.35), transparent 55%),
              radial-gradient(circle at 90% 80%, rgba(0, 74, 173, 0.45), transparent 55%);
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 18% 6% 18% 6%;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.card-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-grid p + p {
  margin-top: 0.75rem;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.service-card ul li::before {
  content: "•";
  color: var(--primary-soft);
  margin-right: 0.35rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card h3 {
  margin-bottom: 0.35rem;
}

.portfolio-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 150, 255, 0.7);
  font-size: 0.75rem;
  color: var(--primary-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
}

.contact-card {
  display: grid;
  gap: 0.9rem;
}

.contact-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  background: #101010;
  border-radius: 10px;
  border: 1px solid #262626;
  padding: 0.6rem 0.7rem;
  color: var(--text-main);
  font: inherit;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  outline: 1px solid var(--primary-soft);
  border-color: var(--primary-soft);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
  background: #050505;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  color: var(--primary-soft);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .about-grid,
  .cards-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    gap: 1.1rem;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: none;
    flex-direction: column;
    gap: 0.9rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

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

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