:root {
  /* User Provided Palette */
  --color-purple: #C401DB;
  --color-pink: #FE14BB;
  --color-lime: #8AFF00;
  --color-cyan: #10FEE2;
  --color-blue-purple: #6715FF;

  /* Theme Configuration */
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-muted: #a0a0a0;
  --surface-color: #111111;

  --accent-main: var(--color-lime);
  --accent-secondary: var(--color-purple);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

#interactive-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  text-transform: uppercase;
}

::selection {
  background-color: var(--color-pink);
  color: white;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: exclusion;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

section {
  padding: 4rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* About Section */
#about {
  position: relative;
  overflow: hidden;
}

#about-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#info-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#about-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

#info-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Info Section */
#info {
  padding: 10rem 5%;
  background: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  /* Ensure it's tall enough for the model */
  display: flex;
  align-items: center;
}

.info-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.info-header,
.work-header {
  margin-bottom: 6rem;
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.info-header h2,
.work-header h2 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}

.section-tag {
  font-size: 0.7rem;
  color: var(--color-lime);
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

.info-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.info-card {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.info-card .label {
  display: block;
  font-size: 0.65rem;
  color: var(--color-lime);
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.info-card .value {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.email-link {
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-all;
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.email-link:hover {
  color: var(--color-lime) !important;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .info-grid {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  #info {
    padding: 6rem 5%;
  }
}

footer {
  padding: 10rem 5% 5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.footer-credits {
  max-width: 1000px;
  margin: 0 auto 6rem auto;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  line-height: 2.2;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-credits p {
  margin-bottom: 3rem;
  opacity: 0.7;
}

.tool-list {
  color: var(--color-lime);
  opacity: 0.9 !important;
  font-weight: 500;
}

.copyright {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  opacity: 0.2;
  margin-top: 4rem;
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #fff;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  padding: 0 5%;
  pointer-events: auto;
}

.hero-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(138, 255, 0, 0.3);
  box-shadow: 0 0 30px rgba(138, 255, 0, 0.1);
  position: relative;
  z-index: 12;
  background: black;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.interact-hint {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-lime);
  border: 1px solid var(--color-lime);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background: rgba(138, 255, 0, 0.05);
  backdrop-filter: blur(5px);
  animation: pulse-hint 2s infinite ease-in-out;
  cursor: default;
  pointer-events: none;
  text-transform: uppercase;
}

@keyframes pulse-hint {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
}

.profile-container:hover .hero-image {
  border-color: var(--color-lime);
  box-shadow: 0 0 40px rgba(138, 255, 0, 0.4);
}


.hero-text {
  text-align: left;
  z-index: 12;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.text-highlight {
  color: var(--color-lime);
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Section Labels */
.gallery-label {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--color-lime);
  margin-top: 12rem;
  margin-bottom: 2rem;
  opacity: 0.6;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-label-left {
  display: flex;
  align-items: center;
}

.gallery-date {
  letter-spacing: 0.5em;
}

.gallery-label-left::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--color-lime);
  vertical-align: middle;
  margin-right: 1.5rem;
}

/* Work Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 5%;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.project-media {
  aspect-ratio: 16/9;
  background-color: var(--surface-color);
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure video is fully visible */
  background: black;
  /* Letterboxing background */
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
  /* Subtle zoom on hover */
}

.project-card:hover .project-media {
  border-color: var(--color-pink);
  transform: translateY(-5px);
}

/* Horizontal Gallery Strip */
/* Full Width Gallery Strip - Clean Layout */
.gallery-strip {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  gap: 2rem;
}


.video-breakout {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 1.5rem;
  background: #000;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  position: relative;
  /* Added for icon positioning */
}

.video-breakout video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-lime);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: fill 0.3s ease;
}

.sound-toggle.muted svg {
  opacity: 0.5;
}

.sound-toggle:hover svg {
  fill: var(--color-lime);
}

#sd-video-box {
  height: 600px;
  width: 100%;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#sd-video-box video {
  height: auto;
  width: 110%;
  /* Keeping it visually larger to match its "previous size" while the container is narrower */
  min-width: 100%;
}

.gallery-item {
  flex: 1;
  /* Grow to fill space */
  aspect-ratio: 1/1;
  /* Keep them square */
  max-width: 600px;
  /* Prevent them from getting too huge */
  border-radius: 0;
  overflow: visible;
  /* Allow floating effect */
  border: none;
  background: transparent;
  transition: transform 0.3s ease;
  position: relative;
  cursor: zoom-in;
}

.gallery-item:hover {
  transform: scale(1.05);
  border: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure the whole object is visible like in the ref */
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  /* Subtle shadow for depth */
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Static Gallery Override */
.static-gallery .gallery-item:hover,
.static-gallery .gallery-item:hover img {
  transform: none;
}

/* Gallery Info Toggle */
.gallery-info-toggle {
  grid-column: 1 / -1;
  padding: 1rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.gallery-info-toggle:hover {
  color: var(--color-lime);
}

.gallery-info-toggle:hover .toggle-icon {
  color: var(--color-lime);
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.gallery-info-toggle.active .toggle-icon {
  transform: rotate(45deg);
}

.gallery-info-content {
  grid-column: 1 / -1;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
  border: none;
}

.gallery-info-content.active {
  max-height: 1000px;
  padding: 2rem 0;
}

.gallery-info-content p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.gallery-info-content p:last-child {
  margin-bottom: 0;
}


.placeholder-media {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--surface-color), #222);
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  transition: color 0.3s;
}

.project-card:hover .project-info h3 {
  color: var(--color-cyan);
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}

/* About Section */
#about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem 5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#about-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}