/* volksBB.css - Main Portfolio Styles */

/* Simple HDR Filter - Apple Quality */
html {
  filter: contrast(1.05) saturate(1.08) brightness(1.01);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background:
    linear-gradient(90deg, rgba(248, 250, 255, 0) 0%, rgba(210, 220, 255, 0.15) 60%, rgba(185, 205, 255, 0.22) 100%),
    linear-gradient(180deg, #f8faff 0%, #f4f7fc 50%, #eef2fa 100%);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #000;
  overflow-x: hidden;
}

/* === GLOBAL LAYOUT === */
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  gap: 80px;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* === LEFT COLUMN === */
.left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
}

/* === LOGO / BRAND === */
.logo {
  position: fixed;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 1;
}

.logo:hover .logo-text {
  color: #2f6bff;
}

.d20-container {
  width: 32px;
  height: 32px;
  perspective: 120px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.name h1 {
  font-size: clamp(3.5rem, 5.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.name .first {
  color: #000;
}

.name .last {
  color: #b0b5c0;
}

.subtitle-block {
  margin-top: 20px;
  font-size: 18px;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.subtitle-location {
  color: #6D6D6D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-location::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.job-block {
  margin-top: 40px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.job-label {
  font-size: 18px;
  color: #6D6D6D;
}

.job-title {
  font-size: 18px;
  color: #000;
  font-weight: 400;
}

.job-company {
  font-size: 18px;
  color: #2f6bff;
  font-weight: 500;
}

.link-group {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.link-item {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.link-item:hover {
  color: #2f6bff;
}

.link-arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-arrow::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.2s ease;
}

.link-item:hover .link-arrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* === COLOR DIAL (Desktop) === */
.color-dial {
  display: none;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.color-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.color-btn:hover {
  transform: scale(1.2);
}

.color-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* === CENTER COLUMN - WEBGL === */
.center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#webgl-container {
  width: 500px;
  height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  outline: none;
  border-radius: 20px;
}

/* === RIGHT COLUMN === */
.right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
  opacity: 0;
}

.projects-label {
  font-size: 18px;
  color: #2f6bff;
  margin-bottom: 45px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a.project-item {
  text-decoration: none;
  color: inherit;
}

.project-item:hover {
  opacity: 1;
}

.project-item:hover .project-name {
  color: #2f6bff;
}

.project-num {
  font-size: 18px;
  color: #6D6D6D;
  text-align: right;
  width: 40px;
}

.project-name {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  transition: color 0.2s ease;
}

/* === BACKGROUND AMBIENCE === */
.ambience-left {
  position: fixed;
  width: 86px;
  height: 752px;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(47, 107, 255, 0.15);
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  animation: ambiencePulse 7s ease-in-out infinite;
}

.ambience-right {
  position: fixed;
  width: 280px;
  height: 850px;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(90, 140, 255, 0.4);
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.55;
  animation: ambiencePulse 7s ease-in-out infinite;
  animation-delay: -3.5s;
}

.ambience-top-left {
  position: fixed;
  width: 500px;
  height: 500px;
  left: -100px;
  top: -100px;
  background: rgba(70, 120, 255, 0.5);
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  animation: ambiencePulse 7s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes ambiencePulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 0.5;
  }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1100px) {
  body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    gap: 60px;
    padding: 80px 20px;
    max-width: 700px;
  }

  .center-col {
    order: 1;
    margin-bottom: 20px;
  }

  #webgl-container {
    width: 100%;
    height: 400px;
  }

  .color-dial {
    display: none !important;
  }

  .color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .color-btn:hover {
    transform: scale(1.2);
  }

  .color-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.2);
    border-color: transparent;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    height: auto;
    padding-top: 60px;
    overflow-y: auto;
  }

  .left-col {
    order: 2;
    align-items: center;
    text-align: center;
    width: 100%;
    opacity: 1;
  }

  .right-col {
    order: 3;
    align-items: center;
    text-align: center;
    padding-left: 0;
    width: 100%;
    opacity: 1;
  }

  .name h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .subtitle-block {
    align-items: center;
  }

  .job-block {
    align-items: center;
    text-align: center;
  }

  .link-group {
    align-items: center;
  }

  .color-dial {
    justify-content: center;
    margin-top: 15px;
  }

  .projects-label {
    align-self: center;
    margin-bottom: 24px;
    text-align: center;
  }

  .project-list {
    gap: 20px;
  }

  .project-item {
    justify-content: center;
    width: 100%;
  }

  .project-num {
    display: none;
  }

  .project-name {
    font-size: 22px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambience-left,
  .ambience-right {
    animation: none !important;
  }
}

/* === ABOUT PANEL === */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.about-overlay.active {
  opacity: 1;
  visibility: visible;
}

.about-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  background: #fff;
  padding: 60px 50px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  overflow-y: auto;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.1);
}

.about-panel.active {
  transform: translateX(0);
}

.about-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-close:hover {
  color: #000;
}

.about-photo {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 24px auto;
  background: #e0e0e0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 40px;
}

.about-content {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}

.about-content p {
  margin-bottom: 24px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .about-panel {
    max-width: 100%;
    padding: 50px 30px;
  }
}
