@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap");

:root {
  --primary-color: #40e0d0;
  --secondary-color: #00ced1;
  --accent-color: #48d1cc;
  --dark-bg: #001f3f;
  --darker-bg: #001529;
  --card-bg: rgba(0, 45, 79, 0.6);
  --card-bg-solid: #002d4f;
  --text-primary: #40e0d0;
  --text-secondary: #7fffd4;
  --text-muted: #66d9ef;
  --border-color: rgba(64, 224, 208, 0.2);
  --gradient-primary: linear-gradient(135deg, #40e0d0 0%, #00ced1 100%);
  --gradient-secondary: linear-gradient(135deg, #48d1cc 0%, #40e0d0 100%);
  --gradient-glow: linear-gradient(135deg, rgba(64, 224, 208, 0.4) 0%, rgba(0, 206, 209, 0.4) 100%);
  --shadow-primary: 0 10px 30px rgba(64, 224, 208, 0.3);
  --shadow-secondary: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(64, 224, 208, 0.5);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", sans-serif;
  background: #000510;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(64, 224, 208, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 206, 209, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #000510 0%, #001529 50%, #001f3f 100%);
  background-attachment: fixed;
  color: var(--text-primary) !important;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(64, 224, 208, 0.03) 2px, rgba(64, 224, 208, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 206, 209, 0.03) 2px, rgba(0, 206, 209, 0.03) 4px);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 4s ease-in-out infinite;
}

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

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
    radial-gradient(circle, rgba(0, 206, 209, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body > * {
  position: relative;
  z-index: 1;
}

/* Force text colors globally */
body * {
  color: inherit;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--text-primary) !important;
}

body p, body span, body div, body li {
  color: var(--text-primary) !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #40e0d0 0%, #00ced1 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #48d1cc 0%, #40e0d0 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 100%);
  color: #000510;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.5),
    0 8px 25px rgba(64, 224, 208, 0.5),
    0 0 40px rgba(64, 224, 208, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #48d1cc 0%, #40e0d0 100%);
  color: #000510;
  font-weight: 700;
  box-shadow: 
    0 0 0 3px rgba(64, 224, 208, 0.8),
    0 12px 35px rgba(64, 224, 208, 0.7),
    0 0 60px rgba(64, 224, 208, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 
    0 0 0 1px rgba(64, 224, 208, 0.3),
    0 0 20px rgba(64, 224, 208, 0.2),
    inset 0 0 20px rgba(64, 224, 208, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.5s ease;
  z-index: -1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover::after {
  width: 300px;
  height: 300px;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #000510;
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.8),
    0 10px 30px rgba(64, 224, 208, 0.6),
    0 0 50px rgba(64, 224, 208, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.02);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Cards - Futuristic Hexagon Style */
.card {
  background: rgba(0, 31, 63, 0.4);
  border: 2px solid transparent;
  border-radius: 0;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 
    0 0 0 1px rgba(64, 224, 208, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(64, 224, 208, 0.05);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #40e0d0, #00ced1, #48d1cc);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  filter: blur(10px);
}

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

.card:hover::after {
  opacity: 0.6;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.6),
    0 20px 60px rgba(64, 224, 208, 0.5),
    0 0 80px rgba(64, 224, 208, 0.3),
    inset 0 0 40px rgba(64, 224, 208, 0.1);
  border-color: rgba(64, 224, 208, 0.8);
  background: rgba(0, 31, 63, 0.6);
}

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

/* Navigation - Futuristic Design */
.navbar {
  background: rgba(0, 5, 16, 0.9) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 2px solid rgba(64, 224, 208, 0.3);
  border-top: 1px solid rgba(64, 224, 208, 0.1);
  padding: 1rem 0;
  transition: all 0.4s ease;
  z-index: 1030;
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(64, 224, 208, 0.2),
    inset 0 1px 0 rgba(64, 224, 208, 0.1);
  position: relative;
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.8), transparent);
  animation: navGlow 3s ease-in-out infinite;
}

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

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.navbar-brand img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(64, 224, 208, 0.4), 0 0 30px rgba(64, 224, 208, 0.2);
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.3));
}

.navbar-brand:hover img {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 6px 30px rgba(64, 224, 208, 0.6), 0 0 50px rgba(64, 224, 208, 0.3);
  filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.5));
}

.navbar-toggler {
  border: none !important;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(64, 224, 208, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin: 0 0.25rem;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(64, 224, 208, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.2);
  border-radius: 8px;
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand img {
    height: 30px !important;
    margin-right: 6px !important;
  }
  
  .navbar-collapse {
    background: rgba(0, 31, 63, 0.98);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.2);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 1rem 1.5rem !important;
    margin: 0;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(64, 224, 208, 0.15);
    border-color: rgba(64, 224, 208, 0.3);
    transform: translateX(5px);
  }
  
  .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
  }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-brand img {
    height: 28px !important;
    margin-right: 5px !important;
  }
  
  #Xiaomi\ Repair\ Tool\ \(PAT\)-typing {
    font-size: 0.9rem !important;
  }
  
  .nav-link {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem;
  }
  
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
  }
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(0, 31, 63, 0.98) !important;
  box-shadow: 0 2px 20px rgba(64, 224, 208, 0.2);
  border-bottom: 1px solid rgba(64, 224, 208, 0.3);
}

/* Active link styling */
.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(64, 224, 208, 0.15);
  border-color: rgba(64, 224, 208, 0.3);
}

/* Hero Section - Futuristic Design */
.hero-section {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: heroGlow 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroGlow {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(64,224,208,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

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

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

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 50%, #7fffd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(64, 224, 208, 0.8), 0 0 80px rgba(64, 224, 208, 0.4);
  animation: titleFadeIn 1s ease-out, titleGlow 3s ease-in-out infinite;
  letter-spacing: 2px;
  position: relative;
}

.hero-title::after {
  content: 'Planet Auth Tool';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 50%, #7fffd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  animation: titleBlur 3s ease-in-out infinite;
}

@keyframes titleBlur {
  0%, 100% { opacity: 0.3; transform: scale(1.05); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(64, 224, 208, 0.2);
  animation: subtitleFadeIn 1s ease-out 0.2s both;
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: imageGlow 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes imageGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-image img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 30px rgba(64, 224, 208, 0.6)) drop-shadow(0 0 60px rgba(64, 224, 208, 0.3));
  position: relative;
  z-index: 1;
}

.hero-image:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 50px rgba(64, 224, 208, 0.9)) drop-shadow(0 0 100px rgba(64, 224, 208, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  50% { transform: translateY(-25px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}

/* Mobile Hero Adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
    padding-top: 70px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-image img {
    max-height: 300px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 85vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-image img {
    max-height: 250px !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Features Section - Hexagonal Pattern */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(0, 5, 16, 0.8) 0%, rgba(0, 21, 41, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 206, 209, 0.1) 0%, transparent 50%);
  opacity: 0.5;
  animation: featuresPulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes featuresPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.features-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.8), transparent);
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
  animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 20px rgba(64, 224, 208, 0.5); }
  50% { opacity: 1; box-shadow: 0 0 40px rgba(64, 224, 208, 0.8); }
}

.features-section > * {
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(0, 31, 63, 0.3);
  border: 2px solid rgba(64, 224, 208, 0.2);
  border-radius: 0;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: 
    0 0 0 1px rgba(64, 224, 208, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(64, 224, 208, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: featureRotate 8s linear infinite;
}

@keyframes featureRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.8),
    0 30px 80px rgba(64, 224, 208, 0.5),
    0 0 100px rgba(64, 224, 208, 0.3),
    inset 0 0 50px rgba(64, 224, 208, 0.1);
  border-color: rgba(64, 224, 208, 0.9);
  background: rgba(0, 31, 63, 0.5);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 100%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.8rem;
  color: #000510;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.5),
    0 10px 30px rgba(64, 224, 208, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
  transform: rotate(-5deg);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, #40e0d0, #00ced1, #48d1cc);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.6s ease;
  z-index: -1;
  clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 
    0 0 0 3px rgba(64, 224, 208, 0.8),
    0 20px 50px rgba(64, 224, 208, 0.6),
    0 0 60px rgba(64, 224, 208, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.feature-card:hover .feature-icon::before {
  opacity: 0.8;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mobile Features Adjustments */
@media (max-width: 991.98px) {
  .features-section {
    padding: 4rem 0;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .features-section {
    padding: 3rem 0;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
}

/* Stats Section - Futuristic Grid */
.stats-section {
  padding: 5rem 0;
  background: rgba(0, 5, 16, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 2px solid rgba(64, 224, 208, 0.2);
  border-bottom: 2px solid rgba(64, 224, 208, 0.2);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(64, 224, 208, 0.05) 50px, rgba(64, 224, 208, 0.05) 52px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 206, 209, 0.05) 50px, rgba(0, 206, 209, 0.05) 52px);
  pointer-events: none;
  z-index: 0;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
  animation: statsRotate 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes statsRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.stats-section > * {
  position: relative;
  z-index: 1;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 31, 63, 0.2);
  border: 1px solid rgba(64, 224, 208, 0.1);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  margin: 0.5rem;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 50%, #7fffd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(64, 224, 208, 0.8), 0 0 80px rgba(64, 224, 208, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: attr(data-number);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 50%, #7fffd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(15px);
  opacity: 0.6;
  z-index: -1;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(0, 31, 63, 0.4);
  border-color: rgba(64, 224, 208, 0.5);
  box-shadow: 
    0 0 0 2px rgba(64, 224, 208, 0.6),
    0 15px 50px rgba(64, 224, 208, 0.4),
    0 0 60px rgba(64, 224, 208, 0.3);
}

.stat-item:hover .stat-number {
  transform: scale(1.15);
  filter: drop-shadow(0 0 30px rgba(64, 224, 208, 1));
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  opacity: 0.9;
  transition: all 0.5s ease;
}

.stat-item:hover .stat-label {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-3px);
}

/* Mobile Stats Adjustments */
@media (max-width: 575.98px) {
  .stats-section {
    padding: 3rem 0;
  }
  
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* CTA Section */
.cta-section {
  padding: 7rem 0;
  background: linear-gradient(135deg, rgba(0, 5, 16, 0.9) 0%, rgba(0, 31, 63, 0.9) 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(64, 224, 208, 0.3);
  border-bottom: 2px solid rgba(64, 224, 208, 0.3);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(64, 224, 208, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 206, 209, 0.2) 0%, transparent 50%);
  animation: ctaPulse 6s ease-in-out infinite;
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
  animation: ctaRotate 20s linear infinite;
  z-index: 0;
}

@keyframes ctaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(64, 224, 208, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 206, 209, 0.15) 0%, transparent 50%);
  animation: ctaPulse 6s ease-in-out infinite;
}

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

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  color: #40e0d0;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(64, 224, 208, 0.5), 0 0 40px rgba(64, 224, 208, 0.3);
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 2px 20px rgba(64, 224, 208, 0.5), 0 0 40px rgba(64, 224, 208, 0.3); }
  50% { text-shadow: 0 2px 30px rgba(64, 224, 208, 0.8), 0 0 60px rgba(64, 224, 208, 0.5); }
}

.cta-description {
  font-size: 1.3rem;
  color: #7fffd4;
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(64, 224, 208, 0.3);
}

/* Mobile CTA Adjustments */
@media (max-width: 991.98px) {
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-title {
    font-size: 2.5rem;
  }
  
  .cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}

/* Footer - Futuristic Design */
.footer {
  background: linear-gradient(180deg, rgba(0, 5, 16, 0.95) 0%, #000510 100%);
  border-top: 2px solid rgba(64, 224, 208, 0.3);
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.8), transparent);
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
  animation: footerGlow 3s ease-in-out infinite;
}

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

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(64, 224, 208, 0.03) 30px, rgba(64, 224, 208, 0.03) 32px);
  pointer-events: none;
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a {
  transition: all 0.3s ease;
  position: relative;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disabled fade animation to prevent flickering 
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
*/

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-primary);
}

.border-custom {
  border: 1px solid var(--border-color);
}

.rounded-custom {
  border-radius: var(--border-radius);
}

/* Enhanced Text Readability */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

p, span, div {
  color: var(--text-primary);
}

.lead {
  color: var(--text-primary) !important;
  font-weight: 400;
  opacity: 0.95;
}

.fw-bold {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
  opacity: 0.9;
}

/* List Styling */
ol, ul {
  color: var(--text-primary) !important;
}

ol li, ul li {
  color: var(--text-primary) !important;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

ol li strong, ul li strong {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Specific overrides for instructions */
.alert ol li {
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.card ol li, .card ul li {
  color: var(--text-primary) !important;
  font-weight: 600;
}

h6.fw-bold, .fw-bold {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Alert Text Improvements */
.alert {
  color: var(--text-primary) !important;
}

.alert * {
  color: var(--text-primary) !important;
}

.alert strong {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.alert ol, .alert ul {
  color: var(--text-primary) !important;
}

.alert li {
  color: var(--text-primary) !important;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.alert-info {
  background: rgba(64, 224, 208, 0.15) !important;
  border: 1px solid rgba(64, 224, 208, 0.3) !important;
  color: var(--text-primary) !important;
}

.alert-info * {
  color: var(--text-primary) !important;
}

/* Card Text */
.card-body h1, .card-body h2, .card-body h3, 
.card-body h4, .card-body h5, .card-body h6 {
  color: var(--text-primary) !important;
}

.card-body p, .card-body span, .card-body div {
  color: var(--text-primary) !important;
}

/* Feature Icons and Text */
.feature-icon {
  color: var(--text-primary) !important;
}

.feature-title {
  color: var(--text-primary) !important;
  font-weight: 600;
}

/* Navigation Text */
.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Footer Text */
.footer h5 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.footer p, .footer span {
  color: var(--text-muted) !important;
}

.footer-links a {
  color: var(--text-muted) !important;
  transition: color 0.3s ease;
}

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

/* Mobile Button Improvements */
@media (max-width: 575.98px) {
  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  
  .btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .d-flex.gap-3 {
    gap: 0.75rem !important;
  }
  
  .d-flex.gap-3 .btn {
    flex: 1;
    min-width: 0;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  .btn:active,
  .nav-link:active {
    transform: scale(0.98);
  }
}

/* General Mobile Optimizations */
@media (max-width: 991.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col, .col-md-3, .col-md-6, .col-lg-4, .col-lg-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  
  .col, .col-md-3, .col-md-6, .col-lg-4, .col-lg-6 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 991.98px) {
  .hero-section::before {
    background: none;
  }
  
  .cta-section::before {
    background: none;
  }
  
  .feature-card::before {
    display: none;
  }
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Improve touch targets */
@media (max-width: 575.98px) {
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Loading optimization - Disabled to prevent flickering 
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
*/

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #40e0d0;
    --text-primary: #40e0d0;
    --text-secondary: #7fffd4;
    --border-color: #40e0d0;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image {
    animation: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}