:root {
  --bg-0: #020712;
  --bg-1: #061326;
  --line: rgba(124, 174, 255, 0.18);
  --text: #f2f7ff;
  --muted: #b2c1da;
  --accent: #31e9db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 65% 0%, rgba(23, 115, 255, 0.17), transparent 56%),
    radial-gradient(900px 600px at 20% 100%, rgba(0, 240, 220, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(4, 14, 32, 0.93), rgba(2, 10, 23, 0.78));
}

.header-wrap {
  width: min(1560px, 90%);
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(49, 233, 219, 0.45);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, #20f4e2, #29baff);
  box-shadow: 0 0 18px rgba(49, 233, 219, 0.45);
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(91, 137, 221, 0.5);
  background: linear-gradient(180deg, rgba(16, 31, 59, 0.8), rgba(9, 21, 44, 0.66));
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cv-btn:hover {
  border-color: rgba(49, 233, 219, 0.65);
  box-shadow: 0 0 20px rgba(49, 233, 219, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .header-wrap {
    width: 90%;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 820px) {
  .header-wrap {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
    gap: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .main-nav a.active::after {
    bottom: -4px;
  }
}

main {
  width: min(1560px, 90%);
  margin: 0 auto;
}

.hero {
  padding: 58px 0 56px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: end;
}

.hero-badge {
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(50, 236, 224, 0.25);
  background: rgba(50, 236, 224, 0.08);
  color: #59f7ea;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-weight: 800;
}

.hero-copy h1 span {
  color: #4ceee1;
}

.hero-copy h1 strong {
  color: #7f98ff;
  font-weight: 800;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 620px;
  color: #aebad2;
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #022226;
  background: linear-gradient(90deg, #35eedd, #5fd5ff);
  box-shadow: 0 8px 30px rgba(53, 238, 221, 0.2);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(139, 172, 238, 0.4);
  background: rgba(10, 23, 49, 0.6);
}

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

.hero-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(130, 173, 255, 0.28);
  text-decoration: none;
  color: #deebff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(11, 24, 47, 0.72);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: 24px;
  border: 1px solid rgba(101, 146, 233, 0.18);
  background:
    radial-gradient(450px 360px at 55% 25%, rgba(56, 123, 240, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(8, 23, 49, 0.82), rgba(4, 13, 29, 0.9));
  overflow: hidden;
}

.hero-visual img {
  position: absolute;
  right: 12rem;
  bottom: 0;
  width: min(95%, 620px);
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.45));
}

.hero-cards {
  position: absolute;
  top: 70px;
  right: 14px;
  width: 240px;
  display: grid;
  gap: 14px;
}

.hero-cards article {
  border-radius: 14px;
  border: 1px solid rgba(132, 172, 255, 0.2);
  padding: 16px 15px;
  background: rgba(8, 18, 38, 0.82);
  display: grid;
  gap: 8px;
}

.hero-cards h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.card-head h3 {
  margin: 0;
  line-height: 1.1;
}

.card-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  overflow: hidden;
}

.card-logo i,
.card-logo svg {
  width: 20px;
  height: 20px;
}

.code-logo {
  border: 1px solid rgba(81, 169, 255, 0.45);
  background: rgba(26, 63, 121, 0.45);
  color: #54b2ff;
}

.code-logo svg {
  fill: none;
  stroke: #54b2ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wp-logo {
  border: 1px solid rgba(210, 228, 255, 0.48);
  background: rgba(43, 67, 107, 0.42);
  color: #eef5ff;
}

.wp-logo i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sf-logo {
  border: 1px solid rgba(76, 183, 255, 0.5);
  background: rgba(33, 123, 212, 0.32);
  color: #57c6ff;
}

.sf-logo i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}


.hero-cards p {
  margin: 0;
  color: #a8b8d5;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  main {
    width: 90%;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 36px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 510px;
  }

  .hero-cards {
    position: static;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
  }

  .hero-visual img {
    right: 0;
    width: 100%;
  }
}

.about {
  padding: 0 0 44px;
}

.about-shell {
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.72), rgba(4, 14, 30, 0.65));
  padding: 28px 30px;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(130, 169, 238, 0.18);
}

.section-kicker {
  margin: 0 0 10px;
  color: #44f0df;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.about-left h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.7rem, 2.9vw, 2.8rem);
  line-height: 1.15;
}

.about-right p {
  margin: 0;
  color: #a9bbd9;
  line-height: 1.8;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 24, 48, 0.6);
  border: 1px solid rgba(119, 161, 235, 0.2);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52e7de;
  border: 1px solid rgba(82, 231, 222, 0.3);
  background: rgba(23, 77, 109, 0.24);
}

.stat-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.stat-card p {
  margin: 6px 0 0;
  color: #a9bbd9;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .about-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .about-shell {
    padding: 20px 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card h3 {
    font-size: 1.7rem;
  }
}

.skills {
  padding: 0 0 44px;
}

.skills-shell {
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.72), rgba(4, 14, 30, 0.65));
  padding: 26px 26px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.skill-col {
  padding: 10px 14px 6px;
}

.skill-col + .skill-col {
  border-left: 1px solid rgba(127, 166, 233, 0.18);
}

.skill-col h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
}

.skill-col h3 i {
  color: #51e7de;
  font-size: 0.95rem;
}

.skill-col ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.skill-col li {
  margin-bottom: 8px;
  color: #a9bbd9;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .skill-col + .skill-col {
    border-left: 0;
  }

  .skill-col {
    border: 1px solid rgba(119, 161, 235, 0.2);
    border-radius: 12px;
    background: rgba(8, 22, 45, 0.5);
  }
}

@media (max-width: 820px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .skills-shell {
    padding: 20px 16px 14px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.projects {
  padding: 0 0 44px;
}

.projects-page-hero {
  padding: 52px 0 24px;
}

.projects-page-hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.1;
}

.projects-page-hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: #a9bbd9;
  line-height: 1.7;
  font-size: 1.02rem;
}

.all-projects-grid {
  padding-bottom: 38px;
}

.projects-showcase {
  position: relative;
  margin: 40px 0 52px;
  padding: 34px 0 10px;
}

.projects-showcase::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(420px 180px at 60% 50%, rgba(54, 180, 255, 0.16), transparent 70%),
    radial-gradient(360px 140px at 78% 30%, rgba(76, 238, 225, 0.12), transparent 70%);
}

.projects-showcase h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.08;
}

.projects-showcase p {
  margin: 18px 0 0;
  max-width: 740px;
  color: #a9bbd9;
  line-height: 1.6;
  font-size: 1.04rem;
}

.project-filters {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(116, 157, 231, 0.36);
  color: #c2d6f8;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(8, 22, 45, 0.66);
}

.filter-pill.active {
  color: #042231;
  border-color: transparent;
  background: linear-gradient(90deg, #4ee8d9, #65cfff);
}

.project-listing {
  position: relative;
  margin-top: 18px;
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.74), rgba(4, 14, 30, 0.66));
  overflow: hidden;
}


.project-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 480px;
  gap: 20px;
  align-items: center;
  padding: 20px 18px;
  border-top: 1px solid rgba(112, 156, 236, 0.16);
}

.project-row:first-child {
  border-top: 0;
}

.project-row-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-left: 14px;
  border-radius: 50%;
  border: 1px solid rgba(88, 232, 223, 0.38);
  background: radial-gradient(circle at 50% 20%, rgba(40, 193, 224, 0.28), rgba(9, 29, 58, 0.92));
  color: #4ceee1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.project-row-content h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.6rem);
  line-height: 1.2;
}

.project-row-content p {
  margin: 0;
  max-width: 580px;
  color: #a9bbd9;
  line-height: 1.6;
}

.project-row-image {
  display: block;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(119, 161, 235, 0.2);
  background: rgba(7, 20, 43, 0.8);
}

.project-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-row-image.contain img {
  object-fit: contain;
  background: rgba(4, 14, 30, 0.82);
}

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

.projects-shell {
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.72), rgba(4, 14, 30, 0.65));
  padding: 24px 24px 20px;
}

.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.projects-link {
  color: #4ceee1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.projects-link:hover {
  text-decoration: underline;
}

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

.project-card {
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 21, 42, 0.58);
}

.project-image {
  height: 360px;
  overflow: hidden;
}

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

.project-image.contain img {
  object-fit: contain;
  background: rgba(4, 14, 30, 0.8);
}

.project-body {
  padding: 14px 14px 16px;
}

.project-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(58, 242, 228, 0.12);
  border: 1px solid rgba(58, 242, 228, 0.28);
  color: #4ceee1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.detail-text .project-tag {
  align-self: flex-start;
}

.project-body h3 {
  margin: 10px 0 8px;
  font-size: 1.34rem;
  line-height: 1.2;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  text-decoration: underline;
}

.project-body p {
  margin: 0;
  color: #a9bbd9;
  line-height: 1.6;
  min-height: 78px;
}

.project-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #4ceee1;
  text-decoration: none;
  font-weight: 600;
}

.project-detail-link:hover {
  text-decoration: underline;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #4ceee1;
  text-decoration: none;
  font-weight: 600;
}

.project-cta:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-row {
    grid-template-columns: 74px minmax(0, 1fr) 360px;
  }

  .project-row-image {
    height: 190px;
  }
}

@media (max-width: 760px) {
  .projects-shell {
    padding: 20px 16px 14px;
  }

  .projects-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid-3 {
    grid-template-columns: 1fr;
  }

  .project-body p {
    min-height: 0;
  }

  .projects-showcase {
    margin-top: 24px;
    padding-top: 24px;
  }

  .projects-showcase::after {
    display: none;
  }

  .project-row {
    grid-template-columns: 52px 1fr;
    padding: 18px 14px;
  }

  .project-row-icon {
    width: 42px;
    height: 42px;
    margin-left: 0;
    font-size: 0.92rem;
  }

  .project-row-content h3 {
    font-size: 1.55rem;
  }

  .project-row-image {
    grid-column: 1 / -1;
    height: 190px;
    margin-left: 52px;
  }
}

.experience {
  padding: 0 0 44px;
}

.experience-shell {
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.72), rgba(4, 14, 30, 0.65));
  padding: 24px 24px 20px;
}

.experience-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exp-card {
  position: relative;
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 14px;
  background: rgba(8, 21, 42, 0.58);
  padding: 18px 18px 18px 34px;
}

.exp-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 20px;
  width: 1px;
  background: rgba(138, 180, 248, 0.35);
}

.exp-dot {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52e7de;
  box-shadow: 0 0 0 4px rgba(82, 231, 222, 0.14);
}

.exp-body h3 {
  margin: 0;
  font-size: 1.22rem;
}

.exp-company {
  margin: 8px 0 4px;
  color: #b8c7e1;
  font-size: 0.95rem;
}

.exp-date {
  margin: 0;
  color: #8da6cd;
  font-size: 0.9rem;
}

.exp-body ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.exp-body li {
  margin-bottom: 8px;
  color: #a9bbd9;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .experience-shell {
    padding: 20px 16px 14px;
  }
}

.cta-section {
  padding: 0 0 54px;
}

.cta-shell {
  border: 1px solid rgba(112, 156, 236, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(720px 260px at 50% 0%, rgba(58, 124, 244, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(7, 20, 43, 0.84), rgba(4, 14, 30, 0.76));
  padding: 42px 22px;
  text-align: center;
}

.cta-shell h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  color: #4ceee1;
}

.cta-shell p {
  margin: 14px auto 24px;
  max-width: 700px;
  color: #b2c2dd;
  font-size: 1.06rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid rgba(112, 156, 236, 0.2);
  background: rgba(2, 11, 25, 0.75);
}

.project-detail {
  padding: 86px 0 74px;
}

.project-detail-shell {
  border: 1px solid rgba(112, 156, 236, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 39, 0.72), rgba(4, 14, 30, 0.65));
  padding: 42px 34px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4ceee1;
  text-decoration: none;
  font-weight: 600;
}

.project-back:hover {
  text-decoration: underline;
}

.project-detail-head {
  margin-top: 16px;
}

.project-detail-head h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.project-detail-head p {
  margin: 0;
  max-width: 760px;
  color: #a9bbd9;
  line-height: 1.7;
}

.project-detail-image {
  margin-top: 20px;
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 14px;
  overflow: hidden;
  height: 460px;
}

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

.project-detail-image.contain img {
  object-fit: contain;
  background: rgba(4, 14, 30, 0.8);
}

.project-detail-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-detail-alt {
  margin-top: 40px;
  display: grid;
  row-gap: 56px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 24px;
  align-items: stretch;
}

.detail-row.reverse .detail-text {
  order: 2;
}

.detail-row.reverse .detail-image {
  order: 1;
}

.detail-text {
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 14px;
  background: rgba(8, 21, 42, 0.58);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-text h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.1;
}

.detail-text p {
  margin: 0;
  color: #a9bbd9;
  line-height: 1.7;
}

.detail-image {
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 14px;
  overflow: hidden;
  height: 420px;
}

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

.detail-image.contain img {
  object-fit: contain;
  background: rgba(4, 14, 30, 0.8);
}

.project-info-card {
  border: 1px solid rgba(119, 161, 235, 0.2);
  border-radius: 12px;
  background: rgba(8, 21, 42, 0.58);
  padding: 24px;
}

.project-info-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.project-info-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.project-info-card li {
  margin-bottom: 8px;
  color: #a9bbd9;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .project-detail-alt {
    row-gap: 40px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .detail-row.reverse .detail-text,
  .detail-row.reverse .detail-image {
    order: initial;
  }

  .detail-image {
    height: 320px;
  }
}

.footer-shell {
  width: min(1560px, 90%);
  margin: 0 auto;
  padding: 20px 0 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 22px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: #9db2d6;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  color: #8ea4cc;
  font-size: 0.88rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a,
.to-top {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(130, 173, 255, 0.3);
  background: rgba(9, 22, 44, 0.68);
  color: #e4efff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-social a:hover,
.to-top:hover {
  color: #57ede1;
  border-color: rgba(87, 237, 225, 0.55);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .footer-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 20px 0;
  }

  .footer-copy {
    order: 3;
  }

  .footer-actions {
    order: 2;
  }
}
