@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* =========================================================
   CSS Variables
   ========================================================= */

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;

  --background-color: #ffffff;
  --default-color: #666666;
  --heading-color: #000000;
  --accent-color: #313131;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #999999;
  --nav-hover-color: #000000;
  --nav-mobile-background-color: #ffffff;
  --header-background-color: rgba(255, 255, 255, 0.72);
  --soft-border-color: color-mix(in srgb, var(--default-color), transparent 88%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --background-color: #0f1012;
  --default-color: #c4c7cc;
  --heading-color: #f4f5f7;
  --accent-color: #e5e7eb;
  --surface-color: #181a1f;
  --contrast-color: #0f1012;

  --nav-color: #b2b6bd;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #15171b;
  --header-background-color: rgba(15, 16, 18, 0.78);
  --soft-border-color: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Reset & Base
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =========================================================
   Color Presets
   ========================================================= */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
  background-color: #f9f9f9;
}

[data-theme="dark"] .light-background {
  --background-color: #111317;
  --surface-color: #181a1f;
  background-color: #111317;
}

.dark-background {
  --background-color: #060606;
  --default-color: #e3e3e3;
  --heading-color: #ffffff;
  --accent-color: #bdb5b5;
  --surface-color: #252525;
  --contrast-color: #ffffff;
  background-color: #060606;
  color: #e3e3e3;
}

.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4,
.dark-background h5,
.dark-background h6 {
  color: #ffffff;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   Section Title
   ========================================================= */

.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title .subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title .subtitle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent-color);
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2.5rem;
  }
}

.section-title p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  text-wrap: balance;
}

/* =========================================================
   Scroll Animations
   ========================================================= */

[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-in-out;
}

[data-aos="fade-up"] {
  transform: translateY(40px);
}

[data-aos="fade-down"] {
  transform: translateY(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Preloader
   ========================================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  border-top-color: var(--accent-color);
  animation: spin 0.9s linear infinite;
}

.preloader-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Scroll Top
   ========================================================= */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background 0.3s,
    transform 0.3s;
  cursor: pointer;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-2px);
}

/* =========================================================
   Header & Navigation
   ========================================================= */

.header {
  background-color: transparent;
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-background-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.header.scrolled {
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.header.scrolled::before {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sitename {
  font-size: 30px;
  font-weight: 400;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  gap: 0;
}

.logo-name span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 0.5px;
}

.logo-name span:last-child {
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--heading-color), transparent 35%);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navmenu nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navmenu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navmenu nav a {
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--nav-color);
  position: relative;
  padding: 16px 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

.navmenu nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
}

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

.navmenu nav a:hover::after,
.navmenu nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.language-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--soft-border-color);
  border-radius: 50%;
  color: var(--heading-color);
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.language-toggle {
  width: auto;
  min-width: 52px;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 600;
}

.theme-toggle:hover,
.language-toggle:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-1px);
}

/* Mobile */

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nav-color);
  padding: 4px;
  z-index: 999;
}

@media (max-width: 1199px) {
  .navmenu {
    gap: 14px;
  }

  .navmenu nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 82vw;
    background: var(--nav-mobile-background-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 998;
    overflow-y: auto;
  }

  .navmenu.mobile-open nav ul {
    transform: translateX(0);
  }

  .navmenu nav ul li {
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .navmenu nav a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
  }

  .navmenu nav a::after {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 996;
  }

  .mobile-overlay.visible {
    display: block;
  }
}

/* =========================================================
   Hero Section
   ========================================================= */

.hero-section {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 3rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition:
    background 0.3s,
    transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border: 1.5px solid var(--heading-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--heading-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =========================================================
   About Section
   ========================================================= */

.about-section {
  padding: 80px 0;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* =========================================================
   Portfolio Section
   ========================================================= */

.portfolio-section {
  padding: 80px 0;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .portfolio-filters {
    margin-bottom: 60px;
    gap: 8px;
  }
}

.portfolio-filters button {
  padding: 20px 0;
  margin: 0 40px;
  font-size: 0.95rem;
  font-weight: 300;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid transparent;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  background: transparent;
  transition: all 0.4s ease;
  position: relative;
  user-select: none;
}

@media (max-width: 768px) {
  .portfolio-filters button {
    margin: 0 20px;
    padding: 16px 0;
  }
}

.portfolio-filters button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.portfolio-filters button:hover {
  color: var(--default-color);
}

.portfolio-filters button:hover::after {
  width: 100%;
}

.portfolio-filters button.active {
  color: var(--default-color);
  font-weight: 400;
  background: transparent;
}

.portfolio-filters button.active::after {
  width: 100%;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card {
  height: 100%;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  border-radius: 18px;
  overflow: hidden;
  transition:
    opacity 0.4s,
    transform 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
}

.portfolio-card:hover {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-row {
  display: flex;
  min-height: 320px;
}

.project-visual {
  flex: 0 0 31%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-card:hover .project-visual img {
  transform: scale(1.04);
}

.project-details {
  padding: 30px 32px 26px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.project-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  background: transparent;
  padding: 0;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--heading-color);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .project-title {
    font-size: 1.35rem;
  }
}

.project-desc {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* =========================================================
   Contact Section
   ========================================================= */

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.contact-info-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.info-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color);
  flex-shrink: 0;
}

.contact-info-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-header p {
  font-size: 0.9rem;
  color: var(--default-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid #eee;
  transition: box-shadow 0.3s;
}

.detail-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.detail-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.detail-label {
  display: block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--nav-font);
  color: var(--default-color);
  margin-bottom: 2px;
}

.detail-value {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.9rem;
}

.form-wrapper {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.form-wrapper h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading-color);
  font-family: var(--nav-font);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-family: var(--default-font);
  font-size: 0.9rem;
  color: var(--heading-color);
  background: var(--background-color);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #eee;
  background: var(--surface-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.form-feedback svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-feedback strong {
  display: block;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.form-feedback span {
  display: block;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  line-height: 1.5;
}

.form-feedback.error {
  border-color: color-mix(in srgb, #dc2626, transparent 72%);
  box-shadow: inset 3px 0 0 #dc2626, 0 4px 18px rgba(220, 38, 38, 0.08);
}

.form-feedback.error svg {
  color: #dc2626;
}

.form-feedback.success {
  border-color: color-mix(in srgb, #16a34a, transparent 72%);
  box-shadow: inset 3px 0 0 #16a34a, 0 4px 18px rgba(22, 163, 74, 0.08);
}

.form-feedback.success svg {
  color: #16a34a;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-spinner {
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-wrapper {
    padding: 28px 20px;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand .sitename {
  color: var(--heading-color);
  font-size: 0.9em;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--default-color);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.footer-social a {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent-color);
  color: #060606;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-top: 14px;
}

/* =========================================================
   Responsive misc
   ========================================================= */

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 1.7rem;
  }
}

/* =========================================================
   Hero ??Personal
   ========================================================= */

.hero-greeting {
  display: block;
  font-family: var(--nav-font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.hero-tag {
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  border: 1.5px solid color-mix(in srgb, var(--heading-color), transparent 80%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  transition: all 0.3s;
}

.social-icon-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

/* Hero visual cluster */

.hero-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-cluster {
  position: relative;
  width: 360px;
  height: 360px;
}

.avatar-ring-outer,
.avatar-ring-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.avatar-ring-outer {
  width: 320px;
  height: 320px;
  border: 1.5px dashed color-mix(in srgb, var(--accent-color), transparent 75%);
  animation: spin-slow 20s linear infinite;
}

.avatar-ring-inner {
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

@keyframes spin-slow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.avatar-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.avatar-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.avatar-main span {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 4px;
}

.cluster-card {
  position: absolute;
  background: var(--surface-color);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: cluster-float 2.8s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes cluster-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.card-aws {
  top: 20px;
  right: -10px;
  animation-delay: 0s;
}

.card-certs {
  bottom: 30px;
  left: -10px;
  animation-delay: 1.5s;
}

.cluster-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color);
  flex-shrink: 0;
}

.cluster-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}

.cluster-card-sub {
  font-size: 0.72rem;
  color: var(--default-color);
  margin-top: 2px;
}

@media (max-width: 991px) {
  .hero-avatar-cluster {
    width: 280px;
    height: 280px;
  }
  .avatar-ring-outer {
    width: 250px;
    height: 250px;
  }
  .avatar-ring-inner {
    width: 200px;
    height: 200px;
  }
  .avatar-main {
    width: 170px;
    height: 170px;
  }
  .avatar-main span {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-visual-wrap {
    margin-top: 40px;
  }
}

/* =========================================================
   About ??Redesign
   ========================================================= */

/* ?? Top block ?? */

.about-top {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 64px;
  align-items: start;
  padding-bottom: 52px;
}

.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 42%);
  font-family: var(--nav-font);
  margin-bottom: 20px;
}

.about-headline {
  display: flex;
  flex-direction: column;
  font-size: 2.5rem;
  line-height: 1.22;
  margin-bottom: 24px;
  font-family: var(--heading-font);
}

.about-headline-dark {
  font-weight: 300;
  color: var(--heading-color);
}

.about-headline-light {
  font-weight: 700;
  color: var(--heading-color);
}

.about-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  max-width: 540px;
  margin: 0;
}

/* Stats column */

.about-stats {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.about-stat {
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  text-align: right;
}

.about-stat:first-child {
  padding-top: 0;
}

.about-stat:last-child {
  border-bottom: none;
}

.about-stat-value {
  display: block;
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-label {
  display: block;
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-family: var(--nav-font);
}

/* Full-width divider */

.about-divider {
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 88%);
  margin-bottom: 52px;
}

/* ?? Bottom block ?? */

.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Column label */

.about-col-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-family: var(--nav-font);
  margin: 0 0 20px;
}

/* ?? Skills ?? */

.skill-groups {
  display: flex;
  flex-direction: column;
}

.skill-group {
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 91%);
}

.skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.skill-group-num {
  font-family: var(--heading-font);
  font-size: 0.68rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--default-color), transparent 55%);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.skill-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--nav-font);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 84%);
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
  font-family: var(--nav-font);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* ?? Certifications ?? */

.about-certs {
  margin-bottom: 40px;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--default-color);
  flex-shrink: 0;
}

.cert-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading-color);
}

.cert-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--nav-font);
  flex-shrink: 0;
}

.cert-check {
  color: #16a34a;
  flex-shrink: 0;
}

/* ?? Focus Areas ?? */

.focus-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  margin-bottom: 8px;
}

.focus-item:last-child {
  margin-bottom: 0;
}

.focus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  flex-shrink: 0;
}

.focus-label {
  font-size: 0.88rem;
  color: var(--heading-color);
  line-height: 1.4;
}

/* ?? Responsive ?? */

@media (max-width: 900px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .about-stats {
    flex-direction: row;
  }

  .about-stat {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    border-bottom: none;
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  }

  .about-stat:last-child {
    border-right: none;
  }

  .about-bottom {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-headline {
    font-size: 2rem;
  }
}

/* =========================================================
   Experiences Section
   ========================================================= */

.experiences-section {
  padding: 80px 0;
}

.experiences-section .section-title {
  margin-bottom: 48px;
}

.experiences-section .section-title p {
  max-width: 760px;
}

/* ?? Timeline container ?? */

.exp-timeline {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ?? Section block (Education / Technical Roles / Competitions) ?? */

.exp-block {
  padding: 48px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.exp-block:first-child {
  padding-top: 0;
}

.exp-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-block-heading {
  margin-bottom: 28px;
}

.exp-block-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 6px;
}

.exp-block-subtitle {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
  line-height: 1.5;
}

/* ?? Timeline rows ?? */

.exp-rows {
  position: relative;
}

/* Vertical line: left-col (200px) + half of center-col (44px / 2 = 22px) = 222px */

.exp-rows::before {
  content: '';
  position: absolute;
  left: 222px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 84%);
  pointer-events: none;
}

.exp-row {
  display: grid;
  grid-template-columns: 200px 44px 1fr;
  padding: 24px 0;
  align-items: start;
}

/* ?? Left metadata ?? */

.exp-row-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-right: 4px;
  padding-top: 8px;
}

/* ?? Center dot ?? */

.exp-row-center {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.exp-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 52%);
  display: block;
  flex-shrink: 0;
}

/* ?? Right content ?? */

.exp-row-right {
  padding-left: 12px;
}

/* ?? Education meta ?? */

.exp-edu-date {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--default-color);
  font-family: var(--nav-font);
  line-height: 1.4;
}

.exp-edu-location {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 42%);
  font-family: var(--nav-font);
}

.exp-edu-minor {
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ?? Tags ?? */

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.exp-tag {
  font-size: 0.71rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 76%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-family: var(--nav-font);
  line-height: 1.5;
}

/* ?? Year label (competitions) ?? */

.exp-year {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--default-color);
  font-family: var(--nav-font);
}

/* ?? Org header (icon + name) ?? */

.exp-org-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-org-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  flex-shrink: 0;
}

.exp-org-name {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* ?? Role / degree title ?? */

.exp-role-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 8px;
  line-height: 1.4;
}

/* ?? Competition header (name + award badge) ?? */

.exp-comp-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 10px;
}

.exp-comp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.4;
  flex: 1 1 auto;
}

/* ?? Award badge ?? */

@keyframes badge-shimmer {
  0%   { left: -80%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.exp-award {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--nav-font);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  /* default: gold */
  border: 1px solid #c9a84c;
  color: #7a5c10;
  background: linear-gradient(135deg, #faeec4 0%, #f0d07a 45%, #fdf5d8 70%, #e8bc50 100%);
}

.exp-award--silver {
  border: 1px solid #a0b0c4;
  color: #3d5068;
  background: linear-gradient(135deg, #edf2f7 0%, #c8d8e8 45%, #f5f8fc 70%, #b0c8dc 100%);
}

.exp-award--bronze {
  border: 1px solid #c4a090;
  color: #6b3d28;
  background: linear-gradient(135deg, #f8ede8 0%, #ddb0a0 45%, #fdf5f2 70%, #c89888 100%);
}

.exp-award::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: badge-shimmer 3s ease-in-out infinite;
}

/* ?? Bullet list ?? */

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.exp-bullets li {
  font-size: 0.86rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  padding-left: 18px;
  position: relative;
}

.exp-bullets li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* ?? Responsive ?? */

@media (max-width: 700px) {
  .experiences-section {
    padding: 60px 0;
  }

  .exp-rows::before {
    display: block;
    left: 9px;
    top: 6px;
    bottom: 6px;
    background: color-mix(in srgb, var(--default-color), transparent 88%);
  }

  .exp-row {
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas:
      "marker meta"
      "marker content";
    column-gap: 20px;
    padding: 6px 0 30px;
    border-bottom: none;
  }

  .exp-row:last-child {
    padding-bottom: 8px;
  }

  .exp-row-center {
    display: flex;
    grid-area: marker;
    justify-content: center;
    padding-top: 4px;
  }

  .exp-row-dot {
    width: 10px;
    height: 10px;
    border: 2px solid color-mix(in srgb, var(--default-color), transparent 78%);
    background: var(--surface-color);
  }

  .exp-row-left {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0 10px;
    gap: 8px;
  }

  .exp-tags {
    justify-content: flex-start;
  }

  .exp-row-right {
    grid-area: content;
    padding-left: 0;
  }

  .exp-block-title {
    font-size: 1.35rem;
  }

  .exp-comp-header {
    align-items: stretch;
    flex-direction: column;
  }

  .exp-comp-name {
    font-size: 0.88rem;
  }

  .exp-award {
    align-self: flex-start;
  }

  .exp-bullets li {
    font-size: 0.84rem;
  }
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 28px;
  padding-top: 0;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 72%);
  color: var(--heading-color);
  font-family: var(--nav-font);
}

.project-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 24px;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 78%);
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.project-action:first-child {
  padding-left: 0;
}

.project-action:last-child {
  border-right: none;
}

.project-action:hover,
.project-action-primary {
  color: var(--heading-color);
}

.project-action-primary {
  font-weight: 600;
}

.project-detail-page {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  border-radius: 18px;
  background: var(--surface-color);
  overflow: hidden;
}

.project-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 28px 0;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 78%);
  border-radius: 999px;
  color: color-mix(in srgb, var(--default-color), transparent 26%);
  background: color-mix(in srgb, var(--surface-color), var(--default-color) 3%);
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.project-detail-back:hover {
  border-color: color-mix(in srgb, var(--default-color), transparent 58%);
  background: var(--surface-color);
  color: var(--heading-color);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 38px;
  align-items: start;
  padding: 30px 32px 34px;
}

.project-detail-copy h3 {
  font-size: 1.95rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--heading-color);
  margin: 10px 0 16px;
}

.project-detail-copy p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  margin: 0;
}

.project-detail-tech {
  margin: 24px 0 0;
}

.project-detail-image {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 86%);
  background: color-mix(in srgb, var(--default-color), transparent 96%);
}

.project-detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  object-fit: cover;
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-detail-meta div {
  padding: 18px 28px;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-detail-meta div:last-child {
  border-right: none;
}

.project-detail-meta span,
.project-detail-label {
  display: block;
  font-family: var(--nav-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 34%);
  margin-bottom: 14px;
}

.project-detail-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  line-height: 1.45;
}

.project-detail-intro {
  padding: 34px 32px 36px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-detail-intro p {
  max-width: 1080px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.project-detail-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-detail-actions-list,
.project-detail-problems {
  padding: 34px 32px 36px;
}

.project-detail-actions-list {
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-detail-actions-list ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-detail-actions-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.project-detail-actions-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 42%);
}

.problem-solving-list {
  display: flex;
  flex-direction: column;
}

.problem-solving-item {
  padding: 22px 0 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 86%);
}

.problem-solving-item:first-child {
  padding-top: 0;
}

.problem-solving-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.problem-solving-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--heading-color), transparent 8%);
  margin-bottom: 5px;
}

.problem-solving-item p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.problem-solving-item blockquote {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 74%);
  font-size: 0.92rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.project-detail-skills {
  padding: 28px 32px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail-actions {
  margin: 0;
  padding: 14px 32px 30px;
  border-top: none;
}

@media (max-width: 900px) {
  .card-row {
    flex-direction: column;
    min-height: 0;
  }

  .project-visual {
    flex: none;
    width: 100%;
    height: 260px;
    min-height: 260px;
  }


  .project-details {
    min-height: 0;
    padding: 26px 24px 24px;
  }

  .project-detail-hero,
  .project-detail-work {
    grid-template-columns: 1fr;
  }

  .project-detail-hero {
    gap: 26px;
    padding: 28px 24px;
  }

  .project-detail-copy h3 {
    font-size: 1.7rem;
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
  }

  .project-detail-meta div,
  .project-detail-actions-list {
    border-right: none;
  }

  .project-detail-meta div {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  }

  .project-detail-meta div:last-child {
    border-bottom: none;
  }

  .project-detail-intro,
  .project-detail-actions-list,
  .project-detail-problems,
  .project-detail-skills {
    padding-left: 24px;
    padding-right: 24px;
  }

  .project-detail-actions-list {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  }

  .project-detail-actions {
    padding: 12px 24px 26px;
  }
}

@media (max-width: 576px) {
  .portfolio-card {
    border-radius: 14px;
  }


  .portfolio-card .project-action-row,
  .project-detail-actions {
    flex-wrap: nowrap;
  }

  .portfolio-card .project-action,
  .project-detail-actions .project-action {
    flex: 0 1 auto;
    gap: 6px;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .portfolio-card .project-action:first-child,
  .project-detail-actions .project-action:first-child {
    padding-left: 0;
  }

  .portfolio-card .project-action:last-child,
  .project-detail-actions .project-action:last-child {
    padding-right: 0;
  }

  .portfolio-card .project-action svg,
  .project-detail-actions .project-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .project-detail-page {
    border-radius: 14px;
  }

  .project-detail-back {
    margin: 20px 22px 0;
  }

  .project-detail-image img {
    min-height: 240px;
  }

  .project-detail-meta div {
    padding: 16px 22px;
  }

  .project-detail-actions {
    padding: 12px 22px 26px;
  }

  .project-detail-actions .project-action {
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 78%);
  }

  .project-detail-actions .project-action:last-child {
    border-right: none;
  }
}

/* =========================================================
   Contact ??link in detail
   ========================================================= */

.detail-link {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.9rem;
  display: block;
  transition: color 0.2s;
}

.detail-link:hover {
  color: var(--accent-color);
}
