/* ===== MEOW TRACK THEME - REFINED ===== */
/* Color scheme extracted from the image design */
:root {
    --primary-dark: #2A2D3A;          /* Dark navy from image background */
    --secondary-dark: #3D4354;        /* Lighter dark for contrast */
    --primary-blue: #4A90E2;          /* Bright blue from anatomical structures */
    --secondary-blue: #6BB6FF;        /* Lighter blue for accents */
    --accent-teal: #4ECDC4;           /* Teal from image highlights */
    --accent-purple: #9B59B6;         /* Purple from image elements */
    --light-bg: #F8FAFC;             /* Clean light background */
    --text-dark: #2C3E50;            /* Dark text */
    --text-light: #FFFFFF;           /* Light text */
    --text-muted: #6C757D;           /* Muted text */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-purple) 100%);
}

/* Global styles */
body { 
    padding-top: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Home page background styles */
.home-background-image {
    width: 100vw;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Members page background styles */
.members-background-image {
    width: 100vw;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.homepage-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.members-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 8; /* Same as background container */
}

.members-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 11; /* Higher than member elements but lower than navbar/footer */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Hide header for home page only */
body:has(.home-background-image) .bg-hero {
    display: none;
}

/* Alternative selector for browsers that don't support :has() */
.home-page .bg-hero {
    display: none;
}

/* Hide header for members page */
body:has(.members-background-image) .bg-hero {
    display: none;
}

/* Alternative selector for members page */
.members-page .bg-hero {
    display: none;
}

/* Only remove container constraints for home page main content, not navbar/footer */
.home-page .container:not(.navbar .container):not(footer .container) {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

/* Only remove container constraints for members page main content, not navbar/footer */
.members-page .container:not(.navbar .container):not(footer .container) {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

/* Ensure home page content breaks out of container */
.home-page .container .home-background-image {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: auto !important;
    z-index: 1 !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Ensure members page content breaks out of container */
.members-page .container .members-background-image {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: auto !important;
    z-index: 8 !important; /* Higher than member elements but lower than navbar/footer */
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Remove spacing for home page body to eliminate gaps around image */
.home-page {
    padding-top: 0px !important; /* Keep navbar height */
    margin: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home-page .home-background-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* Remove spacing for members page body to eliminate gaps around image */
.members-page {
    padding-top: 0px !important; /* Keep navbar height */
    margin: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: black !important; /* Set black background for members page */
}

.members-page .members-background-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* Remove footer top margin for home page to eliminate gap between image and footer */

/* Homepage interactive elements */
.homepage-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through container */
    z-index: 10; /* Ensure elements are above background */
}

/* Members interactive elements */
.members-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through container */
    z-index: 10; /* Ensure elements are above background */
}

.homepage-element {
    position: absolute;
    display: block;
    pointer-events: auto; /* Re-enable clicks for individual elements */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    cursor: pointer; /* Show pointer cursor for clickable elements */
}

.homepage-element:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.homepage-element img {
    width: 100%;
    height: auto;
    display: block;
}

.member-element {
    position: absolute;
    display: block;
    pointer-events: auto; /* Re-enable clicks for individual elements */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0; /* Set below background image, navbar, and footer */
    cursor: pointer; /* Show pointer cursor for clickable elements */
}

.member-element:hover {
    transform: scale(1.02);
}

.member-element img {
    width: 100%;
    height: auto;
    display: block;
}

/* Individual member element positioning - all initially positioned in top-left corner for easy adjustment */
.csj-element {
    top: 2.2%;
    left: 13.5%;
    width: 8.4%;
}

.cyh-element {
    top: 0.6%;
    left: 30%;
    width: 18%;
}

.cyx-element {
    top: 1.3%;
    left: 48%;
    width: 25%;
}

.dhy-element {
    top: 3.9%;
    left: 76%;
    width: 16%;
}

.dhy-element img {
    /* Crop bottom 30% of the image */
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 0% 70%);
}

.gzh-element {
    top: 20%;
    left: 78%;
    width: 19%;
}

.hjh-element {
    top: 4%;
    left: -2%;
    width: 25%;
    z-index: -1 !important; /* Lower by 1 */
}

.hjh-element img {
    /* Crop bottom 50% and right 50% of the image */
    clip-path: polygon(0% 0%, 75% 0%, 75% 75%, 0% 75%);
}

.hyh-element {
    top: 1%;
    left: 10%;
    width: 35%;
    z-index: -2 !important; /* Lower by 2 total */
}

.hyh-element img {
    /* Crop left 25% of the image */
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 30% 100%);
}

.hyn-element {
    top: 13%;
    left: 55%;
    width: 13%;
}

.kn-element {
    top: 9.7%;
    left: 67%;
    width: 27%;
    z-index: -1 !important; /* Lower by 1 */
}

.lkh-element {
    top: 1.7%;
    left: -11.2%;
    width: 45%;
    z-index: -3 !important; /* Lower by 2 */
}

.lkh-element img {
    /* Crop top 50% of the image */
    clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}

.llj-element {
    top: 23.9%;
    left: 23%;
    width: 12%;
}

.lll-element {
    top: 20%;
    left: 36%;
    width: 16%;
}

.ltz-element {
    top: 20%;
    left: 59%;
    width: 18%;
}

.lwj-element {
    top: 75%;
    left: 37%;
    width: 11%;
    z-index: 15 !important; /* Same level as team-cat */
    transition: left 0.3s ease; /* Smooth sliding animation */
}

.lwn-element {
    top: 31.5%;
    left: -3%;
    width: 16%;
}

.lyn-element {
    top: 31%;
    left: 20%;
    width: 16%;
}

.mxy-element {
    top: 20%;
    left: 31%;
    width: 49%;
    z-index: -1 !important; /* Lower by 1 */
}

.sjf-element {
    top: 33.5%;
    left: 80%;
    width: 14%;
}

.wcj-element {
    top: 38%;
    left: 2%;
    width: 21%;
}

.wky-element {
    top: 40%;
    left: 31%;
    width: 13%;
}

.xhh-element {
    top: 45%;
    left: 27%;
    width: 26%;
    z-index: -1 !important; /* Lower by 1 */
}

.xzy-element {
    top: 42.8%;
    left: 53%;
    width: 20%;
}

.yjf-element {
    top: 44%;
    left: 77%;
    width: 22%;
}

.yjf2-element {
    top: 58.5%;
    left: 0.9%;
    width: 13%;
}

.yqr-element {
    top: 53%;
    left: 70%;
    width: 29%;
}

.yyh-element {
    top: 65%;
    left: 56%;
    width: 25%;
}

.zbr-element {
    top: 72%;
    left: 73%;
    width: 35%;
}

.zc-element {
    top: 78%;
    left: 27%;
    width: 60%;
    z-index: -1 !important; /* Lower by 1 */
}

.zc-element img {
    /* Crop bottom 40% of the image */
    clip-path: polygon(0% 0%, 100% 0%, 100% 54%, 0% 54%);
}

.zkn-element {
    top: 82%;
    left: 52%;
    width: 17%;
}

.zxm-element {
    top: 86.8%;
    left: 76%;
    width: 14%;
}

.team-cat-element {
    top: 9%;
    left: 7%;
    width: 86%;
    z-index: 25 !important; /* Below interactive layer but above background */
    pointer-events: none; /* Disable interaction with team-cat itself */
}

/* Transparent interactive layer for team-cat */
.team-cat-interactive {
    position: absolute;
    top: 66%;
    left: 7%;
    width: 40%; /* Smaller than team-cat, can be adjusted */
    height: 29%; /* Adjust height as needed */
    z-index: 35 !important; /* Above everything including team-cat */
    background: transparent; /* Transparent interactive area */
    cursor: pointer;
    transition: transform 0.3s ease; /* Hover animation */
    border: none; /* No border for clean appearance */
}

.team-cat-interactive:hover {
    transform: scale(1.02); /* Same hover effect as other elements */
}

/* When team-cat-interactive is hovered, move LWJ to the right */
.team-cat-interactive:hover ~ .lwj-element {
    left: 55%;
}

/* Second transparent interactive layer for team-cat */
.team-cat-interactive-2 {
    position: absolute;
    top: 56%;
    left: 21%;
    width: 38%; /* Same size as first interactive layer */
    height: 19%; /* Same size as first interactive layer */
    z-index: 36 !important; /* Above everything including team-cat */
    background: transparent; /* Transparent interactive area */
    cursor: pointer;
    transition: transform 0.3s ease; /* Hover animation */
    border: none; /* No border for clean appearance */
}

.team-cat-interactive-2:hover {
    transform: scale(1.02); /* Same hover effect as other elements */
}

/* When team-cat-interactive-2 is hovered, move LWJ to the right */
.team-cat-interactive-2:hover ~ .lwj-element {
    left: 55%;
}

/* Member Info Modal Styles */
.member-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.member-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.member-modal-content.team-photo-modal {
    max-width: 1100px;
    width: 95%;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.member-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.member-modal-close:hover {
    color: #ff6b6b;
}

.member-modal-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
}

.modal-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-member-photo.team-photo-large {
    width: 1000px;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-member-name {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.member-modal-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
}


.chinese-quote {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    border-left: 4px solid #ff6b6b;
}

.english-quote {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    border-left: 4px solid #4ecdc4;
}

.modal-quote:before {
    content: '"';
    font-size: 24px;
    color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 5px;
    left: 5px;
}

.modal-quote:after {
    content: '"';
    font-size: 24px;
    color: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.modal-quote {
    margin-bottom: 20px;
    padding: 15px 25px 15px 25px; /* Add more horizontal padding to separate from quotes */
    border-radius: 12px;
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

/* Individual element positioning - using percentage for responsive positioning relative to background image */
.hp-element {
    top: 89%; /* Approximately 133rem/156rem * 100% */
    left: 69%; /* Approximately 50rem/156rem * 100% */
    width: 20%; /* Approximately 17rem/156rem * 100% */
}

.lab-element {
    top: 74%; /* Approximately 110rem/156rem * 100% */
    left: 60%; /* Approximately 43rem/156rem * 100% */
    width: 15%; /* Approximately 13rem/156rem * 100% */
}

.measurement-element {
    top: 90%; /* Approximately 135rem/156rem * 100% */
    left: 35%; /* Approximately 23rem/156rem * 100% */
    width: 22%; /* Approximately 20rem/156rem * 100% */
}

.project-element {
    top: 80%; /* Approximately 119rem/156rem * 100% */
    left: 76%; /* Approximately 56rem/156rem * 100% */
    width: 17%; /* Approximately 15rem/156rem * 100% */
}

.safety-element {
    top: 80.5%; /* Approximately 121rem/156rem * 100% */
    left: 48%; /* Approximately 32rem/156rem * 100% */
    width: 16%; /* Approximately 15rem/156rem * 100% */
}

.team-element {
    top: 68%; /* Approximately 99rem/156rem * 100% */
    left: 78.5%; /* Approximately 57rem/156rem * 100% */
    width: 15%; /* Approximately 15rem/156rem * 100% */
}

.title-element {
    top: 2%; /* Approximately 1rem/156rem * 100% */
    left: 14%; /* Approximately 4rem/156rem * 100% */
    width: 40%; /* Approximately 35rem/156rem * 100% */
    cursor: default; /* Default cursor for non-clickable title */
    animation: breathe 3s ease-in-out infinite; /* Breathing animation */
}

.subtitle-element {
    top: 16%; /* Positioned below title */
    left: 58%; /* Aligned with title */
    width: 40%; /* Same width as title */
    cursor: default; /* Default cursor for non-clickable subtitle */
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
    line-height: 1.4;
}

.subtitle-element:hover {
    transform: none; /* Remove hover transform effect */
    opacity: 1; /* Keep opacity at 1 on hover */
}

/* Breathing animation keyframes */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.8;
    }
}

/* Firefly light effects */
.firefly-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.3);
    animation: firefly-move 8s linear infinite, firefly-flicker 2s ease-in-out infinite alternate;
}

/* Individual firefly positioning and timing */
.firefly-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s, 0s;
    animation-duration: 12s, 1.5s;
}

.firefly-2 {
    top: 60%;
    left: 80%;
    animation-delay: 2s, 0.5s;
    animation-duration: 10s, 2s;
}

.firefly-3 {
    top: 80%;
    left: 20%;
    animation-delay: 4s, 1s;
    animation-duration: 14s, 1.8s;
}

.firefly-4 {
    top: 30%;
    left: 70%;
    animation-delay: 1s, 1.5s;
    animation-duration: 11s, 2.2s;
}

.firefly-5 {
    top: 70%;
    left: 50%;
    animation-delay: 3s, 0.8s;
    animation-duration: 13s, 1.6s;
}

.firefly-6 {
    top: 10%;
    left: 60%;
    animation-delay: 5s, 1.2s;
    animation-duration: 9s, 1.9s;
}

.firefly-7 {
    top: 50%;
    left: 15%;
    animation-delay: 2.5s, 0.3s;
    animation-duration: 15s, 2.1s;
}

.firefly-8 {
    top: 90%;
    left: 85%;
    animation-delay: 1.5s, 1.8s;
    animation-duration: 8s, 1.4s;
}

/* Firefly movement animation */
@keyframes firefly-move {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, -50px);
    }
    50% {
        transform: translate(-50px, 80px);
    }
    75% {
        transform: translate(80px, 30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Firefly flickering animation */
@keyframes firefly-flicker {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Abstract text box - frosted glass effect */
.abstract-textbox {
    position: absolute;
    top: 20%; /* Positioned below title */
    left: 58%; /* Positioned to the right of title */
    width: 35%; /* Width of the text box */
    max-height: 70%; /* Maximum height */
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    backdrop-filter: blur(10px); /* Frosted glass blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    border-radius: 15px; /* Rounded corners */
    padding: 20px; /* Internal padding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 20; /* Above other elements */
    overflow-y: auto; /* Scrollable if content is too long */
    cursor: default; /* Default cursor */
}

.abstract-textbox h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.abstract-textbox p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: justify;
}

/* Scrollbar styling for the text box */
.abstract-textbox::-webkit-scrollbar {
    width: 6px;
}

.abstract-textbox::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.abstract-textbox::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.abstract-textbox::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Footer project logo styling */
.project-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px 0;
}

.project-logo {
    max-width: 300px;
    max-height: 225px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Attribution page styling */
.attributions-page #igem-attribution-form {
    width: 100% !important;
    height: calc(100vh - 76px) !important; /* Subtract navbar height + margin */
    border: none;
    margin: 20px 0 0 0;
    padding: 0;
}

/* Remove header spacing for all pages */
.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Citation styling */
.citation {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.citation:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.reference-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.reference-item::before {
    content: "↩";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}
.home-page footer {
    margin-top: 0 !important;
}

/* Ensure navbar is above background */
.navbar {
    position: relative;
    z-index: 10;
}

/* Members page navbar - ensure it's above everything */
.members-page .navbar {
    z-index: 15 !important; /* Highest priority for navbar */
}

/* Remove all special styling for home page navbar and footer - use default styles */

/* Navigation bar styles - dark theme from image */
.navbar-dark {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(42, 45, 58, 0.3);
    border-bottom: 2px solid var(--accent-teal);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-light) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    display: block !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hide Bootstrap dropdown arrows */
.dropdown-toggle::after {
    display: none !important;
}

/* Dropdown menu styles */
.dropdown-menu {
    background: var(--primary-dark);
    border: 1px solid var(--accent-teal);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.dropdown-item {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: translateX(5px);
}

/* Hero section - lightweight colored design with animated effects */
.bg-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
}


/* Static light effect layer */
.bg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Water ripple effect layer */
.bg-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(78, 205, 196, 0.04) 0%, transparent 30%);
    z-index: 2;
}



.bg-hero h1 {
    color: white !important;
    font-weight: 600;
    position: relative;
    z-index: 3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bg-hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.bg-hero .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    z-index: 3;
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* Enhanced hero section with decorative elements - bottom line */
.bg-hero .hero-bottom-line {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    z-index: 4;
}

/* Page content styles */
.container {
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    position: relative;
}

h2::before {
    content: '●';
    color: var(--accent-purple);
    margin-right: 8px;
    font-size: 1.1em;
}

/* Link styles */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--text-dark);
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Card and content areas */
.card {
    border: 1px solid var(--accent-teal);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--gradient-blue);
    color: var(--text-light);
    border-radius: 11px 11px 0 0 !important;
    font-weight: bold;
}

/* Button styles */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--gradient-blue);
    transform: translateY(-2px);
}

/* List styles */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

/* Remove arrows from dropdown menu items */
.dropdown-menu li::before {
    content: none !important;
}

/* Divider styles */
hr {
    border: none;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 2rem 0;
}

/* CALLOUT styles */
.bd-callout { 
    padding: 1.25rem; 
    margin-top: 1.25rem; 
    margin-bottom: 1.25rem; 
    border: 1px solid var(--accent-teal); 
    border-left-width: 4px; 
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bd-callout h4 { 
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.bd-callout p:last-child { margin-bottom: 0; }
.bd-callout code { 
    border-radius: 4px;
    background: var(--light-bg);
    padding: 2px 6px;
}

.bd-callout-info { 
    border-left-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(107, 182, 255, 0.1) 100%);
}

.bd-callout-warning { 
    border-left-color: var(--accent-teal);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.bd-callout-danger { 
    border-left-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
}

/* Footer styles */
footer {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

/* Members page footer - higher z-index */
.members-page footer {
    z-index: 10 !important; /* Higher than member elements */
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-teal);
}

footer a { 
    color: var(--text-light); 
    font-weight: bold; 
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover { 
    color: var(--accent-teal); 
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .bg-hero h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Utility classes */
.left-aligned { margin-left: auto; }
.bg-dark { background: var(--primary-dark) !important; }
p { max-width: 95%; }

.sidemenu {
    overflow: auto;
    width: 110%;
    margin-right: 2rem !important;
    max-height: calc(100vh - 200px);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scroll-behavior: smooth;
    padding-right: 10px; /* 为滚动条留出空间 */
}

.sidemenu::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* 响应式设计 - 小屏幕设备 */
@media (max-height: 600px) {
    .sidemenu {
        max-height: calc(100vh - 150px);
    }
}

@media (max-height: 500px) {
    .sidemenu {
        max-height: calc(100vh - 120px);
    }
}

@media (max-height: 400px) {
    .sidemenu {
        max-height: calc(100vh - 100px);
    }
}


/* 增加menu和内容之间的间距 */
.col-lg-3 .sidemenu {
    margin-right: 3rem !important;
    padding-right: 1rem !important;
}

/* 确保内容区域字体大小合适 */
.col-lg-9 {
    font-size: 1rem;
    line-height: 1.6;
}

.col-lg-9 p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 统一所有页面的标题样式 - 使用更高优先级 */
.col-lg-9 h1 {
    font-size: 2rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.col-lg-9 h2 {
    font-size: 1.5rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
}

.col-lg-9 h3 {
    font-size: 1.25rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
}

.col-lg-9 h4 {
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
}

.col-lg-9 h5 {
    font-size: 1rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 500 !important;
}

.col-lg-9 h6 {
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 500 !important;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1.0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-animation {
    width: 400px;
    height: 400px;
    background-image: url('https://static.igem.wiki/teams/5605/team/loading.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.loading-text {
    color: #333;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    font-weight: 300;
}

.list-group-item {
    background-color: transparent !important;
    border: 1px solid var(--accent-teal);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-dark);
    transform: translateX(5px);
}

.col-lg-4 {
    width: 25%;
}

/* Special effects - neural network inspired */
.neural-effect {
    position: relative;
}

.neural-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-teal) 30%, transparent 30%);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

/* Mind map styles - inspired by image layout */
.mind-map {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.mind-map-item {
    background: var(--accent-teal);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.mind-map-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
    background: var(--accent-purple);
}
