:root {
  --bg: #07111f;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-2: #111827;
  --card: rgba(17, 24, 39, 0.92);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-2: #3b82f6;
  --success: #22c55e;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.14), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: rgba(2, 6, 23, 0.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.2);
}

.logo-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding-top: 118px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-text {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions,
.creative-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.18);
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.76);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-meta div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.hero-meta span {
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(56, 189, 248, 0.12), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  filter: blur(4px);
}

.status-dot {
  width: 13px;
  height: 13px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
}

.card-label {
  color: var(--accent);
  font-weight: 800;
}

.hero-card h2 {
  margin-top: 12px;
  font-size: 2rem;
}

.hero-card p:not(.card-label) {
  margin-top: 14px;
  color: var(--muted);
}

.profile-tags,
.stack,
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags {
  margin-top: 22px;
}

.profile-tags span,
.stack span,
.skills-wrap span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: var(--muted);
  font-size: 0.83rem;
}

.profile-tags span,
.skills-wrap span {
  padding: 8px 12px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

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

.service-card,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.service-card {
  padding: 24px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.service-card p {
  margin-top: 14px;
  color: var(--muted);
}

.service-card ul {
  margin-top: 20px;
  color: var(--soft);
  font-size: 0.94rem;
}

.service-card li + li {
  margin-top: 8px;
}

.service-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(56, 189, 248, 0.58);
  color: var(--text);
  background: rgba(56, 189, 248, 0.11);
}

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

.project-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.46);
}

.project-card.hidden {
  display: none;
}

.project-card.featured {
  border-color: rgba(56, 189, 248, 0.44);
}

.project-card img {
  height: 210px;
  object-fit: cover;
  background: #0f172a;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 22px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-accent {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.project-year {
  color: var(--soft);
  font-size: 0.84rem;
}

.project-card p {
  margin-top: 12px;
  color: var(--muted);
}

.stack {
  margin-top: 18px;
}

.stack span {
  padding: 6px 9px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.project-links a {
  color: var(--accent);
  font-weight: 900;
}

.project-links a:hover {
  text-decoration: underline;
}

.muted-link {
  color: var(--soft);
  font-size: 0.9rem;
}

.creative-grid,
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.creative-grid p,
.about-text p {
  color: var(--muted);
  font-size: 1.06rem;
}

.creative-list {
  display: grid;
  gap: 12px;
}

.creative-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
}

.creative-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.skills-wrap {
  gap: 10px;
}

.skills-wrap span {
  padding: 10px 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
}

.about-text p + p {
  margin-top: 16px;
}

.contact-card {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 40%),
    var(--card);
}

.contact-card p {
  margin-top: 14px;
  color: var(--muted);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.contact-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-list li {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.56);
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--accent);
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .creative-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .split-heading {
    display: block;
  }

  .filters {
    margin-top: 20px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 86px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
  }

  .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);
  }

  .hero-meta,
  .services-grid,
  .projects-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 190px;
  }

  .contact-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
