/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #0f172a;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100%);
  margin-inline: auto;
}

main {
  background: radial-gradient(circle at top left, #0ea5e9 0, #0f172a 48%, #020617 100%);
  color: #e5e7eb;
  min-height: calc(100vh - 72px);
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #e5e7eb;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: radial-gradient(circle at 0 0, #38bdf8, #0ea5e9 40%, #7c3aed 100%);
  color: #020617;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.logo-text {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: #cbd5f5;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #7c3aed);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.18s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: #e5e7eb;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 0.9));
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.75);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.34), rgba(15, 23, 42, 0.9));
}

.btn-outline {
  background: transparent;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
}

.full-width {
  width: 100%;
}

/* Hero section */
.hero {
  padding: 3.75rem 0 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.1vw + 1.5rem, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #cbd5f5;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
  font-size: 0.86rem;
}

.meta-label {
  display: block;
  color: #9ca3af;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.meta-value {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-panel {
  display: grid;
  gap: 0.9rem;
}

.stat-card,
.highlight-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.highlight-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-card li {
  font-size: 0.9rem;
  color: #d1d5db;
  padding-block: 0.15rem;
}

/* Generic sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.94));
}

.section-heading {
  text-align: left;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.section-heading p {
  color: #9ca3af;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  padding: 1.3rem 1.4rem;
  color: #e5e7eb;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.95);
}

.card h3,
.card h2 {
  margin-top: 0;
}

.card p {
  color: #d1d5db;
  font-size: 0.95rem;
}

.icon-card {
  position: relative;
  padding-top: 1.8rem;
}

.icon-badge {
  position: absolute;
  inset-inline-start: 1.4rem;
  top: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: #d1d5db;
}

.list li {
  padding-block: 0.15rem;
}

/* Page hero (sub pages) */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #cbd5f5;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

/* Timeline (About page) */
.timeline {
  border-inline-start: 1px solid rgba(148, 163, 184, 0.5);
  padding-inline-start: 1.4rem;
  display: grid;
  gap: 1.3rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
}

.timeline-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  background: radial-gradient(circle at 0 0, #38bdf8, #7c3aed);
  color: #020617;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.4);
}

.timeline-item h3 {
  margin: 0 0 0.15rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.94rem;
  color: #d1d5db;
}

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-card .list {
  margin-top: 0.35rem;
}

.cta-section {
  text-align: center;
}

.cta-section p {
  color: #d1d5db;
  margin-bottom: 1.25rem;
}

/* Portfolio */
.portfolio-grid {
  align-items: stretch;
}

.portfolio-card .tagline {
  font-size: 0.9rem;
  color: #a5b4fc;
  margin-top: -0.25rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form .field {
  margin-bottom: 0.85rem;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.55rem 0.7rem;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.92rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.contact-info h2 {
  margin-top: 0;
}

.info-block {
  margin-top: 1rem;
}

.info-block h3 {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.info-block p,
.info-block a {
  font-size: 0.92rem;
  color: #d1d5db;
}

.info-block a {
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.8);
}

/* Footer */
.site-footer {
  background: #020617;
  color: #9ca3af;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.footer-text {
  max-width: 18rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: #e5e7eb;
}

.footer-meta {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 420px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.6rem 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding-block: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.25rem);
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    display: none;
    flex-direction: column;
    gap: 0.35rem;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
  }
}

