/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow Condensed', sans-serif;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Main container */
.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Section styles */
.section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Changed from center to flex-end to move content toward the boundary */
    align-items: center;
    height: 50vh;
    padding: 2rem;
    padding-bottom: 3rem; /* Add padding at bottom to push content up */
    text-align: center;
    position: relative; /* Ensure position relative for absolute positioning of logo */
}

/* Production section (black) */
.production {
    background-color: #000;
    color: #fff;
}

/* Partners section (white) */
.partners {
    background-color: #fff;
    color: #000;
    justify-content: flex-start; /* Move content to top of section, closer to boundary */
    padding-top: 3rem; /* Add padding at top to push content down */
}

/* Title styling */
.title {
    font-size: 8vw;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    /* Removed text shadow */
}

/* Links container */
.links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

/* Link styling */
.link {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 3px solid currentColor;
    transition: all 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
}

/* Link hover effects */
.production .link {
    color: #fff;
}

.production .link:hover {
    background-color: #fff;
    color: #000;
}

.partners .link {
    color: #000;
}

.partners .link:hover {
    background-color: #000;
    color: #fff;
}

/* Header logo styling for index page */
.header-logo-index {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 160px; /* Increased from 120px to 160px */
    width: auto; /* Maintain aspect ratio */
    z-index: 10;
}

@media (max-width: 768px) {
    .header-logo-index {
        position: absolute; /* Keep it absolute positioned */
        top: 15px; /* Align with burger menu */
        left: 15px;
        height: auto;
        max-height: 40px; /* Smaller size for mobile */
        margin-bottom: 0;
    }

    /* Adjust padding to accommodate logo */
    .section {
        padding-top: 60px;
    }
}

/* Burger Menu Styles */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
}

.burger-icon {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    height: 4px;
    width: 100%;
    background-color: #fff;
    border-radius: 0;
    transition: 0.3s;
}

.partners .bar {
    background-color: #000;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: rgba(32, 32, 32, 0.5); /* Made more transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, white 50%, black 50%) 1;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
                rgba(0,0,0,0.5) 50%,
                rgba(255,255,255,0.05) 50%); /* Made bottom half much lighter */
    z-index: -1;
}

/* Sidebar elements for the bottom half */
.sidebar-nav li:nth-child(4),
.sidebar-nav li:nth-child(5),
.sidebar-nav li:nth-child(6) {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background */
}

.sidebar-nav li:nth-child(4) a,
.sidebar-nav li:nth-child(5) a,
.sidebar-nav li:nth-child(6) a {
    color: rgba(0, 0, 0, 0.85); /* Darker text for better visibility in light background */
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #444;
}

.sidebar-header h2 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.close-btn {
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.sidebar-nav a:hover {
    color: #ccc;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Lighter overlay */
    backdrop-filter: blur(3px); /* Subtle blur for the background */
    -webkit-backdrop-filter: blur(3px); /* For Safari support */
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999999;
    background-color: transparent; /* Removed background color */
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: normal; /* Ensuring text is not bold */
    z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .links {
        gap: 1rem;
    }

    .link {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 12vw;
        letter-spacing: 4px;
    }

    .links {
        flex-direction: column;
        gap: 1rem;
        width: 90%;
    }

    .link {
        width: 100%;
        padding: 0.8rem 0;
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 15vw;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }

    .burger-menu {
        top: 15px;
        right: 15px;
    }

    .bar {
        height: 3px;
    }

    .footer {
        font-size: 0.7rem;
    }
}
