:root {
    --bg-color: #001A4A;
    --bg-darker: #000D26;
    --text-color: #F0F8FF;
    --text-muted: #A3C2F0;
    --accent: #00F0FF;
    --accent-hover: #00BFFF;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(0, 240, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0, 13, 38, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Typography & Buttons */
h1, h2, h3, h4 {
    color: #fff;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-color);
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Sections */
.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 4rem;
    background: linear-gradient(90deg, #fff, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    min-width: 0;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    margin-top: 15px;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
}















.media-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    border-radius: 8px;
    margin-top: 15px;
    padding-bottom: 8px;
    max-width: 100%;
}

.media-gallery img, .media-gallery video {
    flex: 0 0 100%;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    scroll-snap-align: center;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: filter 0.3s ease;
    background-color: rgba(0,0,0,0.4);
}

.media-gallery img:hover, .media-gallery video:hover {
    filter: brightness(1.2);
}

.media-gallery::-webkit-scrollbar {
    height: 6px;
}

.media-gallery::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

.media-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.placeholder-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 220px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    scroll-snap-align: center;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 30px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent);
    border: 4px solid var(--bg-darker);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    padding: 20px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pub-cover {
    width: 80px;
    height: 110px;
    background: rgba(0,0,0,0.4);
    border: 1px dashed var(--glass-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    overflow: hidden;
}

.pub-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-details {
    flex: 1;
}

.pub-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Hide element for filtering */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    .section { padding: 60px 0; }
    
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 20px !important;
        text-align: left !important;
        left: 0 !important;
    }
    .timeline-item::after {
        left: 10px !important;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}


.lightbox-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    width: 100vw;
    max-width: 1200px;
    padding: 0 20px;
}

.lightbox-gallery img, .lightbox-gallery video {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    scroll-snap-align: center;
    border-radius: 12px;
}

.lightbox-gallery::-webkit-scrollbar {
    display: none;
}
