* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --tertiary: #2a2a2a;
  --accent: #d4af37;
  --accent-light: #e8d1a8;
  --text-primary: #f5f5f5;
  --text-secondary: #ccc;
  --text-tertiary: #999;
  --border: #3a3a3a;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #15151a 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(100, 200, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(21, 21, 26, 0.5) 0%, rgba(10, 10, 10, 0.88) 100%), url("images/hero-bg-abstract.png") center / cover no-repeat;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(212, 175, 55, 0.04) 120px, rgba(212, 175, 55, 0.04) 121px),
    repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(212, 175, 55, 0.03) 120px, rgba(212, 175, 55, 0.03) 121px);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 210px;
  height: 210px;
  border-radius: 34px;
  margin: 0 auto 24px;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 24px 70px rgba(212, 175, 55, 0.18);
  border: 2px solid var(--accent);
  animation: fadeInDown 1s ease;
}

.hero h1 {
  position: relative;
  z-index: 4;
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0;
  color: var(--text-primary);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  padding: 15px 45px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
  z-index: 10;
  color: var(--accent);
  margin-top: 40px;
  position: relative;
}

.hero-scroll span {
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-scroll i {
  font-size: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-theme {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: 100%;
  padding: 0 28px;
  transform: translate(-50%, -50%);
  color: rgba(245, 245, 245, 0.78);
  font-family: "Helvetica Neue", "Arial Nova", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(54px, 8.4vw, 126px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.055em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  mix-blend-mode: screen;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.hero-content {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .hero-theme {
    top: 46%;
    font-size: clamp(36px, 10vw, 64px);
    letter-spacing: 0.035em;
  }
}

@media (max-width: 480px) {
  .hero-theme {
    top: 45%;
    font-size: clamp(32px, 12vw, 50px);
    white-space: normal;
  }
}

@keyframes heroThemeIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 30px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
/* ABOUT SECTION */
.about {
  padding: 120px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #15151a 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.about .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 150px, rgba(212, 175, 55, 0.02) 150px, rgba(212, 175, 55, 0.02) 151px),
    repeating-linear-gradient(90deg, transparent, transparent 150px, rgba(212, 175, 55, 0.02) 150px, rgba(212, 175, 55, 0.02) 151px);
  z-index: 0;
  pointer-events: none;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -1px;
  color: var(--text-primary);
  position: relative;
  animation: slideInUp 0.8s ease;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
  animation: fadeInUp 1s ease;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-tertiary);
  margin: 0;
  font-size: 14px;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
  max-width: 50%;
  margin: 0 auto;
  border: 2px solid var(--accent);
  animation: fadeInRight 1s ease;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
}



/* ABOUT PROFILE INFO */
.profile-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.3);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.profile-info-item {
  min-width: 0;
}

.profile-info-education {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.profile-info-label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-info-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.profile-info a.profile-info-value {
  transition: color 0.25s ease;
}

.profile-info a.profile-info-value:hover {
  color: var(--accent-light);
}

@media (max-width: 768px) {
  .profile-info {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .profile-info-education {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .profile-info {
    grid-template-columns: 1fr;
  }
}
/* PORTFOLIO SECTION */
.portfolio {
  padding: 120px 0;
  background: linear-gradient(180deg, #15151a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.portfolio .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(212, 175, 55, 0.02) 100px, rgba(212, 175, 55, 0.02) 101px),
    repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(100, 200, 255, 0.015) 100px, rgba(100, 200, 255, 0.015) 101px);
  z-index: 0;
  pointer-events: none;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
  animation: slideInUp 0.8s ease;
}

.project.reverse {
  direction: rtl;
}

.project.reverse > * {
  direction: ltr;
}

.project-text {
  padding: 20px 0;
}

.project-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.project-text h3 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.project-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tags span {
  background: rgba(212, 175, 55, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.project-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.project-image:hover {
  transform: scale(1.02);
}

.project-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* SKILLS SECTION */
.skills {
  padding: 120px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #15151a 100%);
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: '';
  position: absolute;
  left: -5%;
  top: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.skills .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 140px, rgba(212, 175, 55, 0.03) 140px, rgba(212, 175, 55, 0.03) 141px),
    repeating-linear-gradient(0deg, transparent, transparent 140px, rgba(212, 175, 55, 0.025) 140px, rgba(212, 175, 55, 0.025) 141px);
  z-index: 0;
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}

.skill-card {
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  transform-origin: center;
  will-change: transform;
  z-index: 1;
  cursor: pointer;
  outline: none;
}

.skill-card::before {
  content: '';
  aspect-ratio: 1 / 1;
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1a20 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.skill-card::after {
  content: "\f245";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 209, 168, 0.28);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.58);
  color: rgba(245, 245, 245, 0.86);
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.skill-card:hover::after,
.skill-card.is-hovered::after,
.skill-card:focus-visible::after {
  transform: scale(1.08);
  border-color: rgba(232, 209, 168, 0.68);
  color: var(--accent-light);
}

.skill-card.is-selected::after {
  content: "\f00c";
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(232, 209, 168, 0.78);
  color: var(--accent-light);
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.12);
  z-index: 5;
}

.skill-card:hover::before {
  box-shadow: 0 28px 65px rgba(212, 175, 55, 0.22);
  border-color: var(--accent);
}

.skill-card img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
}

.skill-card h3 {
  font-size: 20px;
  font-weight: 700;
  padding: 16px 0 6px;
  margin-top: 0;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 0;
}

/* CONTACT SECTION */
.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, #15151a 0%, #0a0a0a 100%);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  right: -5%;
  top: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(100, 200, 255, 0.02) 120px, rgba(100, 200, 255, 0.02) 121px),
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(212, 175, 55, 0.015) 120px, rgba(212, 175, 55, 0.015) 121px);
  z-index: 0;
  pointer-events: none;
}

.contact .section-title {
  color: var(--text-primary);
  margin-bottom: 60px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item i {
  font-size: 24px;
  min-width: 30px;
  color: var(--accent);
}

.detail-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.detail-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-item a {
  color: var(--accent);
  transition: color 0.3s;
}

.detail-item a:hover {
  color: var(--accent-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-primary);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(212, 175, 55, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form .btn {
  margin-top: 10px;
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #1a1a1f 0%, #0a0a0a 100%);
  color: var(--text-primary);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  transition: all 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--accent);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.parallax {
  will-change: transform;
}


.project-image-link {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
}

.project-image-link .project-image {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-image-link::after {
  content: '查看案例';
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(232, 209, 168, 0.5);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.02);
}

.project-image-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.case-detail {
  padding-top: 80px;
  background: linear-gradient(180deg, #101014 0%, #0a0a0a 100%);
}

.case-hero {
  padding: 96px 0 36px;
  background: linear-gradient(135deg, #171717 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.34);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.case-back:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 209, 168, 0.62);
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-primary);
}

.case-back i {
  transition: transform 0.28s ease;
}

.case-back:hover i {
  transform: translateX(-3px);
}

.case-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.case-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: 52px;
  line-height: 1.12;
  font-weight: 800;
}

.case-subtitle {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 17px;
}

.case-content {
  padding: 34px 0 110px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: start;
}

.case-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.case-copy {
  padding-top: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
}

.case-copy p {
  margin-bottom: 18px;
}

.case-copy strong {
  color: var(--text-primary);
  font-size: 15px;
}

.case-copy-intro {
  max-width: 980px;
  margin: 0 0 42px;
  padding-top: 0;
  text-align: left;
  border-top: 1px solid rgba(212, 175, 55, 0.42);
  padding-top: 48px;
}

.case-visual-manual {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.visual-manual-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(10, 10, 10, 0.28);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.visual-manual-grid figure {
  aspect-ratio: 16 / 9;
}

.visual-manual-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.visual-manual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.visual-manual-grid figure {
  border-radius: 8px;
}

.visual-manual-grid .visual-manual-wide {
  grid-column: span 2;
}

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

  .visual-manual-grid .visual-manual-wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .case-copy-intro {
    margin-bottom: 28px;
  }

  .visual-manual-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

}

.case-kv-showcase {
  width: min(100%, 1180px);
  margin: 72px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.case-section-heading {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 28px;
}

.case-section-heading span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.case-section-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 800;
}

.kv-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kv-collage {
  column-count: 2;
  column-gap: 18px;
  margin-top: 18px;
}

.kv-media-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.3);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  transform-origin: center;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.kv-collage .kv-media-card {
  margin-bottom: 18px;
  break-inside: avoid;
}

.kv-media-card::after {
  content: "\f002";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 209, 168, 0.34);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.58);
  color: rgba(245, 245, 245, 0.88);
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.kv-media-card:hover {
  z-index: 4;
  transform: translateY(-8px) scale(1.035);
  border-color: rgba(232, 209, 168, 0.58);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.kv-media-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.kv-media-card img,
.kv-media-card video {
  width: 100%;
  display: block;
}

.kv-media-card img {
  height: auto;
}

.kv-media-video video {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.34);
}

.kv-video-cover video {
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
}

.kv-span-2 {
  width: 100%;
}

.kv-span-3 {
  width: 100%;
}

.kv-span-4 {
  width: 100%;
}

.case-work-section {
  width: min(100%, 1180px);
  margin: 72px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.case-two-column-gallery,
.case-private-gallery,
.case-detail-slices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-two-column-gallery .kv-media-card,
.case-private-gallery .kv-media-card,
.case-detail-slices .kv-media-card {
  margin-bottom: 0;
}

.case-two-column-gallery img,
.case-private-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.case-feature-full {
  grid-column: 1 / -1;
}

.case-home-action {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: min(100%, 1180px);
  margin: 72px auto 0;
  padding-top: 44px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.case-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.32);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.case-home-button:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 209, 168, 0.72);
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-primary);
}

.case-home-button i {
  transition: transform 0.28s ease;
}

.case-home-button:hover i {
  transform: translateX(-4px);
}

.case-top-button:hover i {
  transform: translateY(-4px);
}

.detail-slice {
  aspect-ratio: 1440 / 15933;
}

.detail-slice img {
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center top;
}

.detail-slice-bottom img {
  object-position: center bottom;
  transform: translateY(-50%);
}
@media (max-width: 900px) {
  .kv-feature-list {
    grid-template-columns: 1fr;
  }

  .kv-collage {
    column-count: 2;
  }

}

@media (max-width: 560px) {
  .case-kv-showcase {
    margin-top: 48px;
    padding-top: 34px;
  }

  .kv-collage {
    column-count: 1;
    column-gap: 12px;
  }

  .kv-feature-list {
    gap: 12px;
  }

  .kv-collage .kv-media-card {
    margin-bottom: 12px;
  }

  .case-work-section {
    margin-top: 48px;
    padding-top: 34px;
  }

  .case-home-action {
    margin-top: 48px;
    padding-top: 34px;
  }

  .case-two-column-gallery,
  .case-private-gallery,
  .case-detail-slices {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .project-image-link::after {
    opacity: 1;
    transform: none;
  }

  .case-hero {
    padding: 72px 0 32px;
  }

  .case-hero h1 {
    font-size: 34px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}


/* CURSOR GLOW */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  filter: blur(14px);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
  background:
    radial-gradient(circle at 28% 30%, rgba(174, 84, 255, 0.42) 0%, rgba(174, 84, 255, 0.22) 24%, transparent 52%),
    radial-gradient(circle at 72% 36%, rgba(70, 146, 255, 0.38) 0%, rgba(70, 146, 255, 0.2) 28%, transparent 56%),
    radial-gradient(circle at 48% 74%, rgba(45, 255, 180, 0.32) 0%, rgba(45, 255, 180, 0.16) 26%, transparent 58%);
}

.cursor-glow.is-visible {
  opacity: 0.78;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 36px;
  }

  
  .hero p {
    font-size: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project.reverse {
    direction: ltr;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .project-text h3 {
    font-size: 24px;
  }
  
  .project-image img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 160px;
    height: 160px;
  }

  .section-title {
    font-size: 24px;
  }

  .project-text h3 {
    font-size: 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}
/* HERO FINAL REFINEMENT */
.hero-theme {
  top: 56%;
  font-size: clamp(46px, 7.2vw, 112px);
  font-weight: 300;
  letter-spacing: 0.075em;
  word-spacing: 0.16em;
  color: rgba(245, 245, 245, 0.66);
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .avatar {
  width: 230px;
  height: 230px;
  margin: 0 auto 28px;
  object-position: center 18%;
}

.hero h1 {
  z-index: 5;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.hero p,
.hero .cta-buttons,
.hero-scroll {
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .hero-theme {
    top: 54%;
    font-size: clamp(34px, 9vw, 62px);
    letter-spacing: 0.045em;
  }

  .hero .avatar {
    width: 180px;
    height: 180px;
  }
}

/* SKILL CARD OVERRIDES */
.skills-grid .skill-card:hover {
  transform: translateY(-14px) scale(1.14);
}

.skills-grid .skill-card:hover::before {
  border-color: var(--accent);
  box-shadow: 0 30px 70px rgba(212, 175, 55, 0.26);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .skills-grid .skill-card:hover {
    transform: translateY(-14px) scale(1.14);
  }
}

@media (max-width: 480px) {
  .hero-theme {
    top: 54%;
    font-size: clamp(34px, 12.5vw, 56px);
    letter-spacing: 0.025em;
  }

  .hero .avatar {
    width: 150px;
    height: 150px;
  }
}
/* HERO TITLE ORDER */
.hero .hero-theme {
  position: relative;
  left: auto;
  top: auto;
  z-index: 5;
  width: auto;
  padding: 0;
  transform: none;
  color: rgba(245, 245, 245, 0.9);
  font-family: "Helvetica Neue", "Arial Nova", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(58px, 8.6vw, 132px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.032em;
  word-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  mix-blend-mode: normal;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  animation: fadeInUp 1s ease 0.2s both;
  margin: 0 0 16px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 26px;
  animation: fadeInUp 1s ease 0.2s both;
}

@media (max-width: 768px) {
  .hero .hero-theme {
    font-size: clamp(40px, 11.5vw, 78px);
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .hero .hero-theme {
    font-size: clamp(34px, 12.5vw, 56px);
    white-space: normal;
    margin-bottom: 12px;
  }
}
/* SECTION BACKGROUND VARIATION */
.about,
.portfolio,
.skills,
.contact,
.case-detail {
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, 0.82) 0%, rgba(13, 13, 16, 0.9) 50%, rgba(10, 10, 10, 0.94) 100%),
    url("images/section-bg-abstract.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.about {
  background-position: center top;
}

.portfolio {
  background-position: 58% center;
}

.skills {
  background-position: 38% center;
}

.contact,
.case-detail {
  background-position: center bottom;
}

.case-hero,
.case-content,
.footer {
  background-image:
    linear-gradient(180deg, rgba(18, 18, 20, 0.88) 0%, rgba(8, 8, 10, 0.96) 100%),
    url("images/section-bg-abstract.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 70%;
}
/* ABOUT PHOTO GALLERY */
.about-content .about-gallery {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: minmax(210px, 0.9fr) minmax(190px, 0.8fr);
  gap: 16px;
  width: min(100%, 560px);
  max-width: none;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  overflow: visible;
  background: rgba(10, 10, 10, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.about-content .about-gallery::before {
  display: none;
}

.about-photo {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 45%, rgba(70, 146, 255, 0.08));
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.9);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.about-photo:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06) brightness(0.96);
}

.about-photo-wide {
  grid-column: 1 / -1;
}

.about-photo-wide img {
  object-position: center 44%;
}

.about-photo-portrait img {
  object-position: center 18%;
}

.about-photo-life img {
  object-position: 58% 35%;
}

@media (max-width: 768px) {
  .about-content .about-gallery {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    grid-template-rows: 190px 180px;
    gap: 12px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .about-content .about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 180px 190px 190px;
  }

  .about-photo-wide {
    grid-column: auto;
  }
}
/* ABOUT STACKED CARDS REFINEMENT */
.about-content {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(46px, 6vw, 76px);
  align-items: center;
}

.about-text {
  max-width: 620px;
}


.about-content .about-gallery {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  position: relative;
  display: block;
  width: min(100%, 620px);
  min-height: 560px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.about-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.34);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  transform-origin: center;
  transition: transform 0.42s ease, filter 0.42s ease, box-shadow 0.42s ease, border-color 0.42s ease, opacity 0.42s ease;
  will-change: transform;
}

.about-gallery:hover .about-photo {
  opacity: 0.76;
  filter: saturate(0.86) brightness(0.86);
}

.about-gallery .about-photo:hover {
  z-index: 10;
  opacity: 1;
  filter: saturate(1.05) brightness(1.02);
  border-color: rgba(232, 209, 168, 0.72);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.48), 0 0 34px rgba(212, 175, 55, 0.18);
  transform: translateY(-12px) scale(1.045) rotate(0deg);
}

.about-photo-wide {
  top: 0;
  left: 6%;
  z-index: 2;
  width: 84%;
  height: 46%;
  transform: rotate(-1.6deg);
}

.about-photo-portrait {
  left: 0;
  bottom: 5%;
  z-index: 3;
  width: 43%;
  height: 48%;
  transform: rotate(2.4deg);
}

.about-photo-life {
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 60%;
  height: 54%;
  transform: rotate(-2.2deg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.about-photo:hover img {
  transform: scale(1.045);
}

.about-photo-wide img {
  object-position: center 44%;
}

.about-photo-portrait img {
  object-position: center 18%;
}

.about-photo-life img {
  object-position: 58% 36%;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-text,
  .about-content .about-gallery {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .about-content .about-gallery {
    grid-row: auto;
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .about-content .about-gallery {
    min-height: 620px;
  }

  .about-photo-wide {
    top: 0;
    left: 0;
    width: 100%;
    height: 34%;
  }

  .about-photo-portrait {
    top: 36%;
    left: 0;
    bottom: auto;
    width: 48%;
    height: 34%;
  }

  .about-photo-life {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 48%;
  }
}
/* ABOUT ORDERED PHOTO COLLAGE */
.about-content {
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(46px, 5.4vw, 78px);
  align-items: start;
}

.about-content .about-gallery {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.9fr;
  grid-template-rows: 188px 188px 150px;
  gap: 16px;
  width: min(100%, 640px);
  min-height: 0;
  margin: 4px auto 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.about-photo {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.34);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  transform: none;
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.about-gallery:hover .about-photo {
  opacity: 0.78;
  filter: saturate(0.88) brightness(0.86);
}

.about-gallery .about-photo:hover {
  z-index: 20;
  opacity: 1;
  filter: saturate(1.06) brightness(1.02);
  border-color: rgba(232, 209, 168, 0.78);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.48), 0 0 30px rgba(212, 175, 55, 0.18);
  transform: translateY(-7px) scale(1.025);
}

.about-photo-portrait {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  z-index: 4;
}

.about-photo-wide {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  z-index: 3;
}

.about-photo-closeup {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  z-index: 5;
}

.about-photo-mountain {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  z-index: 2;
}

.about-photo-life {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
  z-index: 2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.about-photo:hover img {
  transform: scale(1.025);
}

.about-photo-portrait img {
  object-position: center 17%;
}

.about-photo-wide img {
  object-position: center 44%;
}

.about-photo-closeup img {
  object-position: 35% 50%;
}

.about-photo-mountain img {
  object-position: 52% 42%;
}

.about-photo-life img {
  object-position: 58% 36%;
}

@media (max-width: 1080px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text,
  .about-content .about-gallery {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .about-content .about-gallery {
    grid-row: auto;
    width: min(100%, 720px);
    grid-template-rows: 180px 180px 140px;
  }
}

@media (max-width: 560px) {
  .about-content .about-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 140px 140px 140px;
    gap: 12px;
  }

  .about-photo-portrait {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  .about-photo-wide {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .about-photo-closeup {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .about-photo-mountain {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .about-photo-life {
    grid-column: 1 / -1;
    grid-row: 4 / 5;
  }
}




/* SKILL CARD VIDEO MEDIA */
.skill-card-media {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.65);
}
/* ABOUT CAREER TIMELINE */
.career-timeline {
  position: relative;
  width: min(100%, 1136px);
  height: 218px;
  margin: 16px auto 78px;
  z-index: 3;
}

.career-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(232, 209, 168, 0.18), rgba(78, 188, 230, 0.14));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.career-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), rgba(232, 209, 168, 0.95), rgba(78, 188, 230, 0.48));
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.34);
  transform: scaleX(0);
  transform-origin: left center;
}

.career-timeline.active .career-track-fill {
  animation: careerProgress 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.career-item {
  position: absolute;
  left: var(--pos);
  top: 50%;
  width: min(300px, 27vw);
  opacity: 0;
  transform: translate(-50%, 18px);
}

.career-timeline.active .career-item {
  animation: careerItemIn 0.78s ease forwards;
  animation-delay: calc(0.45s + var(--delay));
}

.career-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(245, 245, 245, 0.92);
  border-radius: 50%;
  background: #121214;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.08), 0 0 18px rgba(212, 175, 55, 0.35);
  transform: translate(-50%, -50%);
}

.career-item::before,
.career-item::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 34px;
  transform: translateX(-50%);
}

.career-item::before {
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(232, 209, 168, 0.52));
}

.career-item::after {
  top: 0;
  background: linear-gradient(180deg, rgba(232, 209, 168, 0.52), transparent);
}

.career-card {
  position: absolute;
  left: 50%;
  width: 100%;
  color: var(--text-primary);
  text-align: left;
  transform: translateX(-50%);
}

.career-card-above {
  bottom: 48px;
}

.career-card-below {
  top: 48px;
}

.career-date {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.career-card h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
}

.career-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes careerProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes careerItemIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 900px) {
  .career-timeline {
    height: auto;
    margin: 8px auto 52px;
    padding: 8px 0 8px 22px;
  }

  .career-track {
    left: 4px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
  }

  .career-track-fill {
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .career-timeline.active .career-track-fill {
    animation-name: careerProgressVertical;
  }

  .career-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 134px;
    padding: 0 0 28px 24px;
    transform: translateY(16px);
  }

  .career-item:last-child {
    padding-bottom: 0;
  }

  .career-timeline.active .career-item {
    animation-name: careerItemInMobile;
  }

  .career-dot {
    left: -18px;
    top: 5px;
    transform: none;
  }

  .career-item::before,
  .career-item::after {
    display: none;
  }

  .career-card {
    position: static;
    width: 100%;
    transform: none;
  }

  .career-card-above {
    margin-bottom: 8px;
  }

  .career-card h3 {
    font-size: 18px;
    white-space: normal;
  }

  .career-card p {
    font-size: 13px;
  }

  @keyframes careerProgressVertical {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }

  @keyframes careerItemInMobile {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 560px) {
  .career-timeline {
    margin-bottom: 32px;
  }

  .career-date {
    font-size: 12px;
  }

  .career-card h3 {
    font-size: 16px;
  }
}

/* HERO CTA AND TITLE TUNING */
.hero .hero-theme {
  letter-spacing: 0.012em;
  word-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(46px, 5.4vw, 64px);
  line-height: 1.08;
}

.hero .cta-buttons {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero .cta-buttons {
    width: min(100%, 360px);
  }
}

/* FINAL SKILL CARD INTERACTION OVERRIDE */
.skills-grid .skill-card {
  transition: transform 0.22s ease;
}

.skills-grid .skill-card:hover,
.skills-grid .skill-card.is-hovered,
.skills-grid .skill-card.is-selected,
.skills-grid .skill-card.reveal.active:hover,
.skills-grid .skill-card.reveal.active.is-hovered,
.skills-grid .skill-card.reveal.active.is-selected {
  transform: translateY(-14px) scale(1.14);
  z-index: 10;
}

.skills-grid .skill-card:hover::before,
.skills-grid .skill-card.is-hovered::before,
.skills-grid .skill-card.is-selected::before,
.skills-grid .skill-card.reveal.active:hover::before,
.skills-grid .skill-card.reveal.active.is-hovered::before,
.skills-grid .skill-card.reveal.active.is-selected::before {
  border-color: var(--accent);
  box-shadow: 0 30px 70px rgba(212, 175, 55, 0.26);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .skills-grid .skill-card:hover,
  .skills-grid .skill-card.is-hovered,
  .skills-grid .skill-card.is-selected,
  .skills-grid .skill-card.reveal.active:hover,
  .skills-grid .skill-card.reveal.active.is-hovered,
  .skills-grid .skill-card.reveal.active.is-selected {
    transform: translateY(-14px) scale(1.14);
  }
}

/* SKILL SECTION SPACING */
.skills {
  padding: 72px 0;
}

.skills .section-title {
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .skills {
    padding: 56px 0;
  }

  .skills .section-title {
    margin-bottom: 28px;
  }
}

/* FIXED PAGE BACKGROUND */
body {
  background: #0a0a0a;
}

body::before {
  background:
    linear-gradient(135deg, rgba(21, 21, 26, 0.56) 0%, rgba(10, 10, 10, 0.88) 100%),
    url("images/hero-bg-abstract.png") center / cover no-repeat fixed;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 44%),
    radial-gradient(circle at 78% 24%, rgba(78, 188, 230, 0.09) 0%, transparent 42%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(80, 150, 230, 0.04));
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  animation: pageBackgroundBreath 6.8s ease-in-out infinite;
}

.hero,
.about,
.portfolio,
.skills,
.contact,
.case-detail,
.case-hero,
.case-content,
.footer {
  background-image: none;
  background-color: transparent;
}

.hero {
  background-attachment: scroll;
}

@keyframes pageBackgroundBreath {
  0%, 100% {
    opacity: 0.34;
    filter: saturate(0.95) brightness(0.96);
  }

  50% {
    opacity: 0.72;
    filter: saturate(1.22) brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
    opacity: 0.48;
  }
}

/* MOTION SKILL PAGE BACKGROUND */
.motion-bg {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  min-height: 100vh;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.motion-bg.is-active {
  opacity: 0.36;
}

.motion-bg-row {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 128vw;
  margin-left: -18vw;
}

.motion-bg-row.is-offset {
  margin-left: -4vw;
}

.motion-bg-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: clamp(230px, 31vw, 440px);
  max-height: clamp(260px, 34vw, 480px);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.motion-bg video {
  width: auto;
  height: clamp(230px, 31vw, 440px);
  max-width: none;
  object-fit: contain;
  border-radius: 12px;
  filter: brightness(0.38) saturate(0.84) contrast(0.88);
}

body.motion-bg-active::before {
  background:
    linear-gradient(135deg, rgba(8, 8, 10, 0.72) 0%, rgba(10, 10, 10, 0.9) 100%),
    url("images/hero-bg-abstract.png") center / cover no-repeat fixed;
}

body.motion-bg-active::after {
  opacity: 0.32;
}

@media (max-width: 768px) {
  .motion-bg {
    gap: 10px;
    padding: 10px 0;
  }

  .motion-bg-row {
    gap: 10px;
    min-width: 170vw;
    margin-left: -34vw;
  }

  .motion-bg-row.is-offset {
    margin-left: -10vw;
  }

  .motion-bg-tile {
    min-height: clamp(190px, 54vw, 310px);
    max-height: clamp(210px, 60vw, 340px);
  }

  .motion-bg video {
    height: clamp(190px, 54vw, 310px);
  }
}

/* FINAL SECTION SPACING */
.about,
.skills,
.portfolio,
.contact {
  padding-top: 72px;
  padding-bottom: 72px;
}

.about .section-title,
.skills .section-title,
.portfolio .section-title,
.contact .section-title {
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .about,
  .skills,
  .portfolio,
  .contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .about .section-title,
  .skills .section-title,
  .portfolio .section-title,
  .contact .section-title {
    margin-bottom: 28px;
  }
}

.skill-card[data-skill="3d"] img {
  object-position: center 28%;
}

.skill-card[data-skill="motion"] .skill-card-media {
  object-position: center 65%;
}

.about {
  padding-top: 48px;
}

@media (max-width: 768px) {
  .about {
    padding-top: 40px;
  }
}

/* CASE VISUAL RADIUS TUNING */
.case-detail .case-media img,
.case-detail .visual-manual-hero {
  border-radius: 8px;
}

.case-detail .visual-manual-grid figure {
  border-radius: 6px;
}

/* HAICHANG CASE VISUAL GALLERIES */
.haichang-visual-section {
  overflow: visible;
}

.haichang-subsection,
.haichang-detail-set {
  margin-top: 34px;
}

.haichang-subsection:first-of-type,
.haichang-detail-set:first-of-type {
  margin-top: 0;
}

.haichang-subtitle {
  margin: 0 0 16px;
  color: var(--accent-light);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.haichang-gallery {
  display: grid;
  gap: 18px;
}

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

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

.haichang-gallery-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.haichang-gallery .kv-media-card {
  margin: 0;
}

.haichang-gallery .kv-media-card img,
.haichang-gallery .kv-media-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.haichang-gallery-3 .kv-media-card,
.haichang-gallery-4 .kv-media-card {
  aspect-ratio: 1 / 1;
}

.haichang-gallery-2 .kv-media-card {
  aspect-ratio: 16 / 9;
}

.haichang-kv-gallery .kv-media-card {
  aspect-ratio: 750 / 1150;
  background: rgba(10, 10, 10, 0.28);
}

.haichang-kv-gallery .kv-media-card img,
.haichang-kv-gallery .kv-media-card video {
  object-fit: contain;
}

.haichang-video-card video {
  background: rgba(0, 0, 0, 0.34);
}

.haichang-detail-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  border-radius: 8px;
}

.haichang-detail-slice {
  margin: 0;
  aspect-ratio: var(--detail-ratio);
  border-radius: 0;
}

.haichang-detail-slice:first-child {
  border-radius: 8px 0 0 8px;
}

.haichang-detail-slice:last-child {
  border-radius: 0 8px 8px 0;
}

.haichang-detail-slice img {
  width: 100%;
  height: 300%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.haichang-detail-slice.detail-part-2 img {
  transform: translateY(-33.3333%);
}

.haichang-detail-slice.detail-part-3 img {
  transform: translateY(-66.6667%);
}

.haichang-gallery .kv-media-card,
.haichang-detail-slice {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

@media (max-width: 900px) {
  .haichang-gallery-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .haichang-gallery,
  .haichang-gallery-2,
  .haichang-gallery-3,
  .haichang-gallery-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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