/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav .nav-links li {
    margin-left: 20px;
}

header nav .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav .nav-links li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    max-width: 1280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.auth-form button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-form button:hover {
    background-color: #555;
}

.auth-form p {
    text-align: center;
    margin-top: 15px;
}

.auth-form .error {
    color: red;
    text-align: center;
}

/* Profile Section */
.profile {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

.profile-info {
    margin-top: 25px;
}

.profile-info p {
    font-size: 18px;
    color: #555;
    margin: 15px 0;
    line-height: 1.6;
}

.profile-info .role {
    font-weight: bold;
    color: #007bff;
    font-size: 20px;
    text-transform: capitalize;
}

.profile-info .welcome-message {
    font-size: 22px;
    color: #333;
    font-weight: 500;
}

.logout-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background-color: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.auth-links a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.auth-links .login-btn {
    background-color: #007bff;
    color: #fff;
}

.auth-links .login-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-links .signup-btn {
    background-color: #28a745;
    color: #fff;
}

.auth-links .signup-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-links span {
    margin: 0 10px;
    color: #555;
    font-size: 18px;
}

/* Catalog Section */
.catalog {
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF;
}

.catalog h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.product-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    margin-top: 10px;
}

.product-actions a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-actions a:hover {
    background-color: #218838;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .auth-form {
        max-width: 90%;
    }

    .profile {
        max-width: 90%;
    }

    .catalog h2 {
        font-size: 24px;
    }

    .product-details h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    header nav .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .auth-form {
        max-width: 100%;
    }

    .profile {
        padding: 20px;
    }

    .catalog h2 {
        font-size: 22px;
    }

    .product-details h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .profile h2 {
        font-size: 24px;
    }

    .catalog h2 {
        font-size: 20px;
    }

    .product-details h3 {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .logout-btn, .auth-links a {
        font-size: 14px;
    }
}