/* ==========================================================================
   PORTFOLIO WEBSITE - SMOOTH SCROLL 3D PHOTO ANIMATION STYLESHEET
   Curated palette matching dark portrait lighting with red/magenta rim accents
   ========================================================================== */

:root {
  --bg-color: #050308;
  --bg-accent: #15050b;
  --red-accent: rgba(235, 45, 85, 0.65);
  --red-glow: rgba(255, 30, 70, 0.3);
  --purple-glow: rgba(140, 45, 235, 0.25);
  --glass-bg: rgba(15, 8, 20, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.18);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Ambient canvas background */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: 90vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-glow) 0%, rgba(5, 3, 8, 0) 70%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Glass Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 1100px;
  padding: 0.8rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 6, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: #ff2d55;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff2d55;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
}

/* Scroll Container */
#scroll-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
}

#scroll-content {
  width: 100%;
}

/* Common Section Stage Layout */
.stage {
  position: relative;
  width: 100%;
  min-height: 130vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  overflow: hidden;
  padding: 12vh 4vw 8vh;
}

.stage-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  z-index: 10;
}

/* Common Image Defaults */
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  will-change: transform, opacity, filter;
}

/* Glass Content Cards & Text Styling */
.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ff2d55;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2d55 0%, #e01b44 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 45, 85, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 45, 85, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.image-container-3d {
  width: 100%;
  height: 65vh;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage1-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.9),
    0 0 50px var(--red-glow),
    inset 0 0 0 1px var(--glass-border);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pill-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff2d55;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subline {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.pan-viewport {
  position: sticky;
  top: 15vh;
  width: 100%;
  height: 60vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.95), 0 0 60px rgba(235, 45, 85, 0.2);
  border: 1px solid var(--glass-border);
}

.pan-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage2-img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  transform: translate(-15%, -15%) scale(1);
}

.red-rim-flare {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--red-accent) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  filter: blur(40px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Projects Section */
.projects-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
}

.parallax-stack {
  position: relative;
  width: 100%;
  height: 60vh;
  transform-style: preserve-3d;
}

.layer {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.1s ease-out;
}

.layer-back {
  transform: translateZ(-150px) scale(1.15);
  filter: blur(12px) brightness(0.6);
  opacity: 0.7;
}

.layer-mid {
  transform: translateZ(0);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 50px rgba(255, 30, 70, 0.3);
  border: 1px solid var(--glass-border);
}

.layer-front {
  transform: translateZ(120px) scale(0.92);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.85;
}

.hologram-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
}

.img-clip {
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.project-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project-card:hover {
  background: rgba(30, 15, 35, 0.8);
  border-color: rgba(255, 45, 85, 0.4);
  transform: translateX(8px);
}

.project-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff2d55;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

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

.tech-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
}

.orbit-stage {
  width: 100%;
  height: 55vh;
  perspective: 1600px;
}

.orbit-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), 0 0 40px var(--red-glow);
}

.card-face.back {
  transform: rotateY(180deg);
}

.mirror {
  transform: scaleX(-1);
  filter: hue-rotate(20deg) contrast(1.1);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-category h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.skill-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.chip:hover {
  border-color: #ff2d55;
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.3);
}

/* Timeline Section */
.tunnel-stage-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.tunnel-container {
  position: relative;
  width: 100%;
  height: 60vh;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tunnel-slice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  will-change: transform, opacity;
}

.milestones-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.milestone-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.milestone-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff2d55;
  background: rgba(255, 45, 85, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}

.milestone-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.milestone-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Section */
.outro-stage-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.outro-container {
  width: 100%;
  height: 60vh;
}

.outro-frame {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0,0,0,0.95), 0 0 80px rgba(255, 30, 70, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.5rem;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #ff2d55;
}

.form-textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ff2d55;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050308;
}

/* Minimal HUD Scroll Progress */
.scroll-hud {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.progress-bar-track {
  width: 3px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #ff2d55, #ff80a0);
  border-radius: 3px;
  box-shadow: 0 0 10px #ff2d55;
  transition: height 0.05s ease-out;
}

.scroll-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-container,
  .about-container,
  .projects-container,
  .skills-container,
  .tunnel-stage-container,
  .outro-stage-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
