:root {
  --primary-text: #ffffff;
  --secondary-text: rgba(255, 255, 255, 0.85);
  --tertiary-text: rgba(255, 255, 255, 0.65);
  --accent-orange: #ff6b35;
  --accent-blue: #4a9eff;
  --accent-success: #00d4aa;
  --bg-primary: #0a0a0a;
  --bg-overlay: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
  --bg-glass: rgba(0, 0, 0, 0.4);
  --bg-card: rgba(0, 0, 0, 0.8);
  --bg-transparent: rgba(0, 0, 0, 0.1);
  --bg-black-banner: rgba(0, 0, 0, 0.9);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--primary-text);
  background: var(--bg-primary);
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
  position: fixed;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

.skip-link {
  position: absolute;
  top: calc(-40px + var(--safe-area-top));
  left: calc(6px + var(--safe-area-left));
  background: var(--bg-card);
  color: var(--primary-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.content-modal li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

.modal-close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-close-btn span {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.content-modal h2.about-color {
  color: #764ba2;
}

.content-modal h2.why-color {
  color: #00f2fe;
}

.content-modal h2.services-color {
  color: #38f9d7;
}

.content-modal h2.tech-color {
  color: #fee140;
}

.content-modal h2.address-color {
  color: #fecfef;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) and (orientation: portrait),
       (max-width: 1024px) and (orientation: landscape) {
  :root {
    --font-size-3xl: 36px;
    --font-size-4xl: 42px;
  }

  html {
    height: -webkit-fill-available;
  }

  body {
    height: -webkit-fill-available;
  }

  .stats-section {
    display: none !important;
  }

  .contact-grid {
    display: none !important;
  }

  .cta-banner {
    display: none !important;
  }

  .subtitle {
    display: none !important;
  }

  .black-hole {
    display: block !important;
    transform: translate(-50%, -50%) translateY(80px) !important;
  }

  @keyframes modernHolePulseWithFire {
    0%, 100% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 53, 0.3),
        0 0 60px rgba(255, 140, 0, 0.2),
        0 0 80px rgba(255, 69, 0, 0.1);
      transform: translate(-50%, -50%) translateY(80px) scale(1);
    }
    33% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 107, 53, 0.5),
        0 0 70px rgba(255, 140, 0, 0.4),
        0 0 90px rgba(255, 69, 0, 0.3);
      transform: translate(-50%, -50%) translateY(80px) scale(1.02);
    }
    66% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 107, 53, 0.6),
        0 0 80px rgba(255, 140, 0, 0.5),
        0 0 100px rgba(255, 69, 0, 0.4);
      transform: translate(-50%, -50%) translateY(80px) scale(1.05);
    }
  }

  .black-hole.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(80px) scale(0.3);
  }
  
  .physics-moon {
    display: block !important;
    pointer-events: auto;
    touch-action: none;
  }
  
  .mobile-nav-container {
    display: flex !important;
  }

  .top-banner-text {
    font-size: var(--font-size-sm);
  }

  .main-content {
    padding: var(--spacing-md);
    justify-content: flex-start;
    padding-top: var(--spacing-2xl);
  }

  .main-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-md);
  }

  .nav-tab {
    font-size: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 40px;
    min-width: 90px;
  }

  .contact-message {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .email-card-final {
    padding: 7px 10px;
  }

  .email-letter {
    font-size: 15px;
  }

  .email-label-text {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .emails-wrapper {
    gap: 14px;
  }

  .motion-badge {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .motion-badge-btn {
    padding: 16px 32px;
    font-size: 15px;
  }

  .motion-badge-btn::before {
    left: 14px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: var(--font-size-2xl);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .main-content {
    padding-top: var(--spacing-lg);
  }

  .nav-tab {
    padding: var(--spacing-sm);
    min-height: 38px;
    font-size: 11px;
    min-width: 85px;
  }

  .top-banner-text {
    font-size: var(--font-size-xs);
  }

  .black-hole {
    transform: translate(-50%, -50%) translateY(70px) !important;
  }

  @keyframes modernHolePulseWithFire {
    0%, 100% {
      transform: translate(-50%, -50%) translateY(70px) scale(1);
    }
    33% {
      transform: translate(-50%, -50%) translateY(70px) scale(1.02);
    }
    66% {
      transform: translate(-50%, -50%) translateY(70px) scale(1.05);
    }
  }

  .black-hole.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(70px) scale(0.3);
  }

  .contact-message {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .email-card-final {
    padding: 6px 9px;
  }

  .email-letter {
    font-size: 14px;
  }

  .email-label-text {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .emails-wrapper {
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .physics-moon {
    pointer-events: auto;
    cursor: grab;
  }

  .physics-moon:active {
    cursor: grabbing;
  }

  .mobile-nav-container {
    display: none !important;
  }
  
  .main-content {
    justify-content: center;
    padding-top: var(--spacing-2xl);
  }

  .motion-badge {
    display: none !important;
  }

  .email-card-final {
    max-width: 500px;
  }

  .stats-section {
    display: flex !important;
    justify-content: center;
    gap: var(--spacing-3xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
  }

  .stat-card {
    opacity: 1;
    animation: statFadeIn 0.8s ease forwards;
  }

  .stat-card:nth-child(1) {
    animation-delay: 0.2s;
  }

  .stat-card:nth-child(2) {
    animation-delay: 0.4s;
  }

  .stat-card:nth-child(3) {
    animation-delay: 0.6s;
  }

  @keyframes statFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .contact-grid {
    display: flex !important;
    margin-top: var(--spacing-2xl);
  }

  .subtitle {
    display: inline-block !important;
    max-width: 700px;
  }

  .cta-banner {
    display: block !important;
  }

  .black-hole {
    transform: translate(-50%, -50%) translateY(120px) !important;
  }

  @keyframes modernHolePulseWithFire {
    0%, 100% {
      transform: translate(-50%, -50%) translateY(120px) scale(1);
    }
    33% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.02);
    }
    66% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.05);
    }
  }

  .main-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-2xl);
  }

  body {
    overflow: auto;
  }

  html {
    overflow: auto;
  }

  .main-container {
    overflow: auto;
    min-height: 100vh;
  }
}

@media (prefers-contrast: high) {
  :root {
    --bg-glass: rgba(0, 0, 0, 0.9);
    --bg-card: rgba(0, 0, 0, 0.95);
    --bg-transparent: rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
  
  html {
    height: -webkit-fill-available;
  }
  
  .main-container {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
}

@media screen and (max-height: 600px) {
  .main-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
  }
  
  .black-hole {
    transform: translate(-50%, -50%) translateY(60px) !important;
  }
}

@media screen and (min-height: 800px) {
  .black-hole {
    transform: translate(-50%, -50%) translateY(120px) !important;
  }
  
  @keyframes modernHolePulseWithFire {
    0%, 100% {
      transform: translate(-50%, -50%) translateY(120px) scale(1);
    }
    33% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.02);
    }
    66% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.05);
    }
  }
}

.email-card-final:focus,
.nav-tab:focus,
.motion-badge-btn:focus {
  outline: 2px solid rgba(74, 158, 255, 0.8);
  outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
  .physics-moon {
    cursor: default;
  }
  
  .physics-moon:active {
    cursor: default;
  }
}sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: calc(6px + var(--safe-area-top));
}

*:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.background-container {
  position: fixed;
  inset: 0;
  z-index: -100;
  background: var(--bg-primary);
}

.background-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.background-image.loaded {
  opacity: 1;
}

.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -50;
  background: var(--bg-overlay);
  backdrop-filter: blur(0.5px);
}

.main-container {
  height: 100vh;
  height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.top-banner {
  background: var(--bg-black-banner);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  transition: background-color 0.5s ease;
  flex-shrink: 0;
}

.top-banner-text {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--primary-text);
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.cta-banner {
  background: var(--bg-black-banner);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  margin-bottom: var(--spacing-xl);
  flex-shrink: 0;
}

.cta-banner-text {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--secondary-text);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.stats-section {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--spacing-3xl);
  padding: var(--spacing-2xl) var(--spacing-3xl) 0;
  flex-wrap: wrap;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  flex-shrink: 0;
}

.stat-card {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number {
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  font-feature-settings: 'tnum' 1;
}

.stat-number.visitors {
  font-size: 40px;
  color: var(--accent-orange);
}

.stat-number.date {
  font-size: 40px;
  color: var(--accent-blue);
  white-space: nowrap;
}

.stat-number.visits {
  font-size: 40px;
  color: var(--accent-success);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--secondary-text);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--spacing-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 20;
  overflow: visible;
}

.main-title {
  font-size: var(--font-size-4xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transform-origin: center center;
  z-index: 25;
}

.main-title .letter {
  display: inline-block;
  transition: all 0.1s ease-out;
}

.main-title .letter.shake {
  animation: letterShake 0.6s ease-in-out;
}

@keyframes letterShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, -1px) rotate(-1deg); }
  20% { transform: translate(2px, 1px) rotate(1deg); }
  30% { transform: translate(-1px, 2px) rotate(-2deg); }
  40% { transform: translate(1px, -2px) rotate(2deg); }
  50% { transform: translate(-2px, 1px) rotate(-1deg); }
  60% { transform: translate(2px, -1px) rotate(1deg); }
  70% { transform: translate(-1px, -2px) rotate(-2deg); }
  80% { transform: translate(1px, 2px) rotate(2deg); }
  90% { transform: translate(-2px, -1px) rotate(-1deg); }
}

.subtitle {
  display: inline-block;
  background: var(--bg-card);
  color: var(--primary-text);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: min(760px, 86vw);
  line-height: 1.5;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.motivational-container {
  width: 100%;
  max-width: 760px;
  margin-bottom: var(--spacing-lg);
  cursor: pointer;
  position: relative;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  max-width: 720px;
  margin-top: var(--spacing-xl);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--font-size-xs);
  color: var(--primary-text);
  transition: all var(--transition-fast);
  min-height: 38px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-item:hover::before {
  opacity: 1;
}

@media (min-width: 769px) {
  .contact-grid {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

.physics-moon {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse at 20% 15%, #4a4a4a 0%, transparent 30%),
    radial-gradient(ellipse at 80% 80%, #000000 0%, transparent 50%),
    linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 30%, #0a0a0a 60%, #000000 100%);
  z-index: 75;
  pointer-events: auto;
  display: block;
  transition: all 0.04s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  filter: contrast(1.4) brightness(0.7);
  box-shadow: 
    inset 2px 2px 8px rgba(255, 255, 255, 0.1),
    inset -2px -2px 8px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: grab;
  touch-action: none;
}

.physics-moon:active {
  cursor: grabbing;
}

.physics-moon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(120, 120, 120, 0.4) 0%, rgba(60, 60, 60, 0.2) 60%, transparent 90%);
  border-radius: 50%;
  filter: blur(0.5px);
}

.physics-moon::after {
  content: '8';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.black-hole {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, #000000 0%, #0a0a0a 15%, #1a1a1a 35%, #2a2a2a 60%, rgba(42, 42, 42, 0.3) 85%, transparent 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(100px);
  z-index: 5;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.9),
    inset 0 0 25px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.8);
  animation: modernHolePulseWithFire 3s ease-in-out infinite;
}

@keyframes modernHolePulseWithFire {
  0%, 100% {
    box-shadow: 
      inset 0 0 15px rgba(0, 0, 0, 0.9),
      inset 0 0 25px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(255, 107, 53, 0.3),
      0 0 60px rgba(255, 140, 0, 0.2),
      0 0 80px rgba(255, 69, 0, 0.1);
    transform: translate(-50%, -50%) translateY(100px) scale(1);
  }
  33% {
    box-shadow: 
      inset 0 0 15px rgba(0, 0, 0, 0.9),
      inset 0 0 25px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(0, 0, 0, 0.4),
      0 0 50px rgba(255, 107, 53, 0.5),
      0 0 70px rgba(255, 140, 0, 0.4),
      0 0 90px rgba(255, 69, 0, 0.3);
    transform: translate(-50%, -50%) translateY(100px) scale(1.02);
  }
  66% {
    box-shadow: 
      inset 0 0 15px rgba(0, 0, 0, 0.9),
      inset 0 0 25px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(255, 107, 53, 0.6),
      0 0 80px rgba(255, 140, 0, 0.5),
      0 0 100px rgba(255, 69, 0, 0.4);
    transform: translate(-50%, -50%) translateY(100px) scale(1.05);
  }
}

.black-hole::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, #000000 0%, transparent 70%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.black-hole.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(100px) scale(0.3);
}

.motion-badge {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  display: none;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.motion-badge-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.motion-badge-btn::before {
  content: '📱';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  animation: phoneShake 1.5s ease-in-out infinite;
}

@keyframes phoneShake {
  0%, 100% {
    transform: translateY(-50%) rotate(0deg);
  }
  25% {
    transform: translateY(-50%) rotate(-15deg);
  }
  75% {
    transform: translateY(-50%) rotate(15deg);
  }
}

.motion-badge-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.motion-badge-btn:hover::after {
  opacity: 1;
}

.motion-badge-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8);
}

.email-explosion-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  display: none;
  pointer-events: none;
}

.email-explosion-container.visible {
  display: block;
  pointer-events: auto;
}

.email-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 90%;
  z-index: 141;
}

.contact-message {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: messageFadeIn 0.8s ease 0.5s forwards;
}

@keyframes messageFadeIn {
  to {
    opacity: 1;
  }
}

.emails-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.email-card-final {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(102, 126, 234, 0.25) 100%);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(74, 158, 255, 0.5);
  border-radius: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.35);
  width: fit-content;
  touch-action: manipulation;
  display: inline-block;
}

.email-card-final:hover,
.email-card-final:active {
  transform: scale(1.05);
  border-color: rgba(74, 158, 255, 0.8);
  box-shadow: 0 12px 45px rgba(74, 158, 255, 0.55);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.35) 0%, rgba(102, 126, 234, 0.35) 100%);
}

.email-label-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-align: center;
  font-weight: 600;
}

.email-text-container {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1px;
  min-height: 24px;
  white-space: nowrap;
  overflow: visible;
}

.email-letter {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.mobile-nav-container {
  position: fixed;
  left: calc(var(--spacing-sm) + var(--safe-area-left));
  bottom: calc(var(--spacing-md) + var(--safe-area-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-container.visible {
  opacity: 1;
}

.nav-tab {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--primary-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-width: 95px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav-tab:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.nav-tab:nth-child(2) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
}

.nav-tab:nth-child(3) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 4px 20px rgba(67, 233, 123, 0.4);
}

.nav-tab:nth-child(4) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 4px 20px rgba(250, 112, 154, 0.4);
}

.nav-tab:nth-child(5) {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  box-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
}

.nav-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-tab:active {
  transform: scale(1.05);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6);
}

.nav-tab:active::before {
  opacity: 1;
}

.content-modal {
  position: fixed;
  top: var(--safe-area-top);
  left: var(--safe-area-left);
  right: var(--safe-area-right);
  background: rgba(0, 0, 0, 0.92);
  color: var(--primary-text);
  padding: var(--spacing-xl) var(--spacing-lg);
  z-index: 100;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.content-modal.visible {
  transform: translateY(0);
}

.content-modal h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--accent-blue);
  text-align: center;
}

.content-modal p {
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.content-modal ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.content-modal li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
  font-size: var(--font-size-sm);
}

.content-modal li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

.modal-close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-close-btn span {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.content-modal h2.about-color {
  color: #764ba2;
}

.content-modal h2.why-color {
  color: #00f2fe;
}

.content-modal h2.services-color {
  color: #38f9d7;
}

.content-modal h2.tech-color {
  color: #fee140;
}

.content-modal h2.address-color {
  color: #fecfef;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) and (orientation: portrait),
       (max-width: 1024px) and (orientation: landscape) {
  :root {
    --font-size-3xl: 36px;
    --font-size-4xl: 42px;
  }

  html {
    height: -webkit-fill-available;
  }

  body {
    height: -webkit-fill-available;
  }

  .stats-section {
    display: none !important;
  }

  .contact-grid {
    display: none !important;
  }

  .cta-banner {
    display: none !important;
  }

  .subtitle {
    display: none !important;
  }

  .black-hole {
    display: block !important;
    transform: translate(-50%, -50%) translateY(80px) !important;
  }

  @keyframes modernHolePulseWithFire {
    0%, 100% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 53, 0.3),
        0 0 60px rgba(255, 140, 0, 0.2),
        0 0 80px rgba(255, 69, 0, 0.1);
      transform: translate(-50%, -50%) translateY(80px) scale(1);
    }
    33% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 107, 53, 0.5),
        0 0 70px rgba(255, 140, 0, 0.4),
        0 0 90px rgba(255, 69, 0, 0.3);
      transform: translate(-50%, -50%) translateY(80px) scale(1.02);
    }
    66% {
      box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 107, 53, 0.6),
        0 0 80px rgba(255, 140, 0, 0.5),
        0 0 100px rgba(255, 69, 0, 0.4);
      transform: translate(-50%, -50%) translateY(80px) scale(1.05);
    }
  }

  .black-hole.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(80px) scale(0.3);
  }
  
  .physics-moon {
    display: block !important;
    pointer-events: auto;
    touch-action: none;
  }
  
  .mobile-nav-container {
    display: flex !important;
  }

  .top-banner-text {
    font-size: var(--font-size-sm);
  }

  .main-content {
    padding: var(--spacing-md);
    justify-content: flex-start;
    padding-top: var(--spacing-2xl);
  }

  .main-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-md);
  }

  .nav-tab {
    font-size: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 40px;
    min-width: 90px;
  }

  .contact-message {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .email-card-final {
    padding: 18px 25px;
    max-width: 95%;
  }

  .email-letter {
    font-size: 16px;
  }

  .motion-badge {
    top: calc(var(--safe-area-top) + 60px);
    right: calc(var(--safe-area-right) + 8px);
  }

  .motion-badge-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: var(--font-size-2xl);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .main-content {
    padding-top: var(--spacing-lg);
  }

  .nav-tab {
    padding: var(--spacing-sm);
    min-height: 38px;
    font-size: 11px;
    min-width: 85px;
  }

  .top-banner-text {
    font-size: var(--font-size-xs);
  }

  .black-hole {
    transform: translate(-50%, -50%) translateY(70px) !important;
  }

  @keyframes modernHolePulseWithFire {
    0%, 100% {
      transform: translate(-50%, -50%) translateY(70px) scale(1);
    }
    33% {
      transform: translate(-50%, -50%) translateY(70px) scale(1.02);
    }
    66% {
      transform: translate(-50%, -50%) translateY(70px) scale(1.05);
    }
  }

  .black-hole.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(70px) scale(0.3);
  }

  .contact-message {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .email-card-final {
    padding: 16px 20px;
  }

  .email-letter {
    font-size: 15px;
  }

  .email-label-text {
    font-size: 10px;
  }
}

@media (min-width: 769px) {
  .physics-moon {
    pointer-events: auto;
    cursor: grab;
  }

  .physics-moon:active {
    cursor: grabbing;
  }

  .mobile-nav-container {
    display: none !important;
  }
  
  .main-content {
    justify-content: center;
    padding-top: var(--spacing-lg);
  }

  .motion-badge {
    display: none !important;
  }

  .email-card-final {
    max-width: 500px;
  }
}

@media (prefers-contrast: high) {
  :root {
    --bg-glass: rgba(0, 0, 0, 0.9);
    --bg-card: rgba(0, 0, 0, 0.95);
    --bg-transparent: rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
  
  html {
    height: -webkit-fill-available;
  }
  
  .main-container {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
}

@media screen and (max-height: 600px) {
  .main-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
  }
  
  .black-hole {
    transform: translate(-50%, -50%) translateY(60px) !important;
  }
}

@media screen and (min-height: 800px) {
  .black-hole {
    transform: translate(-50%, -50%) translateY(120px) !important;
  }
  
  @keyframes modernHolePulseWithFire {
    0%, 100% {
      transform: translate(-50%, -50%) translateY(120px) scale(1);
    }
    33% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.02);
    }
    66% {
      transform: translate(-50%, -50%) translateY(120px) scale(1.05);
    }
  }
}

.email-card-final:focus,
.nav-tab:focus,
.motion-badge-btn:focus {
  outline: 2px solid rgba(74, 158, 255, 0.8);
  outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
  .physics-moon {
    cursor: default;
  }
  
  .physics-moon:active {
    cursor: default;
  }
}