
/* Enhanced CSS for Papers Section */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Cursor effect */
#cursor {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(64, 224, 255, 0.8) 0%, rgba(64, 224, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: all 0.1s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 224, 255, 0.2);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #40e0ff;
    text-shadow: 0 0 10px rgba(64, 224, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #40e0ff;
    text-shadow: 0 0 5px rgba(64, 224, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0ff, #64b5f6);
    transition: width 0.3s ease;
}

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

/* WebGL Background */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Main content */
#published {
    padding-top: 80px;
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.content {
    padding: 4rem 0;
}

.content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(64, 224, 255, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 20px rgba(64, 224, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(64, 224, 255, 0.6), 0 0 40px rgba(64, 224, 255, 0.3); }
}

.content > p {
    text-align: center;
    color: #9ca3af;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Enhanced Publication Item */
.publication-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #40e0ff, #64b5f6, #8e24aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-item:hover {
    border-color: rgba(64, 224, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 255, 0.2);
}

.publication-item:hover::before {
    opacity: 1;
}

.publication-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-item p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.pdf-link, .abstract-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pdf-link {
    background: linear-gradient(135deg, #40e0ff 0%, #64b5f6 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
}

.pdf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 255, 0.4);
}

.abstract-link {
    background: rgba(255, 255, 255, 0.1);
    color: #40e0ff;
    border: 1px solid rgba(64, 224, 255, 0.3);
}

.abstract-link:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: rgba(64, 224, 255, 0.5);
    transform: translateY(-2px);
}

/* Enhanced Abstract Content */
.abstract-content {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.abstract-content h4 {
    color: #40e0ff;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.abstract-content p {
    color: #e5e7eb;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.close-abstract {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #40e0ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.close-abstract:hover {
    color: #64b5f6;
    transform: translateX(5px);
}

/* Back link styling */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #40e0ff 0%, #64b5f6 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
    margin-top: 3rem;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 255, 0.4);
}

/* Conference badges */
.conference-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8e24aa, #5e35b1);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    #published {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 120px;
    }

    .publication-links {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-link, .abstract-link {
        justify-content: center;
    }
}

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

.publication-item {
    animation: fadeInUp 0.8s ease-out;
}

.publication-item:nth-child(even) {
    animation-delay: 0.1s;
}

.publication-item:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Publication List Container */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Enhanced Publication Item */
.publication-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

/* Animated top border on hover */
.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #40e0ff, #64b5f6, #8e24aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-item:hover {
    border-color: rgba(64, 224, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 255, 0.2);
}

.publication-item:hover::before {
    opacity: 1;
}

/* Publication Title */
.publication-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(64, 224, 255, 0.2);
}

/* Publication Details */
.publication-item p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.publication-item em {
    color: #40e0ff;
    font-style: italic;
}

/* Publication Links Container */
.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Base Link Styles */
.publication-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* PDF Link Styling */
.pdf-link {
    background: linear-gradient(135deg, #40e0ff 0%, #64b5f6 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
}

.pdf-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #64b5f6 0%, #40e0ff 100%);
}

/* Journal/Website Link Styling */
.journal-link {
    background: rgba(142, 36, 170, 0.2);
    color: #e1bee7;
    border: 1px solid rgba(142, 36, 170, 0.4);
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.2);
}

.journal-link:hover {
    background: rgba(142, 36, 170, 0.3);
    border-color: rgba(142, 36, 170, 0.6);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(142, 36, 170, 0.3);
}

/* Abstract Link Styling (if needed) */
.abstract-link {
    background: rgba(255, 255, 255, 0.1);
    color: #40e0ff;
    border: 1px solid rgba(64, 224, 255, 0.3);
}

.abstract-link:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: rgba(64, 224, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
}

/* Ripple Effect for Links */
.publication-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.publication-links a:active::before {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
}

.publication-links a span {
    position: relative;
    z-index: 1;
}

/* Animation for publication items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.publication-item:nth-child(1) { animation-delay: 0.1s; }
.publication-item:nth-child(2) { animation-delay: 0.2s; }
.publication-item:nth-child(3) { animation-delay: 0.3s; }
.publication-item:nth-child(4) { animation-delay: 0.4s; }
.publication-item:nth-child(5) { animation-delay: 0.5s; }
.publication-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .publication-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .publication-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .publication-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .publication-links a {
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .publication-item {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .publication-item h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .publication-item p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .publication-links a {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

/* Loading state (optional) */
.publication-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.publication-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(64, 224, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}