:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #102a43;
  --muted: #52606d;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --border: #d9e2ec;
  --shadow: 0 24px 80px rgba(16, 42, 67, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
}

.theme-toggle {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.section-head h2,
.hero-copy h1 {
  margin: 0;
  line-height: 1.05;
}

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  margin-bottom: 1.25rem;
}

.hero-copy p {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

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

.hero-card {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.hero-card__inner {
  display: grid;
  gap: 1.5rem;
}

.hero-card__inner p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.hero-card__inner ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-card__inner li {
  margin-bottom: 0.75rem;
}

.service-grid,
.portfolio-grid,
.testimonials-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card,
.project-card,
.info-card,
blockquote {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.06);
  padding: 2rem;
}

.service-card h3,
.project-copy h3,
.info-card h3,
.info-card h4 {
  margin-top: 0;
}

.service-card p,
.project-copy p,
.info-card p,
blockquote p {
  color: var(--muted);
  line-height: 1.8;
}

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

.project-card {
  overflow: hidden;
}

.project-banner {
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-banner-3 {
  background-image: linear-gradient(180deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.02)), linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.project-copy {
  padding-top: 1rem;
}

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

blockquote {
  border: none;
}

blockquote p {
  margin-bottom: 1.5rem;
}

blockquote footer {
  color: var(--text);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 1rem 1.1rem;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.info-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.info-card li {
  margin-bottom: 0.75rem;
}

.site-footer {
  padding: 2rem 0 4rem;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .portfolio-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.mobile-nav-active .site-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(248, 250, 252, 0.98);
  padding: 1rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-card,
  .service-card,
  .project-card,
  .info-card,
  blockquote {
    border-radius: 24px;
  }
}

body.dark {
  color-scheme: dark;
  --bg: #091a2a;
  --surface: #12263b;
  --surface-soft: #152a42;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-soft: #0f172a;
  --border: #233b55;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

body.dark .site-header {
  background: rgba(7, 18, 32, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .site-nav a:hover,
body.dark .site-nav a {
  color: var(--muted);
}

body.dark .theme-toggle {
  background: #0f172a;
  border-color: #233b55;
}

body.dark .btn-secondary {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}
