/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
    /* Gold hover effect */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ffd700;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport height for modern mobile browsers */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15vh;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.3) 50%, #050505 100%);
    z-index: 2;
}

.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Fallback image if video fails or on constrained connections */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.05) translateX(40px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn:hover {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #050505;
}

/* Sections Common */
section {
    padding: 6rem 5%;
}

/* Latest Release Section */
.latest-release {
    background-color: #111;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.release-cover {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.release-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.release-cover:hover img {
    transform: scale(1.02);
}

.release-info {
    flex: 1;
    min-width: 300px;
}

.release-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.release-info p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 2rem;
}

.platform-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #222;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.platform-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-item img-placeholder {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background-color: #222;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Tour Section */
.tour-list {
    max-width: 800px;
    margin: 0 auto;
}

.tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

.tour-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
    padding-right: 1rem;
}

.tour-date {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.tour-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #ffd700;
    font-weight: 700;
}

.tour-day {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.tour-location {
    flex: 1;
    padding: 0 2rem;
}

.tour-city {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.3rem;
}

.tour-venue {
    color: #888;
    font-size: 0.9rem;
}

.tour-btn {
    padding: 0.8rem 2rem;
    border: 1px solid #fff;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.tour-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .social-icon {
    fill: #ffd700;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Center Logo */
    header {
        justify-content: center;
        /* Keep position: fixed inherited from base styles */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
        /* Reduced from 1.5rem to make it a little smaller */
    }

    .menu-toggle {
        position: absolute;
        right: 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        /* Dynamic viewport height */
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    /* Hide hero title on mobile but keep subtitle and button */
    .hero-title {
        display: none !important;
    }

    .hero-content {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding-bottom: 2rem;
    }

    .hero-image-bg {
        transform: none;
        background-position: calc(50% + 40px) 10%;
        /* Horizontally centers face, keeping it visible near the top */
        background-attachment: scroll;
        /* Helps with mobile 100vh issues */
    }

    section {
        padding: 4rem 5%;
    }

    .latest-release {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .release-cover {
        width: 100%;
        min-width: 100%;
    }

    .platform-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tour-location {
        padding: 0;
    }
}