:root {
  --bg-dark: #050507;
  --bg-card: rgba(18, 18, 24, 0.7);
  --bg-card-hover: rgba(26, 26, 36, 0.9);
  --gold: #C9A84C;
  --gold-light: #F5D98B;
  --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #F5D98B 55%, #C9A84C 100%);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.65);
  --border-subtle: rgba(201, 168, 76, 0.18);
  --border-glow: rgba(201, 168, 76, 0.5);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background subtle ambient lights */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════ NAVIGATION ════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 3.5rem;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  visibility: hidden;
}

.nav-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  -webkit-mask-image: url('logo.png');
  mask-image: url('logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links .nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--gold-gradient);
  color: #000000 !important;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
  transition: var(--transition);
}

.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.55);
}

/* ════════════════════ HERO HEADER ════════════════════ */
.works-hero {
  position: relative;
  padding: 11rem 2rem 5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.works-hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.works-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.section-anchor-tabs {
  display: inline-flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-anchor-tabs a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  color: var(--text-muted);
  transition: var(--transition);
}

.section-anchor-tabs a:hover {
  color: #fff;
}

.section-anchor-tabs a.active-tab {
  background: var(--gold);
  color: #000;
}

/* ════════════════════ CONTAINER ════════════════════ */
.works-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 0.5rem;
}

/* ════════════════════ SECTION 1: FAMOUS WORKS ════════════════════ */
.famous-works-section {
  padding: 4rem 0 7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.famous-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.famous-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2rem;
  padding: 3rem;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.famous-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.7;
}

.famous-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 35px 75px rgba(201, 168, 76, 0.15);
  transform: translateY(-4px);
}

.famous-card.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.famous-card.reverse .famous-media {
  order: 2;
}

.famous-card.reverse .famous-info {
  order: 1;
}

.famous-media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 1376 / 768;
  background: #0d0d12;
}

.famous-media .scene-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.famous-portal {
  position: absolute;
  background: #000000;
  overflow: hidden;
  z-index: 1;
}

.famous-portal.portal-opa {
  left: 33.87%;
  top: 34.90%;
  width: 33.72%;
  height: 37.80%;
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

.famous-portal.portal-archubi {
  left: 28.8%;
  top: 18.5%;
  width: 42.4%;
  height: 44.5%;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

.famous-portal img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.famous-card:hover .famous-portal img {
  transform: translateY(-45%);
}

.famous-badge-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  z-index: 2;
}

.famous-info {
  display: flex;
  flex-direction: column;
}

.famous-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.famous-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.famous-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.famous-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.famous-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.famous-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.famous-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.6);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ════════════════════ SECTION 2: REGULAR WORKS ════════════════════ */
.regular-works-section {
  padding: 7rem 0;
}

.regular-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: #FFFFFF;
}

.regular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

.regular-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.regular-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.12);
}

.regular-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0e0e14;
}

.regular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.regular-card:hover .regular-media img {
  transform: scale(1.05);
}

.regular-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.regular-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.regular-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.regular-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.regular-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.regular-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.regular-tech {
  display: flex;
  gap: 0.5rem;
}

.tech-pill {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.regular-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.regular-card:hover .regular-link {
  gap: 0.6rem;
}

/* ════════════════════ CTA / FOOTER ════════════════════ */
.works-cta-section {
  padding: 7rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.08) 0%, transparent 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.works-cta-card {
  max-width: 800px;
  margin: 0 auto;
}

.works-cta-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.works-cta-card p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.works-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 1024px) {
  .famous-card, .famous-card.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .famous-card.reverse .famous-media {
    order: 1;
  }
  .famous-card.reverse .famous-info {
    order: 2;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .works-hero {
    padding: 8rem 1.5rem 3.5rem;
  }
  .famous-card {
    padding: 1.75rem;
  }
  .famous-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .regular-grid {
    grid-template-columns: 1fr;
  }
}
