:root {
  --primary: #00f0ff;
  --secondary: #ff00aa;
  --dark: #0a0a1a;
  --light: #f8f8ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

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

header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 26, 0.8);
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.8;
}

.hero-img {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  height: 90vh;
  width: 50vw;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  overflow: hidden;
}

.btn {
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.featured {
  padding: 100px 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.product-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
}

.product-img {
  width: 100%;
  height: 250px;
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.add-to-cart {
  padding: 10px 20px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

footer {
  padding: 50px 0;
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.floating-elements div {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  z-index: 0;
}

.floating-1 {
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  top: 10%;
  left: 10%;
  animation: float 15s ease-in-out infinite alternate;
}

.floating-2 {
  width: 200px;
  height: 200px;
  background-color: var(--secondary);
  bottom: 20%;
  right: 5%;
  animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(180deg);
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--dark);
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--light);
  background: none;
  border: none;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
}

.checkout-form {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--light);
  font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 120px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.product-description {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 15px;
}

.modal-title {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.order-summary {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.order-summary h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

#success-message {
  text-align: center;
  padding: 30px;
  display: none;
}

#success-message h2 {
  margin-bottom: 15px;
  color: var(--primary);
}

.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hero-img {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

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

  nav ul {
    gap: 15px;
  }
}
