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

body {
  font-family: "Wallpoet", "DotGothic16", sans-serif;
  font-style: normal;
  color: #F2F2F7;
  background-color: #060212;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  outline: none;
}

.scroll-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.section {
  height: 180vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  pointer-events: auto;
}

.section-content {
  max-width: 550px;
  background: rgba(15, 10, 30, 0.6);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.2);
  transform: translateY(0);
  transition: all 0.5s ease;
}

.section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #00ffcc, #cc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #dcdcdc;
  margin-bottom: 1.5rem;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  color: #00ffcc;
  font-size: 0.9rem;
  gap: 10px;
}

.scroll-hint::after {
  content: "↓";
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}


.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 2, 15, 0.85);
  backdrop-filter: blur(15px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  perspective: 1000px;
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-card {
  background: rgba(20, 15, 35, 0.9);
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 850px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 255, 204, 0.15), 0 0 40px rgba(204, 0, 255, 0.1);
  transform: translateZ(-800px) scale(0.3);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
  transform-style: preserve-3d;
}

.portfolio-modal.active .portfolio-card {
  transform: translateZ(0) scale(1);
  opacity: 1;
}

.portfolio-image-area {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #0a0515;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-image-area:hover .portfolio-image {
  transform: scale(1.05);
}

.click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 204, 0.2);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  color: #F2F2F7;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-image-area:hover .click-overlay {
  opacity: 1;
}

.click-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.portfolio-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.portfolio-title {
  font-size: 2rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #F2F2F7, #8899af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: #a0aab5;
  line-height: 1.6;
  margin-bottom: 25px;
}

.unlock-btn {
  background: linear-gradient(45deg, #00ffcc, #cc00ff);
  color: #F2F2F7;
  font-weight: bold;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 255, 0.5);
}

.gallery-link-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #F2F2F7;
  font-weight: bold;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
}

.gallery-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #cc00ff;
  color: #cc00ff;
  transform: translateY(-2px);
}

.indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 0.9rem;
  color: #00ffcc;
  z-index: 100;
  background: rgba(15, 10, 30, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

@media (max-width: 768px) {
  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .portfolio-image-area {
    min-height: 200px;
  }

  .portfolio-info {
    padding: 25px;
  }

  .section h1 {
    font-size: 2.2rem;
  }
}