:root {
  --bg-color: #030712; /* Very dark blue/black */
  --text-color: #f3f4f6;
  --primary-color: #0ea5e9; /* Sky blue */
  --secondary-color: #8b5cf6; /* Violet */
  --accent-color: #10b981; /* Emerald */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

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

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

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: background 0.3s;
}

header.scrolled {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

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

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  position: relative;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 40px;
    min-width: 250px;
    height: calc(100vh - 70px);
    transition: right 0.3s;
    gap: 20px;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  opacity: 0.1;
  filter: blur(100px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--secondary-color), transparent 70%);
  opacity: 0.1;
  filter: blur(100px);
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 40px;
}

/* Product Cards */
.products-section {
  padding: 100px 0;
}

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

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 16px;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.product-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.product-card p {
  color: #9ca3af;
  margin-bottom: 25px;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 20px;
  margin-top: 50px;
}

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

.footer-col h4 {
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #9ca3af;
}

.copyright {
  text-align: center;
  color: #6b7280;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

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

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

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1).fade-in {
  animation-delay: 0.1s;
}

.product-card:nth-child(2).fade-in {
  animation-delay: 0.2s;
}

.product-card:nth-child(3).fade-in {
  animation-delay: 0.3s;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .product-card {
    padding: 30px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
