/**
 * style.css - Josang Thofro Main Site
 * Theme: Calm, Rounded Whimsical Studio & Dreamy Frutiger Aero
 */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* --------------------------------------------------
   1. Design System & Variables (Musical Sky Palette)
   -------------------------------------------------- */
:root {
    --sky-base: #edf4fc;
    --sky-gradient: linear-gradient(135deg, #dce8f8 0%, #ebf2fa 45%, #f4f8fd 85%, #e1ecf9 100%);
    
    --glass-panel: rgba(255, 255, 255, 0.80);
    --glass-panel-hover: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(255, 255, 255, 0.95);
    --glass-border-subtle: rgba(185, 210, 238, 0.5);
    
    --gloss-top: inset 0 1px 0 rgba(255, 255, 255, 0.9),
                 inset 0 -1px 0 rgba(130, 170, 215, 0.12);
    --gloss-button: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(230, 243, 253, 0.5) 50%, rgba(212, 232, 250, 0.75) 100%);
    --gloss-button-hover: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 255, 0.85) 50%, rgba(220, 238, 253, 0.95) 100%);
    
    --text-main: #2b3e55;
    --text-muted: #536a85;
    --text-light: #859bb3;
    
    --accent-blue: #0077cc;
    --accent-sky: #38bdf8;
    --accent-glow: rgba(0, 119, 204, 0.22);
    
    --shadow-panel: 0 14px 36px rgba(35, 70, 115, 0.08),
                    0 2px 6px rgba(0, 0, 0, 0.02),
                    var(--gloss-top);
    --shadow-btn: 0 4px 10px rgba(0, 100, 180, 0.1),
                  var(--gloss-top);
                  
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 50px;
    
    /* Beautiful, Calm, Rounded Typography Stack */
    --font-sans: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------
   2. Global Resets & Whimsical Scrollbar
   -------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--accent-sky);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(210, 230, 250, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 119, 204, 0.3);
    border-radius: var(--radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.6);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 119, 204, 0.5);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 500;
    background-color: var(--sky-base);
    background-image: var(--sky-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   3. Glossy Header & Musical Navigation Bar
   -------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(228, 241, 253, 0.75) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 22px rgba(35, 70, 115, 0.06), var(--gloss-top);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 12px rgba(0, 119, 204, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.logo:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 16px var(--accent-glow);
}

/* Animated CSS Equalizer Bars */
.logo-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    padding-bottom: 1px;
}

.logo-eq span {
    display: block;
    width: 3.5px;
    background: var(--accent-blue);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 6px rgba(0, 119, 204, 0.3);
    animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.logo-eq span:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.logo-eq span:nth-child(2) { height: 16px; animation-delay: 0.4s; }
.logo-eq span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.logo-eq span:nth-child(4) { height: 15px; animation-delay: 0.5s; }

@keyframes eqBounce {
    0% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1.1); opacity: 1; background: var(--accent-sky); }
    100% { transform: scaleY(0.7); opacity: 0.8; }
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--gloss-button);
    border: 1px solid var(--glass-border-subtle);
    box-shadow: var(--shadow-btn);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    pointer-events: none;
}

nav a:hover {
    color: var(--accent-blue);
    background: var(--gloss-button-hover);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 14px rgba(0, 119, 204, 0.18), var(--gloss-top);
    transform: translateY(-2px);
}

nav a:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(35, 75, 120, 0.15);
}

.nav-separator {
    user-select: none;
    color: var(--text-light);
    opacity: 0.4;
    font-weight: 400;
    margin: 0 0.2rem;
}

/* --------------------------------------------------
   4. Main Content Area & Whimsical Musical Panels
   -------------------------------------------------- */
.site-main {
    flex: 1;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}

.glass-panel, section {
    background: var(--glass-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover, section:hover {
    box-shadow: 0 18px 40px rgba(35, 70, 115, 0.12),
                0 3px 8px rgba(0, 0, 0, 0.03),
                var(--gloss-top);
}

/* Musical Staff Lines with shimmer effect */
.glass-panel::before, section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 6px;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 119, 204, 0.12),
        rgba(0, 119, 204, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.7;
    animation: staffShimmer 8s ease-in-out infinite alternate;
}

@keyframes staffShimmer {
    0% { opacity: 0.4; filter: brightness(0.9); }
    100% { opacity: 0.9; filter: brightness(1.2); }
}

/* Ambient Dream Drift Wave */
.glass-panel::after, section::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 119, 204, 0.05) 0%, rgba(56, 189, 248, 0.02) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: dreamDrift 6s ease-in-out infinite alternate;
}

@keyframes dreamDrift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.15) translate(-10px, -10px); opacity: 1; }
}

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 0.85rem;
}

.hero p {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 750px;
}

/* --------------------------------------------------
   5. Glossy Buttons & Interactive Elements
   -------------------------------------------------- */
.btn, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    background: var(--gloss-button);
    border: 1px solid var(--glass-border-subtle);
    color: var(--text-main);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover, button:hover {
    background: var(--gloss-button-hover);
    color: var(--accent-blue);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(0, 119, 204, 0.22), var(--gloss-top);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(35, 75, 120, 0.2);
}

/* --------------------------------------------------
   6. Glossy Whimsical Footer
   -------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, rgba(220, 235, 250, 0.6) 0%, rgba(195, 220, 242, 0.85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--gloss-top);
    margin-top: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 119, 204, 0.3);
}

/* --------------------------------------------------
   Dynamic Artwork Backdrop Utility for Glass Panels
   -------------------------------------------------- */
.glass-panel.with-artwork {
    position: relative;
    overflow: hidden;
}

/* Layer that holds the blurred album/artist artwork */
.glass-panel.with-artwork::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--panel-artwork, none);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.3);
    opacity: 0.12; /* Keeps it extremely subtle, calm, and low-contrast */
    transform: scale(1.1); /* Prevents blur edge artifacts */
    pointer-events: none;
    z-index: 0;
}

/* Ensure text and content stay above the artwork layer */
.glass-panel.with-artwork > * {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------
   7. Responsive Design Breakpoints
   -------------------------------------------------- */
@media (max-width: 850px) {
    .nav-container {
        flex-direction: column;
        gap: 1.15rem;
        padding: 1rem 1.5rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .site-main {
        padding: 2rem 1.25rem;
    }

    .glass-panel, section {
        padding: 2.25rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.0rem;
        text-align: center;
        padding: 1.5rem;
    }
}