* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bebas Neue', sans-serif;
}

body {
    background: #141414;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e50914;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: #000;
}

.logo {
    font-size: 2em;
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #e50914;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    overflow: hidden;
}

.bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: -1;
}

.hero-text h1 {
    font-size: 5em;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in;
}

.hero-text p {
    font-size: 1.5em;
    color: #b3b3b3;
    margin-bottom: 30px;
}

.play-btn {
    padding: 15px 40px;
    background: #e50914;
    border: none;
    color: #fff;
    font-size: 1.3em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.play-btn:hover {
    background: #c11119;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sections */
.section {
    padding: 80px 40px;
}

h2 {
    font-size: 3em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #fff;
}

/* About */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-text p {
    font-size: 1.3em;
    color: #b3b3b3;
    max-width: 600px;
}

/* Portfolio */
.gallery-row {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

.gallery-item {
    position: relative;
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.gallery-item img, 
.gallery-item .video-container {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img, 
.gallery-item:hover .video-container {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
}

.play-btn.small, .fullscreen-btn.small {
    padding: 10px 30px;
    font-size: 1em;
    margin: 5px 0;
}

/* Delete Checkbox */
.delete-checkbox {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.delete-mode .delete-checkbox {
    display: block;
}

/* Video containers */
.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Add and Delete Item Buttons */
.add-item-btn, .delete-item-btn {
    position: absolute;
    top: -50px;
    width: 40px;
    height: 40px;
    background: #e50914;
    color: #fff;
    font-size: 2em;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.add-item-btn {
    right: 50px;
}

.delete-item-btn {
    right: 0;
}

.add-item-btn:hover, .delete-item-btn:hover {
    background: #c11119;
    transform: scale(1.1);
}

.delete-mode .delete-item-btn {
    background: #00ff00; /* Green to indicate confirm */
    content: "✔";
}

.delete-mode .delete-item-btn:hover {
    background: #00cc00;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
}

.modal-content {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 10% auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #fff;
}

.modal-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

#add-item-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-item-form input, #add-item-form select {
    padding: 10px;
    background: #333;
    border: none;
    color: #fff;
    border-radius: 5px;
}

#add-item-form button {
    padding: 10px;
    background: #e50914;
    border: none;
    color: #fff;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
}

#add-item-form button:hover {
    background: #c11119;
}

/* Drag-and-Drop Area */
.drop-area {
    border: 2px dashed #666;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    background: #2a2a2a;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.drop-area.dragover {
    border-color: #e50914;
    background: #333;
}

.drop-area p {
    color: #b3b3b3;
    font-size: 1em;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.service:hover {
    background: #2a2a2a;
    transform: translateY(-5px);
}

.service h3 {
    font-size: 1.8em;
    color: #e50914;
    margin-bottom: 10px;
}

.service p {
    color: #b3b3b3;
}

/* Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: #333;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 15px;
    background: #e50914;
    border: none;
    color: #fff;
    font-size: 1.2em;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background: #c11119;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    background: #1f1f1f;
}

footer p {
    color: #b3b3b3;
    margin-bottom: 15px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    transition: transform 0.3s;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    transition: stroke 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon:hover svg {
    stroke: #e50914;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 3em; }
    .hero-text p { font-size: 1.2em; }
    .gallery-item { flex: 0 0 200px; }
    .about-content { flex-direction: column; text-align: center; }
}
