:root {
  --black: #000000;
  --white: #ffffff;
  --accent-3d: #DC143C; /* Blood red for 3D work */
  --accent-design: #FF1493; /* Hot pink for graphic design */
  --accent-current: var(--accent-3d); /* Dynamic accent */
  --silver: #BFCFE6;
  --moon: #9FBEDD;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-900: #0a0a0a;
}

/* Dynamic color switching based on filter */
body.filter-all {
  --accent-current: var(--black);
}

body.filter-3d {
  --accent-current: var(--accent-3d);
}

body.filter-design {
  --accent-current: var(--accent-design);
}

@import url('https://fonts.cdnfonts.com/css/gotham');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Dark-first design for 3D portfolios */
body.filter-all {
  background: var(--black);
  color: var(--white);
}

body.filter-3d {
  background: var(--gray-900);
  color: var(--white);
}

body.filter-design {
  background: var(--white);
  color: var(--black);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.filter-design .nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
.nav-brand {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  font-weight: 300;
  color: var(--white);
  transition: color 0.3s ease;
}

body.filter-design .nav-brand {
  color: var(--black);
}

.nav-brand {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  font-weight: 300;
}
.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

body.filter-design .nav-link {
  color: rgba(0, 0, 0, 0.6);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-current);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  background: var(--gradient-dark);
}

body.filter-design .hero {
  background: linear-gradient(180deg, var(--white) 0%, #fafafa 100%);
}

.hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  transition: opacity 0.1s ease-out;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  text-transform: uppercase;
}

body.filter-design .hero-subtitle {
  color: rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: 'Gotham Black', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3rem;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  color: var(--white);
}

body.filter-design .hero-title {
  color: var(--black);
}

.accent {
  color: var(--accent-current);
  transition: color 0.5s ease;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 42rem;
  margin: 0 auto 3rem;
  letter-spacing: 0.01em;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

body.filter-design .hero-desc {
  color: rgba(0, 0, 0, 0.6);
}

.hero-motto {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

body.filter-design .hero-motto {
  color: rgba(0, 0, 0, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: color 0.3s ease, opacity 0.3s ease;
}

body.filter-design .hero-scroll {
  color: rgba(0, 0, 0, 0.4);
}

.hero-scroll:hover {
  color: var(--accent-current);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Spacer */
.spacer {
  height: 100vh;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, #0f0f0f 100%);
}

body.filter-design .spacer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fafafa 100%);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Label */
.section-label {
  font-family: 'Gotham Black', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4rem;
  text-align: left;
  text-transform: uppercase;
}
/* Work Section */
.work {
  min-height: 100vh;
  padding: 8rem 0;
  background: #0f0f0f;
  position: relative;
  z-index: 10;
  transition: background 0.5s ease;
}

body.filter-design .work {
  background: #fafafa;
}

/* Dark background for 3D filter */
body.filter-3d .work {
  background: var(--gray-900);
  color: var(--white);
}

body.filter-3d .section-label {
  color: rgba(255, 255, 255, 0.5);
} color: var(--white);
}

body.filter-3d .section-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 6rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Gotham Black', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

body.filter-design .filter-btn {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
}

.filter-btn:hover {
  border-color: var(--accent-current);
  color: var(--accent-current);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.filter-btn.active {
  background: var(--accent-current);
  border-color: var(--accent-current);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

body.filter-3d .filter-btn.active {
  background: var(--accent-3d);
  border-color: var(--accent-3d);
}

body.filter-design .filter-btn.active {
  background: var(--accent-design);
  border-color: var(--accent-design);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-bottom: 8rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Stagger animation for projects */
.project:nth-child(1) { animation-delay: 0.1s; }
.project:nth-child(2) { animation-delay: 0.2s; }
.project:nth-child(3) { animation-delay: 0.3s; }
.project:nth-child(4) { animation-delay: 0.4s; }
.project:nth-child(5) { animation-delay: 0.5s; }
.project:nth-child(6) { animation-delay: 0.6s; }

body.filter-3d .project-year,
body.filter-3d .project-subtitle,
body.filter-3d .project-desc,
body.filter-3d .project-tag {
  color: rgba(255, 255, 255, 0.7);
}

body.filter-3d .project-title {
  color: var(--white);
}

body.filter-design .project-tech {
  color: var(--accent-design);
  font-weight: 600;
}

@media (min-width: 768px) {
  .project {
    grid-template-columns: 1fr 1fr;
  }
  .project:nth-child(even) .project-image {
    order: 2;
  }
  .project:nth-child(even) .project-content {
    order: 1;
  }
}

.project-image-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s ease-out;
}

.project-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

body.filter-design .project-image {
  background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
  color: rgba(0, 0, 0, 0.2);
}

.project-image-wrap:hover .project-image {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image-wrap:hover .project-overlay {
  border-color: rgba(255, 255, 255, 0.2);
}

body.filter-design .project-image-wrap:hover .project-overlay {
  border-color: rgba(0, 0, 0, 0.2);
}

.project-image-wrap:hover .project-overlay {
  border-color: rgba(0, 0, 0, 0.2);
}

.project-image-wrap:hover .project-icon {
  opacity: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.project-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--accent-current);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.filter-3d .project-icon {
  color: var(--accent-3d);
}

body.filter-design .project-icon {
  color: var(--accent-design);
}

.project-content {
  display: flex;
.project-year {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

body.filter-design .project-year {
  color: rgba(0, 0, 0, 0.4);
}project-year {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.4);
}

.project-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
.project-tech {
  font-size: 0.75rem;
  color: var(--accent-current);
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-weight: 300;
  transition: color 0.3s ease;
}

body.filter-3d .project-tech {
  color: var(--accent-3d);
}

body.filter-design .project-tech {
  color: var(--accent-design);
}

.project-tech {
  font-size: 0.75rem;
  color: var(--blood-light);
.project-tag {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

body.filter-3d .project-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
} font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
.project-link:hover {
  color: var(--accent-current);
}

body.filter-3d .project-link {
  color: rgba(255, 255, 255, 0.6);
}

body.filter-3d .project-link:hover {
  color: var(--accent-3d);
}

body.filter-design .project-link:hover {
  color: var(--accent-design);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

body.filter-design .project-link {
  color: rgba(0, 0, 0, 0.6);
}

.project-link:hover {
  color: var(--blood-light);
}

.project-link svg {
  transition: transform 0.3s ease;
}

.project-link:hover svg {
  transform: translateX(4px);
}

.btn-outline:hover {
  border-color: var(--accent-current);
  color: var(--accent-current);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent-current);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.filter-3d .btn-primary {
  background: var(--accent-3d);
}

body.filter-design .btn-primary {
  background: var(--accent-design);
} border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--black);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--blood-light);
  color: var(--blood-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--blood-light);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--blood-dark);
}

/* About Section */
.about {
  min-height: 100vh;
  padding: 8rem 0;
  background: #0a0a0a;
  position: relative;
  z-index: 10;
  transition: background 0.5s ease, color 0.5s ease;
  color: var(--white);
}

body.filter-design .about {
  background: var(--white);
  color: var(--black);
}

body.filter-3d .about {
  background: #0f0f0f;
  color: var(--white);
}

.about-title,
.about-text,
.about-list li {
  color: rgba(255, 255, 255, 0.9);
}

body.filter-design .about-title,
body.filter-design .about-text,
body.filter-design .about-list li {
  color: rgba(0, 0, 0, 0.9);
}

.about-subtitle,
.about-label {
  color: rgba(255, 255, 255, 0.5);
}

body.filter-design .about-subtitle,
body.filter-design .about-label {
  color: rgba(0, 0, 0, 0.5);
}

.about-intro {
  margin-bottom: 3rem;
}

.about-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-subtitle {
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.25rem;
}

.about-text {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

body.filter-design .about-grid {
  border-top-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
/* Contact Section */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
  background: #0f0f0f;
  position: relative;
  z-index: 10;
  transition: background 0.5s ease, color 0.5s ease;
  color: var(--white);
}

body.filter-design .contact {
  background: #fafafa;
  color: var(--black);
}

body.filter-3d .contact {
  background: var(--gray-900);
  color: var(--white);
}

.contact-title {
  color: var(--white);
}

body.filter-design .contact-title {
  color: var(--black);
}

.contact-text,
.contact-social a {
  color: rgba(255, 255, 255, 0.6);
}

body.filter-design .contact-text,
body.filter-design .contact-social a {
  color: rgba(0, 0, 0, 0.6);
}

.about-highlight {
  color: var(--black);
  font-weight: 400;
}

/* Contact Section */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
  background: var(--gray-50);
  position: relative;
  z-index: 10;
}

.contact-inner {
  max-width: 42rem;
  text-align: center;
}

.contact-social a:hover {
  color: var(--accent-current);
}

body.filter-3d .contact-social a:hover {
  color: var(--accent-3d);
}

body.filter-design .contact-social a:hover {
  color: var(--accent-design);
} font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.contact-text {
/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  background: #0a0a0a;
  position: relative;
  z-index: 10;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

body.filter-design .footer {
  background: var(--white);
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.filter-3d .footer {
  background: #0a0a0a;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-copy,
.footer-motto {
  color: rgba(255, 255, 255, 0.4);
}

body.filter-design .footer-copy,
body.filter-design .footer-motto {
  color: rgba(0, 0, 0, 0.4);
} display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-social {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-social a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-social a:hover {
  color: var(--blood-light);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  background: var(--white);
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  letter-spacing: 0.2em;
}

.footer-motto {
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}