/* ==========================================
   SECTIONS v2 — Layout for each portfolio section
   Enhanced depth, scale, and spatial design
   ========================================== */

/* ========== HERO SECTION ========== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  margin-bottom: var(--space-lg);
  opacity: 0;
}

.hero-name {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.92;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(
    180deg,
    var(--text-primary) 0%,
    rgba(232, 232, 240, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Override gradient for glitch pseudo-elements */
.hero-name::before,
.hero-name::after {
  -webkit-text-fill-color: initial;
  background: none;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  display: inline-block;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: float-y 3s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan-dim), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: scroll-dot-fall 2s ease-in-out infinite;
}

@keyframes scroll-dot-fall {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 50px; opacity: 0; }
}

/* Hero floating code snippets positioned */
.hero-code-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-code-float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
}

/* ========== PROJECTS SECTION ========== */
#projects {
  min-height: 100vh;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.projects-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-lg);
}

.projects-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.projects-header p {
  color: var(--text-muted);
  color: var(--text-secondary);
  margin: 0 auto;
  text-shadow: 0 0 20px rgba(5, 5, 8, 0.9), 0 0 40px rgba(5, 5, 8, 0.6);
}
.projects-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: var(--space-lg) 0;
}

.projects-carousel {
  display: flex;
  gap: 48px;
  padding: 0 calc(50vw - 210px);
  transition: transform 0.1s linear;
  will-change: transform;
}

@media (max-width: 768px) {
  .projects-carousel {
    gap: var(--space-lg);
    padding: 0 calc(50vw - 170px);
  }
}

/* Carousel edge fade */
.projects-carousel-wrapper::before,
.projects-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.projects-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-void), transparent);
}

.projects-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-void), transparent);
}

/* Carousel scroll indicator */
.projects-scroll-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding: 0 var(--space-lg);
}

.projects-scroll-dot {
  width: 32px;
  height: 2px;
  background: var(--text-ghost);
  border-radius: var(--radius-full);
  transition: all var(--dur-normal) var(--ease-out);
}

.projects-scroll-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  width: 48px;
}

/* ========== TECH STACK SECTION ========== */
#tech-stack {
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.tech-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  
}

.tech-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.tech-header p {
  color: var(--text-muted);
  margin: 0 auto;
}

/* Orbital Ring Container */
.tech-orbit-container {
  position: relative;
  width: min(650px, 88vw);
  height: min(650px, 88vw);
  margin: 0 auto;
}

/* Center Label */
.tech-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.tech-orbit-center-label {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.tech-orbit-center-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: var(--space-xs);
}

/* Orbit rings */
.tech-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(0, 240, 255, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.5s;
}

/* Dotted ring effect */
.tech-orbit-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.03);
}

.tech-orbit-ring--1 {
  width: 50%;
  height: 50%;
}

.tech-orbit-ring--2 {
  width: 75%;
  height: 75%;
  border-color: rgba(124, 58, 237, 0.04);
}

.tech-orbit-ring--2::before {
  border-color: rgba(124, 58, 237, 0.03);
}

.tech-orbit-ring--3 {
  width: 100%;
  height: 100%;
  border-color: rgba(57, 255, 20, 0.03);
}

.tech-orbit-ring--3::before {
  border-color: rgba(57, 255, 20, 0.02);
}

/* Individual orbiting icon */
.tech-orbit-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--dur-normal) var(--ease-spring);
  cursor: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tech-orbit-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform var(--dur-normal) var(--ease-spring);
}

.tech-orbit-icon:hover {
  transform: scale(1.35) !important;
  border-color: var(--cyan);
  box-shadow: var(--shadow-neon-cyan);
  z-index: 10;
  background: var(--bg-glass-strong);
}

.tech-orbit-icon:hover svg {
  transform: scale(1.1);
}

.tech-orbit-icon .icon-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.tech-orbit-icon:hover .icon-label {
  opacity: 1;
  color: var(--cyan);
}

/* Ring-specific icon colors */
.tech-orbit-icon[data-ring="1"] {
  border-color: rgba(0, 240, 255, 0.1);
}
.tech-orbit-icon[data-ring="1"]:hover {
  color: var(--cyan);
}

.tech-orbit-icon[data-ring="2"] {
  border-color: rgba(124, 58, 237, 0.08);
}
.tech-orbit-icon[data-ring="2"]:hover {
  color: var(--violet-bright);
  border-color: var(--violet);
  box-shadow: var(--shadow-neon-violet);
}

.tech-orbit-icon[data-ring="3"] {
  border-color: rgba(57, 255, 20, 0.06);
}
.tech-orbit-icon[data-ring="3"]:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: var(--shadow-neon-green);
}

@media (max-width: 768px) {
  .tech-orbit-icon {
    width: 42px;
    height: 42px;
  }
  .tech-orbit-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ========== CONTACT SECTION ========== */
#contact {
  min-height: 80vh;
  padding: var(--space-3xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.contact-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.contact-heading {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
  color: var(--cyan);
}

.contact-subtext {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: 0 0 20px rgba(5, 5, 8, 0.9), 0 0 40px rgba(5, 5, 8, 0.6);
}

.contact-socials {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.contact-email a {
  color: var(--cyan);
  position: relative;
  padding-bottom: 2px;
}

.contact-email a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan-glow);
  transition: width var(--dur-normal) var(--ease-out);
}

.contact-email a:hover::after {
  width: 100%;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(0, 240, 255, 0.04);
  color: var(--text-dim);
  font-size: var(--fs-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer span {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
}
