/* ...existing code... */
:root {
  --bg: #0b1020;
  --card: #0f1724;
  --muted: #9aa4b2;
  --accent: #6ee7b7;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.02);
  --radius: 12px;
  --maxw: 1100px;
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--ff);
  background: rgb(5, 0, 52);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Container */
.container {
  width: calc(100% - 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.6), rgba(11, 16, 32, 0.2));
  backdrop-filter: blur(6px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03)
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.brand {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem
}

.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px
}

.nav-list a:hover {
  color: #fff;
  background: var(--glass-2)
}

/* Hero */
.hero {
  padding: 48px 0
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center
}

.title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 12px
}

.lead {
  color: var(--muted);
  margin: 0 0 18px
}

.hero-actions .btn {
  margin-right: 10px
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px
}

.mock-window {
  width: 100%;
  background: linear-gradient(180deg, #0b1220, #071226);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.window-top {
  height: 38px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent)
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block
}

.red {
  background: #ff7b7b
}

.yellow {
  background: #ffd36b
}

.green {
  background: #7ef59e
}

.window-body {
  padding: 16px
}

.code-sample {
  background: linear-gradient(90deg, #071122, #0b1530);
  padding: 10px;
  border-radius: 8px;
  overflow: auto
}

.code-sample pre {
  margin: 0;
  color: #cfeef0;
  font-size: 12px
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #4cc9f0);
  color: #02121a
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted)
}

.btn.outline {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  color: var(--muted)
}

.badge {
  background: rgba(14, 24, 37, 0.6);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px
}

/* Sections */
.section {
  padding: 42px 0
}

.section h2 {
  margin: 0 0 12px
}

.section .muted {
  color: var(--muted)
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 12px 0 18px
}

.skills li {
  background: var(--glass);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px
}

.stats {
  display: grid;
  gap: 12px
}

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 14px;
  border-radius: 10px;
  text-align: center
}

.stat h3 {
  margin: 0;
  font-size: 1.4rem
}

.stat a {
  color: inherit;
  text-decoration: none;
}

/* Projects */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform .28s ease, box-shadow .28s ease
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6)
}

.card-media {
  height: 120px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #06202b, #05213a);
  position: relative;
}

.card-media .project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .36s ease;
}

.project-card:hover .card-media .project-thumb {
  transform: scale(1.06);
}

.card-body {
  padding: 14px
}

.card-body h3 {
  margin: 0 0 8px
}

.card-body .small {
  color: var(--muted);
  font-size: 13px
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px
}

.link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none
}

.filters select,
.filters input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--glass);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 180px;
  transition: box-shadow .18s ease, transform .12s ease, background .12s ease;
}

.filters select option {
  background: var(--bg);
  color: #ffffff;
}

.filters select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aebfca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 14px;
}

.filters input[type="search"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aebfca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

.filters select:focus,
.filters input[type="search"]:focus {
  outline: none;
  box-shadow: 0 8px 30px rgba(110, 231, 183, 0.10), 0 0 0 5px rgba(110, 231, 183, 0.04);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .filters {
    flex-direction: column;
    align-items: stretch
  }

  .filters select {
    width: 100%
  }

  .filters input[type="search"] {
    width: 100%
  }
}

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 14px
}

.tech {
  display: inline-block;
  padding: 10px;
  border-radius: 8px;
  background: var(--glass);
  color: var(--muted);
  font-weight: 700
}

/* Reviews */
.reviews {
  margin-bottom: 40px;
}

.reviews .review-carousel {
  position: relative;
  min-height: 120px
}

.review {
  opacity: 0;
  transform: translateY(8px);
  transition: all .36s ease;
  position: absolute;
  left: 0;
  right: 0
}

.review.active {
  opacity: 1;
  transform: none
}

.review p {
  margin: 0 0 8px;
  color: #eaf6f3
}

.review cite {
  color: var(--muted)
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start
}

.contact-form label {
  display: block;
  margin-bottom: 10px
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

#formStatus {
  margin-top: 10px;
  color: var(--muted)
}

/* Footer */
.site-footer {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  color: var(--muted)
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr
  }

  .nav-list {
    display: none
  }

  .hero-card {
    order: -1
  }
}