/* =========================
   GENERAL RESET & BASE
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'asap';
    src: url('./fonts/Asap-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'asap', sans-serif;
    font-weight: 300; /* or any value between 100 and 900 */
    font-stretch: 100%; /* or any value between 75% and 125% */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Normalize select appearance across browsers */
form select {
    appearance: none;
    -webkit-appearance: none; /* Safari & Chrome */
    -moz-appearance: none;    /* Firefox */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.8rem;
    font-size: 1rem;
    color: #333;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2em;
    cursor: pointer;
}

/* Remove default arrow in IE/Edge */
form select::-ms-expand {
    display: none;
}

/* =========================
    UTILITY CLASSES
============================ */

.hidden {
    display: none;
}

.desktop-banner { 
    display: block; 
}

.mobile-banner { 
    display: none; 
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
    background-color: #1c907d;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative; /* Ensure absolute children are positioned relative to header */
}

/* .temp-logo {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 100px;
    height: auto;
    z-index: 10;
    pointer-events: none;
} */

.bnn-title-logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
    position: relative;
    z-index: 2; /* Ensure logo is above background */
}

nav {
    position: relative;
    z-index: 2; /* Ensure nav is above background */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d0eaf1;
}

/* =========================
   FISH BANNER & ANIMATION
   ========================= */
.fish-banner {
    background: linear-gradient(135deg, #1c907d 0%, #0f516b 100%);
    height: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fish-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fishSwim 3s ease-in-out infinite;
}

.custom-fish {
    position: relative;
    width: 60px;
    height: 40px;
}

.fish-body {
    position: absolute;
    width: 40px;
    height: 25px;
    background: #ffffff;
    border-radius: 50% 0 50% 50%;
    top: 7.5px;
    left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fishBodyMove 3s ease-in-out infinite;
}

.fish-tail {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid #e8f5f3;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    top: 12px;
    left: 0;
    animation: fishTailMove 3s ease-in-out infinite;
}

.fish-fin-top {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid #d0eaf1;
    border-bottom: 6px solid transparent;
    top: 5px;
    left: 25px;
    animation: fishFinMove 3s ease-in-out infinite;
}

.fish-fin-bottom {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid #d0eaf1;
    border-top: 5px solid transparent;
    top: 25px;
    left: 27px;
    animation: fishFinMove 3s ease-in-out infinite reverse;
}

.fish-eye {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    top: 15px;
    left: 38px;
    animation: fishEyeMove 3s ease-in-out infinite;
}

.current-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.current-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    left:-300px;
}

.current-line {
    position: absolute;
    width: 100px;
    height: 12px;
    opacity: 0.5;
    background: none;
    border-radius: 0;
    left:-100px;
    /* Remove old background */
}

.current-line:nth-child(1) {
    top: 15%;
    left: 10%;
    animation: waveMove 4s linear infinite;
    animation-delay: 0s;
}

.current-line:nth-child(2) {
    top: 30%;
    left: 25%;
    animation: waveMove 4s linear infinite;
    animation-delay: 0.8s;
}

.current-line:nth-child(3) {
    top: 50%;
    left: 5%;
    animation: waveMove 4s linear infinite;
    animation-delay: 2.2s;
}

.current-line:nth-child(4) {
    top: 70%;
    left: 20%;
    animation: waveMove 4s linear infinite;
    animation-delay: 3.6s;
}

.current-line:nth-child(5) {
    top: 85%;
    left: 15%;
    animation: waveMove 4s linear infinite;
    animation-delay: 1.7s;
}

/* Wavy SVG background for each line */
.current-line::before {
    content: '';
    display: block;
    width: 100px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6 Q 25 0, 50 6 T 100 6" stroke="rgba(255,255,255,0.5)" stroke-width="2" fill="none"/></svg>') no-repeat center/contain;
}

/* Banner SVG Backgrounds - ensure they stay behind content */
.banner-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Keep background images behind content */
    pointer-events: none;
}

/* =========================
   MAIN CONTENT & SECTIONS
   ========================= */
main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-family: 'asap', sans-serif;
    font-weight: 600;
    font-stretch: 105%;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1c907d;
}

section p {
    font-size: 1.1rem;
    color: #555;
}

/* Content overflow prevention */
main, 
section, 
#results, 
.member, 
.secondary-image-container, 
.secondary-carousel {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* =========================
   FORMS
   ========================= */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

form label {
    font-weight: bold;
    color: #333;
}

form input,
form select,
form button {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

form input:focus,
form select:focus {
    border-color: #1c907d;
    outline: none;
}

form button {
    background-color: #1c907d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #107564;
}

/* Form Toggle Buttons */
#formToggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#formToggle button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#toggleSignUp {
    background-color: #0f516b;
    color: white;
}

#toggleSignUp:hover {
    background-color: #094056;
}

#toggleLogIn {
    background-color: #1c907d;
    color: white;
}

#toggleLogIn:hover {
    background-color: #107564;
}

/* Form Field Groups */
#nameFields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#showInSearch {
    margin-right: 0.5rem;
}

/* Bio Textarea */
textarea#editBio {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

textarea#editBio:focus {
    outline: none;
    border-color: #1c907d;
    box-shadow: 0 0 5px rgba(28, 144, 125, 0.5);
}

/* =========================
   SEARCH RESULTS & MEMBERS
   ========================= */
#results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.member {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s, background 0.3s, color 0.3s, border 0.3s;
    background: #fff;
    margin-bottom: 1rem;
    max-width: 100%;
}

.member-active {
    background: #f5f5f5;
    border: 2px solid #1c907d;
}

.member-title {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c907d;
    color: #fff;
    padding: 0.5rem;
}

.member-title h3 {
    margin: 0;
    font-size: 1.3rem;
}

.bio {
    display: none;
    background-color: #ffffff;
    padding: 1rem;
    font-size: 1rem;
    color: #333;
    border-top: 1px solid #ccc;
}

.member-info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.member-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bio-text {
    margin: 0.5rem 0;
}

/* --- Message Button in Search Results --- */
.message-btn {
    background: linear-gradient(90deg, #1c907d 60%, #107564 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(28, 144, 125, 0.08);
    outline: none;
    display: inline-block;
    vertical-align: middle;
}

.message-btn:hover,
.message-btn:focus {
    background: linear-gradient(90deg, #107564 60%, #1c907d 100%);
    box-shadow: 0 4px 12px rgba(28, 144, 125, 0.18);
    color: #fff;
}

/* =========================
   SIDEBAR
   ========================= */
.container {
    display: flex;
}

.sidebar {
    width: 250px;
    padding: 1rem;
    background-color: #f0f0f0;
    border-right: 1px solid #ccc;
    position: relative;
    min-height: 100vh;
}

.sidebar h3 {
    font-size: 1.5rem;
    color: #1c907d;
    margin-bottom: 1rem;
}

.sidebar p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.sidebar button {
    padding: 0.8rem;
    background-color: #1c907d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar button:hover {
    background-color: #107564;
}

.sidebar-toggle {
    display: none;
    background: #1c907d;
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    border-radius: 4px;
}

.sidebar-bottom-svg {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(-10%) translateY(10%) scaleX(.8) scaleY(.8);
}

/* =========================
   SECONDARY IMAGES
   ========================= */
.secondary-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.secondary-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.secondary-member-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #1c907d;
    object-fit: contain;
    background: #f9f9f9;
    display: block;
    margin: 0 auto;
}

.secondary-images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.secondary-gallery-item {
    position: relative;
    width: 120px;
    height: 90px;
}

.secondary-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.gallery-remove-btn, 
.gallery-move-left, 
.gallery-move-right {
    position: absolute;
    top: 2px;
    background: rgba(28,144,125,0.8);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    z-index: 2;
}

.gallery-remove-btn { right: 2px; }
.gallery-move-left { left: 2px; bottom: 2px; top: auto; }
.gallery-move-right { right: 2px; bottom: 2px; top: auto; }

.secondary-carousel button.carousel-prev,
.secondary-carousel button.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 144, 125, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.secondary-carousel button.carousel-prev:hover,
.secondary-carousel button.carousel-next:hover {
    background: #1c907d;
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.secondary-carousel button.carousel-prev { left: 8px; }
.secondary-carousel button.carousel-next { right: 8px; }

/* =========================
   BUTTONS
   ========================= */
.delete-profile-btn {
    background-color: #c84735;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1rem;
    margin-left: 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(200, 71, 53, 0.08);
    outline: none;
    display: inline-block;
    vertical-align: middle;
}

.delete-profile-btn:hover,
.delete-profile-btn:focus {
    background-color: #b03c2e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(200, 71, 53, 0.18);
}

.delete-btn {
    margin-left: 1em;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.2em 0.7em;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #c0392b;
}

/* =========================
   COOKIE NOTICE
   ========================= */
.cookie-notice {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    font-size: 1rem;
    z-index: 99999;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 1em;
}

.cookie-notice button {
    background: #1c907d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.3em 1em;
    cursor: pointer;
    font-size: 1rem;
}

/* =========================
   AUTOCOMPLETE STYLES
   ========================= */

.autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d0eaf1;
    border-radius: 0 0 8px 8px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(28,144,125,0.08);
}
.autocomplete-list li {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.autocomplete-list li:last-child {
    border-bottom: none;
}
.autocomplete-list li:hover {
    background: #e8f5f3;
}

/* =========================
   INBOX STYLES
   ========================= */

.inbox-message {
    cursor: pointer;
    transition: background 0.2s;
}
.inbox-message .inbox-summary {
    font-size: 1.05rem;
    color: #1c907d;
    margin-bottom: 1em;
}
.inbox-message .inbox-body {
    background: #f9fdfc;
    border-radius: 6px;
    padding: 1em;
    font-size: 1rem;
    color: #333;
    margin-top: 3em !important;
    border: 1px solid #e8f5f3;
}

.inbox-message.open {
    background: #e8f5f3;
}

.message-notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin: 2em 0;
    color: #856404;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(200, 167, 35, 0.08);
}

.message-notice .notice-content {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

.message-notice strong {
    font-size: 1.15em;
    color: #b8860b;
    margin-bottom: 0.5em;
}

.message-notice ul {
    margin: 0.5em 0 0 1.2em;
    padding: 0;
}

.message-notice li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.pagination {
    margin-top: 1em;
    text-align: center;
}
.pagination button {
    margin: 0 0.2em;
    padding: 0.4em 0.8em;
    border: 1px solid #1c907d;
    background: #fff;
    color: #1c907d;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.pagination button.active,
.pagination button:hover {
    background: #1c907d;
    color: #fff;
}


/* =========================
   FOOTER
   ========================= */
footer {
    background: linear-gradient(135deg, #1c907d 0%, #0f6b5a 100%);
    color: white;
    padding: 2rem 0 1rem 0;
    /* margin-top: 3rem; */
    margin-top: -.1rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #d0eaf1;
    font-weight: bold;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e8f5f3;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e8f5f3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: #d0eaf1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(208, 234, 241, 0.3);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #d0eaf1;
    margin: 0;
}

/* Footer Fish Animation */
.footer-fish {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
    width: 40px;    /* Increased from 30px */
    height: 28px;   /* Increased from 20px */
    animation: footerFishFloat 4s ease-in-out infinite;
}

.footer-fish-body {
    position: absolute;
    width: 28px;    /* Increased from 20px */
    height: 18px;   /* Increased from 12px */
    background: #d0eaf1;
    border-radius: 50% 0 50% 50%;
    top: 5px;       /* Adjusted for new size */
    left: 7px;      /* Adjusted for new size */
}

.footer-fish-tail {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid #e8f5f3;   /* Increased from 8px */
    border-top: 6px solid transparent;  /* Increased from 4px */
    border-bottom: 6px solid transparent; /* Increased from 4px */
    top: 9px;       /* Adjusted for new size */
    left: 0;
    animation: footerFishTailWag 4s ease-in-out infinite;
}

.footer-fish-eye {
    position: absolute;
    width: 3px;     /* Increased from 2px */
    height: 3px;    /* Increased from 2px */
    background: #1c907d;
    border-radius: 50%;
    top: 13px;      /* Adjusted for new size */
    left: 28px;     /* Adjusted for new size */
}

/* Footer Background Pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(208, 234, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 245, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(208, 234, 241, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* =========================
   FOOTER ANIMATIONS
   ========================= */
@keyframes footerFishFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(1deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

@keyframes footerFishTailWag {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(8deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-8deg);
    }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
    /* Header & Logo */
    .bnn-title-logo {
        max-width: 75vw;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        flex-direction: column;
        max-width: 100vw;
        width: 100vw;
        padding: 0;
        overflow-x: hidden;
    }
    main {
        padding: 1rem 0.5rem;
    }
    section {
        padding: 1rem 0.5rem;
    }
    
    /* Fish Banner */
    .fish-banner {
        height: 60px;
    }
    
    .custom-fish {
        width: 45px;
        height: 30px;
    }
    
    .fish-body {
        width: 30px;
        height: 20px;
        top: 5px;
        left: 8px;
    }
    
    .fish-tail {
        border-left: 12px solid #e8f5f3;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        top: 9px;
    }
    
    .fish-fin-top {
        border-left: 6px solid #d0eaf1;
        border-bottom: 4px solid transparent;
        top: 3px;
        left: 18px;
    }
    
    .fish-fin-bottom {
        border-left: 5px solid #d0eaf1;
        border-top: 4px solid transparent;
        top: 18px;
        left: 20px;
    }
    
    .fish-eye {
        width: 3px;
        height: 3px;
        top: 11px;
        left: 28px;
    }

    /* Banner Visibility */
    .desktop-banner { 
        display: none; 
    }
    
    .mobile-banner { 
        display: block; 
    }

    /* Main Content */
    section {
        padding: 1rem;
    }

    form {
        width: 100%;
    }

    /* Members */
    .member h3,
    .member h4 {
        font-size: 1rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .member-info {
        flex-direction: column;
        align-items: center;
    }

    .member-image {
        width: 180px;
        height: 180px;
    }

    /* Sidebar */
    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80vw;
        max-width: 300px;
        background: #f0f0f0;
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: transform 0.5s ease, opacity 0.5s ease;
        transform: translateX(-100%);
        opacity: 0;
        padding-top: 6rem;
    }
    
    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .sidebar-toggle {
        display: block;
    }

    /* Secondary Images */
    .secondary-image-container {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .secondary-carousel {
        max-width: 95vw;
    }
    
    .secondary-member-image {
        max-width: 95vw;
        height: auto;
    }

    /* SVG Backgrounds */
    .banner-svg-bg {
        transform: none;
    }

    .sidebar-bottom-svg {
        transform: translateX(-30%) translateY(30%) scaleX(.4) scaleY(.4);
    }

    /* Footer Responsiveness */
    footer {
        padding: 1.5rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .footer-section {
        min-width: auto;
        width: 100%;
    }
    
    .footer-section h4 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-fish {
        width: 25px;
        height: 16px;
    }

    /* Cookie Notice */
    .cookie-notice {
        bottom: 10px;
        width: 90%;
        max-width: 400px;
        padding: 0.5em 1em;
        font-size: 0.9rem;
    }
}

/* --- Messaging Page Styles --- */
#outgoingMessages, #incomingMessages, #composeMessage {
    background: #f5faf8;
    border: 1px solid #d0eaf1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(28, 144, 125, 0.08);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

#sentList li, #inboxList li {
    background: #fff;
    border: 1px solid #e8f5f3;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    font-size: 1.05rem;
    color: #1c907d;
    box-shadow: 0 1px 4px rgba(28, 144, 125, 0.05);
    transition: box-shadow 0.2s;
}

#sentList li:hover, #inboxList li:hover {
    box-shadow: 0 4px 12px rgba(28, 144, 125, 0.12);
    background: #e8f5f3;
}

#composeMessage input,
#composeMessage textarea {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #d0eaf1;
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 1rem;
    background: #f9fdfc;
    color: #333;
    transition: border-color 0.2s;
}

#composeMessage input:focus,
#composeMessage textarea:focus {
    border-color: #1c907d;
    outline: none;
}

#sendMessageBtn {
    background: linear-gradient(90deg, #1c907d 60%, #107564 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(28, 144, 125, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

#sendMessageBtn:hover {
    background: linear-gradient(90deg, #107564 60%, #1c907d 100%);
    box-shadow: 0 4px 12px rgba(28, 144, 125, 0.18);
}

#messageStatus {
    margin-top: 1rem;
    font-size: 1rem;
    color: #c84735;
    font-weight: bold;
}

/* =========================
   KEYFRAME ANIMATIONS
   ========================= */
   
@keyframes fishSwim {
    0% {
        transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
    }
    12.5% {
        transform: translate(-50%, -50%) translateX(-2px) translateY(-3px) rotate(-2deg);
    }
    25% {
        transform: translate(-50%, -50%) translateX(-3px) translateY(-5px) rotate(-3deg);
    }
    37.5% {
        transform: translate(-50%, -50%) translateX(-2px) translateY(-3px) rotate(-2deg);
    }
    50% {
        transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
    }
    62.5% {
        transform: translate(-50%, -50%) translateX(2px) translateY(3px) rotate(2deg);
    }
    75% {
        transform: translate(-50%, -50%) translateX(3px) translateY(5px) rotate(3deg);
    }
    87.5% {
        transform: translate(-50%, -50%) translateX(2px) translateY(3px) rotate(2deg);
    }
    100% {
        transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
    }
}

@keyframes fishBodyMove {
    0%, 100% {
        transform: scaleX(1) scaleY(1);
    }
    25% {
        transform: scaleX(1.02) scaleY(0.98);
    }
    50% {
        transform: scaleX(1.04) scaleY(0.96);
    }
    75% {
        transform: scaleX(1.02) scaleY(0.98);
    }
}

@keyframes fishTailMove {
    0% {
        transform: rotate(0deg) scaleX(1);
    }
    12.5% {
        transform: rotate(8deg) scaleX(0.95);
    }
    25% {
        transform: rotate(15deg) scaleX(0.9);
    }
    37.5% {
        transform: rotate(8deg) scaleX(0.95);
    }
    50% {
        transform: rotate(0deg) scaleX(1);
    }
    62.5% {
        transform: rotate(-8deg) scaleX(0.95);
    }
    75% {
        transform: rotate(-15deg) scaleX(0.9);
    }
    87.5% {
        transform: rotate(-8deg) scaleX(0.95);
    }
    100% {
        transform: rotate(0deg) scaleX(1);
    }
}

@keyframes fishFinMove {
    0% {
        transform: rotate(0deg);
    }
    16.67% {
        transform: rotate(4deg);
    }
    33.33% {
        transform: rotate(8deg);
    }
    50% {
        transform: rotate(12deg);
    }
    66.67% {
        transform: rotate(8deg);
    }
    83.33% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes fishEyeMove {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes waveMove{
    0% {
        left: 200%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100px;
        opacity: 0;
    }
}
