/* style.css - Mermaid Song underwater theme */

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

html, body {
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #e0f0ff;
    line-height: 1.7;
    background: linear-gradient(
        180deg,
        #001a33 0%,
        #003366 15%,
        #005577 30%,
        #007088 45%,
        #006b7f 55%,
        #005a6e 65%,
        #004466 80%,
        #002244 100%
    );
    background-attachment: fixed;
    position: relative;
}

/* ── Ocean background container ───────────────── */
.ocean-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── Light rays from surface ──────────────────── */
.light-rays {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 70%;
    background:
        conic-gradient(from 200deg at 30% 0%,
            transparent 0deg,
            rgba(120, 220, 255, 0.04) 5deg,
            transparent 10deg,
            transparent 25deg,
            rgba(100, 200, 255, 0.05) 30deg,
            transparent 35deg,
            transparent 50deg,
            rgba(140, 230, 255, 0.03) 55deg,
            transparent 60deg
        ),
        conic-gradient(from 160deg at 60% 0%,
            transparent 0deg,
            rgba(120, 220, 255, 0.05) 4deg,
            transparent 8deg,
            transparent 20deg,
            rgba(100, 200, 255, 0.04) 24deg,
            transparent 28deg,
            transparent 45deg,
            rgba(140, 230, 255, 0.06) 49deg,
            transparent 53deg
        );
    animation: raysShift 12s ease-in-out infinite alternate;
}

@keyframes raysShift {
    0%   { opacity: 0.6; transform: translateX(-2%) rotate(-1deg); }
    100% { opacity: 1;   transform: translateX(2%) rotate(1deg); }
}

/* ── Floating bubbles ─────────────────────────── */
.bubbles {
    position: absolute;
    inset: 0;
}

.bubble {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(200, 240, 255, 0.35),
        rgba(100, 200, 255, 0.1) 50%,
        transparent 70%
    );
    border: 1px solid rgba(180, 230, 255, 0.15);
    animation: rise linear infinite;
}

.bubble:nth-child(1)  { width: 6px;  height: 6px;  left: 8%;  animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(2)  { width: 10px; height: 10px; left: 18%; animation-duration: 11s; animation-delay: 2s; }
.bubble:nth-child(3)  { width: 4px;  height: 4px;  left: 28%; animation-duration: 16s; animation-delay: 4s; }
.bubble:nth-child(4)  { width: 8px;  height: 8px;  left: 38%; animation-duration: 13s; animation-delay: 1s; }
.bubble:nth-child(5)  { width: 5px;  height: 5px;  left: 48%; animation-duration: 15s; animation-delay: 3s; }
.bubble:nth-child(6)  { width: 12px; height: 12px; left: 58%; animation-duration: 10s; animation-delay: 5s; }
.bubble:nth-child(7)  { width: 7px;  height: 7px;  left: 68%; animation-duration: 12s; animation-delay: 0.5s; }
.bubble:nth-child(8)  { width: 3px;  height: 3px;  left: 78%; animation-duration: 18s; animation-delay: 6s; }
.bubble:nth-child(9)  { width: 9px;  height: 9px;  left: 85%; animation-duration: 14s; animation-delay: 2.5s; }
.bubble:nth-child(10) { width: 5px;  height: 5px;  left: 92%; animation-duration: 16s; animation-delay: 4.5s; }
.bubble:nth-child(11) { width: 11px; height: 11px; left: 5%;  animation-duration: 12s; animation-delay: 7s; }
.bubble:nth-child(12) { width: 4px;  height: 4px;  left: 72%; animation-duration: 17s; animation-delay: 1.5s; }

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

/* ── Floating sea particles ───────────────────── */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(180, 230, 255, 0.4);
    border-radius: 50%;
    animation: drift linear infinite;
}

.particle:nth-child(1) { top: 15%; left: 10%; animation-duration: 20s; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 25%; animation-duration: 25s; animation-delay: 3s; }
.particle:nth-child(3) { top: 50%; left: 45%; animation-duration: 22s; animation-delay: 5s; }
.particle:nth-child(4) { top: 70%; left: 65%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(5) { top: 20%; left: 80%; animation-duration: 24s; animation-delay: 7s; }
.particle:nth-child(6) { top: 60%; left: 15%; animation-duration: 21s; animation-delay: 2s; }
.particle:nth-child(7) { top: 40%; left: 55%; animation-duration: 26s; animation-delay: 4s; }
.particle:nth-child(8) { top: 80%; left: 35%; animation-duration: 19s; animation-delay: 6s; }

@keyframes drift {
    0%   { transform: translate(0, 0);         opacity: 0; }
    10%  { opacity: 0.6; }
    50%  { transform: translate(60px, -40px);   opacity: 0.4; }
    90%  { opacity: 0.2; }
    100% { transform: translate(-30px, -80px);  opacity: 0; }
}

/* ── Waves at top ─────────────────────────────── */
.waves-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.waves-top svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ── Waves at bottom ──────────────────────────── */
.waves-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.waves-bottom svg {
    display: block;
    width: 100%;
    height: 100px;
}

.wave {
    animation: waveFlow 8s ease-in-out infinite alternate;
}

.wave1 {
    fill: rgba(0, 50, 80, 0.4);
    animation-duration: 7s;
}

.wave2 {
    fill: rgba(0, 40, 70, 0.5);
    animation-duration: 9s;
    animation-delay: -2s;
}

.wave3 {
    fill: rgba(0, 30, 55, 0.7);
    animation-duration: 6s;
    animation-delay: -4s;
}

@keyframes waveFlow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

/* ── Main content ─────────────────────────────── */
.content {
    position: relative;
    z-index: 2;
    margin-left: 200px;
    padding: 80px 24px 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Title area ───────────────────────────────── */
.title-area {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 400;
    color: #b8e8ff;
    text-shadow:
        0 0 30px rgba(100, 200, 255, 0.3),
        0 0 60px rgba(50, 150, 220, 0.15);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.shimmer-line {
    width: 120px;
    height: 2px;
    margin: 0 auto 20px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(130, 220, 255, 0.6),
        rgba(180, 160, 255, 0.5),
        rgba(130, 220, 255, 0.6),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tagline {
    font-size: 1.15rem;
    color: rgba(180, 220, 255, 0.7);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ── Card ─────────────────────────────────────── */
.card {
    background: rgba(0, 50, 90, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 200, 255, 0.12);
    border-radius: 16px;
    padding: 32px 40px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow:
        0 8px 32px rgba(0, 20, 50, 0.3),
        inset 0 1px 0 rgba(150, 220, 255, 0.08);
}

.card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(200, 230, 255, 0.85);
}

/* ── CTA Link ─────────────────────────────────── */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7dd8ff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 10px 24px;
    border: 1px solid rgba(125, 216, 255, 0.25);
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(0, 80, 140, 0.2);
}

.cta-link:hover {
    background: rgba(0, 100, 170, 0.35);
    border-color: rgba(125, 216, 255, 0.45);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.15);
    transform: translateY(-1px);
}

.cta-link .arrow {
    transition: transform 0.3s ease;
}

.cta-link:hover .arrow {
    transform: translateX(4px);
}

/* ── Image ────────────────────────────────────── */
.content img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(100, 200, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 20, 60, 0.4);
    margin-top: 8px;
}

/* ── Headings (global) ────────────────────────── */
h2 {
    color: #9dd4f0;
    font-weight: 400;
}

/* ── Links (global fallback) ──────────────────── */
a {
    color: #7dd8ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Navigation (vertical left sidebar) ──────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    background: rgba(0, 20, 45, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(100, 200, 255, 0.08);
}

.nav-logo {
    font-size: 1.3rem;
    color: #b8e8ff;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.25);
    margin-bottom: 40px;
}

.nav-logo:hover {
    text-decoration: none;
    color: #d0f0ff;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.nav-links a {
    color: rgba(180, 220, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: block;
}

.nav-links a:hover {
    color: #b8e8ff;
    background: rgba(0, 80, 140, 0.25);
    border-color: rgba(100, 200, 255, 0.12);
    text-decoration: none;
}

.nav-links a.active {
    color: #b8e8ff;
    background: rgba(0, 80, 140, 0.3);
    border-color: rgba(100, 200, 255, 0.2);
}

/* ── Home links row ──────────────────────────── */
.home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ── About page cards ────────────────────────── */
.about-card h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.about-card p {
    font-size: 1.05rem;
    color: rgba(200, 230, 255, 0.85);
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.card + .card {
    margin-top: 20px;
}

/* ── Gallery ─────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(100, 200, 255, 0.12);
    background: rgba(0, 50, 90, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 32px rgba(0, 20, 50, 0.3),
        inset 0 1px 0 rgba(150, 220, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 20, 50, 0.4),
        0 0 20px rgba(100, 200, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 16px 20px;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #b8e8ff;
    margin: 0;
}

/* ── Contact form ────────────────────────────── */
.contact-card {
    width: 100%;
    max-width: 520px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: rgba(180, 220, 255, 0.8);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    color: #e0f0ff;
    background: rgba(0, 40, 80, 0.4);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(150, 200, 230, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(125, 216, 255, 0.4);
    box-shadow: 0 0 16px rgba(100, 200, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
}

/* ── 11:11 background element ────────────────── */
.eleven-eleven {
    position: fixed;
    top: 50%;
    left: calc(200px + (100vw - 200px) / 2);
    transform: translate(-50%, -50%);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18vw;
    font-weight: 400;
    color: rgba(100, 200, 255, 0.04);
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-shadow:
        0 0 80px rgba(120, 200, 255, 0.03),
        0 0 160px rgba(80, 160, 220, 0.02);
    animation: elevenPulse 8s ease-in-out infinite alternate;
    user-select: none;
}

@keyframes elevenPulse {
    0%   { opacity: 0.5; text-shadow: 0 0 80px rgba(120, 200, 255, 0.03), 0 0 160px rgba(80, 160, 220, 0.02); }
    50%  { opacity: 1;   text-shadow: 0 0 100px rgba(120, 200, 255, 0.06), 0 0 200px rgba(80, 160, 220, 0.04); }
    100% { opacity: 0.6; text-shadow: 0 0 80px rgba(120, 200, 255, 0.03), 0 0 160px rgba(80, 160, 220, 0.02); }
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(100, 200, 255, 0.08);
    }

    .nav-logo {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .nav-links {
        flex-direction: row;
        gap: 4px;
        width: auto;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 10px;
        border-radius: 20px;
    }

    .content {
        margin-left: 0;
        padding: 80px 16px 120px;
    }

    .card {
        padding: 24px 20px;
    }

    .waves-bottom svg {
        height: 70px;
    }

    .home-links {
        flex-direction: column;
        align-items: center;
    }

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

    .eleven-eleven {
        left: 50%;
        font-size: 25vw;
    }
}
