/* ==========================================================================
   CSS Variables & Configuration
   ========================================================================== */
:root {
  /* Color Palette */
  --clr-bg: #050508; /* Deep Space Black */
  --clr-bg-alt: #0a0b10;
  --clr-surface: rgba(15, 16, 25, 0.6);
  --clr-surface-hover: rgba(25, 27, 40, 0.8);

  --clr-primary: #00f0ff; /* Neon Cyan */
  --clr-primary-glow: rgba(0, 240, 255, 0.3);

  --clr-secondary: #8a2be2; /* Neon Purple */
  --clr-secondary-glow: rgba(138, 43, 226, 0.3);

  --clr-accent: #ff003c; /* Alert Red */

  --clr-text-main: #ffffff;
  --clr-text-muted: #a0a0b0;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Effects */
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --blur-amount: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Custom cursor hiding handled cautiously */
}

/* Selection */
::selection {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-surface-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-text-main);
  letter-spacing: -0.02em;
}

p {
  color: var(--clr-text-muted);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-gradient {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0088ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-alt {
  background: linear-gradient(135deg, var(--clr-secondary) 0%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 120px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 80px);
}

/* ==========================================================================
   Background Effects & Layout
   ========================================================================== */
.background-radial {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(138, 43, 226, 0.05) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: -2;
  pointer-events: none;
}

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

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition:
    width 0.3s,
    height 0.3s;
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--clr-surface);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-primary {
  background: transparent;
  color: var(--clr-bg);
  border: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clr-primary);
  z-index: -1;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 20px var(--clr-primary-glow);
}

.btn-primary:hover::before {
  background: #0088ff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition:
    background-color var(--transition-normal),
    border-bottom var(--transition-normal),
    padding var(--transition-normal);
  padding: 24px 0;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.glitch-text {
  color: var(--clr-text-main);
  position: relative;
}

.neon-text {
  color: var(--clr-primary);
  text-shadow: 0 0 10px var(--clr-primary-glow);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--clr-primary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-text-main);
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--clr-text-main);
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px; /* Offset for navbar */
  overflow: hidden;
}

.hero-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-primary);
  animation: pulse 2s infinite;
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: 1px;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Abstract Visuals */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abstract-globe {
  position: relative;
  width: 400px;
  height: 400px;
}

.globe-sphere {
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(138, 43, 226, 0.2),
    rgba(0, 0, 0, 0.8)
  );
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.1);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.orbit-1 {
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}
.orbit-2 {
  width: 80%;
  height: 80%;
  border-color: rgba(0, 240, 255, 0.1);
  animation: rotate-reverse 15s linear infinite;
}
.orbit-3 {
  width: 120%;
  height: 120%;
  border-style: dashed;
  animation: rotate 30s linear infinite;
  opacity: 0.3;
}

.scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--clr-primary);
  box-shadow: 0 0 10px var(--clr-primary);
  top: 0;
  left: 0;
  opacity: 0.5;
  animation: scan 4s ease-in-out infinite alternate;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes rotate-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
@keyframes scan {
  0% {
    top: 10%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.scroll-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--clr-text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 2px;
  height: 6px;
  background: var(--clr-primary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

/* ==========================================================================
   Services Section (Grid Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 240, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--clr-primary);
  margin-bottom: 24px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-text {
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--clr-text-main);
}

.card-features i {
  color: var(--clr-primary);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 240, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 43, 226, 0.05),
    rgba(0, 240, 255, 0.05),
    transparent
  );
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--clr-text-main);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Features Layout (Split)
   ========================================================================== */
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-list-item {
  display: flex;
  gap: 20px;
}

.fl-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--clr-secondary);
}

.fl-content h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* Dashboard Mockup Visual */
.dashboard-mockup {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mac-buttons {
  background: #1a1b26;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.mac-buttons span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-buttons span:nth-child(1) {
  background: #ff5f56;
}
.mac-buttons span:nth-child(2) {
  background: #ffbd2e;
}
.mac-buttons span:nth-child(3) {
  background: #27c93f;
}

.dashboard-content {
  padding: 24px;
  background: #0f1019;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.dash-status.active {
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-status.active::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--clr-primary);
}

.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.bar {
  flex: 1;
  background: rgba(0, 240, 255, 0.2);
  border-radius: 4px 4px 0 0;
  transition:
    height 0.3s,
    background 0.3s;
}

.bar:hover {
  background: var(--clr-primary);
}

.log-lines {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line span {
  color: #666;
}
.log-line.alert {
  color: var(--clr-accent);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

input,
textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--clr-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: var(--clr-text-muted);
}

.social-links a:hover {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.in-view {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
  .hero-container,
  .features-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-container {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 400px;
  }

  .feature-visual {
    grid-row: 1;
  }
}

@media screen and (max-width: 768px) {
  .nav-links,
  .cta-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section-padding {
    padding: 80px 0;
  }

  .contact-card {
    padding: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
  }

  .nav-links.nav-open {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-actions .btn i {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }

  .abstract-globe {
    width: 220px;
    height: 220px;
  }

  .badge {
    justify-content: center;
  }

  .badge-text {
    font-size: 0.7rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #111;
  color: #fff;
  margin: 5% auto;
  padding: 25px;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  max-height: 80vh;   /* 👈 important */
  overflow-y: auto;   /* 👈 enables scroll */
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
