/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --card-bg: #121212;
  --text-light: #f0f0f0;
  --blue-neon: #00d1ff;
  --blue-dark: #0057ff;
  --gmail-red: #ff4b4b;
  --whatsapp-green: #25d366;
  --contact-blue: #00d1ff;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(10, 10, 10, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 209, 255, 0.2);
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-neon);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.cart-icon {
  position: relative;
  color: var(--text-light);
  font-size: 1.4rem;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--blue-neon);
  color: var(--bg-dark);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== NEON BUTTONS ===== */
.neon-btn {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 0;
  color: var(--blue-neon);
  background: transparent;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: 0.4s;
  font-size: 1rem;
}

.neon-btn:hover {
  color: var(--bg-dark);
  background: var(--blue-neon);
  box-shadow:
    0 0 5px var(--blue-neon),
    0 0 15px var(--blue-neon),
    0 0 30px var(--blue-neon),
    0 0 60px var(--blue-neon);
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0006);
}

.neon-btn span {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, transparent, var(--blue-neon));
}

.neon-btn span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  animation: animate1 1s linear infinite;
}
@keyframes animate1 {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.neon-btn span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--blue-neon));
  animation: animate2 1s linear infinite;
  animation-delay: 0.25s;
}
@keyframes animate2 {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

.neon-btn span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, var(--blue-neon));
  animation: animate3 1s linear infinite;
  animation-delay: 0.5s;
}
@keyframes animate3 {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

.neon-btn span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, var(--blue-neon));
  animation: animate4 1s linear infinite;
  animation-delay: 0.75s;
}
@keyframes animate4 {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}

/* ===== PRODUCT GRID ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 5%;
}

.product-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 209, 255, 0.2);
}

.product-img {
  width: 100%;
  height: 200px;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img.no-img {
  background: linear-gradient(180deg, #1e1e1e, #151515);
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info h3 {
  padding: 1rem;
  font-size: 1.2rem;
}

/* ===== FORMS (Login, Signup, Checkout) ===== */
.wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px; /* keeps vertical centering on desktop */
  padding: 1rem;
}

.form-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: var(--card-bg);
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
  border: 1px solid rgba(0, 209, 255, 0.2);
  border-radius: 8px;
  padding: 2rem 1.25rem;
}

h2 {
  font-size: 28px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.input-group {
  position: relative;
  width: 320px;
  margin: 20px 0;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #aaa;
  pointer-events: none;
  transition: 0.3s;
  background: var(--card-bg);
  padding: 0 4px;
}

.input-group input {
  width: 100%;
  height: 45px;
  font-size: 16px;
  color: var(--text-light);
  padding: 0 12px;
  background: #1e1e1e;
  border: 1px solid #444;
  outline: none;
  border-radius: 6px;
}

.input-group input:focus,
.input-group input:valid {
  border-color: var(--blue-neon);
  box-shadow: 0 0 8px rgba(0, 209, 255, 0.4);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: 5px;
  font-size: 12px;
  color: var(--blue-neon);
}

.forgot-pass a,
.sign-link a {
  color: var(--blue-neon);
  text-decoration: none;
}

.forgot-pass a:hover,
.sign-link a:hover {
  text-decoration: underline;
}

/* ===== CHECKOUT & CART ===== */
.checkout-options,
.cart-items {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.payment-method {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.payment-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  background: #1e1e1e;
  border: 1px solid #444;
  color: var(--text-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-btn:hover {
  border-color: var(--blue-neon);
  background: rgba(0, 209, 255, 0.1);
}

.payment-btn.active {
  border-color: var(--blue-neon);
  background: rgba(0, 209, 255, 0.2);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #777;
  font-size: 0.9rem;
}

/* ===== Footer contact icons & neon glows ===== */
:root{
  --gmail-red: #ff4b4b;
  --whatsapp-green: #25d366;
  --contact-blue: #00d1ff;
}

/* Footer icon wrapper */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #777;
  font-size: 0.95rem;
}

.footer-icons {
  display: inline-flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* circular icon button */
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f0f0f0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Hover focus states trigger neon glow for each icon */
.icon-gmail:hover,
.icon-gmail:focus {
  color: var(--bg-dark);
  background: var(--gmail-red);
  box-shadow:
    0 0 6px var(--gmail-red),
    0 0 18px rgba(255,75,75,0.22),
    inset 0 0 6px rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.icon-whatsapp:hover,
.icon-whatsapp:focus {
  color: var(--bg-dark);
  background: var(--whatsapp-green);
  box-shadow:
    0 0 6px var(--whatsapp-green),
    0 0 18px rgba(37,211,102,0.22),
    inset 0 0 6px rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.icon-contact:hover,
.icon-contact:focus {
  color: var(--bg-dark);
  background: var(--contact-blue);
  box-shadow:
    0 0 6px var(--contact-blue),
    0 0 18px rgba(0,209,255,0.22),
    inset 0 0 6px rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .wrapper {
    width: 95%;
    height: auto;
  }

  .input-group {
    width: 90%;
  }
}

/* Contact page card animations and responsiveness */
.contact-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card:hover .icon-btn {
  transform: scale(1.1);
}

.contact-card:hover .icon-gmail {
  color: var(--gmail-red);
  border-color: var(--gmail-red);
}

.contact-card:hover .icon-whatsapp {
  color: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
}

.contact-card:hover .icon-contact {
  color: var(--contact-blue);
  border-color: var(--contact-blue);
}

@media (max-width: 480px) {
  .contact-card {
    padding: 1rem !important;
  }
  
  .contact-card h3 {
    font-size: 1.1rem !important;
  }
  
  .contact-card p {
    font-size: 0.9rem !important;
  }
  
  .contact-card .icon-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  .contact-card svg {
    width: 20px !important;
    height: 20px !important;
  }
}
@media (max-width:420px){
  .icon-btn { width:40px; height:40px; font-size:16px; }
}