/* Custom CSS Styling for REZZION Premium 3D Website */

/* Custom Font Versa Setup */
@font-face {
  font-family: 'Versa';
  src: local('Versa'), local('Versa-Bold'), local('VersaBold'),
       url('/versa.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Reset and CSS System Tokens */
:root {
  /* Default Dark Theme Map */
  --color-bg-base: #030306;
  --color-bg-alt: #0a0a14;
  --color-accent-cyan: #00f2fe;
  --color-accent-purple: #9d4edd;
  --color-accent-pink: #ff007f;
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-btn-text: #030306;
  
  --glass-bg: rgba(6, 6, 12, 0.55);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: rgba(0, 242, 254, 0.15);
  
  --shadow-color: rgba(0, 0, 0, 0.55);
  --logo-filter: none;
  
  --font-tech: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-base: 'Space Grotesk', -apple-system, sans-serif;
  --font-versa: 'Versa', 'Syncopate', 'Orbitron', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  --z-canvas: -1;
  --z-normal: 1;
  --z-header: 100;
  --z-cursor: 999;
  --z-loader: 1000;
  --z-toast: 1001;
}

[data-theme="light"] {
  /* Light Theme Map */
  --color-bg-base: #f1f5f9;
  --color-bg-alt: #e2e8f0;
  --color-accent-cyan: #0284c7; 
  --color-accent-purple: #7c3aed; 
  --color-accent-pink: #db2777; 
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-btn-text: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-glow: rgba(2, 132, 199, 0.15);
  
  --shadow-color: rgba(15, 23, 42, 0.08);
  --logo-filter: invert(0.85) brightness(0.15) contrast(1.2);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-base);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-cyan) var(--color-bg-base);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan);
}

/* Loader Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #020204;
  z-index: var(--z-loader);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-versa);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-text-primary), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-glow 2s infinite alternate;
}

.loader-tagline {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.loader-spinner-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--color-accent-cyan);
  border-bottom: 3px solid var(--color-accent-cyan);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite;
}

.loader-spinner-inner {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 3px solid transparent;
  border-left: 2px solid var(--color-accent-purple);
  border-right: 2px solid var(--color-accent-purple);
  border-radius: 50%;
  animation: spin-reverse 1.2s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite;
}

.loader-spinner-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent-pink);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent-pink);
  animation: pulse-dot 1s ease-in-out infinite alternate;
}

.loader-text {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.2rem;
  margin-bottom: 0.5rem;
}

.loader-progress {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-cyan);
  margin-top: 1rem;
}

/* High Tech Loader Terminal */
.loader-terminal {
  max-width: 440px;
  width: 90vw;
  margin: 1.5rem auto;
  background: rgba(6, 6, 12, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.05);
  font-family: monospace;
  text-align: left;
  opacity: 0.9;
}

.terminal-header {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.08rem;
  margin-left: auto;
  text-transform: uppercase;
}

.terminal-body {
  padding: 1rem;
  height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  scrollbar-width: none;
}

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

.term-line {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  letter-spacing: 0.03rem;
  animation: type-in 0.2s ease-out;
}

.term-line.ok {
  color: #10b981;
}

.term-line.warning {
  color: #f59e0b;
}

.term-line.info {
  color: var(--color-accent-cyan);
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

@keyframes type-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Interactive Cursor */
#custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: var(--z-cursor);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

#custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: var(--z-cursor);
}

.hover-active #custom-cursor {
  width: 50px;
  height: 50px;
  border-color: var(--color-accent-pink);
  background-color: rgba(255, 0, 127, 0.05);
}

.hover-active #custom-cursor-dot {
  background-color: var(--color-accent-pink);
}

/* Background canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  background-color: var(--color-bg-base);
}

/* Scroll progress bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.02);
  z-index: var(--z-header);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-purple), var(--color-accent-pink));
  box-shadow: 0 0 8px var(--color-accent-cyan);
}

/* Typography elements */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-purple) 50%, var(--color-accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white {
  color: var(--color-text-primary);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z-header);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.2rem;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.nav-logo:hover {
  text-shadow: 0 0 10px var(--color-accent-cyan);
}

.logo-badge {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-secondary);
  letter-spacing: 0.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-snappy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-purple));
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Button aesthetics */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--color-btn-text);
  background: var(--color-accent-cyan);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  transition: var(--transition-smooth);
}

/* Theme Switcher Toggle Button */
.btn-theme-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  cursor: pointer;
  margin-right: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

/* Light mode icon configurations */
[data-theme="light"] .sun-icon {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}
[data-theme="light"] .moon-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
}

/* Dark mode icon configurations */
.sun-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
}
.moon-icon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

/* Nav Logo Styles */
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-logo-img {
  height: 56px;
  width: auto;
  filter: var(--logo-filter);
  transition: var(--transition-smooth);
}

.nav-logo-link:hover .nav-logo-img {
  transform: rotate(12deg) scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-versa);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

/* Footer Logo Styles */
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  filter: var(--logo-filter);
}

.footer-logo-text {
  font-family: var(--font-versa);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Mobile Nav Styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.mobile-link {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-secondary);
  letter-spacing: 0.2rem;
  transition: var(--transition-smooth);
}

.mobile-link:hover {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 15px var(--color-accent-cyan);
}

/* Layout Content Wrapping */
.content-wrapper {
  position: relative;
  z-index: var(--z-normal);
  width: 100%;
}

.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 10% 4rem 10%;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Hero Section specific styles */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  position: relative;
}

.hero-text-content {
  max-width: 650px;
}

.eyebrow-text {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25rem;
  color: var(--color-accent-cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.hero-title {
  font-family: var(--font-tech);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.05rem;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-scroll-prompt {
  position: absolute;
  bottom: -40px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-mouse {
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.5s infinite;
}

.scroll-text {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  color: var(--color-text-muted);
}

/* Glassmorphic Panel/Card Styling */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: var(--mouse-y, 0px);
  left: var(--mouse-x, 0px);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glass-glow) 0%, rgba(0, 0, 0, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 242, 254, 0.03);
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-accent-cyan);
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.card-eyebrow {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-tech);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-description {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.feature-list li strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.bullet-glow {
  display: inline-block;
  margin-top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-cyan);
  box-shadow: 0 0 8px var(--color-accent-cyan);
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--color-accent-cyan);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.card-link .arrow {
  transition: transform 0.3s;
}

.card-link:hover {
  color: var(--color-text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.card-link:hover .arrow {
  transform: translateX(5px);
}

/* Alternating Panel Positioning & GSAP animations states */
.panel-left {
  transform: translateX(-50px);
  opacity: 0;
}

.panel-right {
  transform: translateX(50px);
  opacity: 0;
}

.fade-in-card.active {
  transform: translateX(0);
  opacity: 1;
}

/* Contact Portal Layout */
.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-lead-text {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-item-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-accent-cyan);
}

.contact-item-details {
  display: flex;
  flex-direction: column;
}

.contact-item-details .label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1rem;
}

.contact-item-details .value {
  font-size: 1rem;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-snappy);
}

a.contact-item-details .value:hover {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
}

/* Social media links styling */
.social-management {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2.5rem;
}

.social-section-title {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.social-icon-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-circle-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-circle-btn svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle-btn:hover {
  transform: translateY(-4px);
  color: var(--color-text-primary);
}

.social-circle-btn:hover svg {
  transform: scale(1.15);
}

/* Colors for individual platforms */
.social-circle-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.4);
  color: #ffffff;
}

.social-circle-btn.twitter:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  color: #000000;
}

.social-circle-btn.github:hover {
  background: #24292e;
  border-color: #24292e;
  box-shadow: 0 0 15px rgba(36, 41, 46, 0.4);
  color: #ffffff;
}

.social-circle-btn.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  color: #ffffff;
}

.social-circle-btn.instagram:hover {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
  color: #ffffff;
}

/* Tooltip styles */
.social-circle-btn .tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(6, 6, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.social-circle-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light theme overrides */
[data-theme="light"] .social-circle-btn {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--color-text-secondary);
}

[data-theme="light"] .social-circle-btn .tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--color-text-primary);
}

/* Contact Form Specifics */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-base);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.form-group select option {
  background-color: var(--color-bg-alt);
  color: var(--color-text-primary);
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.send-icon {
  transition: transform 0.3s;
}

.form-submit-btn:hover .send-icon {
  transform: translate(3px, -3px);
}

/* Toast Notifications styling */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 242, 254, 0.1);
  color: var(--color-text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  transform: translateX(0);
}

.toast-success-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-cyan);
  box-shadow: 0 0 6px var(--color-accent-cyan);
}

/* Footer layout and style */
footer {
  background: #020204;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5rem 10% 3rem 10%;
  position: relative;
  z-index: var(--z-normal);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-family: var(--font-tech);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.3rem;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 6rem;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.links-title {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--color-text-muted);
}

.links-group ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.85rem;
}

.links-group a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-snappy);
}

.links-group a:hover {
  color: var(--color-accent-cyan);
  padding-left: 3px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.copyright-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.8rem;
  border-radius: 60px;
}

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

.animate-pulse-green {
  animation: pulse-green 1.5s infinite;
}

.status-text {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: #10b981;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scroll-wheel-anim {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes logo-glow {
  0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
  100% { text-shadow: 0 0 20px rgba(0, 242, 254, 0.5); }
}

/* Responsive Scaling Queries */
@media (max-width: 1024px) {
  .section {
    padding: 6rem 6% 4rem 6%;
  }
  
  header {
    padding: 1.5rem 2.25rem;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  
  nav {
    display: none;
  }
  
  .header-action {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .spacer-col {
    display: none;
  }
  
  .glass-card {
    padding: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Natural flow stack for About section on touch devices */
  #about.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    height: auto !important;
    padding-top: 8rem;
    gap: 3.5rem;
  }
  
  .hero-center-brand {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 1rem;
  }
  
  .hero-intro-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none;
    overflow-y: visible;
    width: 100%;
  }
  
  .hero-vision-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none;
    overflow-y: visible;
    width: 100%;
  }
  
  #heroScrollPrompt {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 5% 4rem 5%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-links {
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Light Mode Design System Overrides */
[data-theme="light"] footer {
  background: #e2e8f0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(15, 23, 42, 0.015);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-text-primary);
}

[data-theme="light"] .form-group select option {
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
}

[data-theme="light"] .footer-divider {
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .btn-secondary {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--color-text-primary);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .contact-item-icon {
  background: rgba(15, 23, 42, 0.015);
  border-color: rgba(15, 23, 42, 0.05);
}


[data-theme="light"] .scroll-mouse {
  border-color: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .card-icon-container {
  background: rgba(15, 23, 42, 0.015);
  border-color: rgba(15, 23, 42, 0.05);
}

/* Centered Welcome Screen Branding */
.hero-center-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  width: 100%;
}

.hero-center-logo {
  height: clamp(140px, 22vh, 240px);
  width: auto;
  filter: var(--logo-filter);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.hero-center-title {
  font-family: var(--font-versa);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.6rem;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  transition: var(--transition-smooth);
}

.hero-center-tagline {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

/* Slide-In Glass Intro Card */
.hero-intro-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  max-width: 880px;
  width: 92%;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.hero-intro-card::-webkit-scrollbar {
  display: none;
}

.hero-title-main {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02rem;
  margin-bottom: 1.5rem;
}

/* Light mode adjustments for centered title shadow */
[data-theme="light"] .hero-center-title {
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* Light mode overrides for mobile navigation */
[data-theme="light"] .mobile-nav {
  background: rgba(241, 245, 249, 0.96);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-nav .mobile-link {
  color: var(--color-text-secondary);
}
[data-theme="light"] .mobile-nav .mobile-link:hover,
[data-theme="light"] .mobile-nav .mobile-link.active {
  color: var(--color-accent-cyan);
}

/* Form submit button inline spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Custom Cursor hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  #custom-cursor, #custom-cursor-dot {
    display: none !important;
  }
}

/* Height-based Viewport Scaling and Centering Adjustments */
@media (max-height: 850px) and (min-width: 1025px) {
  .hero-center-logo {
    height: clamp(120px, 20vh, 180px);
    margin-bottom: 1.25rem;
  }
  .hero-intro-card {
    top: 50%;
    padding: 2rem;
  }
  .hero-title-main {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-height: 700px) and (min-width: 1025px) {
  .hero-center-logo {
    height: clamp(100px, 18vh, 130px);
    margin-bottom: 1rem;
  }
  .hero-intro-card {
    top: 50%;
    padding: 1.5rem 2rem;
  }
  .hero-title-main {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .hero-center-title {
    font-size: 2.8rem;
  }
}

/* Mobile Screen Layout & Overflow Adjustments */
@media (max-width: 768px) {
  .hero-center-logo {
    height: clamp(110px, 18vh, 160px);
    margin-bottom: 1rem;
  }
  .hero-center-title {
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
  }
  .hero-center-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
  }
  .hero-intro-card {
    padding: 1.5rem;
  }
  .hero-title-main {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-buttons {
    gap: 1rem;
    flex-direction: column;
  }
  .hero-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   REZZION NEW COMPONENT STYLING (ABOUT SEQUENCING & SERVICES GRIDS)
   ========================================================================== */

/* 1. Hero Vision / Mission / Founder Card Styling */
.hero-vision-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  max-width: 1200px;
  width: 92%;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  padding: 3.25rem;
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.hero-vision-card::-webkit-scrollbar {
  display: none;
}

.vision-founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.25rem;
  margin-bottom: 0.5rem;
}

/* Typography Overrides for Font-Large and Font-Small classes */
.hero-subtitle.font-large {
  font-size: 1.35rem;
}

.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-subtitle.font-small {
  font-size: 1.05rem;
}

/* Quote style in Intro Card */
.philosophy-quote {
  position: relative;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent-pink);
  background: rgba(255, 0, 127, 0.02);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}

.philosophy-quote p {
  font-family: var(--font-base);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin: 0;
}

.quote-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 15px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, rgba(255, 0, 127, 0) 70%);
  pointer-events: none;
}

/* Column headers and labels */
.card-heading-tech {
  font-family: var(--font-tech);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--color-accent-cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.2);
}

/* Vision / Mission Column styles */
.vision-block {
  margin-bottom: 1.75rem;
}

.vision-text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.mission-block {
  margin-bottom: 0.5rem;
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.mission-list li span:last-child {
  flex: 1;
}

/* Founder Spotlight badge styling */
.founder-avatar-container {
  position: relative;
  height: 90px;
  background: rgba(0, 242, 254, 0.02);
  border: 1px dashed rgba(0, 242, 254, 0.25);
  border-radius: 6px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  overflow: hidden;
}

.founder-avatar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 242, 254, 0.04) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0, 242, 254, 0.04) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.6;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 8px var(--color-accent-cyan);
  animation: scan-line 3s linear infinite;
  opacity: 0.6;
}

@keyframes scan-line {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.avatar-info-header {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.founder-name {
  font-family: var(--font-tech);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.founder-title {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  color: var(--color-accent-cyan);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.founder-bio {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.founder-bio-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Card Action Row sharing buttons */
.card-actions-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* 2. Services Grid Layout */
.large-services-card {
  max-width: 840px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin: 2rem 0;
}

.service-item-card {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0));
  pointer-events: none;
}

.service-item-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(0, 242, 254, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-num {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  opacity: 0.85;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.35);
}

.service-card-title {
  font-family: var(--font-tech);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02rem;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Light Theme overrides */
[data-theme="light"] .philosophy-quote {
  background: rgba(219, 39, 119, 0.02);
}

[data-theme="light"] .founder-avatar-container {
  background: rgba(2, 132, 199, 0.02);
  border-color: rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .founder-avatar-container::before {
  background: linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
              linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .card-actions-row {
  border-color: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .service-item-card {
  background: rgba(15, 23, 42, 0.01);
  border-color: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .service-item-card:hover {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(2, 132, 199, 0.22);
}

/* Height-based Viewport Scaling overrides for Card 2 */
@media (max-height: 850px) and (min-width: 1025px) {
  .hero-vision-card {
    top: 50%;
    padding: 2rem;
    max-width: 1040px;
  }
  
  .card-heading-tech {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
  
  .vision-founder-grid {
    gap: 1.75rem;
  }
  
  .vision-block {
    margin-bottom: 1rem;
  }
  
  .vision-text, .mission-list li, .founder-bio {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  
  .founder-avatar-container {
    height: 80px;
    margin: 0.75rem 0;
    padding: 0.75rem 1.25rem;
  }
  
  .founder-name {
    font-size: 1.25rem;
  }
  
  .founder-bio-sub {
    font-size: 0.88rem;
  }
  
  .card-actions-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
}

@media (max-height: 720px) and (min-width: 1025px) {
  .hero-vision-card {
    top: 50%;
    padding: 1.5rem 2rem;
    max-width: 920px;
  }
  
  .card-heading-tech {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .vision-founder-grid {
    gap: 1.25rem;
  }
  
  .vision-block {
    margin-bottom: 0.75rem;
  }
  
  .vision-text, .mission-list li, .founder-bio {
    font-size: 0.88rem;
    line-height: 1.4;
  }
  
  .founder-avatar-container {
    height: 70px;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
  }
  
  .founder-name {
    font-size: 1.15rem;
  }
  
  .founder-bio-sub {
    font-size: 0.82rem;
  }
  
  .card-actions-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
}

/* Width-based Media overrides (Tablet & Mobile stack) */
@media (max-width: 1024px) {
  .large-services-card {
    max-width: 100%;
  }
  
  .hero-vision-card {
    max-width: 780px;
    top: 50%;
    padding: 2.25rem;
  }
  
  .vision-founder-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .card-actions-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .card-actions-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-vision-card {
    padding: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .service-item-card {
    padding: 1rem;
  }
}

/* ==========================================================================
   REZZION DEDICATED FOUNDER PORTAL & HOLOGRAPHIC SCANNER STYLING
   ========================================================================== */

/* 1. Vision & Mission Grid (Replaces old vision-founder-grid) */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 0.5rem;
}

.vision-block-solo {
  margin-top: 1.5rem;
}

/* 2. Dedicated Founder Section Cards */
.founder-badge-card {
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

.founder-profile-card {
  max-width: 760px;
  width: 100%;
}

/* Hologram Visual ID Scanner Card */
.founder-badge-hologram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 242, 254, 0.015);
  border: 1px dashed rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}

.founder-badge-hologram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.4;
  pointer-events: none;
}

.hologram-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent-cyan), transparent);
  box-shadow: 0 0 12px var(--color-accent-cyan);
  animation: scanner-laser 4s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes scanner-laser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.hologram-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.hologram-header .holo-status {
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.hologram-avatar-placeholder {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.holo-avatar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45));
}

.holo-ring {
  fill: none;
  stroke: var(--color-accent-cyan);
  transform-origin: center;
}

.holo-ring.outer {
  stroke-width: 1.5;
  stroke-dasharray: 12 18;
  animation: spin-clockwise 20s linear infinite;
}

.holo-ring.inner {
  stroke-width: 1;
  stroke-dasharray: 6 8;
  animation: spin-counter-clockwise 12s linear infinite;
}

.holo-triangle {
  fill: none;
  stroke: var(--color-accent-pink);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
  transform-origin: center;
  animation: pulse-scale 3s ease-in-out infinite;
}

.holo-axis {
  stroke: rgba(0, 242, 254, 0.2);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
}

@keyframes spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse-scale {
  0% { transform: scale(0.96); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0.6; }
}

.hologram-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  padding-top: 1.25rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.05rem;
}

.holo-meta-row {
  display: flex;
  justify-content: space-between;
}

.holo-meta-label {
  color: var(--color-text-muted);
}

.holo-meta-val {
  color: var(--color-text-primary);
  font-weight: 600;
}

.holo-meta-val.text-green {
  color: #10b981;
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Biography text styling */
.founder-subtitle-card {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  color: var(--color-accent-cyan);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.founder-main-bio {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.founder-main-bio-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Light Mode Overrides for Hologram and Scanner */
[data-theme="light"] .founder-badge-hologram {
  background: rgba(2, 132, 199, 0.015);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: inset 0 0 20px rgba(2, 132, 199, 0.05);
}

[data-theme="light"] .founder-badge-hologram::before {
  background: linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
              linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hologram-header {
  border-bottom-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .hologram-meta {
  border-top-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .holo-axis {
  stroke: rgba(2, 132, 199, 0.2);
}

/* Height and Width based Responsive Overrides for new elements */
@media (max-height: 850px) and (min-width: 1025px) {
  .founder-badge-hologram {
    padding: 1.75rem 1.5rem;
  }
  .hologram-avatar-placeholder {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
  }
  .founder-subtitle-card {
    margin-bottom: 1.25rem;
  }
  .founder-main-bio {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }
  .founder-main-bio-sub {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-height: 720px) and (min-width: 1025px) {
  .founder-badge-hologram {
    padding: 1.25rem;
  }
  .hologram-avatar-placeholder {
    width: 110px;
    height: 110px;
    margin-bottom: 1rem;
  }
  .hologram-header {
    margin-bottom: 1rem;
  }
  .founder-subtitle-card {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .founder-main-bio {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .founder-badge-card {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .founder-profile-card {
    max-width: 100%;
  }
}

/* ==========================================================================
   DROPDOWN SUB-NAVIGATION STYLING
   ========================================================================== */

.nav-item-dropdown {
  position: relative;
}

/* Glassmorphic Dropdown Menu Panel */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.85rem 0;
  min-width: 180px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.05);
  z-index: 110;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}

/* Invisible bridge to prevent hover loss between nav-link and dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: var(--transition-snappy);
  white-space: nowrap;
}

.dropdown-link:hover {
  color: var(--color-accent-cyan);
  background: rgba(255, 255, 255, 0.015);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.35);
  padding-left: 1.75rem;
}

/* Dropdown down vector arrow */
.dropdown-arrow {
  display: inline-block;
  font-size: 0.6rem;
  margin-left: 0.35rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
  pointer-events: none;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--color-accent-cyan);
}

/* Mobile sub-item indents inside drawer menu */
.mobile-link.sub-item {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15rem;
  margin-top: -1.25rem;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.mobile-link.sub-item:hover {
  color: var(--color-accent-pink);
  text-shadow: 0 0 10px var(--color-accent-pink);
  opacity: 1;
}

/* Extra small mobile screen optimization to prevent logo overlap */
@media (max-width: 480px) {
  .nav-logo-img {
    height: 40px !important;
  }
  .nav-logo-text {
    font-size: 1.1rem !important;
    letter-spacing: 0.12rem !important;
  }
  .logo-badge {
    display: none !important;
  }
  .mobile-menu-btn {
    gap: 5px !important;
  }
}
