/* General Body Styling */
body {
    font-family: "Helvetica Light", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    height: 150vh; /* reduced height for scrolling */
}

#video-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    background-color: black; /* prevents flickering black screen */
}

/* Home Section with Fixed Video Background */
#home {
    position: relative;
    height: 150vh;
    overflow: hidden;
}

#home .video-background {
    position: fixed; /* Fix the video in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#home .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 100px 20px 30vh;
}

#home .content h1 {
    font-size: 3rem;
    margin: 0;
}

#home .content p {
    font-size: 1.5rem;
}

/* Top Navigation Bar */
header {
    background: #000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    height: 11%; /* Cinemascope-like height */
    z-index: 1000;
    transition: background-color 0.5s ease;
}

header .logo {
    flex: 0 0 auto;
}

header .logo img {
    max-height: 100px; /* Adjust size of the logo */
    display: block;
    transition: opacity 0.5s ease;
}

header.scrolling .logo img {
    opacity: 0;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem; /* Adjust spacing between items */
    justify-content: center;
    width: 100%;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.5s ease;
}

header.scrolling nav a {
    color: black;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 100px); /* Adjust for top and bottom navbars */
}

.subpage {
    margin-top: 150px; /* space to avoid overlap with fixed navbar */
}

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

section h2 {
    margin-bottom: 1rem;
    font-size: 3rem;
    z-index: 10;
    text-transform: uppercase;
    animation: fadeIn 2s ease-in-out;
}

section p {
    z-index: 10;
    font-size: 100%;
    animation: fadeIn 2s ease-in-out;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 1s ease-in-out;
}

section:hover::before {
    opacity: 1;
}

#home::before {
    background-image: url('your-uploaded-image1.jpg');
}

#about::before {
    background-image: url('your-about-background.jpg');
}

#equipment::before {
    background-image: url('your-equipment-background.jpg');
}

#contact::before {
    background-image: url('your-contact-background.jpg');
}

/* Section Box Style */
.text-box {
    width: 50%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #ccc;
    box-sizing: border-box;
    margin: 0 auto;
    z-index: 10;
}

.text-box p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .text-box {
        width: 90%;
    }
}

/* Bottom Navigation Bar */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.5s ease;
}

footer .social-media {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

footer .social-media li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.5s ease;
}

footer .social-media li a img {
    width: 50px;
    height: 50px;
    filter: invert(1);
}

footer.scrolling .social-media a {
    color: black;
}

footer .social-media li a:hover {
    color: #00bcd4;
}

body::before,
body::after {
    content: "";
    position: fixed;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000;
    z-index: 999;
}

body::before {
    top: 0;
}

body::after {
    bottom: 0;
}

.equipment {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    z-index: 10;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    z-index: 10;
}

input, textarea, button {
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
}

button {
    background-color: #00bcd4;
    color: #fff;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 2rem 0;
    padding-top: 0;
    max-width: 1200px;
    margin: auto;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border: none;
    pointer-events: auto;
    z-index: 2;
}

.video-item {
    position: relative;
    z-index: 1;
}

#scroll-space {
    height: 150vh;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.synced-text {
    position: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    color: white;
    font-size: 2rem;
    white-space: pre-line;
    z-index: 10;
    max-width: 40%;
}

.left { left: 10%; top: 30%; text-align: left; }
.right { right: 5%; top: 25%; text-align: right; }
.right-bottom { right: 5%; bottom: 25%; text-align: right; }
.center { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.center-bottom { left: 50%; bottom: 20%; transform: translateX(-50%); text-align: center; }

#blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.8s ease;
    pointer-events: none;
    z-index: 999;
}

#blur-overlay.active {
    backdrop-filter: blur(50px);
}

#visual-effects-section {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    color: white;
    padding: 4rem;
    display: none;
    text-align: center;
}

#visual-effects-section.active {
    display: block;
}


.footer-icon {
    width: 100px;
    height: 100px;
    transition: opacity 0.5s ease;
}

footer.scrolling .footer-icon {
    opacity: 0;
}

#video-background.blurred {
    filter: blur(10px);
    transition: filter 0.5s ease;
  }
#intro-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/bg_images/bg_start.png') center center / cover no-repeat;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

#intro-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}