* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: sans-serif;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

#webGLApp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Navigation Bar */
.main-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

/* Shared button styles */
.nav-btn,
.color-btn {
  min-width: 48px;
  height: 48px;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Shared hover effects */
.nav-btn:hover,
.color-btn:hover,
.toggle-adjuster-btn:hover {
  transform: translateY(-2px);
}

.nav-btn:hover,
.color-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Page Container */
.page-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
  overflow: visible;
  display: none;
}

.page.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: relative;
  display: block;
}

/* HOME PAGE - Particle Portrait */
#page-home {
  background-color: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  z-index: 1;
}

.home-overlay {
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.home-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

/* Color Controls - Now in Footer */
.color-controls {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}
.color-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Footer Color Container - Frosted Glass */
.footer-color-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Color Adjuster Panel - Now in Footer */
.color-adjuster-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
}

.color-adjuster-panel.open {
  max-height: 1000px;
  opacity: 1;
  padding: 1.5rem;
  margin-top: 1rem;
  overflow-y: auto;
  display: block;
  visibility: visible;
}

.color-adjuster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}


.color-picker-group {
  margin-bottom: 0;
}

.color-picker-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.color-picker-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-picker-input {
  width: 60px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-value-display {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: white;
  font-family: "Inter", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: text;
  user-select: all;
  transition: all 0.3s ease;
}

.color-value-display:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.color-value-display:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn.copied {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

.color-adjuster-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.75rem;
}

.export-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.toggle-adjuster-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 24px;
  pointer-events: auto;
  white-space: nowrap;
}

.toggle-adjuster-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.toggle-adjuster-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer {
  position: relative;
  z-index: 999;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: auto;
  padding: 3rem 2rem;
  margin-top: auto;
}
.footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer a:hover {
  opacity: 0.7;
}
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
  background: transparent;
  will-change: transform;
  mix-blend-mode: difference;
}
.custom-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}
body * {
  cursor: none !important;
}

/* Main Content Container */
.main-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0 6rem;
  margin-bottom: 4rem;
}

.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-image: url('profile.svg');
  background-size: cover;
  background-position: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.avatar::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('image.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
section {
  margin-bottom: 6rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
}

section:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* About Section */
.about-content {
  margin-bottom: 3rem;
}

.about-content p {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-item h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.skill-item p {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Projects Section */
.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
  padding: 2rem;
}

.project-title {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.project-description {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* Contact Section */
.contact-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-icon {
  font-size: 1.5rem;
}

.social-text {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Footer Update - Merged with main footer definition */

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
  text-align: center;
  order: 2;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    top: 1rem;
    right: 1rem;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  .main-content {
    padding: 6rem 1.5rem 3rem;
  }

  section {
    padding: 2rem 1.5rem;
  }

  .skills-grid,
  .social-links {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 1rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .footer-text {
    text-align: center;
    padding-top: 0;
  }

  .footer-color-container {
    padding: 1rem;
  }

  .footer-controls {
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .color-controls {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .color-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .color-adjuster-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}

/* ===================================
   Reverse Scroll Columns Gallery
   =================================== */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotation {
  0% {
    --gradient-angle: 0deg;
  }
  100% {
    --gradient-angle: 360deg;
  }
}

.col-scroll-stage {
  --scroll-viewport-width: 75vw;
  --scroll-viewport-height: 100vh;
  --scroll-columns: 3;
  position: relative;
  margin-top: 100vh;
  margin-bottom: 10vh;
  z-index: 5;
  background: transparent;
}

.col-scroll-viewport {
  height: var(--scroll-viewport-height);
  margin: 0 auto;
  overflow: hidden;
  width: var(--scroll-viewport-width);
  position: relative;
  background: linear-gradient(var(--gradient-angle),
    rgba(59, 130, 246, 0.6),
    rgba(147, 51, 234, 0.6),
    rgba(239, 68, 68, 0.6),
    rgba(251, 146, 60, 0.6),
    rgba(34, 197, 94, 0.6));
  animation: rotation 8s linear infinite;
  border-radius: 1rem;
  padding: 0.4rem;
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(147, 51, 234, 0.3),
    0 0 60px rgba(239, 68, 68, 0.2);
}

.col-scroll-viewport::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  background: transparent;
  border-radius: 0.6rem;
  z-index: 1;
  box-shadow:
    inset 0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 0 35px rgba(147, 51, 234, 0.15),
    inset 0 0 50px rgba(239, 68, 68, 0.1);
}

.col-scroll {
  display: flex;
  height: 100%;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 2;
}

.col-scroll__box {
  box-sizing: border-box;
  flex: 0 0 calc(100% / var(--scroll-columns));
  height: 100%;
  overflow: hidden;
  padding: 5vh 1rem 15vh;
}

.col-scroll__list {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.col-scroll__item {
  margin: 0 0 2rem 0;
  padding: 0;
}

.col-scroll__img {
  aspect-ratio: 6/7;
  height: auto;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.col-scroll__img:hover {
  opacity: 1;
}

.col-scroll__title {
  margin: 12px 0 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-family: "Inter", sans-serif;
}

@media (max-width: 768px) {
  .col-scroll-stage {
    --scroll-viewport-width: 95vw;
    --scroll-columns: 2;
  }

  .col-scroll__box {
    padding: 3vh 0.5rem 10vh;
  }

  .col-scroll__item {
    margin: 0 0 1rem 0;
  }

  .col-scroll__title {
    font-size: 0.75rem;
  }
}
