:root {
  --bg: #020617;         /* deep near-black */
  --card: #020617;
  --border: #111827;
  --muted: #94a3b8;
  --fg: #e5e7eb;
  --primary: #06b6d4;     /* teal/turquoise accent similar to logo X */
  --primary-contrast: #0b1220;
  --radius: 14px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand img {
  height: 80px;
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--fg);
}

.menu-button {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  min-height: 80vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.grid-bg,
.glow {
  display: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 120px 0 80px;
  z-index: 1;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin: 0 0 14px;
}

h1 span {
  color: var(--primary);
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.45);
}

.btn.outline {
  background: transparent;
  color: var(--fg);
}

.btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(6, 182, 212, 0.35);
}

.btn.full {
  width: 100%;
}

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head.row {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 18px;
}

/* scroll-based reveal animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services .cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--primary);
}

.icon-circle.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.stats {
  background: #020617;
  border-block: 1px solid #111827;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-number {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--primary);
}

.work .projects {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project {
  padding: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(0) translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.95);
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project:hover img {
  transform: scale(1.04);
}

.project .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.9), transparent 40%);
}

.project-body {
  padding: 16px 18px 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.testimonials {
  background: #020617;
  border-block: 1px solid #111827;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote {
  display: grid;
  gap: 12px;
}

.quote-icon {
  font-size: 42px;
  color: rgba(6, 182, 212, 0.4);
  line-height: 1;
}

.quote-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-author {
  margin: 0;
  font-weight: 700;
}

.small {
  font-size: 13px;
}

.cta {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: 36px;
  display: grid;
  gap: 16px;
}

.contact {
  padding-bottom: 120px;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.contact-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.contact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.strong {
  font-weight: 700;
  margin: 2px 0;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form h3 {
  margin: 0 0 6px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.two-col {
  display: grid;
  gap: 12px;
}

.note {
  margin: 4px 0 0;
}

.footer {
  border-top: 1px solid #111827;
  background: #020617;
  padding: 52px 0 26px;
}

/* subtle 3D background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    /* soft vignette corners */
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(15, 23, 42, 0.85), transparent 60%),
    radial-gradient(circle at 0 100%, rgba(15, 23, 42, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), transparent 60%),
    /* faint vertical panels for 3D wall feel */
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.95) 35%,
      rgba(15, 23, 42, 1) 50%,
      rgba(15, 23, 42, 0.95) 65%,
      rgba(15, 23, 42, 0.9) 100%
    );
  mix-blend-mode: normal;
  opacity: 0.75;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    /* teal glow at top center */
    radial-gradient(circle at 50% 0, rgba(6, 182, 212, 0.14), transparent 60%),
    /* subtle grid-lines to suggest depth */
    linear-gradient(
      rgba(15, 23, 42, 0.85) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.85) 1px,
      transparent 1px
    );
  background-size:
    100% 100%,
    120px 120px,
    120px 120px;
  background-position:
    0 0,
    0 0,
    0 0;
  background-blend-mode: soft-light;
  opacity: 0.6;
  z-index: -2;
}

/* floating teal ring for extra 3D accent behind content */
.floating-ring {
  position: fixed;
  top: 8%;
  left: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow:
    0 0 40px rgba(6, 182, 212, 0.45),
    inset 0 0 30px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 1));
  pointer-events: none;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 4s ease-in-out, opacity 2s ease-in-out;
  will-change: transform;
}

.floating-ring-logo {
  width: 140px;
  height: auto;
  filter:
    drop-shadow(0 0 18px rgba(6, 182, 212, 0.6))
    drop-shadow(0 0 30px rgba(6, 182, 212, 0.35));
}


.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer h4 {
  margin: 0 0 10px;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.social a:hover {
  color: var(--fg);
  border-color: var(--primary);
}

.footer-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  display: grid;
  place-items: flex-start;
  padding: 8px 0;
}

.wheel {
  width: 4px;
  height: 8px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 999px;
  animation: wheel 1.4s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

@media (min-width: 960px) {
  .desktop-nav { display: flex; }
  .menu-button { display: none; }
  .mobile-nav { display: none !important; }
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .cta-inner { text-align: center; }
}

