/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== BODY ========== */
body {
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: clamp(450px, 80vh, 800px); /* Increased values */
    overflow: hidden;
    margin-bottom: clamp(40px, 5vw, 50px);
}


.hero-image {
    width: 100%;
    height: 100%;
    background-image: url('https://sturgeonbio-prd-public-files.s3.eu-central-1.amazonaws.com/despre_sturion/fishes-under-water-as-a-background-blue-transpare-2025-03-07-01-00-24-utc-2-min.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.4s ease;
}

.hero-section:hover .hero-image {
    filter: brightness(0.75) contrast(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
            135deg,
            rgba(26, 32, 44, 0.4) 0%,
            rgba(26, 32, 44, 0.3) 50%,
            rgba(26, 32, 44, 0.45) 100%
    );
}

.hero-overlay h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 6vw, 48px);
    color: white;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: clamp(6px, 2vw, 16px);
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}




/* ========== SPECIES CONTAINER ========== */
.species-container {
    max-width: 1800px;
    color: #333;
    line-height: 1.7;
    margin: clamp(20px, 5vh, 50px) auto 7vh;
}

.species-content-section {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

/* Responsive: .species-content-section */
@media (max-width: 1200px) and (min-width: 769px) {

}

@media (max-width: 768px) {
    .species-content-section {
        min-height: auto;
        height: auto;
    }
}

/* ========== TITLE SELECTOR ========== */
.species-title-selector {
    /* flex: 1.2; */
    padding: 2.5rem 2rem 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Changed from center to stretch for equal heights */
    gap: 1.5rem;
    position: relative;
    flex-wrap: wrap;
}

/* Responsive: .species-title-selector */
@media (max-width: 1200px) and (min-width: 769px) {
    .species-title-selector {
        padding: 2rem 1.5rem;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .species-title-selector {
        padding: 1rem .5rem;
        gap: 1rem;
        align-items: center; /* Reset to center for mobile */
    }
}

@media (max-width: 480px) {
    .species-title-selector {
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }
}

.species-title-selector::after,
.species-content-panel::before {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
    transparent 0%,
    rgba(49, 179, 193, 0.1) 20%,
    rgba(49, 179, 193, 0.2) 50%,
    rgba(49, 179, 193, 0.1) 80%,
    transparent 100%);
}

.species-title-selector::after { right: 0; }
.species-content-panel::before { left: 0; }

@media (max-width: 1200px),
(max-width: 768px) {
    .species-title-selector::after,
    .species-content-panel::before {
        display: none;
    }
}

/* ========== TITLE ITEM ========== */
.species-title-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 0 2rem;
    text-align: center;
    flex: 1;
    min-height: 80px;
    height: 100%;
    max-width: 280px;


    display: flex;
    align-items: center;
    justify-content: center;
}

.species-title-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(49, 179, 193, 0.15);
    border-color: rgba(49, 179, 193, 0.3);
}

.species-title-item.active {
    border: 2px solid #31b3c1;
    background: linear-gradient(135deg, #f0fdfe 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(49, 179, 193, 0.2);
    transform: translateY(-2px);
}

.species-title-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
    rgba(49, 179, 193, 0.05) 0%,
    rgba(49, 179, 193, 0.02) 50%,
    rgba(49, 179, 193, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 4px;
}

.species-title-item.active::before {
    opacity: 1;
}

.species-title-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    line-height: 1.4; /* Better line height for multi-line text */
    word-wrap: break-word; /* Handle long text */
}

.species-title-item.active .species-title-text {
    color: #31b3c1;
    font-weight: 600;
}

/* Responsive: .species-title-item */
@media (max-width: 768px) {
    .species-title-item {
        padding: 1.2rem 1.5rem;
        min-width: 180px;
        max-width: none;
        min-height: 100px;
    }

    .species-title-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .species-title-item {
        padding: 1rem 1.2rem;
        min-width: 160px;
        min-height: 75px; /* Further reduce for small screens */
    }

    .species-title-text {
        font-size: 0.95rem;
    }
}

/* ========== CONTENT PANEL ========== */
.species-content-panel {
    flex: 1.8;
    padding: 2.5rem 3rem 2.5rem 2.5rem;
    background: white;
    position: relative;
    overflow-y: auto;
}

/* Responsive: .species-content-panel */
@media (max-width: 1200px) and (min-width: 769px) {
    .species-content-panel {
        padding: 2.5rem 2rem 3rem;
    }
}

@media (max-width: 768px) {
    .species-content-panel {
        padding: 2rem 1.5rem 2.5rem;
        overflow-y: visible;
        height: auto;
    }
}

@media (max-width: 480px) {
    .species-content-panel {
        padding: 1.5rem 1rem 2rem;
        overflow-y: visible;
        height: auto;
    }
}

.species-content-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
    align-items: start;
}

/* Image container styling */
.species-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 2rem;
}

.species-image-container .image-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 280px;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.species-image-container .image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 250px;
    object-fit: cover;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Content area styling */
.species-content-area {
    display: flex;
    flex-direction: column;
}

.species-about-heading {
    font-size: 2.2rem;
    font-weight: 600;
    color: #31b3c1;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.species-about-paragraph-primary p {
    margin-bottom: 1.2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    text-align: justify;
    line-height: 1.6;
}

.species-data-container {
    display: none;
}

.species-data-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #31b3c1;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.species-data-container p {
    margin-bottom: 1.2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .species-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .species-image-container {
        height: 350px;
        margin-top: 0;
        order: 2;
    }

    .species-content-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .species-image-container {
        height: 300px;
    }

    .species-image-container .image-primary {
        width: 80%;
        height: 220px;
    }

    .species-image-container .image-secondary {
        width: 75%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .species-image-container {
        height: 250px;
    }

    .species-image-container .image-primary {
        width: 85%;
        height: 180px;
    }

    .species-image-container .image-secondary {
        width: 80%;
        height: 160px;
    }
}



/* ========== ABOUT TEXT ========== */
.species-about-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
    position: relative;
    text-align: center;
}

@media (max-width: 768px) {
    .species-about-heading {
        text-align: left;
        margin-bottom: 1rem;
    }
}

.primary-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    color: #444;
    hyphens: auto;
}

.primary-text p {
    margin-bottom: 1.5rem;

}
.primary-text p:last-child {
    margin-bottom: 0;
}

.primary-text strong {
    color: #333;
    font-weight: 500;
}

/* Responsive: .primary-text */
@media (max-width: 768px) {
    .primary-text {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .primary-text {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 400;
    }
}

/* ========== FADE IN ANIMATION ========== */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-body {
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header styles */
.header-benefits {
    text-align: center;
    margin-bottom: 60px;
}

.header-benefits h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.header-benefits p {
    max-width: 80vw;
    margin: 0 auto;
}

/* Card grid layout */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Make the third item span full width when it wraps to second row */
@media (min-width: 640px) and (max-width: 959px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}


/* Common card styles */
.card-base {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius:4px;
    transition: all 0.3s ease;
}

.card-base:hover {
    transform: translateY(-5px);
    border-color: rgba(49, 179, 193, 0.3);
}

.benefit-card {
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    border: 1px solid rgba(41, 41, 41, 0.4);

}

.benefit-card.active {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgb(122, 198, 192);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(41, 41, 41, 0.6);
}

/* Icon styles */
.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}



.benefit-icon svg {
    width: 100%;
    height: 100%;
    fill: #31b3c1;
}

.detail-icon {
    width: 40px;
    height: 40px;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
    fill: #31b3c1;
}

/* Typography styles */
.benefit-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

.benefit-summary {
    line-height: 1.5;
    color: #666;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1a1a;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1a1a1a;
    padding-left: 16px;
}

/* Detail container */
.detail-container {
    padding: 0;
    margin-top: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.detail-container.active {
    padding: 30px 0;
    max-height: none;
    opacity: 1;
}

.detail-content {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.detail-container.active .detail-content {
    opacity: 1;
}



.detail-header-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

/* MODIFIED: Detail sections now allow space for vertical image */
.detail-sections {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
}

/* MODIFIED: Ensure lists take up appropriate width */
.detail-section {
    min-width: 0; /* Prevents overflow */
}
.detail-section h4 {
    text-align: center;
}

.detail-image-container {
    width: 20vw;
    grid-row: 1 / -1; /* Span all rows */
    grid-column: 2; /* Force to third column */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Content boxes */
.content-box {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.content-box:hover {
    background: rgba(49, 179, 193, 0.05);
    border-color: rgba(49, 179, 193, 0.3);
}

.benefit-list {
    list-style: none;
    padding: 0;
    overflow: hidden;
}

.benefit-list li {
    padding: 14px 18px;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.benefit-list li:hover {
    background: rgba(49, 179, 193, 0.05);
    transform: translateX(5px);
}

.benefit-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #31b3c1;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.composition-text {
    padding: 20px;
    margin-bottom: 20px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}


.stat-item {
    min-width: 0;                  /* Prevents children from forcing width */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number,
.stat-label {
    word-wrap: break-word;         /* Break long words if needed */
    overflow-wrap: break-word;     /* Ensures cross-browser support */
    hyphens: auto;                 /* Optional: adds hyphenation */
    white-space: normal;           /* Ensures wrapping is allowed */
}


.stat-label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
}


/* Habitat specific styles */
.habitat-content p {
    padding: 16px 18px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    position: relative;
}

.habitat-content p:hover {
    transform: translateX(5px);
}

.habitat-info-box {
    margin-bottom: 15px;
    padding: 20px;
}

.habitat-info-box p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.habitat-info-box p:first-child {
    font-weight: 500;
    margin-bottom: 10px;
}

.habitat-info-box.reserve p:first-child {
    color: #31b3c1;
}

.habitat-info-box.cultivare {
    background: rgba(248, 255, 254, 0.8);
    border-color: rgba(230, 249, 247, 0.5);
}

.habitat-info-box.cultivare p:first-child {
    color: #28a085;
}

/* Responsive styles */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* MODIFIED: Stack sections vertically on mobile */
    .detail-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* MODIFIED: Image container adjustments for mobile */
    .detail-image-container {
        width: 100%;
        max-width: 300px;
        justify-self: center;
        padding-left: 0;
        order: -1; /* Show image first on mobile */
        grid-column: auto;
    }

    .header-benefits h1 {
        font-size: 2rem;
    }

    .benefit-card {
        padding: 25px 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid .stat-item:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* MODIFIED: Medium screen adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .detail-sections {
        gap: 20px;
    }

    .detail-image-container {
        width: 150px;
        max-width: 150px;
    }
}

/* MODIFIED: Small desktop adjustments */
@media (max-width: 1200px) and (min-width: 1025px) {
    .detail-image-container {
        width: 180px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .primary-text {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 400;
    }
}


#detailContainer-habitat .detail-sections{
    grid-template-columns: 40% 1fr;
}
@media (max-width: 480px) {
    #detailContainer-habitat .detail-sections{
        grid-template-columns: 1fr;
    }
}











.bubbles-section {
    margin-top: 50px;
    width: 100%;
    height: 35vh;
    position: relative;
    margin-bottom: 20vh;
    overflow: visible;
}
.bubbles-container {
    position: relative;
    height: 100%;
    margin: 0 auto;
}
.bubble {
    position: absolute;
    width: clamp(80px, 10vw, 200px);
    height: clamp(80px, 10vw, 200px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: organicFloat 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 0.2vw solid rgba(49, 179, 193, 0.3);
    background: linear-gradient(135deg,
    rgba(49, 179, 193, 0.8) 0%,
    rgba(42, 157, 168, 0.9) 50%,
    rgba(49, 179, 193, 0.7) 100%);
    box-shadow:
            0 0.8vw 3.2vw rgba(49, 179, 193, 0.3),
            inset 0 0.2vw 0.8vw rgba(255, 255, 255, 0.2);
}
/* Desktop positioning */
.bubble:nth-child(1) { top: 6vh; left: 3%; animation-delay: 0s; }
.bubble:nth-child(2) { top: 14vh; left: 15%; animation-delay: -1.5s; }
.bubble:nth-child(3) { top: 5vh; left: 27%; animation-delay: -3s; }
.bubble:nth-child(4) { top: 12vh; left: 39%; animation-delay: -4.5s; }
.bubble:nth-child(5) { top: 4vh; left: 51%; animation-delay: -6s; }
.bubble:nth-child(6) { top: 15vh; left: 63%; animation-delay: -7.5s; }
.bubble:nth-child(7) { top: 6vh; left: 75%; animation-delay: -2.5s; }
.bubble:nth-child(8) { top: 15vh; left: 86%; animation-delay: -5.5s; }
.bubble-title {
    color: white;
    font-size: 1.1vw;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0.2vw 0.4vw rgba(0, 0, 0, 0.3);
    letter-spacing: 0.03vw;
    opacity: 0.95;
    padding: 0 0.6vw;
    line-height: 1.3;
}
.bubble:hover {
    z-index: 1000;
    transform: translateY(-1.2vw) scale(1.15);
    box-shadow:
            0 2vw 6vw rgba(49, 179, 193, 0.4),
            inset 0 0.4vw 1.6vw rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
    rgba(60, 196, 211, 0.9) 0%,
    rgba(49, 179, 193, 1) 50%,
    rgba(42, 157, 168, 0.8) 100%);
}
.info-modal {
    position: absolute;
    top: 100%;
    left: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2vw;
    padding: 2vw;
    width: clamp(280px, 28vw, 420px);
    max-width: 90vw;
    box-shadow:
            0 2.5vw 8vw rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(0px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid rgba(49, 179, 193, 0.2);
}
.info-modal::before {
    content: '';
    position: absolute;
    top: -0.8vw;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 1.6vw;
    height: 1.6vw;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(49, 179, 193, 0.2);
    border-bottom: none;
    border-right: none;
    border-radius: 0.2vw;
    z-index: 99999;
}
.bubble:hover .info-modal {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2vh) scale(1);
    z-index: 99999;
}
.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 2vh;
}
.modal-icon {
    width: 3vw;
    height: 3vw;
    min-width: 48px;
    min-height: 48px;
    border-radius: 0.8vw;
    background: linear-gradient(135deg, #31b3c1 0%, #2a9da8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1vw;
    box-shadow: 0 0.4vw 1.6vw rgba(49, 179, 193, 0.3);
}
.modal-icon::after {
    content: '✦';
    color: white;
    font-size: 1.2vw;
}
.modal-title {
    font-size: 1.5vw;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.05vw;
}
.modal-content {
    color: #475569;
    font-size: 1vw;
    line-height: 1.7;
    margin-bottom: 2.4vh;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.6vh;
    border-top: 1px solid rgba(49, 179, 193, 0.1);
}
.modal-tag {
    background: linear-gradient(135deg, rgba(49, 179, 193, 0.1) 0%, rgba(49, 179, 193, 0.05) 100%);
    color: #31b3c1;
    padding: 0.6vw 1.2vw;
    border-radius: 2vw;
    font-size: 0.9vw;
    font-weight: 600;
    letter-spacing: 0.05vw;
}

/* Mobile Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90vw;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    z-index: 10000;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(49, 179, 193, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(49, 179, 193, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #31b3c1;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(49, 179, 193, 0.2);
}

.close-button::before {
    content: '×';
}

@keyframes organicFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-0.8vw) rotate(1deg);
    }
    50% {
        transform: translateY(-1.2vw) rotate(0deg);
    }
    75% {
        transform: translateY(-0.4vw) rotate(-1deg);
    }
}

/* Mobile Responsive Design */
@media (max-width: 500px) {
    .bubbles-section {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        margin-top: 40px;
    }
    .bubbles-container {
        width: 100%;
        height: auto;
        min-height: 100%;
        padding: 20px 0;
    }
    .bubble {
        position: relative !important;
        width: 160px;
        height: 160px;
        top: auto !important;
        left: auto !important;
        border: 3px solid rgba(49, 179, 193, 0.3);
        animation: mobileFloat 6s ease-in-out infinite;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Individual positioning adjustments for mobile */
    .bubble:nth-child(1) {
        margin-left: 20px;
        margin-right: auto;
        transform: translateY(-8px);
    }
    .bubble:nth-child(2) {
        margin-left: auto;
        margin-right: 18px;
        transform: translateY(12px);
    }
    .bubble:nth-child(3) {
        margin-left: 30px;
        margin-right: auto;
        transform: translateY(-4px);
    }
    .bubble:nth-child(4) {
        margin-left: auto;
        margin-right: 20px;
        transform: translateY(8px);
    }
    .bubble:nth-child(5) {
        margin-left: 25px;
        margin-right: auto;
        transform: translateY(-12px);
    }
    .bubble:nth-child(6) {
        margin-left: auto;
        margin-right: 15px;
        transform: translateY(6px);
    }
    .bubble:nth-child(7) {
        margin-left: 35px;
        margin-right: auto;
        transform: translateY(-6px);
    }
    .bubble:nth-child(8) {
        margin-left: auto;
        margin-right: 25px;
        transform: translateY(10px);
    }

    .bubble-title {
        font-size: 16px;
        padding: 0 12px;
    }

    .bubble:hover {
        transform: scale(1.05);
    }

    /* Hide desktop modal on mobile */
    .info-modal {
        display: none;
    }

    .modal-header {
        margin-bottom: 20px;
    }
    .modal-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        border-radius: 12px;
        margin-right: 15px;
    }
    .modal-icon::after {
        font-size: 20px;
    }
    .modal-title {
        font-size: 22px;
        letter-spacing: -0.5px;
    }
    .modal-content {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .modal-footer {
        padding-top: 15px;
    }
    .modal-tag {
        font-size: 14px;
        padding: 10px 18px;
    }
}

@keyframes mobileFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}




/* Enhanced Soft Transitions CSS */

/* Gentler detail container transitions */
.detail-container {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Softer species content area transitions */
.species-content-area {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Species image container - slides from left */
.species-image-container {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left center;
}

.species-image-container.slide-out {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    filter: blur(3px);
}

.species-image-container.slide-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
}

/* Species content area - slides from right */
.species-content-area.slide-out {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    filter: blur(3px);
}

.species-content-area.slide-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
}

/* Much softer background transition */
.species-content-area::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: -1;
}

.species-content-area:hover::before {
    opacity: 1;
}

/* Gentler benefit card transitions */
.benefit-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Softer species title item transitions */
.species-title-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.species-title-item:hover {
    transform: translateY(-1px) scale(1.01);
}

.species-title-item.active {
    transform: scale(1.02);
}

/* Much gentler benefit card hover effects */
.benefit-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.benefit-card.active {
    transform: scale(1.015);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

/* Smoother scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom smooth scrolling with easing */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Gentler loading state animation */
.species-content-area.loading {
    position: relative;
    overflow: hidden;
}

.species-content-area.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: gentleShimmer 2s infinite;
}

@keyframes gentleShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Staggered gentle animations for content elements */
.species-content-area h2 {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.species-content-area .species-about-paragraph-primary {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Very subtle pulse animation for active states */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.025); }
}

.species-title-item.active {
    animation: gentlePulse 4s ease-in-out infinite;
}

/* Smooth section transitions */
.section {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced smooth scrolling for sections */
.species-container {
    scroll-margin-top: 80px;
}

.header-benefits {
    scroll-margin-top: 100px;
}


/* Image specific transitions */
.image-primary, .image-secondary {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-primary.slide-out, .image-secondary.slide-out {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
    filter: blur(2px);
}

.image-primary.slide-in, .image-secondary.slide-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
}

/* Content wrapper for better control */
.species-content-wrapper {
    position: relative;
    overflow: hidden;
}

/* Enhanced content panel transitions */
.species-content-panel {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}