* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #111, #050505);
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* Glass */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
}

/* Stars */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: float linear infinite;
}

@keyframes float {
  from { transform: translateY(110vh); }
  to { transform: translateY(-120vh); }
}

/* ============================================
   NEW NAVBAR STYLES (Qualion-inspired)
   ============================================ */

.nav-new {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
}

.nav-glass {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/* Background Effects */
.nav-bg-effects {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.nav-gradient-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(76, 154, 255, 0.2), transparent, rgba(76, 154, 255, 0.2));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.nav-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  background: rgba(76, 154, 255, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Content */
.nav-content {
  position: relative;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Section */
.nav-logo-link {
  text-decoration: none;
  color: inherit;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-logo-wrapper:hover {
  opacity: 0.8;
}

.nav-logo-circle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(76, 154, 255, 0.3);
  overflow: hidden;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #d0e8ff, #b3d9ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.nav-subtitle {
  font-size: 0.625rem;
  color: rgba(178, 217, 255, 0.8);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop Navigation Links */
.nav-desktop-links {
  display: none;
}

.nav-links-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  position: relative;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.nav-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon-wrapper {
  transform: scale(1.1);
}

.nav-svg-icon {
  width: 20px;
  height: 20px;
  color: white;
}

.nav-social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-link-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link:hover .nav-link-text {
  color: white;
}

.nav-link-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.nav-link:hover .nav-link-underline {
  width: 75%;
  left: 12.5%;
}

.nav-icon-only .nav-link-text {
  display: none;
}

/* Mobile Menu Button */
.nav-mobile-btn {
  display: flex;
  position: relative;
  padding: 12px;
  color: white;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-mobile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-hamburger {
  position: relative;
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-hamburger-line {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .nav-desktop-links {
    display: flex;
    align-items: center;
  }
  
  .nav-mobile-btn {
    display: none;
  }
}

/* Tablet adjustments */
@media (max-width: 1023px) {
  .nav-content {
    padding: 10px 24px;
  }
  
  .nav-logo-circle {
    width: 48px;
    height: 48px;
  }
  
  .nav-title {
    font-size: 1.25rem;
  }
  
  .nav-subtitle {
    font-size: 0.5rem;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .nav-new {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  
  .nav-content {
    padding: 8px 16px;
  }
  
  .nav-logo-circle {
    width: 40px;
    height: 40px;
  }
  
  .nav-title {
    font-size: 1rem;
  }
  
  .nav-subtitle {
    font-size: 0.45rem;
  }
  
  .nav-hamburger {
    width: 20px;
    height: 16px;
  }
}

/* ============================================
   END NEW NAVBAR STYLES
   ============================================ */

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 32px;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(255,255,255,0.6);
  margin: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #4c9aff 25%,
    #ffffff 50%,
    #4c9aff 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite, fadeInUp 1s ease-out;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.primary-btn {
  justify-self: center;
  padding: 16px 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2f7cf6, #1e5ed8);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(47,124,246,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(47,124,246,0.6);
}

.primary-btn h3 {
  margin: 0;
  font-size: 1rem;
}

/* Games Section */
.games {
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  scroll-margin-top: 100px;
}

.games h2 {
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.games p {
  margin-top: 10px;
  opacity: 0.7;
  font-size: 1.1rem;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 50px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill span {
  opacity: 0.6;
  font-weight: 400;
}

/* Pill Icons */
.pill-icon {
  width: 16px;
  height: 18px;
  display: inline-block;
  opacity: 0.9;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.cards {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  user-select: none;
  padding: 40px 0;
}

.cards:active {
  cursor: grabbing;
}

.game-card {
  flex: 0 0 auto;
  width: 380px;
  padding: 0;
  text-align: left;
  background: #1a1d1f;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0.5;
  transform: scale(0.85);
}

.game-card:hover {
  box-shadow: 0 16px 40px rgba(76, 154, 255, 0.3);
}

/* Active/Center card */
.game-card.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.game-card.active:hover {
  transform: translateY(-8px) scale(1);
}

.game-card .game-thumb-wrapper {
  position: relative;
  width: 100%;
  background: #2a2d30;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.game-card .game-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.game-card .thumb-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.game-card .thumb-stat {
  background: rgba(70, 80, 90, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover .thumb-stat {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
}

/* Stat Icons in Game Cards */
.stat-icon {
  width: 16px;
  height: 18px;
  display: block;
}

.game-card .thumb-stat span {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 20px 24px 10px 24px;
  line-height: 1.25;
  color: white;
}

.game-card .game-author {
  padding: 0 24px;
  font-size: 0.95rem;
  color: #5b9bf5;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-card .game-author::before {
  content: "by";
  color: rgba(255, 255, 255, 0.6);
}

.game-card .game-author .verified-badge {
  width: 30px;
  height: 30px;
  display: none;
  vertical-align: middle;
}

.game-card .game-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  padding: 0 24px;
  line-height: 1.6;
  max-height: 4.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 24px;
}

.game-card .game-meta {
  display: none;
}

.game-card .play-btn {
  margin: 0 24px 24px 24px;
  width: calc(100% - 48px);
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: #4c9aff;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(76, 154, 255, 0.4);
}

.game-card .play-btn:hover {
  background: #3d8de8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 154, 255, 0.6);
}

/* Arrows - Hidden */
.arrow {
  display: none;
}

/* Responsive */
@media (max-width: 1400px) {
  .carousel {
    max-width: 1100px;
  }
}

@media (max-width: 1200px) {
  .cards {
    justify-content: center;
    gap: 24px;
  }
  
  .game-card {
    width: 350px;
  }
  
  .game-card.active {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .game-card {
    width: 320px;
  }
  
  .carousel {
    padding: 0 20px;
  }
  
  .cards {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .carousel {
    padding: 0 20px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .arrow.left {
    left: 0;
  }
  
  .arrow.right {
    right: 0;
  }
}

/* Footer */
.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 20px 30px;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a:hover {
  color: white;
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 48px;
  width: 48px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.footer-subtitle {
  font-size: 0.7rem;
  opacity: 0.5;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}

/* Footer Icons */
.footer-icon {
  width: 16px;
  height: 16px;
}

/* Footer Contact Button */
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #4c9aff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-contact-btn:hover {
  background: #3d8de8;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-social {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-social:hover {
  opacity: 1;
}

.social-icon {
  width: 24px;
  height: 24px;
}

/* About Section */
.about {
  padding: 80px 20px 60px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.5) 100%);
  scroll-margin-top: 100px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, #4c9aff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-subtitle {
  font-size: 1.2rem;
  opacity: 0.7;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.about-card {
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(76, 154, 255, 0.2);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4c9aff, #2f7cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Responsive About Section */
@media (max-width: 768px) {
  .about {
    padding: 60px 20px 40px;
    scroll-margin-top: 80px;
  }
  
  .about-header h2 {
    font-size: 2.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-card {
    padding: 24px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .games {
    padding: 100px 20px 60px;
    scroll-margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .about-header h2 {
    font-size: 2rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Responsive Footer */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 568px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
