:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: hsl(0, 0%, 9%);
    --accent-pink: #fe2b59;
    --navy-blue: #121925;
    --accent-lime: #d4ff1a;
    --text-light: #ece3d1;
    --text-dark: #1b1b1b;
    --light-black: #1b1b1b;
    --font-heading: 'Montserrat', sans-serif;
    --font-script: 'Permanent Marker', cursive;
    --font-body: 'Inter', sans-serif;
}

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

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

body {
    background-color: var(--light-black);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.handwritten {
    font-family: var(--font-script);
}

.section-title.handwritten {
    font-family: var(--font-script);
    font-size: clamp(25px, 4vw, 40px);
    font-weight: normal;
    letter-spacing: 0;
    color: var(--accent-pink);
}

#main-header,
main,
footer,
.persistent-player {
    opacity: 0;
    transition: opacity 0.7s ease;
}

body.loaded #main-header,
body.loaded main,
body.loaded footer,
body.loaded .persistent-player {
    opacity: 1;
}

body.preloading {
    overflow: hidden;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-user-select: none;
    user-select: none;
}

#main-header.scrolled {
    background-color: var(--navy-blue);
    /*border-bottom: 1px solid var(--accent-pink);*/
}

.logo {
    font-family: var(--font-script);
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
    font-family: var(--font-heading);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-pink);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-pink);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a,
.menu-toggle {
    color: var(--text-light);
    text-decoration: none;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.menu-toggle:hover {
    color: var(--accent-pink);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--accent-pink);
}

.lang-switcher .separator {
    color: rgba(236, 227, 209, 0.5);
    font-size: 13px;
    user-select: none;
}

.mobile-lang {
    margin-top: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.mobile-lang a {
    font-size: 16px;
}

/* Responsive visibility for navigation */
@media (max-width: 900px) {

    .desktop-nav,
    .desktop-lang {
        display: none;
    }
}

@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}

.cart-link {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-pink);
    color: var(--text-light);
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pictures/hero_background.webp');
    background-size: cover;
    background-position: center 10%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 12, 0.5);
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 10;
}

.sub-title {
    font-size: clamp(30px, 4vw, 40px);
    color: var(--text-light);
    opacity: 0.9;
    transform: rotate(-5deg) translateY(10px);
    z-index: 1;
    margin-bottom: 20px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 11vw;
    /* reduced size for single line */
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--text-light);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.play-me-indicator {
    position: absolute;
    bottom: 120px;
    left: 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    z-index: 10;
}

.play-me-indicator span {
    font-size: 28px;
    transform: rotate(-10deg);
}

.play-me-indicator i {
    color: var(--text-light);
}

/* Audio Player */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: #111111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
}

.player-cover {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.player-info .track-title {
    font-weight: 600;
    font-size: 16px;
}

.player-info .artist-name {
    font-size: 14px;
    color: #A0A0A0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-controls button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-controls button:hover {
    color: var(--accent-pink);
}

.play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-pink) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.08);
}

.player-right {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
    justify-content: flex-end;
}

.waveform-placeholder {
    width: 150px;
    height: 30px;
    /* Simulated waveform using linear gradients */
    background: repeating-linear-gradient(90deg,
            var(--accent-lime),
            var(--accent-lime) 3px,
            transparent 3px,
            transparent 6px);
    opacity: 0.9;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.time {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.player-right button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-right button:hover {
    color: var(--accent-pink);
}

/* Releases Grid Section */
.releases-grid-section {
    padding: 50px 5% 40px 5%;
    background-color: var(--navy-blue)
}

.text-center {
    text-align: center;
    margin-bottom: 60px;
}

/* Section Title — Notescape style */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0px;
    line-height: 1;
    display: inline-block;
    position: relative;
    max-width: 100%;
    /* prevent overflow beyond the grid track */
    overflow: hidden;
    /* contain any inline-block word spans that exceed width */
}

.section-title-wrapper {
    display: grid;
    grid-template-columns: fit-content(100%);
    justify-content: center;
    margin-bottom: 60px;
}

.divider {
    width: 120px;
    height: 3px;
    background-color: var(--accent-pink);
    margin: 15px auto 0;
    border-radius: 2px;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.release-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.mobile-art-wrapper {
    width: 100%;
    height: 100%;
}

.mobile-art-wrapper .vinyl-record {
    display: none;
    /* Hidden on desktop */
}

.release-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 6px;
}

.release-card:hover .release-img {
    transform: scale(1.08);
}

.release-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.release-card:hover .release-overlay {
    opacity: 1;
}

.release-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 0px 10px;
}

.release-artist {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 0 10px;
}

.release-credit {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 0 10px;
}

.release-card:hover .release-title {
    transform: translateY(0);
}

.release-card:hover .release-artist {
    transform: translateY(0);
}

.release-card:hover .release-credit {
    transform: translateY(0);
}

.streaming-links {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    transition-delay: 0.1s;
}

.release-card:hover .streaming-links {
    transform: translateY(0);
}

.stream-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s ease;
}

.stream-icon:hover {
    background-color: var(--accent-pink);
    color: #fff;
    transform: scale(1.1) translateY(-2px);
}

/* About Section */
.about-section {
    padding: 60px 8% 60px 8%;
    /* Reduced bottom padding from 120px */
    background-color: var(--navy-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    /* Removed min-height: 100vh as it artificially creates blank vertical space */
}

.about-content {
    flex: 1;
    max-width: 50%;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-desc {
    font-size: 18px;
    color: #A0A0A0;
    margin-bottom: 20px;
    line-height: 1.6;

    text-align: left;
    text-justify: inter-word;

    /* Safari specific fixes to force flex items to calculate justification */
    width: 100%;
    display: block;

    /* Reveal Animation Properties */
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

/* Staggered Delay for Paragraphs when revealed */
body.loaded .about-desc.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-desc:nth-of-type(1) {
    transition-delay: 0.05s;
}

.about-desc:nth-of-type(2) {
    transition-delay: 0.15s;
}

.about-desc:nth-of-type(3) {
    transition-delay: 0.25s;
}

.about-desc:nth-of-type(4) {
    transition-delay: 0.35s;
}

.about-desc {
    -webkit-hyphens: auto;
    hyphens: auto;
}

.about-image-container {
    flex: 1;
    max-width: 35%;
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.social-links {
    display: flex;
    gap: 24px;
    padding-top: 15px;
    /* Fix for smooth opacity transitions during scroll */
    will-change: opacity;
}

.social-btn {
    display: inline-block;
    color: var(--text-light);
    font-size: 28px;
    transition: color 0.3s ease, transform 0.3s ease;
    /* Fix for sub-pixel rendering glitches during transitions */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.social-btn:hover {
    color: var(--accent-pink);
    transform: translateY(-3px) translateZ(0);
}

/* Workflow Section */
.workflow-section {
    padding: 50px 5%;
    background-color: var(--light-black);
}

.workflow-section.trusted-section {
    background-color: var(--navy-blue);
    padding: 50px 5% 0px 5%;
}

.workflow-section.feedback-section {
    background-color: var(--navy-blue);
}

.workflow-section.contact-section {
    background-color: var(--light-black);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.workflow-box {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(15, 15, 15, 0.4));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 20px;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.workflow-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* WORKFLOW BOXES ANIMATION */
.workflow-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(237, 28, 36, 0.2);
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.7), rgba(15, 15, 15, 0.6));
}

/* TOP BORDER ANIMATION FOR WORKFLOW BOXES */
/*
.workflow-box:hover::before {
    transform: scaleX(1);
}
*/
.workflow-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(237, 28, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 0 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 15px rgba(237, 28, 36, 0.05);
}

/* ICON WRAPPER ANIMATION */
/*
.workflow-box:hover .workflow-icon-wrapper {
    background: var(--accent-pink);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.3);
}
*/
.workflow-icon {
    font-size: 20px;
    color: var(--accent-pink);
    transition: color 0.3s ease;
}

/* ICON COLOR ANIMATION ON HOVER */
/*
.workflow-box:hover .workflow-icon {
    color: #fff;
}
*/
.workflow-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    text-align: left;
    min-width: 0;
    word-break: break-word;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workflow-text-box {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 8px;
    padding: 0;
}

.workflow-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Trusted Section */
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin: 40px auto 0px;
    flex-wrap: wrap;
    /*max-width: 1000px;*/
}

.trusted-logo {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.trusted-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.trusted-logo img {
    max-height: 100px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
}

/* Abbey Road logo specific - allow slight overflow and larger size */
.trusted-logo.abbey-logo {
    z-index: 5;
    /* Ensure it stays above others if overlapping */
}

.trusted-logo.abbey-logo img {
    max-height: 120px;
    max-width: 280px;
    transform: scale(1.15);
}

.trusted-logo.abbey-logo:hover {
    transform: scale(1.1);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    /* Forces the child card to stretch */
}

.feedback-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(15, 15, 15, 0.4));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feedback-card .quote-icon {
    font-size: 40px;
    color: var(--accent-pink);
    opacity: 0.3;
    margin-bottom: 30px;
}

.feedback-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-light);
    font-family: var(--font-body);
    font-style: italic;
    margin-bottom: 30px;
}

.feedback-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: inline-block;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-pink);
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-role {
    font-size: 14px;
    color: #A0A0A0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    transform: scale(1.1);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.current-indicator {
    background: var(--accent-pink);
    transform: scale(1.2);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.contact-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7.5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/*
.contact-image-wrapper:hover .contact-image {
    transform: scale(2);
}
*/

.contact-form-wrapper {
    flex: 0.6;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(15, 15, 15, 0.4));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.2);
    background: rgba(0, 0, 0, 0.7);
}

.submit-btn {
    background: var(--accent-pink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 1.25px 5px var(--accent-pink);
}

/* Footer */
.main-footer {
    padding: 30px 5%;
    background-color: var(--light-black);
    text-align: center;
    /*border-top: 1px solid rgba(255, 255, 255, 0.05);*/
    /*margin-bottom: 72px;*/
    /* For persistent audio player */
}

.main-footer p {
    color: #A0A0A0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--light-black);
    z-index: 2000;
    padding: 80px 48px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 48px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-menu:hover {
    color: var(--accent-pink);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.side-link {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: inline-block;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.side-link:hover {
    color: var(--accent-pink);
    transform: translateX(10px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .main-title {
        font-size: 16vw;
        /* larger relative size on narrow screens to let it wrap nicely */
    }

    .sub-title {
        transform: rotate(-5deg) translateY(5px);
        margin-bottom: 10px;
    }

    .releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .player-left {
        width: 45%;
    }

    .player-right {
        width: auto;
        justify-content: flex-end;
    }

    .waveform-placeholder {
        display: none;
    }

    .album-title {
        font-size: 60px;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 5% 20px 5%;
        /* Significantly reduced bottom padding */
        gap: 50px;
    }

    .about-image-container,
    .about-content {
        max-width: 100%;
    }

    .section-title-wrapper {
        margin-bottom: 40px;
    }

    .social-links {
        justify-content: center;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #main-header {
        padding: 20px 5%;
    }
}

@media (max-width: 480px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }

    .side-link {
        font-size: 23px;
        /* Smaller menu font on mobile */
    }

    .menu-overlay {
        background-color: var(--light-black);
        pointer-events: none;
        /* Transition opacity normally, but delay visibility on the way out */
        transition: opacity 0.4s ease, visibility 0.6s -0.5s;
    }

    .hero-bg {
        background-position: 75%;
    }

    .about-desc:nth-of-type(1) {
        transition-delay: 0.05s;
    }

    .about-desc:nth-of-type(2) {
        transition-delay: 0.05s;
    }

    .about-desc:nth-of-type(3) {
        transition-delay: 0.05s;
    }

    .about-desc:nth-of-type(4) {
        transition-delay: 0.05s;
    }

    .releases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trusted-logos {
        display: grid;
        /*grid-template-columns: repeat(2, 1fr);*/
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        align-items: stretch;
        justify-items: center;
        overflow: visible;
        /* Allowed to overflow */
        /* debug code
        background-color: var(--text-light);
        border-radius: 8px;*/
    }

    .trusted-logo {
        display: flex;
        opacity: 1;
        align-items: center;
        justify-content: center;
        padding: 28px 20px;
        /*min-width: 0;*/
        width: 100%;
        transition: opacity 0.3s ease;
        /* no transform transition on mobile */
        /* debug border 
        border: 1px solid var(--light-black);*/
    }

    /* Disable scale on tap — it overflows the grid cell on mobile */
    .trusted-logo:hover {
        transform: none;
        opacity: 1;
    }

    .trusted-logo img {
        max-height: 60px;
        max-width: 140px;
        padding-bottom: 0;
    }

    .trusted-logo.abbey-logo img {
        max-height: 80px;
        max-width: 180px;
        transform: scale(1.2);
    }

    .trusted-logo.abbey-logo:hover {
        transform: scale(1);
    }

    .carousel-container {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-track-container {
        order: 1;
        width: 100%;
        flex: none;
    }

    .carousel-nav {
        order: 2;
        width: 100%;
        margin-bottom: 0px;
        margin-top: 8px;
    }

    .carousel-btn {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.6);
        border: none;
        margin-top: 0px;
    }

    .carousel-btn.prev {
        order: 3;
        margin-right: 15px;
    }

    .carousel-btn.next {
        order: 4;
        margin-left: 15px;
    }

    .carousel-slide {
        padding: 0;
        /* Expanded to match contact form width */
    }

    .feedback-card {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        max-width: 600px;
        gap: 0;
    }

    .contact-image-wrapper {
        display: none;
    }

    .contact-form-wrapper {
        padding: 40px 25px;
    }

    .release-card {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        border-radius: 0px;
        /*border-bottom: 1px solid var(--text-light);*/
    }

    .mobile-art-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        cursor: pointer;
    }

    .mobile-art-wrapper .vinyl-record {
        display: block;
        /* Visible on mobile */
        width: 90%;
        height: 90%;
        background: repeating-radial-gradient(#111,
                #111 5px,
                #222 6px,
                #111 7px);
        border-radius: 50%;
        position: absolute;
        top: 5%;
        right: 5%;
        z-index: 1;
        /* Behind the sleeve */

        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-art-wrapper .vinyl-record::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        /* Scaled down for mobile */
        height: 100px;
        background-color: var(--accent-pink);
        border-radius: 50%;
    }

    .mobile-art-wrapper .vinyl-record::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 15px;
        height: 15px;
        background-color: var(--bg-primary);
        border-radius: 50%;
    }

    /* Vinyl Grooves (Mobile) */
    .mobile-art-wrapper .vinyl-groove {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .mobile-art-wrapper .vinyl-groove:nth-child(1) {
        width: 80%;
        height: 80%;
    }

    .mobile-art-wrapper .vinyl-groove:nth-child(2) {
        width: 60%;
        height: 60%;
    }

    /* Mobile vinyl click-to-slide */
    .mobile-art-wrapper.playing .vinyl-record {
        top: 5%;
        /* Keep original top */
        transform: translateX(50%) rotate(180deg);
    }

    .release-card:hover .release-img {
        transform: none;
        /* Disable hover scale on mobile */
    }

    .mobile-art-wrapper.playing .release-img,
    .release-card:hover .mobile-art-wrapper.playing .release-img {
        transform: translateX(-35%);
        /* Precedence of the vinyl slide animation */
    }

    .release-img {
        aspect-ratio: 1 / 1;
        /* Keep art perfectly square */
    }

    .release-overlay {
        position: static;
        /* Let it flow below the image */
        opacity: 1;
        /* Always show text on mobile */
        background-color: transparent;
        /* Remove dark background */
        padding: 20px 0 10px;
        justify-content: center;
        align-items: center;
    }

    .release-title,
    .release-artist,
    .release-credit,
    .streaming-links {
        transform: none !important;
    }

    .release-title {
        font-size: 20px;
        margin-bottom: 10px;
        /* Pulls artist closer */
        line-height: 1.2;
        /* Removes default 1.6 extra vertical height */
        color: var(--text-light);
    }

    .release-artist {
        font-size: 17px;
        margin-bottom: 12px;
        color: var(--text-light);
        line-height: 0.5;
    }

    .release-credit {
        font-size: 14px;
        margin-bottom: 15px;
        color: var(--text-light);
    }

    .stream-icon {
        width: 44px;
        /* Slightly larger for easier tapping */
        height: 44px;
        font-size: 18px;
        background-color: rgba(255, 255, 255, 0.08);
        /* Boost visibility out of overlay */
    }

    .about-title {
        font-size: clamp(30px, 6vw, 80px);
    }

    .main-footer {
        /*margin-bottom: 60px;*/
        padding: 20px 5%;
    }

    /* Target the player tightly on mobile */
    .persistent-player {
        height: 60px;
        padding: 0 12px;
    }

    .player-cover {
        width: 38px;
        height: 38px;
    }

    .player-left {
        width: 35%;
        gap: 8px;
    }

    .player-info {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .player-info .track-title {
        font-size: 13px;
    }

    .player-info .artist-name {
        font-size: 11px;
    }

    .player-controls {
        gap: 12px;
    }

    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .player-controls button {
        font-size: 16px;
    }

    .player-right {
        width: 15%;
    }

    .time {
        display: none;
        /* Hide time to save space on mobile */
    }
}

/* Text Reveal Animations */
.reveal-ready {
    opacity: 1 !important;
}

.reveal-char {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
    padding-bottom: 0.2em;
    /* Prevents descenders like 'y' or 'g' from being clipped */
    margin-bottom: -0.2em;
}

body.loaded .reveal-ready.in-view .reveal-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Touch devices: kill the logo scale entirely — hovering doesn't exist
   and the sticky :hover on tap causes overflow in the grid 
@media (hover: none) {
    .trusted-logo {
        transition: opacity 0.3s ease;
    }

    .trusted-logo:hover {
        transform: none;
        opacity: 0.999;
    }
}*/