* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #1a0a2e, #0a1a1a, #16185a, #0a2a1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

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

#boids-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.container {
    position: relative;
    z-index: 1;
}

.sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 20px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
}

.sidebar a:hover {
    background: rgba(100, 100, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
}

.sidebar a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
    transform: scale(1.15);
}

.container {
    margin-left: 150px;
    padding: 40px;
    max-width: 1400px;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.hero-content {
    max-width: 900px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(100, 100, 255, 0.3);
    margin-bottom: 30px;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(100, 100, 255, 0.4);
    background: rgba(50, 50, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.3em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.bio {
    line-height: 1.8;
    color: #c0c0c0;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
}

.research-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(100, 100, 255, 0.2);
    transition: all 0.1s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    border-color: rgba(100, 100, 255, 0.5);
    box-shadow: 0 10px 40px rgba(100, 100, 255, 0.3);
}

.card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.card p {
    color: #b0b0b0;
    line-height: 1.7;
}

.card .meta {
    margin-top: 15px;
    font-size: 0.9em;
    color: #808080;
}

.skills-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid;
    background: rgba(30, 30, 50, 0.4);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-btn[data-category="research"] {
    border-color: rgba(138, 43, 226, 0.5);
}

.filter-btn[data-category="development"] {
    border-color: rgba(59, 130, 246, 0.5);
}

.filter-btn[data-category="infrastructure"] {
    border-color: rgba(16, 185, 129, 0.5);
}

.filter-btn.active[data-category="research"] {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    color: #d8b4fe;
}

.filter-btn.active[data-category="development"] {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.filter-btn.active[data-category="infrastructure"] {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

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

.skills-cloud {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.skills-cloud canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.skill-node {
    position: absolute;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    user-select: none;
    pointer-events: auto;
}

.skill-node.dimmed {
    opacity: 0.2;
    filter: grayscale(0.8);
}

.skill-node.research {
    background: rgba(138, 43, 226, 0.15);
    border: 1.5px solid rgba(138, 43, 226, 0.4);
    color: #d8b4fe;
}

.skill-node.development {
    background: rgba(59, 130, 246, 0.15);
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.skill-node.infrastructure {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.skill-node:hover {
    transform: scale(1.15);
    z-index: 10;
}

.skill-node.research:hover {
    background: rgba(138, 43, 226, 0.25);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.6);
}

.skill-node.development:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.skill-node.infrastructure:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.timeline-item h3 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.timeline-item .date {
    color: #808080;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.timeline-item p {
    color: #b0b0b0;
    line-height: 1.7;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #e0e0e0;
    text-decoration: none;
    border: 1px solid rgba(100, 100, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: rgba(100, 100, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(100, 100, 255, 0.3);
}

@media (max-width: 768px) {
    .sidebar {
        left: 10px;
        padding: 15px 10px;
    }

    .container {
        margin-left: 90px;
        padding: 20px;
    }

    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    h1 {
        font-size: 2.5em;
    }

    .research-grid, .project-grid {
        grid-template-columns: 1fr;
    }
}
