/* Prevent horizontal overflow globally */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* This hides any stray elements pushing to the right */
    position: relative;
}

/* Ensure padding doesn't increase the width of elements */
* {
    box-sizing: border-box;
}

/* Ensure images and videos don't exceed their containers */
img,
iframe,
.video-wrapper {
    max-width: 100%;
    height: auto;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #1a1a1a;

    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-light: #ffffff;
    --text-light-muted: #a0a0a0;

    --accent: #222222;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.1);

    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.2em;
    font-weight: 300;
    margin: 1rem auto 0 auto;
    max-width: 600px;
    text-transform: uppercase;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--text-primary);
}

.section-title.light {
    color: var(--text-light);
}

.section-title.light::after {
    background-color: var(--text-light);
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    scroll-margin-top: 100px;
}

.subsection-title.light {
    color: var(--text-light);
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, background 0.3s ease;
}

.sticky-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    /* Increased by 25% from 40px */
    width: auto;
    filter: invert(0);
    transition: filter 0.3s ease;
}

.sticky-nav.scrolled .nav-logo-img {
    filter: invert(1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    max-width: 75%;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.sticky-nav.scrolled .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--text-light-muted);
}

/* Dropdown Navigation */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 4px;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1000;
}

.sticky-nav.scrolled .dropdown {
    background: rgba(10, 10, 10, 0.95);
    border-color: var(--border-light);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sticky-nav.scrolled .dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.sticky-nav.scrolled .menu-toggle .bar {
    background-color: var(--text-light);
}

/* Hamburger Menu Animation */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section::before,
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('tree.png');
    background-size: 100vw auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15;
    /* Using 15% opacity on light backgrounds for better contrast */
    filter: invert(1);
    /* Invert to black for light-toned backgrounds */
    z-index: -1;
    pointer-events: none;
}

.section.bg-dark::before,
.hero::before {
    filter: invert(0);
    /* Keep it white for dark backgrounds */
    opacity: 0.4;
    /* Return to 40% opacity from previous request */
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for sticky nav */
    z-index: 1;
}

.hero-content {
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 80vw;
    height: auto;
    filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    margin-bottom: 2rem;
}

.glitch-img {
    animation: image-glitch 4s infinite linear alternate-reverse;
}

@keyframes image-glitch {
    0% {
        transform: translate(0);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5))
    }

    20% {
        transform: translate(-2px, 2px) scale(1.01);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) hue-rotate(90deg)
    }

    40% {
        transform: translate(-2px, -2px);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5))
    }

    60% {
        transform: translate(2px, 2px);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5))
    }

    80% {
        transform: translate(2px, -2px) scale(0.99);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) hue-rotate(-90deg)
    }

    100% {
        transform: translate(0);
        filter: invert(1) drop-shadow(0 0 20px rgba(0, 0, 0, 0.5))
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s infinite var(--transition);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Origins */
.origins-content {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 800px;
}

.origins-content p {
    margin-bottom: 2rem;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.artist-grid {
    grid-template-columns: repeat(2, 1fr);
}

.artist-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    cursor: pointer;
    transition: transform 0.6s var(--transition), background 0.6s var(--transition);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s var(--transition);
}

.artist-card:hover {
    transform: translateY(-10px);
    background: #252525;
}

.artist-card:hover::before {
    left: 100%;
}

.artist-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.artist-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light-muted);
    letter-spacing: 0.1em;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-role {
    text-transform: uppercase;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.modal-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.modal-socials a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.modal-socials a:hover {
    border-color: var(--text-primary);
}

.modal-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.modal-split {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-highlights,
.modal-discography {
    flex: 1;
}

.modal-highlights h3,
.modal-discography h3,
.modal-video-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.modal-highlights ul,
.modal-discography ul {
    list-style: none;
}

.modal-highlights li,
.modal-discography li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.modal-highlights li::before,
.modal-discography li::before {
    content: "→ ";
    font-family: var(--font-heading);
}

.modal-video-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lite YouTube Styles */
.lite-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: #000;
}

.lite-youtube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lite-youtube:hover img {
    opacity: 1;
}

.lite-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.lite-youtube-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
}

.lite-youtube:hover .lite-youtube-play {
    background-color: #ff0000;
}

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

.video-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-date {
    font-size: 0.8rem;
    color: var(--text-light-muted);
}

/* Timeline */
.timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 0 4rem 0;
    gap: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: transparent;
}

.timeline::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    width: 33.33vw;
    /* Third of the viewport width */
    min-width: 250px;
    /* Minimum width to remain readable */
    flex-shrink: 0;
    padding: 4rem 1rem 0 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    width: 100%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 4px solid var(--text-light);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: 100%;
    min-height: 380px;
    /* Adjust height slightly to accommodate larger text/wrapping */
    padding: 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    position: relative;
    transition: transform 0.4s var(--transition);
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    /* Allow long words to break */
    overflow-wrap: break-word;
    hyphens: auto;
    /* Allow automatic CSS hyphenation */
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
}

/* Awards */
.awards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.award-card {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: transform 0.4s var(--transition);
}

.award-card:hover {
    transform: translateY(-10px);
}

.award-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.award-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-light-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        gap: 3rem;
        z-index: 1000;
    }

    .sticky-nav.scrolled .nav-links {
        background-color: rgba(10, 10, 10, 0.98);
    }

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

    .nav-links li {
        margin: 0;
    }

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

    .has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .dropdown {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: unset;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .dropdown a {
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .sticky-nav.scrolled .dropdown a {
        color: var(--text-light-muted);
    }

    .dropdown a:hover {
        background: transparent;
    }

    .sticky-nav.scrolled .dropdown a:hover {
        background: transparent;
    }

    .nav-logo-img {
        height: 60px;
        /* Increased by 50% from base 40px */
    }

    .timeline-item {
        width: 80vw;
        padding-right: 1rem;
    }

    .modal-split {
        flex-direction: column;
        gap: 1rem;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .award-card {
        padding: 2rem;
    }

    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .artist-grid {
        grid-template-columns: 1fr;
    }
}