/* Main Stylesheet - PixelzLab Apps Studio */
/* Terminal Hacker Dark Theme */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Terminal Hacker Dark Theme */
:root {
  /* Accent Colors */
  --color-primary: #00FF41;
  --color-primary-light: #39FF14;
  --color-secondary: #0A0F0A;
  --color-cta: #00CC33;
  --color-cta-hover: #00AA2A;
  
  /* Backgrounds */
  --color-background: #0A0A0A;
  --color-surface: rgba(0, 255, 65, 0.03);
  --color-surface-hover: rgba(0, 255, 65, 0.06);
  
  /* Text */
  --color-text: #E0E0E0;
  --color-text-muted: #6B7B6B;
  --color-text-dark: #0A0F0A;
  
  /* Surface Effect */
  --glass-bg: rgba(10, 15, 10, 0.6);
  --glass-border: rgba(0, 255, 65, 0.15);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  
  /* Borders */
  --color-border: #1A2A1A;
  --color-error: #FF3333;
  --color-success: #00FF41;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Z-Index */
  --z-base: 0;
  --z-cards: 10;
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-modal: 40;
  --z-toast: 50;
  
  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-normal: 300ms ease-out;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--color-background);
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 15% 10%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(0, 204, 51, 0.05) 0%, transparent 50%);
}

/* CRT Scanline Overlay */
.aurora-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

/* ============================================
   REDUCED MOTION ACCESSIBILITY
   Respects user's motion preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* Disable all continuous/decorative animations */
  .aurora-bg::before {
    animation: none;
  }
  
  .nav {
    animation: none;
  }
  
  .hero-logo {
    animation: none;
  }
  
  .hero-badge-dot {
    animation: none;
  }
  
  .typing-cursor {
    animation: none;
    opacity: 1;
  }
  
  .logo-text {
    animation: none;
    filter: none;
  }
  
  .copyright .brand-signature {
    animation: none;
  }
  

  
  /* Keep essential transitions but make them instant */
  * {
    transition-duration: 0.01ms !important;
  }
  
  /* Disable scroll behavior animation */
  html {
    scroll-behavior: auto;
  }
}

/* Navigation - Developer Tools Style */
.nav {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  z-index: var(--z-sticky);
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav:hover {
  border-color: rgba(0, 255, 65, 0.3);
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  gap: var(--space-8);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.nav-logo:hover .logo-image {
  opacity: 0.9;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  letter-spacing: -0.5px;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-logo:hover .logo-text::after {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-1);
  background: rgba(0, 255, 65, 0.03);
  padding: var(--space-1);
  border-radius: 8px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  display: block;
  position: relative;
  transition: all 0.15s ease-out;
  overflow: hidden;
  white-space: nowrap;
}

.nav-links a::before {
  display: none;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(0, 255, 65, 0.08);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.nav-links a.active {
  color: #0A0A0A;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  text-shadow: none;
  font-weight: 600;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger .dropdown-arrow {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 12px;
  padding: var(--space-2);
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 65, 0.15);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: block !important;
  padding: var(--space-3) var(--space-4) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  white-space: nowrap;
  overflow: visible !important;
}

.nav-submenu a::before {
  border-radius: 8px !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-4);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Optimized bounce - runs 3 times then stops */
@keyframes bounce {
  0%, 100% { 
    transform: translateY(0);
  }
  50% { 
    transform: translateY(-20px);
  }
}

/* Re-trigger bounce on hover for interactivity */
.hero-logo:hover {
  animation: bounce 0.6s ease-in-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

.typing-text {
  background: linear-gradient(135deg, #fff 0%, #fff 40%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-cursor {
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.btn-cta {
  background: var(--color-cta);
  color: #0A0A0A;
  box-shadow: 0 2px 8px rgba(0, 204, 51, 0.3);
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 204, 51, 0.4);
  background: var(--color-cta-hover);
  color: #0A0A0A;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--color-text);
}

.btn-primary {
  background: var(--color-cta);
  color: #0A0A0A;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 204, 51, 0.3);
  background: var(--color-cta-hover);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Video Showcase Section */
.showcase {
  padding: var(--space-20) var(--space-4);
  position: relative;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-4);
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card:hover {
  transform: scale(1.02);
  border-color: rgba(0, 255, 65, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Play button overlay for video cards */
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.video-label {
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  padding: var(--space-2) var(--space-4);
  background: var(--color-cta);
  border-radius: 6px;
  display: inline-block;
}

/* Portfolio Section */
.portfolio {
  padding: var(--space-20) var(--space-4);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Bento Box Grid - Apple Style */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: var(--space-4);
}

/* Apps Grid - Fallback */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* App Card - Modern 3D Style with Custom Accent */
.app-card {
  --card-accent: #00FF41;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

/* Ambient glow background */
.app-card .card-glow {
  display: none;
}

/* Shine effect overlay */
.app-card::before {
  display: none;
}

/* Gradient border glow using card accent */
.app-card::after {
  display: none;
}

/* Card hover effects handled by border-color transition */

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 65, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-card:hover .card-glow {
  opacity: 0;
}

.app-card:hover::before {
  left: -100%;
}

.app-card:hover::after {
  opacity: 0;
}

/* Bento variations */
.app-card.bento-wide {
  grid-column: span 2;
  flex-direction: row;
  gap: var(--space-6);
  text-align: left;
  padding: var(--space-8);
}

.app-card.bento-wide .app-icon {
  margin: 0;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.app-card.bento-wide .app-info {
  flex: 1;
}

.app-card.bento-tall {
  grid-row: span 2;
  padding: var(--space-8);
}

.app-card.bento-tall .app-icon {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-6);
}

.app-card.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: rgba(5, 5, 5, 0.95);
  padding: var(--space-8);
}

.app-card.bento-featured::after {
  display: none;
}

.app-card.bento-featured:hover::after {
  display: none;
}

.app-card.bento-featured .app-icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-6);
}

.app-card.bento-featured .app-title {
  font-size: 28px;
  color: var(--color-text);
}

/* App Icon with glow */
.app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 20, 10, 0.5);
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.app-card:hover .app-icon {
  transform: scale(1.05) translateY(-3px);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-background);
}

.app-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 4;
}

.app-card:hover .app-title {
  color: #fff;
}

.app-category {
  font-size: 12px;
  margin-bottom: var(--space-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-1) var(--space-3);
  border-radius: 6px;
  display: inline-block;
  position: relative;
  z-index: 4;
  transition: all 0.3s ease;
}

.app-card:hover .app-category {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.app-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 4;
}

.app-downloads,
.app-ranking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.app-card:hover .app-downloads,
.app-card:hover .app-ranking {
  color: #fff;
}

.app-card.bento-wide .app-downloads,
.app-card.bento-wide .app-ranking {
  justify-content: flex-start;
}

.app-downloads svg {
  color: var(--color-primary-light);
  transition: all 0.3s ease;
}

.app-ranking svg {
  color: var(--color-cta);
  transition: all 0.3s ease;
}

.app-card:hover .app-downloads svg {
  color: #fff;
}

.app-card:hover .app-ranking svg {
  color: #FFD700;
}

/* Stats badges */
.app-downloads,
.app-ranking {
  padding: var(--space-1) 0;
}

.app-card:hover .app-downloads svg,
.app-card:hover .app-ranking svg {
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Contact Section */
.contact {
  padding: var(--space-20) var(--space-4);
  position: relative;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: all 0.15s ease-out;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.form-input:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.form-input.error {
  border-color: var(--color-error);
}

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

.error-message {
  display: block;
  color: var(--color-error);
  font-size: 14px;
  margin-top: var(--space-2);
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 12px;
  color: var(--color-success);
  font-weight: 500;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-4);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.footer-brand:hover .footer-logo {
  opacity: 0.9;
}

.copyright {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 14px;
}

.copyright .brand-signature {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-light);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.social-link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.social-link-disabled:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--color-text-muted);
  transform: none;
  box-shadow: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--color-primary);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--space-16);
  min-height: calc(100vh - 200px);
}

.legal-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.page-updated {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.legal-content {
  max-width: 800px;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-8);
  text-align: left;
}

.legal-content section {
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 18px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.back-link {
  margin-top: var(--space-8);
}

.copyright-notice,
.agreement-notice {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  font-style: italic;
}

.legal-content a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 1024px) {
  /* Adjust nav for medium screens */
  .nav-links a {
    font-size: 13px;
    padding: var(--space-2) 10px;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .video-card-featured {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }
  
  .video-card:not(.video-card-featured) {
    height: 200px;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-card.bento-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .app-card.bento-tall {
    grid-row: span 1;
  }
  
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* Mobile Navigation - Improved */
  .nav {
    top: var(--space-2);
    left: var(--space-2);
    right: var(--space-2);
    transform: none;
    border-radius: 12px;
    padding-top: 0;
  }
  
  .nav::after {
    display: none;
  }
  
  .nav-container {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }
  
  /* Show signature logo text on mobile */
  .logo-text {
    display: block;
    font-size: 18px;
  }
  
  .logo-image {
    width: 32px;
    height: 32px;
  }
  
  /* Hamburger Menu - Animated */
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
  }
  
  .menu-toggle:hover,
  .menu-toggle:active {
    background: rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.4);
  }
  
  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: absolute;
  }
  
  .menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }
  
  .menu-toggle span:nth-child(3) {
    transform: translateY(6px);
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }
  
  /* Mobile Dropdown Menu - Improved */
  .nav-links {
    position: absolute;
    top: calc(100% + var(--space-4));
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-2);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    display: none;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.5),
      0 0 15px rgba(0, 255, 65, 0.08);
  }
  
  .nav-links.active {
    display: flex;
    animation: mobileMenuSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes mobileMenuSlide {
    from {
      opacity: 0;
      transform: translateY(-15px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    padding: var(--space-3) var(--space-4);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: rgba(0, 255, 65, 0.04);
    border: 1px solid rgba(0, 255, 65, 0.08);
    transition: all 0.2s ease;
  }
  
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.3);
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
  }
  
  .nav-links a.active {
    background: var(--color-primary);
    border-color: transparent;
    color: #0A0A0A;
    text-shadow: none;
    font-weight: 600;
  }
  
  .nav-links a::before {
    display: none;
  }
  
  /* Mobile Navigation Dropdown */
  .nav-dropdown {
    width: 100%;
  }
  
  .nav-dropdown-trigger {
    justify-content: center;
  }
  
  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    padding: var(--space-2);
    margin-top: var(--space-2);
    min-width: 100%;
    display: none;
  }
  
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown.open .nav-submenu {
    display: block;
  }
  
  .nav-submenu a {
    font-size: 12px !important;
    padding: var(--space-2) var(--space-3) !important;
    background: rgba(0, 255, 65, 0.03) !important;
    text-align: center;
  }
  
  /* Hero Section Mobile */
  .hero {
    padding: var(--space-16) var(--space-4);
    min-height: auto;
    padding-top: 100px;
  }
  
  .hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 14px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: var(--space-2) var(--space-3);
  }
  
  .hero-title {
    font-size: clamp(24px, 6vw, 36px);
    min-height: 1.2em;
  }
  
  .hero-tagline {
    font-size: 15px;
    padding: 0 var(--space-2);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: 0 var(--space-4);
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }
  
  /* Video Grid Mobile */
  .video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-3);
  }
  
  .video-card-featured {
    grid-column: span 1;
    height: 220px;
  }
  
  .video-card:not(.video-card-featured) {
    height: 160px;
  }
  
  .video-card {
    border-radius: 12px;
  }
  
  /* App Cards Mobile - Improved */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .app-card {
    min-height: auto;
    padding: var(--space-4);
    border-radius: 12px;
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
    align-items: center;
    justify-content: flex-start;
  }
  
  .app-card.bento-wide,
  .app-card.bento-featured,
  .app-card.bento-tall {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
    padding: var(--space-4);
    min-height: auto;
  }
  
  .app-card .app-icon,
  .app-card.bento-wide .app-icon,
  .app-card.bento-featured .app-icon,
  .app-card.bento-tall .app-icon {
    width: 64px;
    height: 64px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 12px;
  }
  
  .app-card .app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  
  .app-card .app-title {
    font-size: 16px;
    margin-bottom: var(--space-1);
  }
  
  .app-card.bento-featured .app-title {
    font-size: 16px;
    background: none;
    -webkit-text-fill-color: var(--color-text);
  }
  
  .app-card .app-category {
    font-size: 10px;
    margin-bottom: var(--space-2);
  }
  
  .app-card .app-meta {
    flex-direction: row;
    gap: var(--space-3);
    flex-wrap: wrap;
  }
  
  .app-card .app-downloads,
  .app-card .app-ranking {
    justify-content: flex-start;
    font-size: 12px;
  }
  
  .app-card:hover {
    transform: translateY(-4px);
  }
  
  .app-card:hover .app-icon {
    transform: scale(1.05);
  }
  
  /* Sections Mobile */
  .showcase,
  .portfolio {
    padding: var(--space-12) var(--space-4);
  }
  
  .contact {
    padding: var(--space-12) var(--space-4);
  }
  
  .section-header {
    margin-bottom: var(--space-8);
    padding: 0;
  }
  
  .section-label {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  
  .section-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  
  .section-subtitle {
    font-size: 14px;
    padding: 0;
  }
  
  /* Contact Form Mobile */
  .contact-wrapper {
    padding: 0;
  }
  
  .contact-form {
    padding: var(--space-5);
    border-radius: 12px;
  }
  
  .form-group {
    margin-bottom: var(--space-4);
  }
  
  .form-input {
    padding: var(--space-3) var(--space-4);
    font-size: 16px;
    border-radius: 8px;
  }
  
  /* Footer Mobile */
  .footer {
    padding: var(--space-6) var(--space-4);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .footer-brand {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .footer-logo {
    width: 36px;
    height: 36px;
  }
  
  .copyright {
    font-size: 13px;
  }
  
  .footer-nav {
    gap: var(--space-4);
  }
  
  .footer-nav a {
    font-size: 13px;
  }
  
  /* Scroll to Top Mobile */
  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: var(--space-4);
    right: var(--space-4);
  }
  
  /* Legal Pages Mobile */
  .legal-page {
    padding-top: 100px;
  }
  
  .legal-content {
    padding: var(--space-5);
    border-radius: 12px;
  }
  
  .legal-content h2 {
    font-size: 20px;
  }
  
  .legal-content h3 {
    font-size: 16px;
  }
  
}

/* Extra small screens */
@media (max-width: 380px) {
  .nav-container {
    padding: var(--space-2) var(--space-3);
  }
  
  .hero-title {
    font-size: clamp(20px, 5vw, 28px);
  }
  
  .hero-tagline {
    font-size: 14px;
  }
  
  .app-card.bento-wide .app-icon,
  .app-card.bento-featured .app-icon,
  .app-card .app-icon {
    width: 56px;
    height: 56px;
  }
  
  .app-card .app-title {
    font-size: 14px;
  }
  
  .app-card .app-meta {
    flex-direction: column;
    gap: var(--space-1);
  }
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background: var(--color-cta);
  border: none;
  border-radius: 10px;
  color: #0A0A0A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.2s ease-out;
  z-index: var(--z-sticky);
  box-shadow: 0 4px 16px rgba(0, 204, 51, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 204, 51, 0.4);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--color-text);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: #1A2A1A;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2A3A2A;
}





/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .aurora-bg::before {
    animation: none;
  }
  

}


/* ============================================
   LANGUAGE SELECTOR (Footer)
   Compact flag-only dropdown in footer
   ============================================ */
.lang-selector {
  position: relative;
  z-index: var(--z-dropdown);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-color: rgba(0, 255, 65, 0.3);
}

.lang-flag-btn {
  font-size: 18px;
  line-height: 1;
}

.lang-arrow {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 140px;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 
    0 -10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 65, 0.1);
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(0, 255, 65, 0.15);
  color: var(--color-text);
}

.lang-option.active {
  background: var(--color-primary);
  color: white;
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}


/* Language Notice for Legal Pages */
.lang-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(10, 20, 10, 0.5);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
  transition: border-color 0.15s ease;
}

.lang-notice:hover {
  border-color: rgba(0, 255, 65, 0.3);
}

.lang-notice .globe-icon {
  font-size: 16px;
}
