/* Custom styles for VETTING Chat landing page */

/* General styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Hero section */
.hero-1-bg {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--background-color);
}

.hero-1-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-color);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Features section */
#features .row {
    display: flex;
    flex-wrap: wrap;
}

#features .col-lg-4 {
    display: flex;
    margin-bottom: 30px;
}

.service-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-box .service-icon-bg {
    flex-shrink: 0; 
}

.service-box .service-title {
    flex-shrink: 0; 
}

.service-box .service-subtitle {
    flex-grow: 1; 
    display: flex;
    align-items: center; /
}

@media (max-width: 991px) {
    #features .col-lg-4 {
        display: flex;
    }
    
    .service-box {
        width: 100%;
    }
}

/* Benefits section */
.benefit-box {
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-list {
    list-style-type: none;
    padding-left: 0;
}

.benefit-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

.benefit-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
}

/* How It Works section */
#how-it-works {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 80px 0;
}

#how-it-works h2,
#how-it-works p {
    color: var(--white);
}

.how-it-works-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.how-it-works-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.how-it-works-card h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.how-it-works-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-custom {
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar-custom .navbar-toggler {
        border: none;
        font-size: 24px;
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .navbar-custom .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 123, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-custom .navbar-nav {
        background-color: var(--white);
        padding: 20px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navbar-custom .nav-item {
        margin: 10px 0;
    }

    .navbar-custom .nav-link {
        color: var(--text-color) !important;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
    }

    .navbar-custom .menu-social-icon {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Responsive design for How It Works section */
@media (max-width: 768px) {
    #how-it-works {
        padding: 60px 0;
    }

    .how-it-works-card {
        margin-bottom: 30px;
    }
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加右侧弹出导航栏样式 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        transition: all 0.3s ease;
        background-color: var(--white);
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        margin-top: 20px;
    }
}

/* Hero image animation */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Text fade-in animation */
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient animation for CTA button */
.btn-primary {
    background-size: 200% auto;
    transition: all 0.3s ease;
    background-image: linear-gradient(to right, #FF6B35 0%, #1E90FF 51%, #FF6B35 100%);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.floating-bot {
    position: absolute;
    width: 50px;
    height: 50px;
    right: calc(100% - 20px); 
    top: -10px;
    z-index: 2;
    opacity: 0.9;
    animation: floatingPath 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatingPath {
    0% {
        transform: translate(0, 0) scale(0.9);
        filter: brightness(1);
    }
    20% {
        transform: translate(10px, -30px) scale(1.1);
        filter: brightness(1.1);
    }
    40% {
        transform: translate(25px, -50px) scale(0.95);
        filter: brightness(1);
    }
    60% {
        transform: translate(15px, -40px) scale(1.05);
        filter: brightness(1.05);
    }
    80% {
        transform: translate(5px, -20px) scale(1);
        filter: brightness(1.1);
    }
    100% {
        transform: translate(0, 0) scale(0.9);
        filter: brightness(1);
    }
}

.floating-bot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    filter: blur(6px) brightness(1.2);
    opacity: 0.2;
    z-index: -1;
    animation: trailEffect 20s ease-in-out infinite;
}

@keyframes trailEffect {
    0%, 100% {
        transform: scale(0.9) translate(3px, 3px);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1) translate(-3px, -3px);
        opacity: 0.25;
    }
}

@media (max-width: 991px) {
    .floating-bot {
        width: 40px;
        height: 40px;
        right: auto;
        left: 0;
        top: -30px; 
    }

    .hero-content {
        padding-top: 40px; 
        margin-top: 20px; 
    }
    
    @keyframes floatingPath {
        0% {
            transform: translate(0, 0) scale(0.9);
        }
        20% {
            transform: translate(20px, 5px) scale(1.1);
        }
        40% {
            transform: translate(40px, 0px) scale(0.95);
        }
        60% {
            transform: translate(20px, 8px) scale(1.05);
        }
        80% {
            transform: translate(10px, 3px) scale(1);
        }
        100% {
            transform: translate(0, 0) scale(0.9);
        }
    }
}

@media (max-width: 576px) {
    .floating-bot {
        width: 35px;
        height: 35px;
        top: -25px; 
    }
    
    .hero-content {
        padding-top: 35px;
        margin-top: 15px;
    }
    
    @keyframes floatingPath {
        0% {
            transform: translate(0, 0) scale(0.9);
        }
        20% {
            transform: translate(15px, 3px) scale(1.1);
        }
        40% {
            transform: translate(30px, 0px) scale(0.95);
        }
        60% {
            transform: translate(15px, 5px) scale(1.05);
        }
        80% {
            transform: translate(5px, 2px) scale(1);
        }
        100% {
            transform: translate(0, 0) scale(0.9);
        }
    }
}

@media (max-width: 991px) {
    .hero-content {
        padding-top: 60px; 
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding-top: 50px;
    }
}

.hero-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-1-title {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.floating-bot {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .floating-bot {
        width: 40px;
        height: 40px;
    }
    
    @keyframes floatingPath {
        0% {
            transform: translate(-20px, -15px) scale(0.9);
        }
        15% {
            transform: translate(15%, -25px) scale(1.1);
        }
        30% {
            transform: translate(45%, -10px) scale(0.95);
        }
        45% {
            transform: translate(70%, -30px) scale(1);
        }
        60% {
            transform: translate(50%, 15px) scale(1.1);
        }
        75% {
            transform: translate(20%, 5px) scale(0.9);
        }
        90% {
            transform: translate(0%, -5px) scale(1.05);
        }
        100% {
            transform: translate(-20px, -15px) scale(0.9);
        }
    }
}

.privacy-content h4 {
    color: #333;
    margin-top: 2rem;
    font-weight: 500;
}

.privacy-content h5 {
    color: #555;
    font-weight: 500;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

.privacy-link {
    color: #FF6B35;
    text-decoration: none;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: #1E90FF;
    text-decoration: underline;
}

.privacy-summary {
    list-style: none;
    padding-left: 0;
}

.privacy-summary li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.privacy-summary li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF6B35;
}

.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 0 15px;
    }
}

.footer {
    background-color: #2c3e50;
    padding: 80px 0 30px;
    position: relative;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-link:hover {
    color: #FF6B35;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-sub-menu li {
    margin-bottom: 10px;
}

.footer .text-white-50 {
    font-size: 14px;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer .mb-4 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
}

/* About page specific styles */
.hero-about {
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FF6B35, transparent);
}

.badge-soft-primary {
    background-color: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mission-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.mission-tag {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #FF6B35;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    letter-spacing: 1px;
}

.point-item {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.point-item:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(10px);
}

.point-number {
    font-size: 24px;
    font-weight: bold;
    color: #FF6B35;
    margin-right: 20px;
    opacity: 0.5;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
}

.value-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.story-content {
    position: relative;
    padding: 20px;
    border-left: 3px solid #FF6B35;
    margin-left: 20px;
}

.back-to-home {
    padding: 40px 0;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

/* update the theme color variables */
:root {
    --primary-orange: #FF6B35;
    --primary-blue: #1E90FF;
}

/* update the badge style, alternating between orange and blue */
.badge-soft-primary {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
}

.mission-tag {
    background: var(--primary-blue);
}

/* update the number style */
.point-number {
    color: var(--primary-blue);
}

/* update the card hover effect */
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.1);
}

/* update the icon background */
.value-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(30, 144, 255, 0.1));
}

/* update the button style */
.btn-gradient {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-blue));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-orange));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-gradient:hover::before {
    opacity: 1;
}

/* update the border of the story section */
.story-content {
    border-left: 3px solid var(--primary-blue);
}

/* update the gradient of the separator */
.hero-shape {
    background: linear-gradient(90deg, transparent, var(--primary-orange), var(--primary-blue), transparent);
}

/* add simple footer styles */
.footer-simple {
    background-color: #2c3e50;
    padding: 20px 0;
    position: relative;
    margin-top: 60px;
}

.footer-simple .copyright-text {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* add a top border to the footer for a complete visual effect */
.footer-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Trusted By Section Styles */
.trusted-by-section {
    padding: 40px 0;
    background: white;
    overflow: hidden;
}

.trusted-by-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 30px;
}

.logo-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    animation: scroll 80s linear infinite;
    width: fit-content;
}

.logo-wrapper {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-slide {
    flex: 0 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.institution-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-slide:hover .institution-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-66.666%);
    }
}

.logo-carousel-container::before,
.logo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 200px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 0) 100%
    );
}

.logo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 0) 100%
    );
}

@media (max-width: 768px) {
    .logo-wrapper {
        width: 160px;
        height: 60px;
    }
    
    .logo-slide {
        padding: 0 25px;
    }
    
    .logo-carousel-container::before,
    .logo-carousel-container::after {
        width: 100px;
    }
}

@media (max-width: 576px) {
    .logo-wrapper {
        width: 140px;
        height: 50px;
    }
    
    .logo-slide {
        padding: 0 20px;
    }
}

/* Footer Styles */
.footer {
    background-color: #1a1f36;
    padding: 80px 0 0;
    position: relative;
}

/* Footer Brand Section */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-orange);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-orange);
    text-decoration: none;
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Language Selector */
.footer-language-selector {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.footer-language-selector:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Modern Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    z-index: 1000;
    transform: translateY(200%);
    transition: transform 0.5s ease;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.cookie-consent.show {
    transform: translateY(0);
    pointer-events: all;
}

.cookie-consent-wrapper {
    background: rgba(26, 31, 54, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-icon i {
    font-size: 16px;
    color: #fff;
}

.cookie-title {
    color: #fff;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
}

.cookie-buttons .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Minimize button */
.cookie-minimize {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    transform-origin: center;
}

.cookie-minimize:hover {
    color: rgba(255, 255, 255, 0.9);
}

.cookie-minimize i {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimized state */
.cookie-consent.minimized .cookie-consent-wrapper {
    background: rgba(26, 31, 54, 0.75);
    backdrop-filter: blur(6px);
    width: auto;
    padding: 10px 40px 10px 16px;
}

.cookie-consent.minimized .cookie-content {
    opacity: 0;
    transform: translateY(10px);
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.cookie-consent.minimized .cookie-minimize {
    top: 12px;
    right: 12px;
}

.cookie-consent.minimized .cookie-minimize i {
    transform: rotate(180deg);
}

/* Header transitions */
.cookie-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent.minimized .cookie-header {
    margin: 0;
    transform: scale(0.95);
}

/* Icon and text transitions */
.cookie-icon,
.cookie-title {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.minimized .cookie-icon {
    transform: scale(0.85);
}

.cookie-consent.minimized .cookie-title {
    transform: scale(0.95);
}

/* 微调按钮样式以配合半透明效果 */
.cookie-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-buttons .btn-primary {
    background: rgba(57, 86, 222, 0.9);
    border: none;
}

/* 悬停效果 */
.cookie-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-buttons .btn-primary:hover {
    background: rgba(57, 86, 222, 1);
}

/* Custom Toggle Switch for modal */
.cookie-preferences .toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
}

.cookie-preferences .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-preferences .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e2e2;
    transition: .3s;
    border-radius: 24px;
}

.cookie-preferences .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-preferences .toggle-switch input:checked + .toggle-slider {
    background-color: #3956de;
}

.cookie-preferences .toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-preferences .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Cookie Settings Modal Styles */
.cookie-preferences {
    padding: 1rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.cookie-option-content {
    flex: 1;
    padding-right: 2rem;
}

.cookie-option-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cookie-option h6,
.cookie-option p {
    margin: 0;
}

/* Hero Buttons Styles */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.team-btn {
    background: transparent;
    border: 2px solid rgba(57, 86, 222, 0.2);
    color: #3956de;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.team-btn:hover {
    background: rgba(57, 86, 222, 0.1);
    border-color: #3956de;
    color: #3956de;
    transform: translateY(-2px);
}

.team-btn i {
    transition: transform 0.3s ease;
}

.team-btn:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments for hero buttons */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem; 
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 0; 
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Additional responsive padding for very small screens */
@media (max-width: 576px) {
    .hero-buttons {
        margin-top: 2rem;
        gap: 1.25rem; 
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
    }
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links .btn {
    padding: 8px 12px;
}

.social-links .btn-outline-primary {
    min-width: 40px;
}


/* Team Cards Layout */
#core-contributors .row {
    justify-content: center;
    margin: -20px -15px; /* Negative margin to counteract container padding */
}

#core-contributors .col-lg-4 {
    padding: 20px 15px; /* Increased padding for more space between cards */
    display: flex;
    justify-content: center;
}

/* Adjust section spacing */
#project-lead {
    padding-bottom: 40px; /* Reduce bottom padding */
}

#core-contributors {
    padding-top: 40px; /* Reduce top padding */
}

/* Team Card Styles */
.team-card {
    width: 100%;
    max-width: 360px; /* Optional: limit maximum width of cards */
    margin: 0 auto;
    height: 100%;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    #core-contributors .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* When there are 4 or 5 items, adjust the last row */
    #core-contributors .row:last-child {
        justify-content: flex-start;
    }
    
    /* Center the last row when it has less than 3 items */
    #core-contributors .row:last-child:not(:first-child) {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #core-contributors .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    #core-contributors .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Project Lead Section Layout */
#project-lead .row {
    justify-content: center;
    margin: -20px -15px;
}

#project-lead .col-lg-4 {
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

/* Adjust spacing between sections */
#project-lead {
    padding-bottom: 60px;
}

#core-contributors {
    padding-top: 60px;
}

/* Responsive adjustments for Project Lead section */
@media (min-width: 992px) {
    #project-lead .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #project-lead .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    #project-lead .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Research Modal Styles */
.research-modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.research-modal .modal-dialog {
    max-width: 700px;
}

.research-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

.research-header {
    flex: 1;
}

/* Status Badge with Pulse Animation */
.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(52, 211, 153, 0.1);
    color: #34D399;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 1rem;
    vertical-align: middle;
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #34D399;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Research Phases with Progress Animation */
.research-phases {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    position: relative;
}

.phase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1rem;
    transition: all 0.3s ease;
}

.phase-item::after {
    display: none;
}

.phase-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(30, 144, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.phase-item.active .phase-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(30, 144, 255, 0.2));
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.phase-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, #FF6B35, #1E90FF);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.phase-content {
    max-width: 200px;
}

.phase-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.5rem;
}

.phase-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.phase-item.active .phase-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 211, 153, 0.2);
}

.phase-item.upcoming {
    opacity: 0.7;
}

.phase-item.upcoming .phase-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* Status Card */
.research-status {
    padding: 0 2rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.status-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.75rem;
}

.status-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Footer */
.research-footer {
    text-align: center;
    padding: 2rem;
}

.update-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(30, 144, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.update-note .note-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.update-note .primary-text {
    color: #1a1f36;
    font-weight: 500;
}

.update-note .secondary-text {
    color: #1E90FF;
    font-size: 0.95rem;
}

.update-note .note-text {
    text-align: center;
    line-height: 1.6;
}

.update-note .highlight {
    color: #1E90FF;
    font-weight: 500;
}

.contact-research {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #FF6B35, #1E90FF);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-research:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

@media (max-width: 576px) {
    .research-phases {
        flex-direction: column;
        gap: 2rem;
    }
    
    .phase-content {
        max-width: 100%;
    }
}