
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Space+Grotesk:wght@400;700&display=swap');

:root {
  --background-color: #0E0C15;
  --surface-color: #181625;
  --text-color: #F5F5FA;
  --text-muted: #9CA3AF;
  --primary-color: #E754FF;     /* bright pink-purple */
  --secondary-color: #00F5D4;   /* minty aqua */
  --glass-bg: rgba(24, 22, 37, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glow-shadow: 0 0 20px rgba(231, 84, 255, 0.4),
                 0 0 40px rgba(0, 245, 212, 0.2);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}


section {
    padding: 120px 10%;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.5);
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 15px 10%;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    text-shadow: 0 0 12px var(--primary-color);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 35px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    text-shadow: var(--glow-shadow);
}

.header-cart {
    font-size: 1.6rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header-cart:hover {
    color: var(--secondary-color);
    transform: rotate(10deg);
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: var(--background-color);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(192, 132, 252, 0.3) 0%, transparent 65%);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

#hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(192, 132, 252, 0.6);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

#hero p {
    font-size: 1.6rem;
    max-width: 650px;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cta-button {
    font-family: 'Orbitron', sans-serif;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--glow-shadow);
    margin-top: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 50px;
}

.cta-button:hover {
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    box-shadow: 0 0 25px var(--primary-color), 0 0 50px rgba(0, 240, 255, 0.6);
    transform: translateY(-5px);
}

#products {
    background-color: var(--background-color);
}

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

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-color);
}

.product-card__image-wrapper {
    background: linear-gradient(to bottom, rgba(30, 30, 50, 0.9), var(--surface-color));
    border-bottom: var(--glass-border);
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.product-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card__title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
}

.product-card__specs {
    display: flex;
    justify-content: space-around;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.product-card__spec i {
    color: var(--secondary-color);
    margin-right: 6px;
}

.product-card__price {
    font-size: 2.2rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.add-to-cart-btn {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--secondary-color);
    padding: 14px 30px;
    width: 100%;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    box-shadow: 0 0 25px var(--secondary-color);
    transform: translateY(-3px);
}

#features {
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: left;
}

.feature-item {
    padding: 35px;
    border-left: 4px solid var(--primary-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(20, 20, 34, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

#promotions {
    background: linear-gradient(135deg, var(--background-color) 0%, #140d22 100%);
    padding: 100px 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
}

.promo-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px dashed var(--secondary-color);
    display: inline-block;
    margin-bottom: 35px;
    text-shadow: 0 0 15px var(--secondary-color);
    animation: pulse-promo 2s infinite alternate;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

@keyframes pulse-promo {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6); }
    100% { transform: scale(1.06); box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 15px;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

footer {
    background: linear-gradient(to top, #050509, var(--background-color));
    padding: 80px 10% 40px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-nav a {
    color: var(--text-muted);
    margin: 0 15px;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-socials {
    margin: 20px 0;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--secondary-color);
}

.footer-warning {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Стилі для нових сторінок --- */
.form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: var(--glass-border);
}

.form input, .form select {
    padding: 15px;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.form input:focus, .form select:focus {
    outline: none;
    box-shadow: var(--glow-shadow);
}

.cart-items, .order, .user {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: var(--glass-border);
}

.cart-item, .order, .user {
    border-bottom: var(--glass-border);
    padding-bottom: 15px;
}

.product-details {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.product-info {
    max-width: 400px;
    text-align: left;
}

.product-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

.admin-section {
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    margin-bottom: 30px;
    border: var(--glass-border);
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* --- Анімація для скроллу --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Покращена адаптивність --- */
@media (max-width: 768px) {
    header nav {
        display: none;
    }
    #hero {
        clip-path: none;
    }
    #hero h1 {
        font-size: 3.5rem;
    }
    #hero p {
        font-size: 1.2rem;
        max-width: 90%;
    }
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    section {
        padding: 80px 5%;
    }
    .product-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .product-details {
        flex-direction: column;
        align-items: center;
    }
    .product-card__image-wrapper {
        height: 250px;
    }
    .form {
        padding: 20px;
    }
    .admin-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    .product-card__title {
        font-size: 1.4rem;
    }
    .product-card__price {
        font-size: 1.8rem;
    }
    nav a {
        margin-left: 15px;
        font-size: 0.9rem;
    }
}

/* make default Django form fields match neon style */
form p > input,
form p > select,
form p > textarea {
    @apply w-full px-3 py-2 rounded-lg bg-background border border-primary/30 focus:outline-none focus:ring-2 focus:ring-primary/60;
}
form p > label {
    @apply block mb-1 text-sm;
}
form ul.errorlist {
    @apply mt-1 text-sm text-red-400;
}


/* --- Neon-friendly form input fix --- */
form input,
form select,
form textarea {
    color: var(--text-color); /* make typed text visible (light gray / white) */
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color), 0 0 24px rgba(192, 132, 252, 0.4);
    background-color: rgba(20, 20, 34, 0.6);
    color: #fff;
}

form label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Optional: glowing focus animation */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--secondary-color);
    }
}

form input:focus {
    animation: neonPulse 1.5s infinite alternate;
}

/* Buttons consistent with theme */
button,
input[type="submit"] {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-color), 0 0 50px rgba(0, 240, 255, 0.4);
}

/* Error messages */
ul.errorlist {
    color: #ff6b6b;
    list-style: none;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.15; }
}
.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* --- Neon text (white letters, purple glow) --- */
:root {
  --neon-purple: 231, 84, 255; /* #E754FF */
}

.neon-glow {
  color: #fff;
  text-shadow:
    0 0 2px rgba(var(--neon-purple), .55),
    0 0 6px rgba(var(--neon-purple), .50),
    0 0 14px rgba(var(--neon-purple), .45),
    0 0 28px rgba(var(--neon-purple), .35);
}

/* Softer version for long text (keeps readability) */
.neon-glow-soft {
  color: #fff;
  text-shadow:
    0 0 2px rgba(var(--neon-purple), .45),
    0 0 8px rgba(var(--neon-purple), .30);
}

/* Optional: subtle outline for very bold headlines */
.neon-outline {
  -webkit-text-stroke: 0.6px rgba(255,255,255,.6);
  text-shadow:
    0 0 1px rgba(255,255,255,.35),
    0 0 10px rgba(var(--neon-purple), .35);
}


/* Custom scrollbar */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(231,84,255,0.35);
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}
.scrollbar-thin:hover::-webkit-scrollbar-thumb {
  background-color: rgba(231,84,255,0.55);
}
