:root {
  /* Premium Color Palette */
  --bg-primary: #0a0b0f;
  --bg-secondary: #0f1115;
  --bg-tertiary: #151821;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.05);
  
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #f59e0b;
  --accent-glow: rgba(0, 212, 255, 0.3);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);
  
  /* Premium Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  --transition-slow: 350ms ease-out;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-family-primary);
  background: 
    radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom center, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Animated Background Elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(124, 58, 237, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(245, 158, 11, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(124, 58, 237, 0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particleFloat 15s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes backgroundShift {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  25% { transform: translateX(-10px) translateY(-5px) scale(1.02); }
  50% { transform: translateX(5px) translateY(-10px) scale(0.98); }
  75% { transform: translateX(-5px) translateY(5px) scale(1.01); }
}

@keyframes particleFloat {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-30px) translateX(10px); }
  66% { transform: translateY(-20px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

/* Enhanced Brand Dot */
.shell-header .brand .dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 
    0 0 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.shell-header .brand .dot::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Shell Layout */
body.iframe-shell {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.shell-header {
  flex-shrink: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.shell-header .brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 2px solid transparent;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: brandBoxFloat 4s ease-in-out infinite;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(124, 58, 237, 0.1);
}

/* Removed animated border shimmer - no color shifting */

/* Sparkle effect */
.shell-header .brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: sparkleSlide 2s ease-in-out infinite;
  pointer-events: none;
}

/* Removed brandBoxShimmer - keeping static background */

@keyframes brandBoxFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Removed borderShimmer animation */

@keyframes sparkleSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Typing animation for brand text */
.shell-header .brand .brand-text {
  overflow: hidden;
  border-right: 3px solid rgba(0, 212, 255, 0.8);
  white-space: nowrap;
  animation: typing 4s steps(30, end) 1s 1 normal both, blink 0.75s step-end infinite;
  text-shadow: 
    0 0 10px rgba(0, 212, 255, 0.5),
    0 0 20px rgba(124, 58, 237, 0.3);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(0, 212, 255, 0.8);
  }
}

/* Removed duplicate - enhanced version exists above */

.shell-nav {
  display: flex;
  gap: 20px;
}

/* Removed container box - now individual boxes per link */

/* Removed navBoxShimmer - keeping static background */

@keyframes navItemFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Enhanced Navigation with Magnetic Hover */
.shell-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border-radius: 12px;
  text-shadow: 
    0 0 10px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 20px rgba(124, 58, 237, 0.3),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
  animation: navItemFloat 3.5s ease-in-out infinite;
}

/* Removed textShimmer - keeping static text glow */

/* Stagger float animations for each nav item */
.shell-nav a:nth-child(1) {
  animation-delay: 0s;
}

.shell-nav a:nth-child(2) {
  animation-delay: 0.5s;
}

.shell-nav a:nth-child(3) {
  animation-delay: 1s;
}

.shell-nav a:nth-child(4) {
  animation-delay: 1.5s;
}

.shell-nav a:nth-child(5) {
  animation-delay: 2s;
}

.shell-nav a:nth-child(6) {
  animation-delay: 2.5s;
}

/* Stagger sparkle animations for each nav item */
.shell-nav a:nth-child(1)::after {
  animation-delay: 0.5s;
}

.shell-nav a:nth-child(2)::after {
  animation-delay: 1s;
}

.shell-nav a:nth-child(3)::after {
  animation-delay: 1.5s;
}

.shell-nav a:nth-child(4)::after {
  animation-delay: 2s;
}

.shell-nav a:nth-child(5)::after {
  animation-delay: 2.5s;
}

.shell-nav a:nth-child(6)::after {
  animation-delay: 3s;
}

/* Magnetic glow effect behind link */
.shell-nav a::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: -1;
}

/* Underline effect */
.shell-nav a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: sparkleSlide 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.shell-nav a:hover::after {
  animation: none;
  top: auto;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.shell-nav a:hover {
  color: #fff;
}

.shell-nav a:hover::before {
  opacity: 1;
  transform: scale(1.3);
  animation: magneticPulse 1s ease-out infinite;
}

.shell-nav a:hover::after {
  width: 100%;
}

@keyframes magneticPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.3;
  }
}

#content-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  overflow-y: auto; /* Enable scrolling */
  overflow-x: hidden;
}

.shell-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.shell-footer p {
  margin: 0;
}

.shell-footer .footer-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.shell-footer .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.shell-footer .footer-links a:hover {
  color: rgba(212, 175, 55, 0.9);
}

.shell-footer .footer-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* Content Pages Shared Styles */
html, body { /* For content iframes */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.content-wrapper {
  min-height: 100%;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Landing Page Specific Overrides */
.landing-page html,
.landing-page body {
  overflow: hidden;
}

.landing-page .content-wrapper {
  height: 100%;
  padding: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.landing-page .image-container {
  height: 100vh;
  width: 100vw;
}

.landing-page .hero-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.panel {
  max-width: 1200px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Allow overflow on desktop for list item hover effect */
@media (min-width: 769px) {
  .panel {
    overflow: visible;
  }
}

/* 3D Transforms for Panels */
.panel {
  transform-style: preserve-3d;
  transition: all var(--transition-normal);
}

.panel:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    var(--shadow-glass),
    0 0 60px rgba(0, 212, 255, 0.2),
    0 0 120px rgba(124, 58, 237, 0.1);
}

.panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(0, 212, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.panel:hover::after {
  opacity: 1;
}

.panel-header {
  padding: 30px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h2 {
  color: rgba(212, 175, 55, 0.9);
  font-size: 2rem;
  margin: 0;
}

.panel-body {
  padding: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.8;
  overflow: visible;
}

.panel-body p {
  margin-bottom: 1.5rem;
}

.panel-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.panel-body h2, .panel-body h3 {
  color: rgba(212, 175, 55, 0.9);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.panel-body .section-title,
.panel-body .subsection-title {
  color: rgba(212, 175, 55, 0.9);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.panel-body .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.9), transparent);
  border-radius: 2px;
}

/* Panel fade-in animation */
.panel {
  opacity: 0;
  transform: translateY(20px);
}

.panel.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.panel-body ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  overflow: visible;
}

.panel-body li {
  padding: 15px 20px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(212, 175, 55, 0.8);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
}

.panel-body li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

/* Desktop/Non-Mobile: Dramatic scale-up effect */
@media (min-width: 769px) {
  .panel-body ul {
    padding: 0 40px;
  }
  
  .panel-body li:hover {
    transform: scale(1.25) translateX(0);
    background: rgba(255, 255, 255, 0.18);
    border-left-width: 6px;
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.6),
      0 0 35px rgba(212, 175, 55, 0.5),
      inset 0 0 25px rgba(212, 175, 55, 0.15);
    z-index: 100;
    padding: 20px 30px;
    backdrop-filter: blur(8px);
    margin: 20px 0;
  }
}

/* Hero */
.hero {
  width: 320px;
  height: 320px;
  margin: 0 auto 30px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

/* Form Styles (for contact) */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: rgba(212, 175, 55, 0.9);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(0, 0, 0, 0.4);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.6));
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 1), rgba(212, 175, 55, 0.8));
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.form-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
}

.form-response.success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}

.form-response.error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #e74c3c;
}

/* Clickable Areas */
.clickable-area {
  position: absolute;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.clickable-area:hover {
  background-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.6);
  }
}

/* Clickable Area Positions */
.area-1 { top: 8.99%; left: 60.39%; width: 17.67%; height: 18.14%; }
.area-2 { top: 29.63%; left: 59.83%; width: 19.00%; height: 23.30%; }
.area-3 { top: 54.76%; left: 60.28%; width: 18.56%; height: 16.15%; }
.area-4 { top: 73.41%; left: 60.61%; width: 17.67%; height: 18.14%; }

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1600;
  transition: right 0.3s;
  padding: 80px 20px 20px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00d4ff;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--accent-primary);
}

/* Index-Specific: Loading/Video */
#loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s ease, visibility 1s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

.logo-text {
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  margin-top: 20px;
}

.video-splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#vault-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unmute-reminder {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.unmute-reminder:hover {
  background: rgba(0, 0, 0, 0.5);
}

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  display: none;
}

.image-container.visible {
  display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
  .shell-nav { display: none; }
  .shell-header { padding: 15px 20px; }
  .shell-footer { padding: 15px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .shell-footer .footer-links { justify-content: center; }
  body.iframe-shell .hamburger-menu { display: block; }
}

@media (max-width: 768px) {
  .content-wrapper { padding: 20px 10px; }
  .panel-body { padding: 20px; font-size: 1rem; }
  .hero { width: 240px; height: 240px; }
  .shell-header .brand { font-size: 1rem; }
  .shell-footer { font-size: 0.75rem; }
  .mobile-menu { width: 100%; right: -100%; }
  .mobile-menu.active { right: 0; }
  #vault-video { object-fit: cover; } /* Better mobile fit */
}

@media (max-width: 480px) {
  .hamburger-menu { top: 15px; right: 15px; padding: 10px; }
  .hamburger-icon { width: 20px; height: 15px; }
  .hamburger-icon span { height: 1.5px; }
  .hamburger-icon span:nth-child(2) { top: 7px; }
  .hamburger-icon span:nth-child(3) { top: 14px; }
}

/* Custom Filmstrip Scrollbar */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 8px,
      rgba(139, 115, 85, 0.3) 8px,
      rgba(139, 115, 85, 0.3) 12px,
      transparent 12px,
      transparent 20px
    ),
    linear-gradient(180deg, #2C1810 0%, #1A0F08 50%, #2C1810 100%);
  border-radius: 0;
  border-left: 1px solid #8B7355;
  border-right: 1px solid #8B7355;
}

::-webkit-scrollbar-thumb {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 6px,
      rgba(212, 175, 55, 0.4) 6px,
      rgba(212, 175, 55, 0.4) 8px,
      transparent 8px,
      transparent 14px
    ),
    linear-gradient(180deg, #8B7355 0%, #A68B5B 20%, #8B7355 80%, #6B4E3D 100%),
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
  border-radius: 4px;
  border: 2px solid #D4AF37;
  min-height: 40px;
  box-shadow: 
    0 0 6px rgba(212, 175, 55, 0.4),
    inset 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Firefox Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #8B7355 #2C1810;
}

/* Hero Wrapper Positioning */
.hero-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

/* Kinetic Loading Screen */
#kinetic-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0b0f 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
  overflow: hidden;
}

#kinetic-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

/* Company Name Animation */
.company-name {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.company-name .letter,
.company-name .apostrophe {
  display: inline-block;
  color: #fff;
  text-shadow: 
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 40px rgba(124, 58, 237, 0.6),
    0 0 60px rgba(0, 212, 255, 0.4);
  animation: letterFloat 2s ease-in-out infinite;
  transform-origin: center;
}

/* Stagger the letter animations */
.company-name .letter:nth-child(1) { animation-delay: 0s; }
.company-name .letter:nth-child(2) { animation-delay: 0.1s; }
.company-name .apostrophe { animation-delay: 0.2s; color: var(--accent-primary); }
.company-name .letter:nth-child(4) { animation-delay: 0.3s; }
.company-name .letter:nth-child(5) { animation-delay: 0.4s; }
.company-name .letter:nth-child(6) { animation-delay: 0.5s; }
.company-name .letter:nth-child(7) { animation-delay: 0.6s; }
.company-name .letter:nth-child(8) { animation-delay: 0.7s; }

@keyframes letterFloat {
  0%, 100% {
    transform: translateY(0px) rotateZ(0deg) scale(1);
  }
  25% {
    transform: translateY(-10px) rotateZ(2deg) scale(1.05);
  }
  50% {
    transform: translateY(-5px) rotateZ(-2deg) scale(1.1);
  }
  75% {
    transform: translateY(-8px) rotateZ(1deg) scale(1.05);
  }
}

.subtitle {
  width: 100%;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--accent-tertiary);
  text-transform: uppercase;
  margin-top: 10px;
  animation: subtitleGlow 2s ease-in-out infinite;
  text-shadow: 
    0 0 10px rgba(245, 158, 11, 0.6),
    0 0 20px rgba(245, 158, 11, 0.4);
}

@keyframes subtitleGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 
      0 0 10px rgba(245, 158, 11, 0.6),
      0 0 20px rgba(245, 158, 11, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 
      0 0 20px rgba(245, 158, 11, 0.8),
      0 0 40px rgba(245, 158, 11, 0.6);
  }
}

/* Loading Text with Animated Dots */
.loading-text {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 30px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dots {
  display: inline-flex;
  gap: 3px;
  width: 40px;
}

.dot {
  animation: dotBlink 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink {
  0%, 60%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* Kinetic Bars */
.kinetic-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 60px;
  margin-top: 20px;
}

.bar {
  width: 6px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  animation: barPulse 1.2s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--accent-glow),
    0 0 20px rgba(124, 58, 237, 0.4);
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes barPulse {
  0%, 100% {
    height: 20px;
    opacity: 0.5;
  }
  50% {
    height: 60px;
    opacity: 1;
  }
}

/* Particle Field */
.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 
    0 0 10px var(--accent-primary),
    0 0 20px var(--accent-primary);
  animation: particleMove 8s linear infinite;
  opacity: 0;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-delay: 0.5s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
  background: var(--accent-secondary);
  box-shadow: 
    0 0 10px var(--accent-secondary),
    0 0 20px var(--accent-secondary);
}

.particle:nth-child(6) {
  left: 85%;
  animation-delay: 2.5s;
  animation-duration: 7.5s;
  background: var(--accent-secondary);
  box-shadow: 
    0 0 10px var(--accent-secondary),
    0 0 20px var(--accent-secondary);
}

.particle:nth-child(7) {
  left: 15%;
  animation-delay: 3s;
  animation-duration: 8.5s;
  background: var(--accent-tertiary);
  box-shadow: 
    0 0 10px var(--accent-tertiary),
    0 0 20px var(--accent-tertiary);
}

.particle:nth-child(8) {
  left: 60%;
  animation-delay: 3.5s;
  animation-duration: 7s;
  background: var(--accent-tertiary);
  box-shadow: 
    0 0 10px var(--accent-tertiary),
    0 0 20px var(--accent-tertiary);
}

@keyframes particleMove {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(1);
    opacity: 0;
  }
}

/* Responsive adjustments for loading screen */
@media (max-width: 768px) {
  .company-name {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
  
  .loading-text {
    font-size: 1.2rem;
  }
  
  .kinetic-bars {
    height: 40px;
  }
  
  .bar {
    width: 4px;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
}