/* 
  Awwwards-Level Cyberpunk Design System
  Beekay Infotech Redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Cyberpunk Orange Core */
  --primary: #FD620E;
  --primary-glow: #fd620eb3;
  --primary-dim: rgba(253, 98, 14, 0.1);
  --accent: #FF8F00; /* Secondary warmer accent */

  /* Dark Immersive Colors */
  --bg-color: #050505;
  --surface-color: #0A0A0A;
  --surface-color-light: #121212;
  --text-main: #FFFFFF;
  --text-muted: #888888;
  
  /* Layout Sizing */
  --nav-height: 90px;
  --container-max: 1400px;
}

/* Reset for Animations & Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide native scrollbar for custom smooth scroll */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none; /* We use custom cursor */
}

/* Cyberpunk Typography */
h1, h2, h3, h4, .cyber-text {
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Custom Cursor Elements */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-glow);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-outline.hovering {
  width: 60px;
  height: 60px;
  background-color: var(--primary-dim);
  backdrop-filter: blur(2px);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none !important;
}

ul {
  list-style: none;
}

/* Utility Containers */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 15vh 0;
  position: relative;
}

/* Header Re-styling for Dark Cyber Theme */
header.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(253, 98, 14, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 5px;
}

.logo a:hover {
  transform: scale(1.05);
}

.logo img {
  height: 65px;
  /* MAGICAL CSS TRICK: Black turns White. Orange turns Blue, then Hue-Rotates back to Orange! */
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Glitch Button */
.btn-glitch {
  display: inline-flex;
  padding: 15px 35px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-glitch::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}
.btn-glitch:hover {
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-glitch:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Grid overlay for Cyber vibe (Honeycomb for "Bee" Theme) */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Make the pattern much larger and highly subtle like an Awwwards site */
  background-size: 112px 200px;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23FD620E' stroke-width='1.5' stroke-opacity='0.08'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23FD620E' stroke-width='1.5' stroke-opacity='0.08'/%3E%3C/svg%3E");
  z-index: -2;
  pointer-events: none;
  /* Complex radial mask for a professional gradient fade */
  mask-image: radial-gradient(circle at top right, black 10%, transparent 60%), linear-gradient(to bottom, transparent, black 20%, transparent 80%);
}

/* Text Masking utility for GSAP */
.text-mask {
  overflow: hidden;
  display: inline-block;
}
.text-mask span {
  display: inline-block;
  transform: translateY(110%); /* Starting position for animation */
}

/* Universal Trust & Network Visualizer */
.universal-network-visualizer {
  position: relative;
  height: 600px;
  background: radial-gradient(circle at center, rgba(253, 98, 14, 0.05) 0%, rgba(5, 5, 5, 0) 70%);
  border: 1px solid var(--primary-dim);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.network-core {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 30px rgba(253, 98, 14, 0.2);
  transform-style: preserve-3d;
}

.network-core i {
  font-size: 40px;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulseCore 3s infinite cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

@keyframes pulseCore {
  0% { width: 100%; height: 100%; opacity: 0.8; }
  100% { width: 300%; height: 300%; opacity: 0; }
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.ring-1 { width: 200px; height: 200px; z-index: 3; }
.ring-2 { width: 340px; height: 340px; z-index: 2; border: 1px solid rgba(253, 98, 14, 0.05); }

.satellite {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform-origin: center;
}

.satellite i {
  font-size: 24px;
  color: #fff;
}

/* Base positions for satellites */
.sat-1 { top: -25px; left: 75px; }
.sat-2 { bottom: -25px; left: 75px; }
.sat-3 { top: 50px; left: -25px; }
.sat-4 { bottom: 50px; left: -25px; }
.sat-5 { top: 145px; right: -25px; }

.network-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 35px;
  cursor: none;
  z-index: 1001; /* Stay above the fullscreen nav */
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links a {
    font-size: 24px;
  }
  
  /* Responsive Overrides for Mobile Typography */
  h1[style*="font-size: 15vw"], h1[style*="font-size: 12vw"] {
    font-size: 25vw !important;
    top: 40% !important;
    opacity: 0.05 !important;
  }
  
  .hero-mask {
    font-size: clamp(2.5rem, 8vw, 6rem) !important;
  }
  
  .hero-fade {
    font-size: 1rem !important;
  }
  
  .cyber-text {
    font-size: clamp(2rem, 6vw, 4rem) !important;
  }
  
  .section {
    padding: 10vh 0 !important;
  }
  
  /* Stack grid layouts on mobile */
  div[style*="grid-template-columns: 5fr 7fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* Footer overrides */
.footer {
  background-color: #121212;
  border-top: 1px solid var(--primary-dim);
  padding: 60px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col a, .footer-col span {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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