:root {
  --bg-color: #050505;
  --text-color: #e0e0e0;
  --primary-color: #00f3ff; /* Cyan Neon */
  --secondary-color: #bd00ff; /* Purple Neon */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --font-heading: "Orbitron", sans-serif;
  --section-padding: 5rem 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Container */
#bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  opacity: 0.6;
}

/* Typography & Utilities */
h1,
h2,
h3,
.logo {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.highlight {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Glassmorphism Utility */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: background 0.3s ease;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

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

.btn-secondary:hover {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Offset for fixed header */
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 red;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  color: #aaa;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Portfolio/Clients */
.dark-alt {
  background: rgba(255, 255, 255, 0.02);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.client-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.client-card:hover {
  border-color: var(--secondary-color);
  background: rgba(189, 0, 255, 0.1);
}

.client-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.client-location {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.row {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

.locations {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  color: #aaa;
}

/* Contact/Footer */
.footer-content {
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  margin-top: 4rem;
  background: #000;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: #fff;
  margin-left: 1.5rem;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  .hamburger {
    display: block;
  }

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

  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .row {
    flex-direction: column;
  }

  .hero-btns {
    flex-direction: column;
  }

  footer .container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 10px, 0);
  }
  20% {
    clip: rect(60px, 9999px, 80px, 0);
  }
  40% {
    clip: rect(10px, 9999px, 5px, 0);
  }
  60% {
    clip: rect(80px, 9999px, 120px, 0);
  }
  80% {
    clip: rect(30px, 9999px, 40px, 0);
  }
  100% {
    clip: rect(50px, 9999px, 90px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(80px, 9999px, 120px, 0);
  }
  20% {
    clip: rect(30px, 9999px, 40px, 0);
  }
  40% {
    clip: rect(50px, 9999px, 90px, 0);
  }
  60% {
    clip: rect(20px, 9999px, 10px, 0);
  }
  80% {
    clip: rect(60px, 9999px, 80px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 5px, 0);
  }
}
