/* Core theme -------------------------------------------------------------- */
:root {
  --color-bg: #000;
  --color-bg-soft: #111;
  --color-surface: rgba(26, 32, 44, 0.8);
  --color-surface-strong: rgba(45, 55, 72, 0.9);
  --color-border: rgba(255,255,255,0.15);
  --color-border-strong: rgba(255,255,255,0.25);
  --color-foreground: #ffffff;
  --color-muted: rgba(255,255,255,0.7);
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-height: clamp(60px, 5vw, 80px);
  --gradient-primary: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  --gradient-secondary: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  --gradient-accent: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--color-bg);
  background-attachment: fixed;
  color: var(--color-foreground);
  overflow-x: hidden;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: hidden; /* Prevent scroll during loading */
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  z-index: -2;
  animation: backgroundOrbs 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  z-index: -1;
  animation: backgroundOrbs 25s ease-in-out infinite reverse;
}

body.loaded {
  overflow-y: auto; /* Re-enable scroll after loading */
}

body.loaded main {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.loaded .nav {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.loaded .footer {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

img {
  max-width: 100%;
  display: block;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Reduce motion for better mobile performance */
  * {
    animation-duration: 0.3s !important;
    animation-delay: -0.1s !important;
    transition-duration: 0.2s !important;
  }

  /* Disable hover effects on touch devices */
  .card:hover,
  .btn:hover,
  .nav-link:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }

  /* Optimize backdrop filters for mobile */
  .nav,
  .card,
  .btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .nav-link,
  .btn,
  .hamburger,
  .command-btn,
  .filter-btn,
  .project-demo,
  .project-details {
    min-height: 44px;
    min-width: 44px;
  }

  /* Disable hover states on touch devices */
  .card::before,
  .card::after,
  .btn::before,
  .btn::after {
    display: none !important;
  }
}

.container {
  width: min(1200px, 95%);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section::before {
  content: '';
  position: absolute;
  inset-inline: 50%;
  width: clamp(140px, 40vw, 460px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  top: 0;
  opacity: 0.45;
}

/* Loading Screen ---------------------------------------------------------- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen.revealing {
  animation: loadingReveal 1s ease-in-out forwards;
}

@keyframes loadingReveal {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

.loading-content {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}

.loading-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  font-size: 3rem;
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.6);
  animation: logoRing 2s linear infinite;
}

@keyframes logoRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-progress {
  margin: 24px 0;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.loading-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.loading-dots .dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; }

.loading-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin: 0 0 48px;
  letter-spacing: -0.04em;
  position: relative;
  background: linear-gradient(120deg, rgba(255,255,255,0.92), rgba(255,255,255,0.45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
  transform: scaleY(1.1);
}

::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.05);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

/* Scroll Progress Bar --------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: var(--nav-height, 80px);
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.scroll-progress.visible {
  opacity: 1;
}

.scroll-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
  border-radius: 0 0 2px 2px;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.scroll-progress.glow::before {
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.8), 0 0 25px rgba(74, 222, 128, 0.4);
}

/* Modern Animated Grid Background ------------------------------------------- */
.background-layers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  animation: modernGridPulse 15s ease-in-out infinite;
}

.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 200px 200px;
  opacity: 0.3;
  animation: modernGridPulse 20s ease-in-out infinite reverse;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
  opacity: 0.4;
  animation: backgroundOrbs 30s ease-in-out infinite;
}

/* Modern Navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(255,255,255,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 5%;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-foreground);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.brand::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.brand:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.brand span {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: none;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.6);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  border-radius: 1px;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-foreground);
  transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.hamburger span {
  width: 24px;
  height: 2px;
  border-radius: 4px;
  background: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

main {
  margin-top: var(--nav-height);
}

/* Modern Buttons ---------------------------------------------------------- */
.btn {
  cursor: pointer;
  border: 1px solid var(--color-border-strong);
  background: rgba(255,255,255,0.06);
  color: var(--color-foreground);
  padding: 14px 28px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

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

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 48%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover::before {
  opacity: 0.1;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6);
  border-color: rgba(255,255,255,0.3);
}

.btn:active {
  transform: translateY(-2px) scale(1.01);
}

.btn.primary {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}

.btn.primary::before {
  display: none;
}

.btn.primary:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 28px 56px rgba(255,255,255,0.15);
  transform: translateY(-4px) scale(1.05);
}

.btn.outline {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

.btn.outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 24px 48px rgba(255,255,255,0.1);
}

/* Hero ------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  place-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/backgrounds/image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 3;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 2;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 600px at 20% 35%, rgba(255,255,255,0.08), transparent 70%),
              radial-gradient(460px 460px at 80% 45%, rgba(255,255,255,0.06), transparent 72%);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  width: 100%;
  max-width: 1000px;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.availability .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37ff8b;
  box-shadow: 0 0 14px rgba(55, 255, 139, 0.75);
  animation: availabilityPulse 2.6s ease-in-out infinite;
}

@keyframes availabilityPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.2); opacity: 0.72; }
}

.headline {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.gradient-scroll .scroll-text {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,1) 25%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,1) 75%,
    rgba(255,255,255,0.3) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientScroll 3s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sub-headline {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  max-width: 60ch;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-proof {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 900px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(16, 18, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 42px rgba(8, 10, 24, 0.55);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}

.profile-frame {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 38px rgba(6,8,16,0.6), inset 0 0 22px rgba(255,255,255,0.18);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-glow {
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 70%);
  mix-blend-mode: screen;
  animation: profileGlow 6s ease-in-out infinite;
}

.profile-meta {
  display: grid;
  gap: 6px;
}

.profile-meta p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.profile-meta strong {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(18, 18, 18, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 50px rgba(10, 12, 25, 0.45);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.stat-card .icon {
  font-size: 1.4rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.58);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
  margin-top: 6px;
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(18, 19, 32, 0.55);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 12px;
}

.features-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.68);
}

.features-list li::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  left: 0;
  top: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* Section cards ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}

/* Services - Enhanced Interactive Cards */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

.service-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow: 0 40px 80px rgba(8, 10, 22, 0.8), 0 0 50px rgba(255,255,255,0.15);
}

.service-header {
  margin-bottom: 24px;
}

.service-header .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-interactive {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.service-card:hover .service-interactive {
  opacity: 1;
  transform: translateY(0);
}

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-md);
  background: hsla(0, 0%, 18%, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 28px 40px rgba(6, 8, 18, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12) 35%, transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-12px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.02);
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 36px 60px rgba(8, 10, 22, 0.6), 0 0 40px rgba(255,255,255,0.1);
}

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

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

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 12px;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

.hover-reveal {
  position: relative;
}

.hover-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-reveal:hover::before {
  opacity: 0.4;
}

/* Service Interactive Elements ------------------------------------------- */
.code-editor {
  width: 100%;
  max-width: 380px;
  background: rgba(32, 32, 32, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(47, 49, 54, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-tabs {
  display: flex;
  gap: 12px;
}

.tab {
  padding: 4px 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-radius: 4px;
}

.tab.active {
  background: rgba(88, 101, 242, 0.2);
  color: #5865F2;
}

.code-controls {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.code-content {
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #d4d4d4;
  line-height: 1.4;
}

.code-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(67, 181, 129, 0.1);
  border-top: 1px solid rgba(67, 181, 129, 0.3);
  font-size: 0.75rem;
  color: #4ade80;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.5s ease-in-out infinite;
}

/* API Visualizer */
.api-visualizer {
  width: 100%;
  max-width: 350px;
}

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(32, 32, 32, 0.6);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

.method {
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.7rem;
}

.method.get { background: #4ade80; color: #1a1a1a; }
.method.post { background: #fbbf24; color: #1a1a1a; }
.method.put { background: #3b82f6; color: #fff; }

.path {
  color: #e5e7eb;
  flex: 1;
}

.response {
  color: #10b981;
  font-weight: 600;
}

.api-data {
  text-align: center;
}

.data-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.data-point {
  font-size: 0.8rem;
  color: #d1d5db;
}

.arrow {
  font-size: 1.2rem;
  color: #6b7280;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

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

/* Game Systems */
.mini-game {
  width: 100%;
  max-width: 300px;
}

.game-ui {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.leaderboard {
  margin-bottom: 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rank {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
}

.player {
  flex: 1;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.score {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
}

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

.achievement {
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #d1d5db;
  border: 1px solid rgba(255,255,255,0.1);
}

.achievement.unlocked {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* Moderation Panel */
.moderation-panel {
  width: 100%;
  max-width: 350px;
}

.mod-log {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-time {
  color: #6b7280;
  width: 40px;
}

.log-action {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
}

.log-action.warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.log-action.mute { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.log-action.ban { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.log-user {
  color: #e5e7eb;
  flex: 1;
}

.log-reason {
  color: #9ca3af;
}

.mod-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  text-align: center;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.stat-label {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Analytics Dashboard */
.analytics-dashboard {
  width: 100%;
  max-width: 320px;
}

.chart-container {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 80px;
  margin-bottom: 12px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  border-radius: 2px 2px 0 0;
  min-height: 10px;
  animation: barGrow 1s ease-out;
}

@keyframes barGrow {
  0% { height: 0%; }
  100% { height: var(--bar-height, 50%); }
}

.chart-labels {
  display: flex;
  gap: 4px;
  font-size: 0.7rem;
  color: #9ca3af;
}

.analytics-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  text-align: center;
  padding: 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4ade80;
}

.metric-label {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Performance Monitor */
.performance-monitor {
  width: 100%;
  max-width: 320px;
}

.perf-metrics {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.metric-row:last-child {
  margin-bottom: 0;
}

.metric-name {
  flex: 1;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #60a5fa;
  width: 50px;
  text-align: right;
}

.metric-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.perf-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-text {
  color: #4ade80;
  font-weight: 500;
}

/* Process Interactive Elements ------------------------------------------- */
.process-interactive {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.step:hover .process-interactive {
  opacity: 1;
  transform: translateY(0);
}

/* Process ---------------------------------------------------------------- */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: rgba(18, 19, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  min-height: 200px;
}

.step:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(8, 10, 22, 0.6);
  border-color: rgba(255,255,255,0.2);
}

.step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 16px;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.step p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

.step h3 {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
}

/* Process Interactive Elements - Detailed Styling ----------------------- */

/* Requirements Form (Discover Step) */
.requirements-form {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 300px;
  text-align: left;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.12em;
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.form-select option {
  background: rgba(32, 32, 32, 0.9);
  color: #fff;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  gap: 12px;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  padding: 2px 0;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox:hover .checkmark {
  border-color: rgba(255,255,255,0.4);
  background-color: rgba(255,255,255,0.1);
}

.checkbox input:checked ~ .checkmark {
  background-color: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid rgba(255,255,255,0.9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Budget Slider */
.budget-slider {
  position: relative;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.slider-value {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
}

/* Flow Diagram (Design Step) */
.command-flow {
  width: 100%;
  max-width: 320px;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 200px;
}

.flow-node.user {
  background: rgba(67, 181, 129, 0.1);
  border: 1px solid rgba(67, 181, 129, 0.3);
}

.flow-node.bot {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.flow-node.output {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.node-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.node-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  letter-spacing: 0.1em;
}

.node-command {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-family: 'Courier New', monospace;
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-top: 4px;
}

.node-steps {
  max-width: 100px;
}

.step-item {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
  padding: 1px 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

.flow-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
  animation: arrowPulse 2s ease-in-out infinite;
  transform: rotate(90deg);
}

/* Code Snippets (Build Step) */
.build-process {
  width: 100%;
  max-width: 320px;
}

.code-snippets {
  width: 100%;
}

.snippet {
  background: rgba(32, 32, 32, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 16px;
}

.snippet.active {
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.1);
}

.snippet:last-child {
  margin-bottom: 0;
}

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(47, 49, 54, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.snippet-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  font-family: 'Courier New', monospace;
}

.snippet-status {
  font-size: 0.75rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
}

.snippet-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.snippet-code {
  padding: 16px;
}

.snippet-code pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #d4d4d4;
  line-height: 1.4;
  overflow-x: auto;
}

.snippet-code code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Build Progress */
.build-progress {
  margin-top: 20px;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.progress-step.completed {
  background: rgba(67, 181, 129, 0.1);
  border-color: rgba(67, 181, 129, 0.3);
}

.progress-step.active {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.step-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.progress-step.completed .step-indicator {
  background: rgba(67, 181, 129, 0.2);
  color: #4ade80;
}

.progress-step.active .step-indicator {
  background: rgba(88, 101, 242, 0.2);
  color: #5865F2;
}

.progress-step:not(.completed):not(.active) .step-indicator {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

.step-name {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* Deployment Interface (Ship Step) */
.deployment-interface {
  width: 100%;
  max-width: 320px;
}

.deploy-status {
  display: grid;
  gap: 16px;
}

.status-card {
  background: rgba(32, 32, 32, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-badge.success {
  background: rgba(67, 181, 129, 0.2);
  color: #4ade80;
  border: 1px solid rgba(67, 181, 129, 0.3);
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-metrics .metric {
  text-align: center;
}

.status-metrics .metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 4px;
}

.status-metrics .metric-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

.server-info {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.server:last-child {
  margin-bottom: 0;
}

.server-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
}

.server-bars {
  display: flex;
  gap: 3px;
  align-items: end;
}

.bar {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, #4ade80, rgba(78, 222, 128, 0.6));
  animation: serverBar 3s ease-in-out infinite;
}

.bar:nth-child(2) {
  animation-delay: 0.5s;
}

.bar:nth-child(3) {
  animation-delay: 1s;
}

.bar:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes serverBar {
  0%, 100% { height: 20px; opacity: 0.6; }
  50% { height: 40px; opacity: 1; }
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 18, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  padding: clamp(34px, 5vw, 48px);
}

.slide blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

.slide figcaption {
  margin-top: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.54);
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 12px;
}

.carousel-controls .btn {
  pointer-events: auto;
  padding: 10px 16px;
  border-radius: 10px;
}

/* Discord Contact -------------------------------------------------------- */
.discord-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.discord-logo {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(12, 14, 24, 0.92);
  box-shadow: 0 28px 40px rgba(12, 14, 24, 0.45);
}

.username {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
}

/* Games ------------------------------------------------------------------ */
.game-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(14, 16, 28, 0.68);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 48px rgba(10, 12, 24, 0.6);
}

.game-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  letter-spacing: 0.18em;
}

.game-card canvas {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(140deg, rgba(15,18,32,0.95), rgba(12,14,28,0.85));
  box-shadow: inset 0 0 28px rgba(0,0,0,0.45);
}

.game-hud {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.12em;
}

.game-controls {
  display: flex;
  gap: 12px;
}

/* Modern Footer ---------------------------------------------------------- */
.footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 64px 0 32px;
  margin-top: 120px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 20%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0.3) 80%,
    transparent 100%);
  animation: footerGlow 4s ease-in-out infinite;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  opacity: 0.6;
  animation: footerOrbs 15s ease-in-out infinite;
}

#footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 5%;
}

.footer .brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--color-foreground);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.footer .brand:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.footer .brand span {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: none;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.footer .links,
.footer .social {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer .links {
  gap: 32px;
}

.footer a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 8px 16px;
  border-radius: 8px;
}

.footer a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(-50%);
  border-radius: 1px;
}

.footer a:hover {
  color: var(--color-foreground);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.footer a:hover::after {
  width: 80%;
}

.footer .social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer .social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(255,255,255,0.1);
  color: #ffffff;
}

.footer .copyright {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer .copyright strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

@keyframes footerGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1.1);
  }
}

/* Terms of Service & Privacy Policy Pages ------------------------------- */
.terms-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  background: rgba(18, 19, 32, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 64px rgba(8, 10, 22, 0.6);
}

.terms-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terms-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0 0 16px;
  background: rgba(255,255,255,0.9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.terms-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
  letter-spacing: 0.08em;
}

.terms-status .status-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: statusPulse 2s ease-in-out infinite;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.terms-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-section h2 {
  color: var(--color-foreground);
  font-size: 1.4rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 24px;
}

.terms-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}

.terms-section p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 16px;
  font-size: 1rem;
}

.terms-section:last-child p:last-child {
  margin-bottom: 0;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.terms-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.terms-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.8);
  font-weight: bold;
}

.terms-highlight {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid rgba(255,255,255,0.6);
}

.terms-highlight strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.terms-contact {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.terms-contact h3 {
  color: var(--color-foreground);
  font-size: 1.3rem;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.terms-contact p {
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
  font-size: 1rem;
}

.terms-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .terms-container {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .terms-title {
    font-size: 2.5rem;
  }

  .terms-actions {
    flex-direction: column;
    align-items: center;
  }

  .terms-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Discord Demo ----------------------------------------------------------- */
.discord-demo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.discord-interface {
  background: rgba(54, 57, 63, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.discord-header {
  background: rgba(47, 49, 54, 0.95);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(114, 137, 218, 0.8));
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.server-details h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.server-details p {
  margin: 0;
  font-size: 0.8rem;
  color: #b9bbbe;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8e9297;
  font-weight: 600;
}

.channel-hash {
  font-size: 1.2rem;
  color: #8e9297;
}

.discord-messages {
  height: 400px;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  animation: messageSlide 0.3s ease-out;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(114, 137, 218, 0.8));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, rgba(67, 181, 129, 0.8), rgba(67, 181, 129, 0.6));
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.username {
  font-weight: 600;
  color: #fff;
}

.bot-tag {
  background: rgba(88, 101, 242, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.timestamp {
  font-size: 0.75rem;
  color: #72767d;
}

.message-text {
  color: #dcddde;
  line-height: 1.375;
}

.message-text code {
  background: rgba(32, 34, 37, 0.6);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
}

.discord-input {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.input-container {
  display: flex;
  align-items: center;
  background: rgba(64, 68, 75, 0.6);
  border-radius: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

#demo-input {
  flex: 1;
  background: none;
  border: none;
  color: #dcddde;
  padding: 12px 0;
  font-size: 1rem;
  outline: none;
}

#demo-input::placeholder {
  color: #72767d;
}

.send-btn {
  background: rgba(88, 101, 242, 0.8);
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.send-btn:hover {
  background: rgba(88, 101, 242, 1);
  transform: scale(1.05);
}

.demo-features {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
}

.demo-features h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.1rem;
}

.command-buttons {
  display: grid;
  gap: 8px;
}

.command-btn {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #dcddde;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.9rem;
  overflow: hidden;
}

.command-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #72767d;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  background: #72767d;
  border-radius: 50%;
  animation: typingDots 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Discord Embeds --------------------------------------------------------- */
.discord-embed {
  background: rgba(47, 49, 54, 0.3);
  border-left: 4px solid #5865F2;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 8px;
  max-width: 520px;
  animation: embedSlide 0.4s ease-out;
}

.embed-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-size: 1rem;
}

.embed-description {
  color: #dcddde;
  margin-bottom: 12px;
  line-height: 1.4;
  white-space: pre-line;
}

.embed-thumbnail {
  font-size: 3rem;
  text-align: center;
  margin: 12px 0;
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.embed-field {
  grid-column: span 3;
}

.embed-field.inline {
  grid-column: span 1;
}

.embed-field-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.embed-field-value {
  color: #dcddde;
  font-size: 0.875rem;
  line-height: 1.3;
}

.embed-footer {
  color: #72767d;
  font-size: 0.75rem;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Enhanced Loading Screen ------------------------------------------------- */
.loading-screen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.95) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.9) 0%, transparent 50%),
    linear-gradient(135deg, #000 0%, #111 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
  animation: loadingOrbs 8s ease-in-out infinite;
  opacity: 0.6;
}

.loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  animation: loadingGrid 12s linear infinite;
}

body:not(.loaded) main {
  opacity: 0;
  transform: translateY(50px);
}

body:not(.loaded) .nav {
  opacity: 0;
  transform: translateY(-100%);
}

body:not(.loaded) .section {
  opacity: 0;
  transform: translateY(30px);
}

body.loaded .section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.loaded .hero {
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-screen.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loading-content {
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  animation: loadingContentFadeIn 1s ease-out 0.5s forwards;
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
  position: relative;
}

.logo-icon {
  font-size: 5rem;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 70%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(255,255,255,0.2),
    0 0 80px rgba(255,255,255,0.1),
    inset 0 0 20px rgba(255,255,255,0.1);
  animation: logoFloat 3s ease-in-out infinite, logoGlow 4s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
  border-radius: 50%;
  animation: logoRotate 8s linear infinite;
}

.loading-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: statusFadeIn 1s ease-out 2s forwards;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.loading-status span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  font-weight: 500;
}

@keyframes statusFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-title.final {
  animation: titleFinalGlow 1.5s ease-in-out infinite alternate, titleComplete 0.8s ease-out;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,1) 70%, rgba(255,255,255,0.9) 100%);
  background-size: 100% 100%;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-progress {
  margin-bottom: 40px;
  position: relative;
  padding: 0 20px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

.progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.9) 30%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,0.9) 70%,
    rgba(255,255,255,0.6) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  animation: progressGlow 1.5s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
  animation: progressPulse 0.6s ease-in-out infinite;
}

.loading-text {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  animation: textFade 2s ease-in-out infinite alternate;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-text::after {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: textDot 1.4s ease-in-out infinite;
}

.loading-text.final {
  color: rgba(255,255,255,1);
  animation: finalMessage 1.2s ease-in-out, textGlow 1s ease-in-out infinite alternate;
  font-weight: 600;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  border-radius: 50%;
  animation: dotFloat 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
  position: relative;
}

.dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  opacity: 0.6;
  animation: dotHalo 1.6s ease-in-out infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.3s;
  animation-duration: 1.4s;
}
.dot:nth-child(3) {
  animation-delay: 0.6s;
  animation-duration: 1.8s;
}

/* Enhanced Loading Animations */
@keyframes loadingOrbs {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.7;
    transform: scale(1.1) rotate(120deg);
  }
  66% {
    opacity: 0.3;
    transform: scale(0.9) rotate(240deg);
  }
}

@keyframes loadingGrid {
  0% { transform: translate(0, 0); opacity: 0.2; }
  50% { opacity: 0.4; }
  100% { transform: translate(60px, 60px); opacity: 0.2; }
}

@keyframes loadingContentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(255,255,255,0.2),
      0 0 80px rgba(255,255,255,0.1),
      inset 0 0 20px rgba(255,255,255,0.1);
  }
  50% {
    box-shadow:
      0 0 60px rgba(255,255,255,0.4),
      0 0 120px rgba(255,255,255,0.2),
      inset 0 0 30px rgba(255,255,255,0.2);
  }
}

@keyframes logoRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes titleFinalGlow {
  0% {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,1) 100%);
    background-size: 100% 100%;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
  }
  100% {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,1) 70%, rgba(255,255,255,0.8) 100%);
    background-size: 150% 100%;
    text-shadow: 0 0 50px rgba(255,255,255,0.8);
  }
}

@keyframes titleComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255,255,255,0.6);
  }
}

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

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255,255,255,0.6);
  }
}

@keyframes dotFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-12px) scale(1.2);
    opacity: 1;
  }
}

@keyframes dotHalo {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.4);
  }
}

@keyframes particleBurst {
  0% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  20% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(-100px);
  }
}

.loading-screen.revealing {
  animation: screenReveal 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes rocketLaunch {
  0% {
    transform: translateX(-50%) scale(0) rotate(-45deg);
    opacity: 0;
  }
  20% {
    transform: translateX(-50%) scale(1.2) rotate(-45deg);
    opacity: 1;
  }
  60% {
    transform: translateX(-50%) translateY(-200px) scale(1.5) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-400px) scale(0.8) rotate(-45deg);
    opacity: 0;
  }
}

@keyframes rocketTrail {
  0% {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
  }
  10% {
    transform: translateX(-50%) scaleY(0.3);
    opacity: 0.8;
  }
  40% {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scaleY(0.1);
    opacity: 0;
  }
}

@keyframes screenReveal {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  100% {
    transform: scale(1.05);
    filter: brightness(0.8);
    opacity: 0.3;
  }
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  box-shadow: 0 0 24px rgba(255,255,255,0.3), inset 0 0 12px rgba(255,255,255,0.3);
  z-index: 90;
}

.custom-cursor::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* Media queries ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    align-items: center;
  }

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

  .features-list {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero-buttons {
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .games-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Discord Contract Styles ------------------------------------------------- */
.contract-container {
  width: 100%;
  max-width: 600px;
  background: rgba(18, 19, 32, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 32px 60px rgba(8, 10, 22, 0.6);
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 auto;
}

.contract-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(8, 10, 22, 0.8);
}

.contract-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
}

.contract-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contract-title h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #4ade80;
  letter-spacing: 0.1em;
  animation: statusPulse 2s ease-in-out infinite;
}

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

.contract-details {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

.detail-row .value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.contract-content {
  padding: 24px;
}

.contract-terms {
  margin-bottom: 32px;
}

.contract-terms h4 {
  margin: 0 0 20px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}

.terms-list {
  display: grid;
  gap: 16px;
}

.term-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.term-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.term-checkbox {
  margin-top: 2px;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
}

.term-item.checked .checkbox-custom {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: solid rgba(255,255,255,0.9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s ease;
}

.term-item.checked .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.term-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  flex: 1;
}

.signature-section {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.signature-area {
  text-align: center;
}

.signature-line {
  position: relative;
  margin-bottom: 16px;
  padding: 20px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature-line:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.02);
}

.signature-line.signed {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}

.signature-placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.signature-line:hover .signature-placeholder {
  color: rgba(255,255,255,0.7);
}

.signature-line.signed .signature-placeholder {
  opacity: 0;
}

.signature-animation {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.signature-line.signed .signature-animation {
  opacity: 1;
  transform: scale(1);
}

.signature-svg {
  width: 200px;
  height: 40px;
}

.signature-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawSignature 1.5s ease-in-out forwards;
}

@keyframes drawSignature {
  0% {
    stroke-dashoffset: 200;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
}

.signature-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-text.signed {
  color: #4ade80;
}

.signature-progress {
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-fill.complete {
  width: 100%;
}

.contract-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contract-btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.contract-btn::before {
  display: none;
}

.contract-btn.signed {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.contact-info {
  width: 100%;
}

.contact-info .discord-username {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.contract-footer {
  padding: 32px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.completion-animation {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.completion-animation.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 16px;
  animation: successBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-20px) scale(1.1);
  }
  60% {
    transform: translateY(-10px) scale(1.05);
  }
}

.success-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.success-particles {
  position: relative;
  width: 100px;
  height: 50px;
  margin: 0 auto;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: particleFloat 1.5s ease-out forwards;
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0.1s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 0.2s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 0.3s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 0.4s;
}

.particle:nth-child(5) {
  left: 50%;
  top: 10px;
  animation-delay: 0.5s;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0);
  }
}

/* Testimonials Interactive Styles ---------------------------------------- */
.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(18, 19, 32, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: statCountUp 1.5s ease-out forwards;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes statCountUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.carousel {
  position: relative;
  background: rgba(18, 19, 32, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(8, 10, 22, 0.6);
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.slide {
  min-width: 100%;
  padding: 48px 40px 60px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.2);
}

.client-info {
  flex: 1;
}

.client-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.client-server {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: rgba(255,255,255,0.2);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.star.filled {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: starGlow 0.5s ease;
}

.star.half {
  background: linear-gradient(90deg, #fbbf24 50%, rgba(255,255,255,0.2) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.testimonial-quote {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  position: relative;
  padding: 0 24px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  font-family: serif;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.testimonial-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.testimonial-verified {
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 500;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,1);
  transform: scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.3);
}

.testimonials-live-updates {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10;
  max-width: 300px;
}

.live-update-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(18, 19, 32, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(8, 10, 22, 0.6);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: liveUpdateSlide 0.4s ease-out forwards;
}

.live-update-item.hide {
  opacity: 0;
  transform: translateX(100%);
}

@keyframes liveUpdateSlide {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.update-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.update-content {
  flex: 1;
}

.update-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.update-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .testimonials-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item::after {
    display: none;
  }

  .contract-actions {
    flex-direction: column;
    gap: 16px;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .slide {
    padding: 24px;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }

  .carousel-controls {
    left: 10px;
    right: 10px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}

/* Portfolio Modal Styles */
.project-details-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  animation: modalFadeIn 0.3s ease-out forwards;
}

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

.modal-content {
  background: rgba(18, 19, 32, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,1);
}

.modal-body {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.modal-body p {
  margin: 0 0 16px;
}

/* Portfolio Section ------------------------------------------------------- */
.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-stats .stat-item {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(18, 19, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.portfolio-stats .stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 12px 24px rgba(8, 10, 22, 0.4);
}

.portfolio-stats .stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-stats .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,1);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: rgba(18, 19, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 28px 40px rgba(6, 8, 18, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  min-height: 480px;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01); /* Reduced from -16px scale(1.02) */
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 20px 40px rgba(8, 10, 22, 0.6), 0 0 30px rgba(255,255,255,0.1); /* Reduced shadow */
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  margin-bottom: 20px;
}

.project-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
}

.project-status {
  display: flex;
  gap: 8px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.live {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.featured {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.beta {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-content {
  flex: 1;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

.project-description {
  margin: 0;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.metric {
  text-align: center;
}

.metric .metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.metric .metric-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tech-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 24px;
}

.project-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 10px 16px;
}

.project-preview {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 160px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-left: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.project-card:hover .project-preview {
  opacity: 1;
  transform: translateX(0);
}

.preview-content {
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.preview-content div {
  margin-bottom: 8px;
}

.preview-content div:last-child {
  margin-bottom: 0;
}

.portfolio-live-updates {
  margin-top: 48px;
  padding: 24px;
  background: rgba(18, 19, 32, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}

.live-update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.live-update-item:last-child {
  border-bottom: none;
}

.update-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.update-content {
  flex: 1;
}

.update-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.update-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* Portfolio hover effects */
.hover-reveal {
  position: relative;
  overflow: hidden;
}

.hover-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hover-reveal:hover::before {
  opacity: 0.4;
}

/* Portfolio filtering animations */
.portfolio-visible {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-hidden {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none !important;
}