:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-bg: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #667eea;
  --success-color: #00d4aa;
  --warning-color: #ffc107;
  --danger-color: #f5576c;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Container width optimization */
.container {
  max-width: 1140px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1320px;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

/* Disable Selection */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow selection for input fields and code blocks */
input,
textarea,
pre,
code,
.code-block {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Navbar - Modern Glass Design */
.navbar {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Animated AlphaMesh Logo */
.navbar-brand {
  font-weight: 700;
  font-size: 1.9rem;
  background: linear-gradient(
    90deg,
    #667eea 0%,
    #764ba2 14%,
    #f093fb 28%,
    #667eea 42%,
    #00d4aa 57%,
    #00a8ff 71%,
    #667eea 85%,
    #764ba2 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorWave 8s linear infinite;
  filter: brightness(1.3);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

@keyframes colorWave {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.navbar-brand:hover {
  filter: brightness(1.5);
  transform: scale(1.02);
}

/* Modern Navigation Links */
.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.2rem;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.1);
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link.active {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.15);
}

.nav-link.active::before {
  width: 60%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 50px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(102, 126, 234, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(118, 75, 162, 0.15) 0%,
      transparent 50%
    );
  animation: pulse 8s ease-in-out infinite;
}

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

  50% {
    opacity: 0.7;
  }
}

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

.badge-hero {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid var(--accent-color);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 50px;
}

/* Cards */
.card-custom {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-custom:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.card-custom:hover::before {
  opacity: 0.05;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

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

/* Technology Pills */
.tech-pill {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin: 5px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-pill:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

/* Microservice Cards */
.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.service-card:hover::after {
  left: 100%;
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.service-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 4px 10px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid var(--dark-bg);
}

.timeline-quarter {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Features Grid */
.feature-box {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary-custom {
  background: var(--primary-gradient);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

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

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--accent-color);
  color: white;
}

/* Table Styling */
.table-custom {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-custom thead {
  background: var(--primary-gradient);
}

.table-custom th,
.table-custom td {
  padding: 15px;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Progress Bars */
.progress-custom {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-custom {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 1s ease;
}

/* Floating Elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 60px rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1920px) {
  .hero-title {
    font-size: 6rem;
  }

  .container {
    max-width: 1400px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ===== DEVOPS & CLOUD ENGINEERING PARTICLES ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Infrastructure Node Styles */
.infra-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.node-server {
  width: 18px;
  height: 18px;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.6) 100%
  );
  border: 2px solid rgba(102, 126, 234, 0.8);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  animation: serverPulse 2s ease-in-out infinite;
}

.node-database {
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 170, 0.9) 0%,
    rgba(0, 168, 255, 0.6) 100%
  );
  border: 2px solid rgba(0, 212, 170, 0.8);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.5);
  animation: databasePulse 1.5s ease-in-out infinite;
}

.node-loadbalancer {
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    rgba(255, 193, 7, 0.9) 0%,
    rgba(245, 87, 108, 0.6) 100%
  );
  border: 2px solid rgba(255, 193, 7, 0.8);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
  animation: lbPulse 1s ease-in-out infinite;
}

.node-microservice {
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(156, 39, 176, 0.8) 0%,
    rgba(103, 58, 183, 0.5) 100%
  );
  border: 1px solid rgba(156, 39, 176, 0.7);
  animation: microservicePulse 3s ease-in-out infinite;
}

/* Data Packet (Traffic) */
.data-packet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
}

.data-packet.request {
  background: radial-gradient(
    circle,
    rgba(0, 212, 170, 1) 0%,
    rgba(0, 168, 255, 0.8) 100%
  );
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.8);
}

.data-packet.response {
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 1) 0%,
    rgba(118, 75, 162, 0.8) 100%
  );
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
}

.data-packet.error {
  background: radial-gradient(
    circle,
    rgba(244, 67, 54, 1) 0%,
    rgba(255, 87, 34, 0.8) 100%
  );
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
}

/* Connection Lines */
.connection-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  pointer-events: none;
}

.connection-line.active {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.2) 20%,
    rgba(0, 212, 170, 0.4) 50%,
    rgba(102, 126, 234, 0.2) 80%,
    transparent 100%
  );
  animation: dataFlow 1.5s linear infinite;
}

/* Traffic Flow Animation */
@keyframes dataFlow {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Node Animations */
@keyframes serverPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes databasePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(0, 212, 170, 0.8);
  }
}

@keyframes lbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes microservicePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

/* Deployment Animation */
.deployment-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle,
    rgba(76, 175, 80, 1) 0%,
    rgba(139, 195, 74, 0.8) 100%
  );
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
  pointer-events: none;
}

/* Metrics Visualization */
.metric-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 170, 0.6) 50%,
    transparent 100%
  );
  pointer-events: none;
  animation: metricMove 3s linear infinite;
}

@keyframes metricMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

/* Cluster Region Highlight */
.cluster-region {
  position: absolute;
  border: 1px dashed rgba(102, 126, 234, 0.15);
  border-radius: 8px;
  pointer-events: none;
  background: rgba(102, 126, 234, 0.02);
}

/* Click Ripple Effect */
.particle-ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.6);
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: rippleExpand 1s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 250px;
    height: 250px;
    opacity: 0;
  }
}

/* Light theme adjustments */
body.light-theme .infra-node {
  opacity: 0.7;
}

body.light-theme .data-packet {
  opacity: 0.8;
}

body.light-theme .cluster-region {
  border-color: rgba(102, 126, 234, 0.1);
  background: rgba(102, 126, 234, 0.01);
}

/* Navigation Active State */
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* AI Badge */
.ai-badge {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle.visible {
  opacity: 1;
  visibility: visible;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Light Theme */
body.light-theme {
  --dark-bg: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.03);
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
}

body.light-theme {
  background: #f5f5f7;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .navbar-brand {
  color: #1a1a1a !important;
}

body.light-theme .nav-link {
  color: #495057 !important;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  color: #667eea !important;
}

body.light-theme .navbar .btn-outline-light {
  border-color: #667eea;
  color: #667eea !important;
}

body.light-theme .navbar .btn-outline-light:hover {
  background: #667eea;
  color: white !important;
}

body.light-theme .theme-toggle {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

body.light-theme .card-custom,
body.light-theme .service-card,
body.light-theme .feature-box {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .section-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Performance Stats Badge */
.uptime-badge {
  background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
  color: #000;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uptime-badge i {
  animation: pulse 2s ease-in-out infinite;
}

/* Author Section */
.author-section {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  );
  border: 2px solid rgba(102, 126, 234, 0.4);
  border-radius: 25px;
  padding: 50px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.author-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.author-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(118, 75, 162, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 25s linear infinite reverse;
}

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

.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5),
    inset 0 -5px 20px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.author-avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.author-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

.author-name {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.author-bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.author-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(102, 126, 234, 0.4);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.author-social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.author-social-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.author-social-btn:hover::before {
  opacity: 0.1;
}

.author-social-btn i {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.author-social-btn span {
  position: relative;
  z-index: 1;
}

/* Light theme adjustments for author section */
body.light-theme .author-section {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  border-color: rgba(102, 126, 234, 0.3);
}

body.light-theme .author-social-btn {
  background: rgba(0, 0, 0, 0.03);
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 30px;
  font-size: 0.85rem;
}

.trust-badge i {
  color: #00d4aa;
}

/* Counter Animation */
.counter {
  transition: all 0.3s ease;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Cards */
.cta-card {
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

.cta-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.cta-primary {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

.cta-secondary {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 170, 0.1) 0%,
    rgba(0, 168, 255, 0.1) 100%
  );
}

.cta-secondary::before {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
}

.cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}

.cta-secondary .cta-icon {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
}

.cta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-secondary h3 {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-features span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* CTA Join Box */
.cta-join-box {
  background: var(--card-bg);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 25px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}

.cta-join-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
}

.cta-join-box h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

/* Team Section */
.team-section {
  margin-top: 60px;
}

.team-card {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.team-name {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.team-role {
  font-size: 1.1rem;
  font-weight: 600;
}

.team-bio {
  font-size: 1rem;
  line-height: 1.7;
}

.team-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.team-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Light theme adjustments */
body.light-theme .cta-card {
  background: white;
}

body.light-theme .team-card {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
}

body.light-theme .team-link {
  background: rgba(0, 0, 0, 0.03);
}

/* Light theme footer adjustments */
body.light-theme footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top-color: #dee2e6;
}

body.light-theme footer h6 {
  color: #1a1a1a !important;
}

body.light-theme footer .text-secondary {
  color: #495057 !important;
}

body.light-theme footer .text-secondary:hover {
  color: #667eea !important;
}

body.light-theme footer hr {
  border-color: #dee2e6 !important;
}

body.light-theme footer .text-white {
  color: #1a1a1a !important;
}

body.light-theme footer .text-white:hover {
  color: #667eea !important;
}

/* Copyright link styling */
.copyright-link {
  color: #667eea !important;
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copyright-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.copyright-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.copyright-link:hover {
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

body.light-theme .copyright-link {
  color: #667eea !important;
}

body.light-theme .copyright-link:hover {
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Copyright tagline hover effect */
.copyright-tagline {
  transition: letter-spacing 0.3s ease;
  cursor: default;
}

.copyright-tagline:hover {
  letter-spacing: 0.5px;
}

/* Light theme - no text-shadow for tagline */
body.light-theme .copyright-tagline:hover {
  letter-spacing: 0.5px;
}

/* Contact info display */
.contact-display {
  font-family: "Courier New", monospace;
  background: rgba(102, 126, 234, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  margin: 8px 0;
  font-size: 0.95rem;
}

body.light-theme .contact-display {
  background: rgba(102, 126, 234, 0.15);
  color: #1a1a1a;
}

/* Copy button wrapper */
.contact-display-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Copy button styling */
.copy-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.copy-btn.copied {
  background: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
}

.copy-btn.copied i {
  animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

body.light-theme .copy-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.light-theme .copy-btn:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Light theme CTA improvements */
body.light-theme .cta-join-box {
  background: white;
  border-color: rgba(102, 126, 234, 0.3);
}

body.light-theme .cta-join-box h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .cta-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .cta-card:hover {
  border-color: #667eea;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

/* Light theme tech pills */
body.light-theme .tech-pill {
  background: rgba(102, 126, 234, 0.1);
  color: #1a1a1a;
  border-color: rgba(102, 126, 234, 0.3);
}

body.light-theme .tech-pill:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* Light theme service cards */
body.light-theme .service-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .service-card:hover {
  border-color: #667eea;
  box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
}

/* Light theme feature boxes */
body.light-theme .feature-box {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .feature-box:hover {
  border-color: #667eea;
  box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
}

/* Light theme hero section */
body.light-theme .hero-section {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
}

/* Light theme buttons */
body.light-theme .btn-primary-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

body.light-theme .btn-primary-custom:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Light theme statistics */
body.light-theme .stat-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .stat-card:hover {
  border-color: #667eea;
  box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
}

/* Inspect Protection Modal */
.inspect-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.inspect-modal.show {
  display: flex;
}

.inspect-modal-content {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.2) 0%,
    rgba(118, 75, 162, 0.2) 100%
  );
  border: 2px solid rgba(255, 87, 108, 0.8);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(255, 87, 108, 0.4);
  position: relative;
}

.inspect-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 87, 108, 0.2);
  border-radius: 50%;
  color: rgba(255, 87, 108, 0.9);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.inspect-modal-close:hover {
  background: rgba(255, 87, 108, 0.3);
  transform: rotate(90deg);
}

.inspect-modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inspect-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inspect-modal p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.inspect-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.inspect-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
