﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BODY */
body {
    background-color: #000000; /* crna pozadina */
    color: #e2e8f0;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #111111;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

    header h1 {
        color: #8305a6; /* ljubičasta */
        font-size: 1.8rem;
    }

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: 0.3s;
}

    nav a:hover {
        color: #8305a6;
    }

/* HERO */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9));
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 0 20px;
}

    .hero h2 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        color: #aaa;
    }

/* BUTTON */
.btn {
    padding: 12px 28px;
    background: #8305a6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

    .btn:hover {
        background: #a02ec2; /* svetlija ljubičasta na hover */
        transform: scale(1.05);
    }

/* SECTIONS */
.section {
    padding: 70px 60px;
    text-align: center;
}

    .section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        color: #8305a6;
    }

/* PRODUCTS GRID */
.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 proizvoda u redu */
    gap: 25px;
}


/* CARD */
.card {
    background-color: #111111;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid #222;
}

    .card:hover {
        transform: translateY(-8px);
        border-color: #8305a6;
    }

    .card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .card h3 {
        margin-bottom: 10px;
    }

    .card p {
        color: #8305a6;
        font-weight: bold;
    }

/* MYSTERY BOX */
.mystery-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .mystery-box .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(6px);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: 0.3s;
        padding: 20px;
        text-align: center;
    }

    .mystery-box:hover .overlay {
        opacity: 1;
    }

/* CUSTOM FORM */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    background-color: #111111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
}

    .custom-form label {
        font-weight: bold;
        margin-bottom: 5px;
        color: #8305a6;
    }

    .custom-form input,
    .custom-form select,
    .custom-form textarea {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #222;
        background-color: #000;
        color: #fff;
        font-size: 1rem;
        width: 100%;
    }

    .custom-form textarea {
        resize: vertical;
    }

    .custom-form input[type="file"] {
        padding: 5px;
    }

    .custom-form .btn {
        padding: 12px;
        background: #8305a6;
        color: #fff;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        border: none;
        transition: 0.3s;
    }

        .custom-form .btn:hover {
            background: #a02ec2;
            transform: scale(1.05);
        }

/* FOOTER */
footer {
    background-color: #111111;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #222;
}

    footer p {
        margin-bottom: 10px;
        color: #aaa;
    }

    footer a {
        color: #8305a6;
        text-decoration: none;
        margin: 0 10px;
        transition: 0.3s;
    }

        footer a:hover {
            color: #a02ec2;
        }

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 20px;
    }
}

@media (max-width: 600px) {
    .custom-form {
        padding: 20px;
    }
}
