/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional: To ensure the background covers the entire viewport */
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #4a90e2;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-image: url('background.jpg'); /* Add your background image here */
    background-size: cover;
    background-position: center;
}

.logo h1 {
    margin: 0;
    padding-left: 20px;
    font-size: 1.8em;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #d1e7ff;
    text-decoration: underline;
}

/* Hamburger Menu Icon for Mobile */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background-image: url('hero-background.jpg'); /* Add your hero background image here */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for better text visibility */
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    padding: 15px 30px;
    background-color: #fff;
    color: #4a90e2;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover,
.btn:focus {
    background-color: #e6e6e6;
    color: #357ABD;
}

/* Video Section */
.video-section {
    padding: 40px 20px;
    background-color: #fff;
}

.video-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.video-feature {
    max-width: 300px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    padding: 15px;
    border-radius: 10px;
    background-color: #f0f8ff;
}

.video-feature:hover,
.video-feature:focus {
    transform: scale(1.05);
    background-color: #e6f2ff;
}

.video-feature h3 {
    margin-bottom: 10px;
    color: #333;
}

.video-feature p {
    font-size: 0.9em;
    color: #666;
}

/* 3D Model Showcase Styles */
.model-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.model-section h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.models-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.sketchfab-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 30%;
    height: auto;
}

.sketchfab-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.sketchfab-embed-wrapper p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

/* Admin Panel Styles */
.admin-panel {
    padding: 40px 20px;
    background: #2e2e2e;
    color: #fff;
    position: relative;
}

.admin-panel h2 {
    text-align: center;
    margin-bottom: 20px;
}

.admin-panel form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.admin-panel form label {
    margin: 10px 0 5px;
}

.admin-panel form input,
.admin-panel form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.admin-panel form textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-panel form button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-panel form button:hover,
.admin-panel form button:focus {
    background-color: #357ABD;
}

#upload-status {
    margin-top: 15px;
    text-align: center;
}

/* Logout Button */
.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover,
.logout-button:focus {
    background-color: #c0392b;
}

/* Content Display Styles */
.content-display {
    padding: 40px 20px;
    background: #1e1e1e;
    color: #eee;
}

.content-display h2 {
    text-align: center;
    margin-bottom: 30px;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.content-item {
    background: #2e2e2e;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-item:hover,
.content-item:focus-within {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.content-item img,
.content-item video {
    max-width: 100%;
    border-radius: 5px;
}

.content-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #ddd;
}

/* Authentication Modal Styles */
.auth-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.auth-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    color: #000;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.auth-content form {
    display: flex;
    flex-direction: column;
}

.auth-content form label {
    margin: 10px 0 5px;
}

.auth-content form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.auth-content form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-content form button:hover,
.auth-content form button:focus {
    background-color: #357ABD;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 10px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.social-media a {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-media a:hover img,
.social-media a:focus img {
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sketchfab-embed-wrapper {
        max-width: 45%; /* Adjust to two models per row on medium screens */
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #4a90e2;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        display: flex;
    }

    .model-section h2 {
        font-size: 1.5em;
    }

    .sketchfab-embed-wrapper {
        max-width: 100%; /* Full width on small screens */
        margin-bottom: 30px; /* Adjusted space for mobile */
    }

    .video-feature {
        max-width: 90%;
    }

    .content-item {
        width: 90%;
    }
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 10px;
    background-color: #4a90e2;
    width: 0%;
    transition: width 0.2s;
}
