/* Root Variables */
:root {
    --neon-green: #00ff85;
    --neon-green-dark: #00cc6a;
    --neon-pink: #ff00ff;
    --neon-pink-dark: #cc00cc;
    --neon-blue: #00f0ff;
    --neon-blue-dark: #00b8cc;
    --hologram-opacity: 0.08;
}

/* Imports */
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';
@import 'https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap';

/* Base Styles */
body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
    color: #ffffff;
    overflow-x: hidden;
}

/* Neon Colors */
.neon-green {
    color: var(--neon-green);
}

.neon-green-dark {
    color: var(--neon-green-dark);
}

/* Neon Glow Text */
.neon-glow-text {
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 30px var(--neon-blue);
    animation: neon-pulse 2s ease-in-out infinite;
}

/*@keyframes neon-pulse {
    0%, 100% { text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 30px var(--neon-blue); }
    50% { text-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green), 0 0 50px var(--neon-blue); }
}*/

/* Glow Button */
.glow-button {
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-blue);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.glow-button:hover {
    box-shadow: 0 0 25px var(--neon-pink), 0 0 50px var(--neon-blue);
    transform: scale(1.05);
}

.glow-button:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Holographic Styles */
.bg-holographic {
    background: linear-gradient(45deg, rgba(0, 255, 133, 0.2), rgba(255, 0, 255, 0.2));
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 133, 0.5);
    animation: neon-pulse 2s ease-in-out infinite;
}

.holographic-overlay {
    background: linear-gradient(45deg, rgba(0, 255, 133, var(--hologram-opacity)), rgba(0, 240, 255, var(--hologram-opacity)));
    opacity: 0.3;
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.hologram:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 133, 0.7), 0 0 40px rgba(0, 240, 255, 0.5);
}

/* Modal Dim Background */
#dim-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    pointer-events: auto;
}

/* Modals */
#cart-modal,
#remove-cart-modal1,
#contact-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(31, 41, 55, 0.9); /* Tailwind gray-800 with opacity */
    padding: 1.5rem;
    border: 2px solid var(--neon-green);
    border-radius: 0.5rem;
    z-index: 50;
    opacity: 1;
    align-items: center;
    text-align: center;
}

#contact-modal-message {
    padding-bottom: 1rem;
}

/* Cart Styles */
.cart-container {
    background: linear-gradient(45deg, rgba(0, 255, 133, 0.2), rgba(255, 0, 255, 0.2));
    border: 2px solid var(--neon-green);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 133, 0.5);
    animation: neon-pulse 2s ease-in-out infinite;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(45deg, rgba(0, 255, 133, 0.2), rgba(255, 0, 255, 0.2));
    border: 2px solid var(--neon-green);
    border-radius: 0.5rem;
    padding: 1rem;
    animation: neon-pulse 2s ease-in-out infinite;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-right: 1rem;
}

.cart-item .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item .item-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--neon-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item .item-title:hover {
    color: var(--neon-blue);
}

.cart-item .item-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item .cart-quantity {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-green);
    border-radius: 0.25rem;
    color: white;
    padding: 0.5rem;
    width: 80px;
    margin-right: 1rem;
}

.quantity-select {
    background-color: #1f2937; /* Tailwind gray-800 */
    color: #ffffff;
    border: 1px solid var(--neon-green);
    border-radius: 0.25rem;
    padding: 0.25rem;
    font-family: 'Orbitron', sans-serif;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-total-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

#cart-total {
    margin-bottom: 2rem;
}

#checkout-btn,
#continue-shopping-btn {
    display: inline-block;
    text-align: center;
    min-width: 200px;
    margin-top: 1rem;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
    min-height: 300px;
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 133, 0.3);
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Product Details */
#product-details {
    max-height: 400px;
    margin: 0 auto;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#product-details img {
    width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 133, 0.5);
}

#product-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#product-details p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#product-details .product-price {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

#product-details .quantity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

#product-details select {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-green);
    border-radius: 0.25rem;
    color: white;
    padding: 0.5rem;
    width: 80px;
}

#product-details button {
    padding: 0.5rem 1rem;
}

/* Page Layouts */
#home,
#products,
#about,
#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    min-height: calc(100vh - 8rem);
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

#contact .max-w-md {
    padding: 2rem;
}

/* Contact Form */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--neon-blue);
    outline: 2px solid var(--neon-blue);
}

/* Chatbot Scrollbar */
#chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}

/* Header and Footer */
.shadow-neon {
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-blue);
}

footer {
    position: relative;
    z-index: 10;
}

/* Hero Product */
.hero-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.hero-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 133, 0.3);
}

.hero-product img {
    margin-left: auto;
    margin-right: auto;
}

/* Particle Background */
#particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Touch-Friendly Buttons */
/*.touch-friendly {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    z-index: 10;
    pointer-events: auto;
}*/

/* Touch-Friendly Buttons */
/*.touch-friendly {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    z-index: 10;
    pointer-events: auto;
}*/


.touch-friendly {
  padding: 20px 30px;
  /*max-width: 20px;*/
  /*width: 50%;*/
  font-size: 1.2rem;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

/*.touch-friendly {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }*/


/* Neon Border and Shadow for Modals */
.border-neon-green {
    border: 2px solid var(--neon-green);
}

.box-shadow-neon {
    box-shadow: 0 0 15px rgba(0, 255, 133, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 140px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .cart-item .item-title {
        font-size: 1rem;
    }

    .cart-item .item-price {
        font-size: 0.875rem;
    }

    .cart-item .cart-quantity {
        width: 60px;
        padding: 0.25rem;
        margin-right: 0.5rem;
    }

    .cart-item .remove-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    

    .cart-total-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 3rem;
    }

    #cart-total {
        margin-bottom: 3rem;
    }

    #remove-cart-modal h3,
    #remove-cart-modal #remove-modal-product-name,
    #remove-cart-modal .flex {
        text-align: center;
    }

    .product-card {
        max-width: 160px;
        min-height: 280px;
    }

    .product-card img {
        max-width: 100px;
        height: auto;
    }

    .product-card h3 {
        font-size: 0.875rem;
    }

    .product-card p {
        font-size: 0.75rem;
    }

    .product-card a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    #product-details img {
        width: 200px;
        height: 200px;
    }

    #product-details h2 {
        font-size: 1.5rem;
    }

    #product-details p {
        font-size: 0.875rem;
    }

    #product-details .product-price {
        font-size: 1rem;
    }

    #product-details select {
        width: 60px;
        padding: 0.25rem;
    }

    #product-details button {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    #cart-items {
        margin-bottom: 8rem;
    }

    #home,
    #products,
    #about,
    #contact {
        padding-bottom: 120px;
    }

    #home h2,
    h2.text-6xl {
        font-size: 2.5rem;
    }

    #home p {
        font-size: 1rem;
    }

    #home a {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .text-sm {
        font-size: 0.75rem;
    }

    .p-4 {
        padding: 0.75rem;
    }

    .mb-2 {
        margin-bottom: 0.5rem;
    }

    .max-w-sm {
        max-width: 18rem;
    }

    .gap-4 {
        gap: 0.75rem;
    }
}

/* Fallback for Browsers Without Gap Support */
@supports not (gap: 1rem) {
    .cart-item + .cart-item {
        margin-top: 1rem;
    }
    #product-list .product-card + .product-card {
        margin-top: 2rem;
    }
}

.content-wrapper {
      position: relative;
      min-height: calc(100vh - 120px); /* Adjust based on header (80px) + footer (40px) heights */
      width: 100%;
      overflow: hidden;
}
    
.stars-svg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
}
    
.ufo-svg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50%; /* Adjust to fit UFO size relative to stars */
      height: auto;
      z-index: 20;
}
    
.holographic-overlay {
      z-index: 15; /* Ensure it stays between stars and UFO */
}

.ufo {
  animation: float 2s alternate ease-in-out infinite;
}

.alien-head {
  animation: head 2.8s alternate ease-in-out infinite;
}

@keyframes stars {
  0% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-100vw - 100%));
    opacity: 0.5;
  }
}
.sky {
  animation: stars 1s linear infinite;
}

@keyframes diagonal {
  0% {
    transform: translatex(-900px) translatey(-900px);
    opacity: 1;
  }
  100% {
    transform: translatex(1000px) translatey(1000px);
    opacity: 0.5;
  }
}

@keyframes diagonal-animation {
  0% {
    transform: translatex(-900px) translatey(-900px);
    opacity: 1;
  }
  100% {
    transform: translatex(1000px) translatey(1000px);
    opacity: 0.5;
  }
}

@keyframes float {
  0% {
    transform: translate(0px, -300px) rotate(-5deg);
  }
  50% {
    transform: translate(20px, 80px) rotate(2deg);
  }
  80% {
    transform: translate(-50px, 20px) rotate(-10deg);
  }
}

@keyframes head {
  0% {
    transform: translate(0px, 5px) rotate(0deg);
  }
  50% {
    transform: translate(20px, 80px) rotate(0deg);
  }
  100% {
    transform: translate(50px, 20px) rotate(1deg);
  }
}