
/* Base Styles */
:root {
  --background: #0A0E17;
  --foreground: #F7F8FA;
  --primary: #00C2FF;
  --primary-glow: rgba(0, 194, 255, 0.35);
  --secondary: #8A2BE2;
  --secondary-glow: rgba(138, 43, 226, 0.35);
  --accent: #FF5678;
  --muted: #4B5563;
  --card-bg: rgba(16, 23, 41, 0.8);
  --card-border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', monospace;
  --header-height: 80px;
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.5s ease;
}

body.loading {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--foreground);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, 
input, 
select, 
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.highlight-text {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="a"><feTurbulence type="fractalNoise" baseFrequency=".005" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23a)" opacity=".05"/></svg>');
  z-index: -1;
  pointer-events: none;
}

/* Container */
.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 span {
  color: var(--primary);
  position: relative;
}

.section-header h2 span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.section-header h2:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--background);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--foreground);
}

.btn-secondary:hover {
  border-color: var(--foreground);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--foreground);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-glow {
  background-color: var(--secondary);
  color: var(--foreground);
  box-shadow: 0 0 15px var(--secondary-glow);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--secondary-glow);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  transition: var(--transition);
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(10, 14, 23, 0.95);
}

.navbar-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.navbar-logo span {
  color: var(--primary);
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-menu a {
  color: var(--foreground);
  font-weight: 500;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-menu a.active {
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--foreground);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--background);
  z-index: 99;
  transition: right 0.5s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
}

.mobile-menu-container a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  position: relative;
}

.mobile-menu-container a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.mobile-menu-container a:hover::after,
.mobile-menu-container a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-container a.active {
  color: var(--primary);
}

/* Sound Toggle */
.sound-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
  border: 1px solid var(--card-border);
}

.sound-toggle:hover {
  transform: scale(1.1);
}

.sound-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sound-icon span {
  display: block;
  width: 2px;
  background-color: var(--foreground);
  transition: var(--transition);
}

.sound-icon span:nth-child(1) {
  height: 10px;
  margin: 0 2px;
}

.sound-icon span:nth-child(2) {
  height: 16px;
  margin: 0 2px;
}

.sound-icon span:nth-child(3) {
  height: 12px;
  margin: 0 2px;
}

.sound-icon.sound-on span {
  animation: sound-wave 0.5s infinite alternate;
}

.sound-icon.sound-on span:nth-child(1) {
  animation-delay: 0.1s;
}

.sound-icon.sound-on span:nth-child(2) {
  animation-delay: 0.2s;
}

.sound-icon.sound-on span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sound-wave {
  0% {
    height: 5px;
  }
  100% {
    height: 15px;
  }
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--foreground);
}

.loader-logo span {
  color: var(--primary);
  position: relative;
}

.loader-logo span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  animation: loaderLine 2s ease infinite;
}

@keyframes loaderLine {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.loader-progress {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  background-color: var(--primary);
  width: 0;
  transition: width 0.2s ease;
}

/* Glass Card */
.glass-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Parallax Element */
.parallax-element {
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  color: var(--background);
}

/* Footer */
footer {
  background-color: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  padding: 4rem 0 1rem;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--primary);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--foreground);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  text-align: center;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar.mobile-open .navbar-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar.mobile-open .navbar-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.mobile-open .navbar-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-container {
    padding: 0 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}
