.logo small,
.logo strong,
.menu-btn span,
img {
  display: block;
}
.project-card::before,
.site-bg::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
}
.btn,
.eyebrow,
.nav-cta,
.panel-badge {
  font-weight: 800;
}
.logo-icon,
.menu-btn,
.scroll-top {
  place-items: center;
}
.cta-banner,
.hero-panel,
.logo-icon,
.project-card,
.project-info p,
.project-top,
.projects-hero,
body.menu-open {
  overflow: hidden;
}
.btn,
.filter-btn,
.nav-cta {
  white-space: nowrap;
}
@font-face {
  font-family: MyFont;
  src: url("../fonts/Vazir.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0600-06FF;
}
:root {
  --bg: #07111f;
  --bg-2: #0b1320;
  --bg-3: #111c2e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #aeb8c5;
  --border: rgba(255, 255, 255, 0.12);
  --primary: #f6b800;
  --primary-2: #ff7a1a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 250ms ease;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: MyFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.9;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}
::selection {
  background: var(--primary);
  color: #07111f;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #060d18;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #facc15, #f59e0b, #f97316);
  border-radius: 50px;
}
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(246, 184, 0, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 35%,
      rgba(255, 122, 26, 0.1),
      transparent 26%
    ),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}
.site-bg::after {
  background:
    linear-gradient(rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.86)),
    url("../img/backgriund.webp") center/cover no-repeat;
  opacity: 0.32;
}
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.hero-panel,
.main-nav a,
.project-card,
.project-top,
.projects-hero {
  position: relative;
}
.gradient-text,
.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.site-header.scrolled {
  height: 74px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo,
.main-nav {
  align-items: center;
}
.logo {
  display: inline-flex;
  min-width: max-content;
}
.logo-icon {
  width: 52px;
  height: 52px;
  display: grid;
  border-radius: 16px;
  margin-inline-end: 12px;
  flex-shrink: 0;
}
.eyebrow,
.main-nav a::after,
.nav-cta {
  border-radius: 999px;
}
.menu-btn,
.nav-cta {
  background: var(--surface);
}
.logo-icon img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}
.main-nav a::after,
.menu-btn span {
  height: 2px;
  transition: var(--transition);
}
.logo strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}
.logo small {
  color: var(--muted);
  font-size: 0.77rem;
  margin-top: -2px;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  padding-block: 8px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.main-nav a.active,
.main-nav a:hover,
.notice-box strong,
body.light-theme .main-nav a.active,
body.light-theme .main-nav a:hover,
body.light-theme .project-status {
  color: var(--primary);
}
.main-nav a.active::after,
.main-nav a:hover::after {
  width: 95%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-btn,
.project-card.hide {
  display: none;
}
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--primary);
  color: #07111f;
  border-color: transparent;
  transform: translateY(-2px);
}
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 1001;
}
.menu-btn span {
  width: 20px;
  background: var(--text);
  margin: 3px 0;
}
.menu-btn.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.projects-hero {
  padding: 96px 0 54px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}
.projects-grid,
.stats-row {
  grid-template-columns: repeat(3, 1fr);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(246, 184, 0, 0.1);
  border: 1px solid rgba(246, 184, 0, 0.28);
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(246, 184, 0, 0.9);
}
.projects-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.22;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  font-weight: 900;
}
.gradient-text {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.projects-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 0 28px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111f;
  box-shadow: 0 18px 40px rgba(246, 184, 0, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(246, 184, 0, 0.24);
}
.btn-secondary,
body.light-theme .nav-cta {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}
.hero-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: var(--shadow);
  padding: 26px;
  min-height: 390px;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 17, 31, 0.16), rgba(7, 17, 31, 0.72)),
    url("../img/project6.jpg") center/cover no-repeat;
  opacity: 0.55;
}
.hero-panel-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.panel-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.68);
  border: 1px solid var(--border);
  color: var(--primary);
  margin-bottom: auto;
}
.hero-panel h2 {
  font-size: 2rem;
  line-height: 1.45;
  margin-bottom: 10px;
  font-weight: 900;
}
.hero-panel p {
  margin: 0;
  color: #d8dee8;
  font-size: 0.96rem;
}
.stats-row {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}
.stat-card strong {
  display: block;
  font-size: 1.65rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 4px;
}
.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.notice-box {
  margin: 26px auto 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(246, 184, 0, 0.08);
  border: 1px solid rgba(246, 184, 0, 0.26);
  color: #f9e7aa;
  font-size: 0.96rem;
}
.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.section-kicker {
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 6px;
}
.filter-btn,
.meta-item span:first-child,
.project-info p,
.section-desc,
body.light-theme .cta-content p,
body.light-theme .filter-btn,
body.light-theme .footer-row,
body.light-theme .hero-panel p,
body.light-theme .logo small,
body.light-theme .meta-item span:first-child,
body.light-theme .project-info p,
body.light-theme .projects-hero p,
body.light-theme .section-desc {
  color: var(--muted);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.section-desc {
  max-width: 640px;
  font-size: 1rem;
  margin-top: 10px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--border);
}
.filter-btn {
  transition: var(--transition);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.projects-grid {
  display: grid;
  gap: 28px;
}
.project-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.028)
  );
  border: 1px solid var(--border);
  box-shadow: 0 0 0 transparent;
  transition: var(--transition);
  isolation: isolate;
}
.cta-banner,
.project-card:hover,
.scroll-top {
  box-shadow: var(--shadow);
}
.project-card::before {
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(246, 184, 0, 0.18),
      transparent 28%
    ),
    radial-gradient(circle at 10% 80%, rgba(255, 122, 26, 0.1), transparent 28%);
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 184, 0, 0.34);
}
.project-card:hover::before {
  opacity: 1;
}
.project-top {
  height: 210px;
  background:
    linear-gradient(rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.86)),
    url("../img/backgriund.webp") center/cover no-repeat;
}
.project-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.22), transparent 46%),
    linear-gradient(315deg, rgba(255, 122, 26, 0.18), transparent 50%);
  mix-blend-mode: screen;
}
.project-label {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.82rem;
}
.project-code {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  direction: ltr;
}
.project-info {
  padding: 24px;
}
.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 900;
  line-height: 1.5;
}
.project-info p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.project-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.meta-item:last-child {
  border-bottom: none;
}
.meta-item span:last-child {
  color: var(--text);
  font-weight: 800;
  text-align: left;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.9rem;
}
.project-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(246, 184, 0, 0.9);
}
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.12), rgba(255, 122, 26, 0.08)),
    rgba(255, 255, 255, 0.05);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 17, 31, 0.38), rgba(7, 17, 31, 0.86)),
    url("../img/project.webp") center/cover no-repeat;
  opacity: 0.38;
}
.reveal.visible,
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  margin-bottom: 8px;
  font-weight: 900;
}
.cta-content p {
  color: var(--muted);
  max-width: 680px;
}
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.62);
  margin-top: 48px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row strong,
body.light-theme .cta-content h2,
body.light-theme .footer-row strong,
body.light-theme .hero-panel h2,
body.light-theme .logo strong,
body.light-theme .meta-item span:last-child,
body.light-theme .project-info h3,
body.light-theme .projects-hero h1,
body.light-theme .section-title {
  color: var(--text);
}
.scroll-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  border-radius: 12px;
  background: var(--primary);
  color: #07111f;
  font-size: 1.4rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.show {
  visibility: visible;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 650ms;
}
@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-content,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 860px) {
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
  }
  .menu-btn span {
    width: 18px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: #dfe7f2;
  }
  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 1px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 12px 20px;
    min-height: 372px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
      180deg,
      rgba(8, 19, 34, 0.96),
      rgba(7, 17, 31, 0.92)
    );
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(22px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 240ms,
      transform 240ms,
      visibility 240ms;
    overflow: hidden;
  }
  .main-nav.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    color: #d8e0eb;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: right;
    transition:
      color 220ms,
      background 220ms,
      transform 220ms;
  }
  .main-nav a:hover {
    color: var(--primary);
    background: rgba(246, 184, 0, 0.055);
  }
  .main-nav a.active {
    color: var(--primary);
    background: 0 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: -1px;
    width: auto;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    opacity: 0;
    transform: scaleX(0.7);
    transform-origin: right center;
    transition:
      opacity 220ms,
      transform 220ms;
  }
  .main-nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
  }
  .main-nav a:hover::after {
    opacity: 0.65;
    transform: scaleX(1);
  }
}
@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }
  .container {
    width: min(100% - 24px, var(--container));
  }
  .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .logo strong {
    font-size: 0.92rem;
  }
  .logo small {
    font-size: 0.68rem;
  }
  .projects-hero {
    padding: 62px 0 36px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero-panel {
    min-height: 330px;
    padding: 20px;
  }
  .projects-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }
  .filter-tabs {
    width: 100%;
    border-radius: var(--radius-md);
    justify-content: center;
  }
  .filter-btn {
    flex: 1;
    min-width: 130px;
  }
  .cta-banner {
    padding: 28px;
  }
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  .main-nav {
    right: 14px;
    left: 14px;
    min-height: 374px;
    padding-top: 16px;
    padding-bottom: 18px;
  }
  .main-nav a {
    min-height: 52px;
    padding-inline: 18px;
    font-size: 0.92rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}
body.light-theme {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-3: #edf2f7;
  --surface: rgba(7, 17, 31, 0.06);
  --surface-2: rgba(7, 17, 31, 0.09);
  --text: #07111f;
  --muted: #4a5668;
  --border: rgba(7, 17, 31, 0.12);
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
}
body.light-theme ::-webkit-scrollbar-track {
  background: #e7ecf3;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f6b800, #ff7a1a);
}
body.light-theme .site-bg {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(246, 184, 0, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 35%,
      rgba(255, 122, 26, 0.08),
      transparent 26%
    ),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}
body.light-theme .site-bg::before {
  background-image:
    linear-gradient(rgba(7, 17, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.05) 1px, transparent 1px);
}
body.light-theme .site-bg::after {
  background:
    linear-gradient(rgba(245, 247, 251, 0.72), rgba(245, 247, 251, 0.92)),
    url("../img/backgriund.webp") center/cover no-repeat;
  opacity: 0.4;
}
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: var(--border);
}
body.light-theme .site-header.scrolled {
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.08);
}
body.light-theme .main-nav a {
  color: #3a4757;
}
body.light-theme .nav-cta:hover {
  background: var(--primary);
  color: #07111f;
}
body.light-theme .hero-panel {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
  border-color: rgba(7, 17, 31, 0.1);
}
body.light-theme .hero-panel::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.92)),
    url("../img/backgriund.webp") center/cover no-repeat;
  opacity: 0.55;
}
body.light-theme .panel-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  color: var(--primary);
}
body.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}
body.light-theme .filter-btn:hover,
body.light-theme .notice-box {
  background: rgba(246, 184, 0, 0.1);
}
body.light-theme .notice-box {
  border-color: rgba(246, 184, 0, 0.28);
  color: #5a4400;
}
.filter-btn:hover,
body.light-theme .btn-secondary:hover,
body.light-theme .filter-btn:hover,
body.light-theme .project-label {
  color: var(--primary);
  color: var(--primary);
}
body.light-theme .notice-box strong {
  color: #b87b00;
}
body.light-theme .filter-tabs {
  background: rgba(7, 17, 31, 0.04);
  border-color: var(--border);
}
body.light-theme .project-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.85)
  );
  border-color: rgba(7, 17, 31, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
body.light-theme .project-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(246, 184, 0, 0.4);
}
body.light-theme .project-top {
  background:
    linear-gradient(rgba(245, 247, 251, 0.4), rgba(7, 17, 31, 0.7)),
    url("../img/backgriund.webp") center/cover no-repeat;
}
body.light-theme .project-label {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
}
body.light-theme .project-code {
  color: rgba(255, 255, 255, 0.95);
}
body.light-theme .meta-item {
  border-bottom-color: rgba(7, 17, 31, 0.08);
}
body.light-theme .cta-banner {
  background:
    linear-gradient(135deg, rgba(246, 184, 0, 0.12), rgba(255, 122, 26, 0.08)),
    rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}
body.light-theme .cta-banner::before {
  background:
    linear-gradient(rgba(245, 247, 251, 0.82), rgba(245, 247, 251, 0.94)),
    url("../img/project.webp") center/cover no-repeat;
  opacity: 0.5;
}
body.light-theme .site-footer {
  background: rgba(255, 255, 255, 0.7);
  border-top-color: var(--border);
}
body.light-theme .scroll-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(246, 184, 0, 0.25);
}
body.light-theme .eyebrow {
  background: rgba(246, 184, 0, 0.12);
  border-color: rgba(246, 184, 0, 0.3);
  color: #a07800;
}
body.light-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  color: var(--text);
}
body.light-theme .btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(246, 184, 0, 0.08);
}
body.light-theme .gradient-text {
  background: linear-gradient(135deg, #a07800, #c44d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light-theme .menu-btn {
  background: rgba(7, 17, 31, 0.05);
  border-color: var(--border);
}
body.light-theme .menu-btn span {
  background: #07111f;
}
@media (max-width: 860px) {
  body.light-theme .menu-btn {
    background: rgba(7, 17, 31, 0.05);
    border-color: var(--border);
    box-shadow: none;
  }
  body.light-theme .menu-btn span {
    background: #07111f;
  }
  body.light-theme .main-nav {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(245, 247, 251, 0.97)
    );
    border-color: var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  }
  body.light-theme .main-nav a {
    color: #2d3847;
  }
  body.light-theme .main-nav a:hover {
    color: var(--primary);
    background: rgba(246, 184, 0, 0.08);
  }
  body.light-theme .main-nav a.active {
    color: var(--primary);
  }
}
body.light-theme .section-kicker {
  color: #a07800;
}
.project-info p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 38px;
}
.section-head > div:first-child {
  max-width: 780px;
}
.section-desc {
  margin-inline: auto;
}
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.18);
}
.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  background: 0 0;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.4;
  transition:
    color 220ms,
    background 220ms,
    transform 220ms,
    box-shadow 220ms;
}
.filter-btn:hover {
  background: rgba(246, 184, 0, 0.09);
}
.filter-btn.active {
  color: #07111f;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(246, 184, 0, 0.22);
}
.filter-btn.active:hover {
  color: #07111f;
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .section-head {
    align-items: stretch;
    text-align: right;
  }
  .section-desc {
    margin-inline: 0;
  }
  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 8px;
    border-radius: 18px;
    gap: 8px;
  }
  .filter-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .filter-tabs {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    min-height: 44px;
  }
}
