@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&display=swap');

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

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    z-index: 0;
    pointer-events: none;
}

header {
    background: linear-gradient(180deg, #b8bcc4 0%, #8a8e96 50%, #6d717a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

nav h1 {
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 2px 3px rgba(0, 0, 0, 0.5);
    color: rgba(50, 50, 55, 0.9);
    letter-spacing: 2px;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: rgba(50, 50, 55, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 -1px 0 rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
}

nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15));
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.6),
        0 2px 8px rgba(180, 190, 200, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 -1px 0 rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.6);
    color: rgba(30, 30, 35, 1);
}

nav a.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 -1px 1px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.5);
    color: rgba(20, 20, 25, 1);
}

main {
    margin-top: 80px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 2rem;
}

main > h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(240, 240, 245, 1);
    font-weight: 700;
    letter-spacing: 2px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

#hero {
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

#hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(240, 240, 245, 1);
}

#hero p {
    position: relative;
    z-index: 1;
    color: rgba(220, 220, 230, 0.85);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.highlight {
    color: rgba(245, 245, 250, 1);
    text-shadow: 0 0 20px rgba(220, 220, 230, 0.4);
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(40, 40, 45, 1);
    font-weight: 700;
    letter-spacing: 2px;
}

#about, #skills, #contact, #interests, #research, #cv, #personal, 
#current-research, #publications, #projects, #education, #experience, 
#awards, #contact-info, #online-presence, #office-hours, #about-me, 
#hobbies, #blog, #travel {
    background: linear-gradient(135deg, #a5a9b1 0%, #7d8189 50%, #5a5e66 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 2px 1px rgba(255, 255, 255, 0.5),
        inset 0 -2px 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

#about::after, #skills::after, #contact::after, #interests::after,
#current-research::after, #publications::after, #projects::after,
#education::after, #experience::after, #awards::after,
#contact-info::after, #online-presence::after, #office-hours::after,
#about-me::after, #hobbies::after, #blog::after, #travel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

#about:hover::after, #skills:hover::after, #contact:hover::after, #interests:hover::after,
#current-research:hover::after, #publications:hover::after, #projects:hover::after,
#education:hover::after, #experience:hover::after, #awards:hover::after,
#contact-info:hover::after, #online-presence:hover::after, #office-hours:hover::after,
#about-me:hover::after, #hobbies:hover::after, #blog:hover::after, #travel:hover::after {
    left: 100%;
}

#about:hover, #skills:hover, #contact:hover, #interests:hover,
#current-research:hover, #publications:hover, #projects:hover,
#education:hover, #experience:hover, #awards:hover,
#contact-info:hover, #online-presence:hover, #office-hours:hover,
#about-me:hover, #hobbies:hover, #blog:hover, #travel:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.9),
        inset 0 2px 1px rgba(255, 255, 255, 0.6),
        inset 0 -2px 1px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(180, 190, 200, 0.3);
}

#about p, #interests p, #research p, #cv p, #personal p, #contact p,
#current-research p, #publications p, #projects p, #education p, 
#experience p, #awards p, #contact-info p, #online-presence p, 
#office-hours p, #about-me p, #hobbies p, #blog p, #travel p {
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.5);
    color: rgba(40, 40, 45, 0.95);
    font-weight: 500;
    font-size: 1.05rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #9da1a9 0%, #74787f 50%, #4e5258 100%);
    color: rgba(30, 30, 35, 1);
    padding: 1.5rem;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(180, 190, 200, 0.4);
}

.research-section, .cv-section, .contact-info, .personal-section {
    background: rgba(20, 20, 30, 0.3);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-section h3, .cv-section h3, .contact-info h3, .personal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 2px 3px rgba(0, 0, 0, 0.4);
    color: rgba(35, 35, 40, 1);
    font-weight: 700;
    letter-spacing: 1.5px;
}

#research h3, #cv h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.7),
        0 2px 3px rgba(0, 0, 0, 0.5);
    color: rgba(30, 30, 35, 1);
    font-weight: 700;
    letter-spacing: 1.5px;
}

#research h3:first-of-type, #cv h3:first-of-type {
    margin-top: 0;
}

#research h4, #cv h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.4);
    color: rgba(35, 35, 40, 1);
    font-weight: 600;
    letter-spacing: 1px;
}

#current-research h4, #publications h4, #projects h4, 
#education h4, #experience h4, #blog h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.4);
    color: rgba(35, 35, 40, 1);
    font-weight: 600;
    letter-spacing: 1px;
}

#current-research h4:first-of-type, #publications h4:first-of-type, 
#projects h4:first-of-type, #education h4:first-of-type, 
#experience h4:first-of-type, #blog h4:first-of-type {
    margin-top: 0;
}

.section-divider {
    height: 2px;
    margin: 2.5rem 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4), 
        rgba(255, 255, 255, 0.2), 
        rgba(0, 0, 0, 0.4));
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 -1px 0 rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.item-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3), 
        rgba(255, 255, 255, 0.15), 
        rgba(0, 0, 0, 0.3));
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.4);
}

.publication, .project, .cv-item, .blog-post {
    background: rgba(30, 30, 40, 0.4);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.publication h4, .project h4, .cv-item h4, .blog-post h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 -1px 0 rgba(0, 0, 0, 0.5);
    color: rgba(220, 220, 225, 1);
    font-weight: 600;
    letter-spacing: 1px;
}

.publication p, .project p, .cv-item p {
    margin-bottom: 0.5rem;
    color: rgba(200, 200, 210, 0.9);
    font-weight: 400;
    font-size: 1.05rem;
}

.awards-list, .hobbies-list {
    list-style: none;
    padding-left: 0;
}

.awards-list li, .hobbies-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(40, 40, 45, 0.9);
    font-weight: 400;
    font-size: 1.05rem;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 -1px 0 rgba(0, 0, 0, 0.45);
}

.awards-list li::before, .hobbies-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(60, 60, 65, 0.8);
}

#online-presence a, #contact-info a {
    color: rgba(40, 40, 45, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(40, 40, 45, 0.5);
    transition: all 0.3s ease;
    font-weight: 500;
}

#online-presence a:hover, #contact-info a:hover {
    color: rgba(20, 20, 25, 1);
    border-bottom-color: rgba(20, 20, 25, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.date {
    font-style: italic;
    color: rgba(180, 180, 190, 0.85);
    font-size: 0.95rem;
}

footer {
    background: linear-gradient(180deg, #b8bcc4 0%, #8a8e96 50%, #6d717a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

footer p {
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 -1px 0 rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.4);
    color: rgba(50, 50, 55, 0.9);
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    #hero h2 {
        font-size: 1.8rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    body {
        font-size: 15px;
    }
    
    #about p, #interests p, #research p, #cv p, #personal p, #contact p,
    #current-research p, #publications p, #projects p, #education p, 
    #experience p, #awards p, #contact-info p, #online-presence p, 
    #office-hours p, #about-me p, #hobbies p, #blog p, #travel p {
        font-size: 1rem;
    }
}
