@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --secondary-color: #6a11cb;
    --accent-color: #00c6ff;
    --dark-bg: #0f172a;
    --light-text: #f8fafc;
    --dark-text: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background and Blob Animation */
body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #f8fafc;
}

#blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}

.blob-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(100px);
    will-change: transform;
    transition: filter 0.3s ease;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dot {
    position: absolute;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.7;
    will-change: transform;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: float 8s infinite ease-in-out, pulse 4s infinite alternate;
}

.dot:nth-child(1) { width: 15px; height: 15px; top: 10%; left: 15%; animation-duration: 5s; }
.dot:nth-child(2) { width: 10px; height: 10px; top: 30%; left: 70%; animation-duration: 7s; animation-delay: 2s; }
.dot:nth-child(3) { width: 20px; height: 20px; top: 50%; left: 25%; animation-duration: 4s; }
.dot:nth-child(4) { width: 12px; height: 12px; top: 70%; left: 50%; animation-duration: 6s; animation-delay: 1s; }
.dot:nth-child(5) { width: 18px; height: 18px; top: 20%; left: 80%; animation-duration: 5.5s; }

@keyframes float {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% { 
        transform: translate3d(0, -15px, 0) scale(1.05);
    }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 0.9; }
}

/* Section Dividers */
.content-section {
    position: relative;
    padding: 6rem 0;
}

.content-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(106, 17, 203, 0.7) 20%, 
        rgba(74, 144, 226, 0.9) 50%, 
        rgba(106, 17, 203, 0.7) 80%, 
        transparent 100%);
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Fade-in animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition-medium);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 12px;
    margin-top: 8px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.8);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-medium);
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    transform: translateY(0);
    will-change: transform, background, box-shadow;
}

.content-card {
    background: rgba(15, 12, 41, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 3rem;
    margin: 3rem auto;
    max-width: 1100px;
    transition: all 0.5s ease;
    border: 1px solid rgba(106, 17, 203, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.2) 0%, rgba(74, 144, 226, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.model-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.model-visualization {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: center;
}

@media (min-width: 768px) {
    .model-visualization {
        flex-direction: row;
        align-items: center;
    }
    
    .model-visualization.reverse {
        flex-direction: row-reverse;
    }
    
    .model-image {
        max-width: 50%;
    }
    
    .model-text {
        flex: 1;
    }
}

/* Remove duplicate content-card style */

.content-card h2, .content-card h3, .content-card h4 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.content-card p, .content-card li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

header.hidden {
    transform: translateY(-100%);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    transition: var(--transition-medium);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.2em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

a:hover {
    color: #007aff;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007aff;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 80px 20px 40px;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#simulation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#simulation-canvas:hover {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 12, 41, 0.3);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 1200px;
    padding: 0 2rem;
    transform: translateZ(0);
    transition: var(--transition-slow);
    will-change: transform;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content .authors p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ucla-seal {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ucla-seal:hover {
    transform: scale(1.05) rotate(5deg);
}

.title-text {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .title-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ucla-seal {
        width: 100px;
        height: 100px;
    }
    
    .title-text {
        min-width: 100%;
    }
}

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

.hero-content h1.title-animated {
    font-size: 4.5rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.05em;
    display: inline-block;
    color: #4a90e2;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.title-animated::before {
    content: attr(data-text);
    position: absolute;
    background: linear-gradient(90deg, #4a90e2, #6a3093, #4a90e2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none; /* Removed the shine animation */
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.title-animated span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.4, 1.1);
    position: relative;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    transform-style: preserve-3d;
}

.title-animated span:hover {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
}

/* Add a subtle animation delay for each letter */
.title-animated span:nth-child(1) { animation: float 4s ease-in-out infinite; animation-delay: 0s; }
.title-animated span:nth-child(2) { animation: float 4s ease-in-out infinite; animation-delay: 0.1s; }
.title-animated span:nth-child(3) { animation: float 4s ease-in-out infinite; animation-delay: 0.2s; }
.title-animated span:nth-child(4) { animation: float 4s ease-in-out infinite; animation-delay: 0.3s; }
.title-animated span:nth-child(5) { animation: float 4s ease-in-out infinite; animation-delay: 0.4s; }
.title-animated span:nth-child(6) { animation: float 4s ease-in-out infinite; animation-delay: 0.5s; }
.title-animated span:nth-child(7) { animation: float 4s ease-in-out infinite; animation-delay: 0.6s; }

@keyframes shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 0% center; /* Prevent movement */
    }
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -5px, 0); }
}

.github-button {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.github-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.github-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.github-button .ripple {
    background: rgba(0, 0, 0, 0.2);
}

.code-coming-soon {
    margin: 2.5rem auto 0;
    max-width: 320px;
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.code-coming-soon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.code-coming-soon:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
}

.coming-soon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.coming-soon-content i {
    font-size: 1.8rem;
    color: #4a90e2;
    flex-shrink: 0;
}

.coming-soon-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.coming-soon-text span:first-child {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.coming-soon-text .highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4a90e2, #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fixed lint error */
    position: relative;
    display: inline-block;
}

.coming-soon-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #6a11cb);
    transform: scaleX(0.8);
    transition: transform 0.3s ease;
}

.code-coming-soon:hover .coming-soon-text .highlight::after {
    transform: scaleX(1);
}

.code-coming-soon code {
    display: block;
    padding: 0.5rem 0;
}

.code-coming-soon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.content-card {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    transition: var(--transition-slow);
}

.content-card.revealed,
[data-aos].aos-animate {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.content-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.content-section:hover {
    transform: scale(1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.content-section:hover {
    transform: scale(1);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
}

.subtitle, .authors {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.authors p {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.8);
    display: inline-block;
    margin: 0 1rem;
}

.authors i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer Styles */
footer {
    padding: 4rem 5% 1rem;
    text-align: center;
    background: rgba(15, 12, 41, 0.8);
    color: #ffffff;
    font-size: 1rem;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 0.5rem;
    text-align: left;
}

.footer-section h4 {
    color: #4a90e2;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #6a11cb);
}

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

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

.footer-section a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #6a11cb, #4a90e2);
    transform: translateY(-3px);
}

/* Clean up the bottom links */
footer > a {
    display: inline-flex;
    align-items: center;
    color: #a0a0ff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer > a:hover {
    color: #fff;
    text-decoration: underline;
}

footer > a i {
    margin-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a90e2;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #4a90e2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-link {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #6a11cb;
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #4a69bb, #6a3093);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a69bb, #6a3093);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 70ch;
}

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 1rem 0 2rem;
    color: rgba(255,255,255,0.8);
}

#scrolling-agents {
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 2;
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.slide {
    display: none;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slide-caption {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    color: #333;
    background-color: rgba(255,255,255,0.8);
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background-color: rgba(255,255,255,0.9);
}

.slide-indicators {
    text-align: center;
    margin-top: 1rem;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background-color: #333;
}

/* Tabbed Interface */
.results-tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    outline: none;
    user-select: none;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

.tab-content-container {
    position: relative;
    min-height: 400px; /* Adjust based on your content */
    margin-top: 20px;
}

.tab-content {
    display: none;
    width: 100%;
}

/* Map Grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.map-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-title {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 0;
    font-size: 1.2em;
}

.map-container {
    width: 100%;
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.map-container iframe::-webkit-scrollbar {
    display: none !important;
}

/* Abstract Styles */
.abstract-content {
    line-height: 1.6;
    font-size: 1.05em;
}

/* Model Visualization */
.model-visualization {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-visualization.reverse {
    flex-direction: row-reverse;
}

.model-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.model-image:hover {
    transform: translateY(-5px);
}

.model-text {
    flex: 1;
    color: #f8fafc; /* Light text for dark background */
}

.model-explanation {
    margin: 0;
    line-height: 1.6;
    color: #f8fafc; /* Light text for dark background */
}

@media (max-width: 768px) {
    .model-visualization {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .model-visualization.reverse {
        flex-direction: column;
    }
    
    .model-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

.abstract-intro {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: #333;
}

.abstract-point {
    margin-bottom: 2.5em;
    padding: 1.5em;
    border-left: 3px solid #2196F3;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0 8px 8px 0;
    color: #fff; /* Light text for dark background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.abstract-point h4 {
    margin-top: 0;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5); /* Add a subtle glow */
}

.abstract-point ul {
    padding-left: 1.5em;
    color: #f8fafc; /* Light text for dark background */
}

.abstract-point li {
    margin-bottom: 0.5em;
    color: #f8fafc; /* Light text for dark background */
}

.abstract-point.highlight {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.abstract-conclusion {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 8px;
    margin-top: 1.5em;
}

.abstract-conclusion h4 {
    color: #4CAF50;
}

/* Methodology Styles */
.methodology-point {
    margin-bottom: 2rem;
    padding-left: 1em;
    border-left: 3px solid #6a11cb;
}

.methodology-point h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodology-point h3 i {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.methodology-point p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.team-header i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-header h3 {
    margin: 0;
    color: #333;
}

.team-details {
    line-height: 1.6;
}

.team-details p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f8fafc; /* Light text for dark background */
}

.team-details i {
    color: #6a11cb;
    min-width: 1.5rem;
}

.abstract-point h4 i {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.abstract-conclusion h4 i {
    color: #6a11cb;
}

/* Results Section Styles */
.results-tabs {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.results-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-section-header h2 {
    margin: 0;
    background: linear-gradient(135deg, #4a90e2, #6a11cb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(106, 17, 203, 0.3);
    font-size: 2rem;
}

.results-section-header .icon {
    margin-right: 1rem;
    font-size: 2rem;
    background: linear-gradient(135deg, #4a90e2, #6a11cb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    min-width: 150px;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.tab-content-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106, 17, 203, 0.5), transparent);
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    overflow: hidden;
}

.slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

.slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide-caption {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-caption:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(106, 17, 203, 0.3);
    cursor: pointer;
    user-select: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(106, 17, 203, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
}

.slide-indicators {
    text-align: center;
    margin-top: 1rem;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4a90e2, #6a11cb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator:hover::before {
    opacity: 0.5;
}

.indicator.active {
    background: transparent;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
}

.indicator.active::before {
    opacity: 1;
}

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

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(106, 17, 203, 0.3); }
    50% { box-shadow: 0 0 20px rgba(106, 17, 203, 0.6); }
    100% { box-shadow: 0 0 10px rgba(106, 17, 203, 0.3); }
}

/* Map styles */
.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
}

.map-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.map-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.3);
    border-color: rgba(106, 17, 203, 0.3);
}

.map-title {
    padding: 1.25rem;
    margin: 0;
    background: rgba(106, 17, 203, 0.5);
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.map-item:hover .map-title::before {
    left: 100%;
}

.map-container {
    height: 300px;
    overflow: hidden;
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Conclusion Styles */
.conclusion-content {
    margin-top: 1.5rem;
}

.conclusion-point {
    margin-bottom: 2rem;
    padding-left: 1em;
    border-left: 3px solid #6a11cb;
}

.conclusion-point h3 {
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conclusion-point h3 i {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.conclusion-point ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.conclusion-point li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}