@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --color-dark: #333333;
  --color-light: #F5F5F5;
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-light);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  cursor: none; /* Custom cursor */
}

h1, h2, h3, h4, h5, h6, .oswald {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-light);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(245, 245, 245, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.hover-grow .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(245, 245, 245, 0.1);
}

/* Noise overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  animation: noise 0.5s infinite linear;
}

@keyframes noise {
  0%, 100% { background-position: 0 0; }
  10% { background-position: -5% -10%; }
  20% { background-position: -15% 5%; }
  30% { background-position: 7% -25%; }
  40% { background-position: 20% 25%; }
  50% { background-position: -25% 10%; }
  60% { background-position: 15% 5%; }
  70% { background-position: 0% 15%; }
  80% { background-position: 25% 35%; }
  90% { background-position: -10% 10%; }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preloader img {
  width: 120px;
  animation: pulse 1.5s infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(245, 245, 245, 0.2);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-light);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Navigation */
nav {
  mix-blend-mode: difference;
}

.nav-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-light);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-link:hover::after {
  transform: translateX(0%);
}

/* Hero Section */
.hero-text-wrapper {
  overflow: hidden;
}

.hero-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.glitch-wrapper {
  position: relative;
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 245, 0.3);
  border-radius: 50px;
  padding: 15px 40px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  overflow: hidden;
  position: relative;
}

.magnetic-btn span {
  position: relative;
  z-index: 2;
}

.magnetic-btn:hover {
  background: var(--color-light);
  color: var(--color-dark);
  border-color: var(--color-light);
}

/* Hero Animated Logo */
.hero-animated-logo {
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

/* Background floating elements */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Section transitions */
.section {
  position: relative;
  z-index: 10;
}

/* Marquee / Text Scroller */
.marquee {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(245, 245, 245, 0.1);
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  -webkit-text-stroke: 1px var(--color-light);
  color: transparent;
  padding-left: 2rem;
}

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

/* Game Card */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.game-img-wrapper {
  overflow: hidden;
}

.game-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.game-card:hover .game-img {
  transform: scale(1.05);
}

.game-overlay {
  background: linear-gradient(to top, var(--color-dark) 0%, transparent 100%);
}

/* Team Card */
.team-member {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(245, 245, 245, 0.1);
  transition: all 0.3s ease;
  background: rgba(51, 51, 51, 0.5);
  backdrop-filter: blur(10px);
}

.team-member:hover {
  border-color: var(--color-light);
  transform: translateY(-10px);
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-light);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  z-index: -1;
}

.team-member:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.team-member:hover h3, 
.team-member:hover p {
  color: var(--color-dark);
}

.footer-link {
  transition: color 0.3s;
}
.footer-link:hover {
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor-dot, .cursor-outline {
    display: none;
  }
  .marquee-content {
    font-size: 2.5rem;
  }
}
