/* ============================================
   NOISESHIP - Voyage of Sound
   Nautical + Music Fusion Theme
   ============================================ */

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

:root {
    --sky: #e8f4f8;
    --sky-mid: #c5e3ee;
    --ocean: #2e86ab;
    --ocean-deep: #1b6b93;
    --seafoam: #20b2aa;
    --sand: #f5f0e8;
    --coral: #e8635a;
    --text-dark: #1a3a4a;
    --text-mid: #3a6070;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: var(--ocean);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--coral);
}

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

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.main-nav.scrolled {
    background-color: rgba(232, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--ocean) !important;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    position: relative;
    padding: 0.3rem 0;
}

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

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

.nav-links a:hover {
    color: var(--ocean);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Sections Base --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.wave-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-border svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* --- Hero Section --- */
.section--hero {
    background: linear-gradient(180deg, #dceef5 0%, var(--sky) 30%, var(--sky-mid) 70%, var(--ocean) 100%);
    align-items: center;
    text-align: center;
    padding-bottom: 8rem;
    overflow: hidden;
}

#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

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

.hero-logo {
    margin-bottom: 1.5rem;
}

.ship-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.2));
}

/* SVG logo animations */
.sound-wave-1 {
    animation: soundPulse 2s ease-in-out infinite;
}

.sound-wave-2 {
    animation: soundPulse 2s ease-in-out 0.5s infinite;
}

@keyframes soundPulse {
    0%, 100% { opacity: 0.8; transform: translateY(0); }
    50% { opacity: 0.2; transform: translateY(-3px); }
}

.water-line {
    animation: waterFlow 4s ease-in-out infinite;
}

.water-line-2 {
    animation: waterFlow 4s ease-in-out 1s infinite;
}

@keyframes waterFlow {
    0% { transform: translateX(0); }
    50% { transform: translateX(15px); }
    100% { transform: translateX(0); }
}

.flag {
    animation: flagWave 2s ease-in-out infinite;
    transform-origin: 300px 60px;
}

@keyframes flagWave {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(-5deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 12px;
    color: var(--text-dark);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--seafoam);
    margin-bottom: 0.8rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--rust);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero-cta:hover {
    color: var(--navy);
    background: var(--seafoam);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.3);
}

/* --- About Section --- */
.section--about {
    background: var(--navy);
    padding-bottom: 8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--silver);
    margin-bottom: 2rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: rgba(232, 241, 242, 0.8);
}

.detail-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.compass-rose {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compass-rose svg {
    width: 220px;
    height: 220px;
    animation: compassSpin 30s linear infinite;
}

@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Discography Section --- */
.section--discography {
    background: var(--sand);
    padding-bottom: 8rem;
}

/* --- Disco Layout (grid + panel side by side) --- */
.disco-layout {
    display: grid;
    grid-template-columns: minmax(550px, 3fr) 2fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* --- Vinyl Grid --- */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* --- Vinyl Card --- */
.vinyl-card {
    text-align: center;
    cursor: pointer;
}

/* --- Record Wrap (sleeve + vinyl disc) --- */
.vinyl-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
}

/* --- Sleeve (album art cover) --- */
.vinyl-sleeve {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vinyl-sleeve img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Vinyl Disc (behind the sleeve) --- */
.vinyl-disc {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a, #0d0d0d);
    z-index: 1;
    transform: translateX(10px);
}

.vinyl-groove {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
}

.vinyl-groove--1 {
    width: 136px; height: 136px;
    margin: -68px 0 0 -68px;
}

.vinyl-groove--2 {
    width: 112px; height: 112px;
    margin: -56px 0 0 -56px;
}

.vinyl-groove--3 {
    width: 88px; height: 88px;
    margin: -44px 0 0 -44px;
}

.vinyl-label {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-label-hole {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Hover & Active: sleeve slides --- */
.vinyl-card:hover .vinyl-sleeve {
    transform: translateX(-20px);
}

.vinyl-card.active .vinyl-sleeve {
    transform: translateX(-30px);
}

/* --- Card Info --- */
.vinyl-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.vinyl-type {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mid);
}

/* --- Embed Panel (right side) --- */
.embed-panel {
    position: sticky;
    top: 100px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-panel-inner {
    display: none;
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(46, 134, 171, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    animation: panelFadeIn 0.4s ease;
}

.embed-panel-inner.visible {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Curtain overlay for smooth embed swaps */
.embed-panel-curtain {
    position: absolute;
    inset: -1px;
    background: #ffffff;
    border-radius: 12px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.embed-panel-curtain.active {
    opacity: 1;
}


.embed-panel-header {
    text-align: center;
    margin-bottom: 1rem;
}

.embed-panel-type {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--coral);
}

.embed-panel-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-top: 0.2rem;
}

.embed-panel-player {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f0e8;
    margin: 0 -2px;
    padding: 0 2px;
}

.embed-panel-player iframe {
    display: block;
    border-radius: 8px;
    margin: -1px 0;
}

.embed-panel-placeholder {
    text-align: center;
    color: var(--text-mid);
    opacity: 0.5;
}

.embed-panel-placeholder p {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.8rem;
}

.embed-panel-placeholder.hidden {
    display: none;
}

.disco-cta {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
    color: #fff;
    background: var(--ocean);
}

.btn--primary:hover {
    color: #fff;
    background: var(--coral);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 99, 90, 0.3);
}

/* --- Contact Section --- */
.section--contact {
    background: var(--navy-light);
    min-height: auto;
    padding: 6rem 0 4rem;
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(232, 241, 242, 0.7);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.15);
    background: rgba(26, 83, 92, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 140px;
}

.contact-link:hover {
    color: var(--seafoam);
    transform: translateY(-4px);
    border-color: rgba(78, 205, 196, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-link svg {
    transition: transform 0.3s ease;
}

.contact-link:hover svg {
    transform: scale(1.15);
}

/* --- Footer --- */
.site-footer {
    background: var(--sand);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(46, 134, 171, 0.15);
}

.footer-text {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-mid);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Background animation (CSS) --- */
.section--discography > .container {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .disco-layout {
        grid-template-columns: 1fr;
    }

    .vinyl-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .embed-panel {
        display: none;
    }

    .vinyl-wrap, .vinyl-sleeve, .vinyl-disc {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 8px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(232, 244, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .hero-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 5px;
    }

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

    .vinyl-wrap, .vinyl-sleeve, .vinyl-disc {
        width: 120px;
        height: 120px;
    }

    .section {
        padding: 4rem 0;
    }

    .section--hero {
        padding-bottom: 6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .compass-rose svg {
        width: 160px;
        height: 160px;
    }
}
