@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Mono&display=swap");

:root {
  --font-main: "Outfit", sans-serif;
  --font-mono: "Space Mono", monospace;
  
  --bg-dark: #020205;
  --primary: hsl(260, 100%, 70%);
  --secondary: hsl(190, 100%, 50%);
  --accent-blue: #00e5ff;
  
  --text-main: #ffffff;
  --text-dim: #a0a0b0;
  --glass: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden; /* Prevent scrolling, we handle it via Wheel event */
  height: 100vh;
  width: 100vw;
}

#canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.1) 50%);
  background-size: 100% 4px;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0; /* Reduced from 3rem */
  mix-blend-mode: difference;
}

.header-inner {
  display: flex;
  justify-content: flex-end; /* Move logo to the right */
  padding: 0 3rem; /* Adjusted from 4rem */
  width: 100%;
}

.logo {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  font-size: 1.2rem;
}

/* Navigation Buttons */
.nav-controls {
  position: fixed;
  right: 4rem;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1001;
}

.nav-btn {
  background: rgba(140, 160, 255, 0.05);
  border: 2px solid rgba(140, 160, 255, 0.3);
  color: var(--primary);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 20px rgba(140, 160, 255, 0.1);
}

.nav-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary);
  transform: translateY(-5px);
}

.nav-btn svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .header-inner { 
    padding: 0 1.5rem; 
    justify-content: center; /* Center logo on very small screens */
  }
  
  .scene-section {
    justify-content: center; /* Center content on mobile */
    padding: 10rem 1.5rem 10rem 1.5rem; /* Increased bottom padding to 10rem */
    text-align: center;
  }

  .glass {
    padding: 1.5rem;
    width: 100%;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem !important;
  }

  .nav-controls { 
    right: 1.5rem; 
    bottom: 1.5rem; 
  }
  
  .nav-btn { 
    width: 55px; 
    height: 55px; 
  }

  /* Force grid/flex items to stack on mobile */
  div[style*="grid-template-columns"], 
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  div[style*="justify-content: flex-end"] {
    justify-content: center !important;
  }
}

/* 3D Scene */
#app {
  height: 100vh;
  perspective: 2000px;
  overflow: hidden;
}

#scene-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.scene-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align content to right */
  padding: 8rem 10% 10rem 40%; /* Increased bottom padding to 10rem */
  text-align: left; /* Keep text left aligned within the right block */
  opacity: 0;
  pointer-events: none;
  transition: 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease-in-out,
    filter 1s ease;
  transform: translateZ(-2000px) rotateX(10deg);
  filter: blur(20px);
}

.scene-section.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0) rotateX(0);
  filter: blur(0);
}

.scene-section.prev {
  opacity: 0;
  transform: translateZ(1000px) scale(1.5);
  filter: blur(30px);
}

.scene-section.next {
  opacity: 0;
  transform: translateZ(-2000px);
}

/* Elements */
h1 {
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 4px; /* More tech/sharp look */
  padding: 3rem;
  text-align: left;
}

.date-tag {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  border: 1px solid var(--accent-blue);
  padding: 0.1rem 0.5rem;
}

.btn {
  font-family: var(--font-mono);
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: var(--transition);
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  font-weight: 800;
}

.btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 30px var(--primary);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}
