:root {
    --water-bg: #02061a;       /* deep ocean blue */
    --water-accent: #3caeff;   /* bright aquatic highlight */
    --water-soft: rgba(60, 174, 255, 0.4); /* soft glow */
    --water-text: #cde8ff;     /* pale watery text */
}

body {
    background: var(--water-bg);
    color: var(--water-text);
    overflow-x: hidden;
    font-family: "fontcustom2", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* NAVIGATION */
.water-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.water-nav a {
    color: var(--water-accent);
    text-decoration: none;
    letter-spacing: 3px;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.water-nav a:hover {
    border-bottom: 1px solid var(--water-accent);
}

/* MAIN CONTAINER */
.water-container {
    max-width: 1000px;
    margin: 120px auto;
    padding: 40px;
    text-align: center;
}

.water-title {
    font-size: 48px;
    letter-spacing: 6px;
    color: #bae2ff;
    text-shadow: 0 0 20px #3caeff;
}

.water-subtitle {
    margin-bottom: 60px;
    opacity: 0.7;
}

/* SECTION CARDS */
.water-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.water-card {
    padding: 30px;
    background: rgba(60,174,255,0.06);
    border: 1px solid var(--water-soft);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.water-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px var(--water-soft);
    filter: brightness(1.1) contrast(1.1);
}

.water-card h2 {
    color: var(--water-accent);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* CONTENT SECTIONS */
.water-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}

.water-content h2 {
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--water-accent);
    margin-bottom: 30px;
}

.water-content p {
    line-height: 1.8;
    font-size: 16px;
}

/* MUSIC PLAYER */
.water-player {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--water-soft);
    border-radius: 14px;
    background: rgba(60,174,255,0.05);
}

.water-player button {
    background: rgba(60,174,255,0.1);
    border: 1px solid var(--water-accent);
    color: var(--water-text);
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 12px;
    letter-spacing: 1.5px;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 0 10px rgba(60,174,255,0.3);
    transition: 0.3s ease;
}

.water-player button:hover {
    background: rgba(60,174,255,0.25);
    box-shadow: 0 0 20px rgba(60,174,255,0.7);
    transform: translateY(-2px);
}

#water-play {
    background: transparent;
    border: 1px solid var(--water-accent);
    color: var(--water-text);
    padding: 8px 20px;
    cursor: pointer;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

#water-play:hover {
    background: rgba(60,174,255,0.2);
}

.water-progress {
    margin-bottom: 10px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.water-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--water-accent);
    transition: width 0.2s linear;
}

#track-name {
    margin-bottom: 10px;
    color: var(--water-accent);
    font-weight: bold;
}

#trackList {
    list-style: none;
    padding-left: 0;
}

#trackList li {
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 6px;
}

#trackList li:hover {
    background: rgba(60,174,255,0.2);
}

#trackList li.active {
    background: rgba(60,174,255,0.4);
    font-weight: bold;
}

/* ART GRID */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background: 
        linear-gradient(to right, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 140px 140px;
    border-radius: 16px;
    position: relative;
}

/* Subtle outer glow for grid */
.memory-grid::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(145deg, rgba(60, 174, 255, 0.3), rgba(0, 150, 255, 0.2));
    border-radius: 16px;
    z-index: -1;
    filter: blur(8px);
}

.memory-slot {
    background: linear-gradient(145deg, #00102b, #001f3b);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    box-shadow:
        inset 0 0 15px rgba(255,255,255,0.05),
        0 0 15px rgba(60,174,255,0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                filter 0.4s ease;
    transform-origin: center;
}

.memory-slot:hover {
    transform: scale(1.15);
    box-shadow:
        0 0 30px rgba(60,174,255,0.9),
        0 0 50px rgba(60,174,255,0.5);
    filter: brightness(1.2);
    z-index: 10;
}

.memory-slot img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.memory-slot:hover img {
    transform: scale(1.05);
}

/* VIEWER */
.memory-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,20,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.viewer-content {
    background: #00112a;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    gap: 40px;
    max-width: 900px;
    box-shadow: 0 0 50px rgba(60,174,255,0.5);
}

.viewer-content img {
    max-width: 400px;
}

.viewer-info {
    max-width: 350px;
}

.viewer-info h3 {
    color: #3caeff;
}