:root {
  --bg-dark: #000000;
  --text-main: #f5f5f7;
  --text-dim: #a1a1a6;
  --accent: #eab308; /* Cinematic Amber */
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(15, 15, 15, 0.5);
  --glass-hover: rgba(25, 25, 25, 0.7);
  --font-serif: 'Syncopate', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow: hidden; /* Prevent body scroll, layout handles it */
  -webkit-font-smoothing: antialiased;
}

/* Video Background */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: var(--bg-dark); /* Fallback */
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.55) contrast(1.1);
}

.video-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, #000000 100%);
  z-index: -1;
  opacity: 0.8;
}

.noise-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

/* Layout */
.layout-split {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Left Sidebar */
.sidebar {
  width: 40%;
  padding: 4rem;
  border-right: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 10;
  overflow: hidden; /* Lock scroll on left panel */
}

.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  gap: 3rem;
}

.intro-block {
  display: flex;
  flex-direction: column;
}

.profile-avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 80%);
  animation: pulseAvatar 4s ease-in-out infinite;
}

@keyframes pulseAvatar {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(234, 179, 8, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  transition: transform 0.4s;
}

.profile-avatar:hover {
  transform: rotate(5deg) scale(1.1);
}

.role-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.massive-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 80%;
  font-weight: 300;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

/* Cinematic Nav */
.cinematic-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-btn {
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer; /* Added cursor pointer */
}

.btn-num {
  font-size: 0.7rem;
  font-weight: 300;
}

.btn-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-line {
  height: 1px;
  background-color: var(--text-main);
  width: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-btn:hover {
  opacity: 1;
  transform: translateX(10px);
}

.menu-btn.active {
  color: var(--accent);
  opacity: 1;
  transform: translateX(20px);
}

.menu-btn.active .btn-line {
  background-color: var(--accent);
  width: 40px;
}

/* Right Content Area */
.content-scroll {
  width: 60%;
  height: 100vh;
  overflow: hidden; /* Lock scroll on right panel */
  padding: 4rem;
  scroll-behavior: smooth;
  position: relative;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.content-scroll::-webkit-scrollbar {
  display: none;
}

.content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.view-panel {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) translateX(50px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  will-change: transform, opacity;
}

.view-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Glass Components */
.glass-bento, .glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 20px;
  transition: transform 0.4s, background 0.4s;
  transform: translateZ(0); /* Fix delay blur bug on Chromium/Safari */
}

.glass-bento:hover, .glass-card:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
}

.cinematic-heading {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dim);
}

.separator {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.expertise-tags span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--accent);
  background: rgba(234, 179, 8, 0.05); /* Yellow tint to match standard accents */
  transition: all 0.3s ease;
  user-select: none;
  cursor: default;
}

.expertise-tags span:hover {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateY(-2px);
}

/* Gaming Section */
.game-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease;
}

.game-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.game-logo-wrapper {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.game-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.game-info h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.game-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Favourites / Lifestyle Grid */
.cinematic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.glass-card {
  padding: 2rem;
}

.span-2 {
  grid-column: span 2;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.glass-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.glass-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Now Section */
.now-status-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.time-readout {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.blinking {
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.timezone {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 300;
}

.status-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.glitch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glitch-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dim);
}

.glitch-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-serif);
}

/* Links Collection */
.links-collection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mag-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.4s;
}

.mag-link:hover {
  background: var(--glass-hover);
  padding-left: 3rem;
}

.primary-mail {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

.link-left {
  display: flex;
  flex-direction: column;
}

.link-label {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.link-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.arrow-up {
  font-size: 2rem;
  font-family: var(--font-serif);
  transition: transform 0.4s;
}

.mag-link:hover .arrow-up {
  transform: translate(5px, -5px);
}

.primary-mail:hover .arrow-up {
  transform: translateX(10px);
}

.bottom-info {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Animations */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .layout-split {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  
  body {
    overflow-y: auto;
  }
  
  .sidebar, .content-scroll {
    width: 100%;
    height: auto;
    overflow: visible; /* Override lock scroll on mobile */
  }
  
  .sidebar {
    padding: 2rem;
    position: relative; /* Change from sticky so it scrolls away naturally or keep it if wanted, let's keep sticky */
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    z-index: 20;
  }
  
  .content-scroll {
    padding: 2rem;
    min-height: 60vh;
  }
  
  .view-panel {
    transform: translateY(0) translateX(20px);
    position: relative;
    display: none;
  }
  
  .view-panel.active {
    display: block;
    transform: translateY(0) translateX(0);
  }
  
  .massive-title {
    font-size: 3rem;
  }
  
  .cinematic-nav {
    flex-direction: row;
    margin-top: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .cinematic-nav::-webkit-scrollbar {
    display: none;
  }

  .menu-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .menu-btn.active {
    transform: translateX(0) scale(1.05);
  }
}

@media (max-width: 768px) {
  .glass-bento, .glass-card {
    padding: 1.5rem;
  }
  .massive-title {
    font-size: 2.2rem;
  }
  .cinematic-grid {
    grid-template-columns: 1fr;
  }
  .glass-card.span-2 {
    grid-column: span 1;
  }
  .time-readout {
    font-size: 2rem;
  }
  .game-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .mag-link {
    padding: 1.5rem;
  }
  .sidebar {
    padding: 1.5rem;
  }
  .content-scroll {
    padding: 1.5rem;
  }
}

/* LINKS */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.link-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.link-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.link-card:hover .link-arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.link-card.primary-link {
  background: var(--text-main);
  color: var(--text-dark);
}

.link-card.primary-link .link-info p {
  color: rgba(0,0,0,0.6);
}

.link-card.primary-link .link-arrow {
  color: var(--text-dark);
}

.link-card.primary-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.link-card.primary-link:hover .link-arrow {
  color: var(--text-dark);
  transform: translateX(4px);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    padding: 16px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .nav-item {
    flex: 1 1 auto;
    text-align: center;
  }
}
