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

:root {
  --background: #050505;
  --secondary-background: #0f172a;
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: white;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(to right, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Noise Filter */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  height: 100%;
  width: 100%;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Mesh Gradient Background */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
  filter: blur(100px);
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.2) rotate(5deg); }
}

/* Floating Particles */
.particle {
  position: fixed;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.1;
  filter: blur(2px);
  z-index: 0;
}

/* Custom Cursor */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  background-color: rgba(124, 58, 237, 0.2);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
}

.hovering .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(2.5);
}

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

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Mobile-First Enhancements */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 12vw, 4rem) !important; line-height: 1 !important; }
  h2 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .max-w-7xl { padding-left: 1.5rem; padding-right: 1.5rem; }
  .glass-card { backdrop-filter: blur(8px); } /* Lighter blur for mobile performance */
  
  /* Hide custom cursor on mobile */
  .custom-cursor-dot, .custom-cursor-glow { display: none !important; }
}

/* Premium Mobile Menu Overlay */
#mobile-menu {
  background: var(--background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-100%);
  opacity: 0;
  display: flex !important;
  visibility: hidden;
  z-index: 10000;
}

#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  transition: transform 0.3s ease;
}

.mobile-nav-link:active {
  transform: scale(0.95);
  color: var(--accent-cyan);
}

/* Hide Desktop Navbar and Background elements when menu is open */
body:has(#mobile-menu.active) #navbar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu-btn {
  z-index: 10001 !important;
}

/* Hide cursor when mobile menu is open */
body:has(#mobile-menu.active) .custom-cursor-dot,
body:has(#mobile-menu.active) .custom-cursor-glow {
  opacity: 0;
  visibility: hidden;
}

/* Touch-optimized buttons */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Panning Video Effect for Static Images */
@keyframes panImage {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}
.pan-video-effect {
  animation: panImage 15s ease-in-out infinite alternate;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

