:root {
  --color-bg: #0d1117;
  --color-surface: #161b22;
  --color-surface-elevated: #21262d;
  --color-primary: #00A0FF;
  --color-secondary: #00A0FF;
  --color-primary-dark: #0077cc;
  --color-text: #ffffff;
  --color-text-muted: #8b949e;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Tektur', sans-serif;
  --font-heading: 'Tektur', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Cyberpunk Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(0, 160, 255, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 85% 30%, rgba(0, 160, 255, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Glassmorphism utility */
.glass {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg) translateY(-100%);
  transition: 0.6s ease;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 160, 255, 0.6);
}

.btn-primary:hover::after {
  transform: rotate(45deg) translateY(100%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 160, 255, 0.2);
  display: flex;
  flex-direction: column;
  padding-top: 120px;
  gap: 30px;
  align-items: center;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.nav-links.active {
  right: 0;
}

.nav-links a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
}

.hero-content {
  max-width: 600px;
  z-index: 10;
}

.hero-tagline {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 25px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.wixstatic.com/media/250ada_3cf402a237714bcebf36478388252562~mv2.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.4) 100%);
  z-index: 1;
}

/* Futuristic Cyber HUD Console */
.hero-logo-container {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding-left: 40px;
}

.nexus-hud-console {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(13, 17, 23, 0.5) 0%, rgba(13, 17, 23, 0.8) 100%);
  border: 1px solid rgba(0, 160, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.5),
    0 0 30px rgba(0, 160, 255, 0.05),
    inset 0 0 40px rgba(0, 160, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexus-hud-console:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 160, 255, 0.5);
  box-shadow: 
    0 35px 70px rgba(0,0,0,0.7),
    0 0 50px rgba(0, 160, 255, 0.2),
    inset 0 0 50px rgba(0, 160, 255, 0.1);
}

.hud-grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 160, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 160, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  border-radius: 20px;
  pointer-events: none;
}

.hud-tech-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(0, 160, 255, 0.15);
  border-top-color: rgba(0, 160, 255, 0.4);
  border-bottom-color: rgba(0, 160, 255, 0.4);
  border-radius: 50%;
  animation: hudRotate 25s linear infinite;
  pointer-events: none;
}

.hud-tech-ring-inner {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px double rgba(0, 160, 255, 0.1);
  border-left-color: rgba(0, 160, 255, 0.3);
  border-right-color: rgba(0, 160, 255, 0.3);
  border-radius: 50%;
  animation: hudRotateCounter 15s linear infinite;
  pointer-events: none;
}

@keyframes hudRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hudRotateCounter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.hud-scanner-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 160, 255, 0.4), transparent);
  box-shadow: 0 0 10px rgba(0, 160, 255, 0.6);
  opacity: 0.5;
  animation: hudScan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes hudScan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 90%; opacity: 0; }
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 160, 255, 0.4);
  pointer-events: none;
  transition: all 0.3s ease;
}

.hud-corner.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.hud-corner.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.hud-corner.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.hud-corner.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.nexus-hud-console:hover .hud-corner {
  border-color: var(--color-primary);
  width: 22px;
  height: 22px;
}

.hud-telemetry {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'Tektur', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.hud-telemetry.top-bar {
  top: 15px;
  border-bottom: 1px solid rgba(0, 160, 255, 0.1);
  padding-bottom: 6px;
}

.hud-telemetry.bottom-bar {
  bottom: 15px;
  border-top: 1px solid rgba(0, 160, 255, 0.1);
  padding-top: 6px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #39FF14;
  border-radius: 50%;
  box-shadow: 0 0 8px #39FF14;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hud-logo-wrapper {
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.nexus-hud-console:hover .hud-logo-wrapper {
  transform: scale(1.03);
}

.hud-logo-wrapper img {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 160, 255, 0.15));
  transition: all 0.5s ease;
}

.nexus-hud-console:hover .hud-logo-wrapper img {
  filter: drop-shadow(0 20px 45px rgba(0, 160, 255, 0.45));
}

/* Section Common */
section {
  padding: 100px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card, .service-card, .product-card {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before, .service-card::before, .product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.feature-card:hover, .service-card:hover, .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background: rgba(22, 27, 34, 0.9);
}

.feature-card:hover::before, .service-card:hover::before, .product-card:hover::before {
  opacity: 1;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-muted);
}

/* Features Section */
.features {
  display: flex;
  align-items: center;
  gap: 60px;
}

.features-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.features-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.features-image:hover img {
  transform: scale(1.05);
}

.features-content {
  flex: 1;
}

.feature-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(157, 78, 221, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: flex;
  gap: 50px;
  background: var(--color-surface-elevated);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-detail i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Global Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-logo-container {
    padding-left: 0;
    width: 100%;
    order: -1; /* Place logo above text on tablet */
  }
  .nexus-hud-console {
    max-width: 380px;
    height: 360px;
    padding: 25px;
  }
  .hud-tech-ring {
    width: 240px;
    height: 240px;
  }
  .hud-tech-ring-inner {
    width: 190px;
    height: 190px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .features {
    flex-direction: column;
  }
  .contact-container {
    flex-direction: column;
    padding: 40px;
  }
}

.hamburger {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px;
  }
  .navbar .btn-primary {
    display: none;
  }
  .hero {
    gap: 30px;
  }
  .hero-content {
    background: rgba(10, 10, 10, 0.85);
    padding: 30px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nexus-hud-console {
    max-width: 300px;
    height: 290px;
    padding: 20px;
  }
  .hud-tech-ring {
    width: 180px;
    height: 180px;
  }
  .hud-tech-ring-inner {
    width: 140px;
    height: 140px;
  }
  .hero-overlay {
    background: linear-gradient(to top, var(--color-bg), transparent);
  }
}

/* Cart Styles */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-overlay.open {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0; right: -450px;
    width: 400px; max-width: 100vw;
    height: 100vh;
    background: var(--color-surface);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 160, 255, 0.2);
}
.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-close {
    background: none; border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-item-details {
    flex: 1;
}
.cart-item-title {
    font-size: 0.95rem; margin-bottom: 5px;
}
.cart-item-price {
    color: var(--color-primary); font-weight: bold; margin-bottom: 10px;
}
.cart-item-qty {
    display: flex; align-items: center; gap: 10px;
}
.cart-item-qty button {
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 25px; height: 25px; border-radius: 4px; cursor: pointer;
}
.cart-item-remove {
    background: none; border: none; color: #ff4d4d; cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}
.cart-promo {
    margin-bottom: 15px;
}
.promo-input {
    width: 100%; padding: 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2); background: transparent;
    color: white; font-family: var(--font-primary);
}
.cart-summary {
    display: flex; justify-content: space-between;
    font-size: 1.2rem; font-weight: bold; margin-bottom: 20px;
}
.cart-checkout-btn {
    width: 100%;
}

.nav-cart {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}
.cart-badge {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 160, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }


