/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader video {
    max-width: 800px;
    width: 100%;
    height: auto;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 102px;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, height 0.4s ease, transform 0.4s ease;
}

.header.scrolled {
    background-color: #fff;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    transition: opacity 0.4s ease;
}

.logo-white { opacity: 1; }
.logo-black { opacity: 0; position: absolute; pointer-events: none; }

.header.scrolled .logo-white { opacity: 0; }
.header.scrolled .logo-black { opacity: 1; position: relative; }

/* Menu Toggle */
.menu-toggle {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .line {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: transform 0.3s ease, background-color 0.3s, opacity 0.3s;
}

.header.scrolled .menu-toggle .line {
    background-color: #000;
}

.fullscreen-menu.active ~ .header .menu-toggle .line {
    background-color: #fff; /* or black based on menu design, let's make menu dark */
}

.menu-toggle .line-1 { top: 0px; }
.menu-toggle .line-2 { top: 9px; }
.menu-toggle .line-3 { top: 18px; }

/* Hamburger Open state */
.menu-toggle.open .line-1 { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open .line-2 { opacity: 0; }
.menu-toggle.open .line-3 { transform: translateY(-9px) rotate(-45deg); }

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu nav ul {
    list-style: none;
    text-align: center;
}

.fullscreen-menu nav ul li {
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.fullscreen-menu.active nav ul li {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-menu.active nav ul li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active nav ul li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.active nav ul li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.active nav ul li:nth-child(4) { transition-delay: 0.4s; }
.fullscreen-menu.active nav ul li:nth-child(5) { transition-delay: 0.5s; }
.fullscreen-menu.active nav ul li:nth-child(6) { transition-delay: 0.6s; }
.fullscreen-menu.active nav ul li:nth-child(7) { transition-delay: 0.7s; }

.fullscreen-menu nav a {
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.fullscreen-menu nav a.active,
.fullscreen-menu nav a:hover {
    font-weight: 600;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-section::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.15); /* Slight overlay to make text readable */
    pointer-events: none;
}

.parallax-section .content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.parallax-section h1 {
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.parallax-section h1 a {
    padding: 20px;
    display: block;
    color: #fff;
}

.parallax-section h1 a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.02);
}

/* Footer Element */
.footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #000;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    max-width: 100%;
    height: auto;
}

.footer .tagline {
    font-size: 20px;
    color: #9b9b9b;
    line-height: 1.4;
    margin: 10px 0;
}

.footer-details a {
    display: block;
    font-weight: 600;
    margin: 5px 0;
    color: #000;
}

.footer-details a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .parallax-section {
        background-attachment: scroll; /* typically disable fixed on mobile for perf & bug issues */
    }
    .parallax-section h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    .logo img {
        height: 40px;
    }
    .parallax-section h1 {
        font-size: 26px;
    }
}
