/* Reset & full-screen canvas */
* { margin:0; padding:0; box-sizing:border-box; }
body { 
  background: #000; 
  color: #0f0; 
  font-family: 'Courier New', monospace; 
  overflow-x: hidden; 
  height: 100vh;
}

/* Matrix canvas behind everything */
#matrix { 
  position: fixed; top:0; left:0; width:100%; height:100%; z-index:1; opacity:0.2; 
}

/* Centered content overlay */
.container { 
  position: relative; 
  z-index: 10; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
  min-height: 100vh; 
  text-align: center; 
  padding: 20px;
}

/* Hero header */
header { 
  margin-bottom: 40px;
}
header h1 { 
  font-size: clamp(3em, 8vw, 6em); 
  text-shadow: 0 0 20px #0f0, 0 0 40px #0f0, 0 0 60px #00f;
  letter-spacing: 0.2em; 
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 20px #0f0, 0 0 30px #0f0, 0 0 40px #00f; }
  to { text-shadow: 0 0 30px #0f0, 0 0 40px #ff0, 0 0 50px #f0f; }
}
header p { 
  font-size: 1.4em; 
  opacity: 0.9; 
  text-shadow: 0 0 10px #0f0;
  max-width: 600px;
}

/* Social buttons */
.social-buttons { margin: 40px 0; }
.btn {
  display: inline-block;
  padding: 15px 35px;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid #0f0;
  background: rgba(0,255,0,0.1);
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
  box-shadow: 0 0 20px rgba(0,255,0,0.5);
  transition: all 0.3s ease;
  border-radius: 5px;
}
.btn:hover { 
  background: #0f0; 
  color: #000; 
  box-shadow: 0 0 30px #0f0, inset 0 0 20px rgba(255,255,255,0.2); 
  transform: scale(1.05);
}

.github { border-color: #333; color: #fff; background: rgba(40,40,40,0.8); }
.github:hover { background: #333; color: #0f0; }

.linkedin { border-color: #0077b5; color: #0077b5; background: rgba(0,119,181,0.1); }
.linkedin:hover { background: #0077b5; color: #fff; }

/* Products section */
.products { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); 
  gap: 30px; 
  padding: 40px 20px; 
  max-width: 1400px; 
  width: 100%;
}
.product { 
  border: 1px solid #0f0; 
  padding: 25px; 
  background: rgba(0,255,0,0.03); 
  text-align: center; 
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0,255,0,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}
.product:hover::before { opacity: 1; transform: rotate(45deg) translateX(20px); }
.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,255,0,0.3);
  border-color: #ff0;
}
.product img { 
  max-width:100%; 
  height: 200px; 
  object-fit: cover;
  border: 1px solid #333; 
  border-radius: 8px;
  margin-bottom: 15px;
}
.product h3 { font-size: 1.5em; margin-bottom: 10px; }
.product .price {
  font-size: 2em;
  color: #ff0;
  text-shadow: 0 0 10px #ff0;
  margin-bottom: 10px;
}
.product .old-price {
  text-decoration: line-through;
  color: #666;
  font-size: 1.2em;
}
.specs {
  list-style: none;
  margin: 15px 0;
  font-size: 0.9em;
}
.specs li { margin: 5px 0; }
.stock-badge {
  display: inline-block;
  background: #f00;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 15px;
}
.buy-btn { 
  background: linear-gradient(45deg, #0f0, #00f0); 
  color: #000; 
  padding: 15px 30px; 
  text-decoration: none; 
  display: inline-block; 
  font-weight: bold; 
  border: none;
  border-radius: 25px;
  font-size: 1.1em;
  box-shadow: 0 10px 20px rgba(0,255,0,0.4);
  transition: all 0.3s ease;
}
.buy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0,255,0,0.6);
}

/* Cart modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.cart-content {
  background: rgba(0,20,0,0.95);
  border: 2px solid #0f0;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.close-cart { color: #0f0; float: right; font-size: 2em; cursor: pointer; }
.cart-item { display: flex; justify-content: space-between; margin: 10px 0; padding: 10px; border-bottom: 1px solid #333; }
.total { font-size: 1.5em; text-align: right; margin-top: 20px; }

/* Testimonials */
.testimonials {
  display: flex;
  gap: 20px;
  padding: 40px 20px;
  overflow-x: auto;
  max-width: 1200px;
}
.testimonial {
  background: rgba(0,255,0,0.05);
  border: 1px solid #0f0;
  padding: 20px;
  border-radius: 10px;
  min-width: 300px;
  flex-shrink: 0;
}

/* CRT scanline effect */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.25) 0px,
    rgba(0,0,0,0.25) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
  .products { grid-template-columns: 1fr; }
  .social-buttons { flex-direction: column; }
  .btn { margin: 10px 0; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.product { animation: fadeInUp 0.6s ease forwards; }
/* Checkout Page Styles */
.checkout-header {
  margin-bottom: 20px;
}

.checkout-layout {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

.order-summary {
  flex: 1;
  background: rgba(0,255,0,0.05);
  border: 1px solid #0f0;
  padding: 25px;
  border-radius: 10px;
}

.total-row {
  text-align: right;
  font-size: 1.5em;
  margin-top: 20px;
}

.checkout-note {
  margin-top: 20px;
  font-size: 0.9em;
  opacity: 0.8;
}

.checkout-form {
  flex: 1;
  background: rgba(0,20,0,0.95);
  border: 2px solid #0f0;
  padding: 30px;
  border-radius: 10px;
}

.checkout-input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #0f0;
  background: #000;
  color: #0f0;
  border-radius: 5px;
  font-family: inherit;
  box-sizing: border-box;
}

.payment-section {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.exp-cvv {
  display: flex;
  gap: 10px;
}

.exp-cvv .checkout-input {
  flex: 1;
}

.exp-cvv .checkout-input:last-child {
  flex: none;
  width: 80px;
}

.checkout-footer {
  margin-top: 40px;
}