/* NexusNiall.tv - Main Stylesheet */

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

:root {
  --primary: #0000FE;
  --secondary: #00C2FF;
  --accent: #0000FE;
  --bg-black: #000000;
  --bg-gray-900: #111827;
  --bg-gray-800: #1F2937;
  --text-white: #FFFFFF;
  --text-gray-300: #D1D5DB;
  --text-gray-400: #9CA3AF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Text Gradient Effect */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effects */
.glow {
  text-shadow: 0 0 20px rgba(0, 254, 136, 0.5), 0 0 40px rgba(0, 194, 255, 0.3);
}

.card-glow {
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3), 0 0 40px rgba(0, 194, 255, 0.15);
  transition: box-shadow 0.3s ease;
}

.card-glow:hover {
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.5), 0 0 60px rgba(0, 194, 255, 0.3);
}

/* Navigation Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-socials a {
  color: var(--text-gray-300);
  transition: color 0.2s;
}

.nav-socials a:hover {
  color: var(--primary);
}

.nav-socials svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu-btn,
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-top: 1px solid rgba(0, 194, 255, 0.3);
}

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

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray-300);
  text-decoration: none;
  transition: color 0.2s;
  border-radius: 8px;
}

.mobile-menu a:hover {
  color: var(--primary);
  background: rgba(0, 254, 136, 0.1);
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(0, 254, 136, 0.2);
  margin: 1rem 0;
}

.mobile-menu-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.mobile-menu-socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 254, 136, 0.1);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  padding: 0;
}

.mobile-menu-socials a:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.1);
}

.mobile-menu-socials svg {
  width: 24px;
  height: 24px;
}

/* Logo switching for desktop/mobile */
.nav-logo-desktop {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: 50px !important;
}

.nav-logo-mobile {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
}

.nav-logo {
  display: flex;
  align-items: center;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-gray-900) 50%, var(--bg-black) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 2rem;
  text-align: center;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 0, 254, 0.5)) drop-shadow(0 0 40px rgba(0, 194, 255, 0.3));
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-gray-300);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-gray-400);
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* Countdown Timer */
.countdown {
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.countdown-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 194, 255, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 80px;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.4), 0 0 40px rgba(0, 194, 255, 0.2);
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-label {
  font-size: 0.875rem;
  color: var(--text-gray-400);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-black);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 194, 255, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 254, 136, 0.1);
  transform: scale(1.05);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 2px solid rgba(0, 194, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
footer {
  background-color: var(--bg-black);
  border-top: 1px solid var(--bg-gray-800);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-gray-400);
  font-size: 0.875rem;
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-gray-800);
  color: var(--text-gray-400);
  font-size: 0.875rem;
}

/* Animations */
@keyframes grid-move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-slide-up {
  animation: slide-up 1s ease-out;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-socials {
    display: none;
  }

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

  .mobile-menu-btn,
  .mobile-menu-toggle {
    display: flex;
  }

  /* Logo switching for mobile */
  .nav-logo-desktop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
  }

  .nav-logo-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: 40px !important;
    position: relative !important;
  }

  .hero-logo img {
    width: 200px;
    height: 200px;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .countdown-box {
    min-width: 60px;
    padding: 0.75rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Content Sections */
.content-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray-400);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 2rem;
  border: 2px solid rgba(0, 194, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.5), 0 0 40px rgba(0, 194, 255, 0.3);
}

/* Emote Cards */
.emote-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.emote-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 194, 255, 0.5), 0 0 30px rgba(0, 194, 255, 0.4);
  background: rgba(0, 194, 255, 0.15) !important;
}

.emote-card img {
  transition: transform 0.3s ease;
}

.emote-card:hover img {
  transform: scale(1.1) rotate(5deg);
}
