:root {
    --primary-color: #60a5fa;
    --secondary-color: #a78bfa;
    --accent-color: #fbbf24;
    --bg-dark: #0f0f17;
    --bg-secondary: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --card-bg: rgba(30, 30, 46, 0.5);
    --border-color: rgba(96, 165, 250, 0.1);
}

[data-theme="light"] {
    --bg-dark: #f4f4f5;
    --bg-secondary: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(96, 165, 250, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background-color 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(96, 165, 250, 0.2);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    transform: translate(20px, -20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-text.visible {
    opacity: 1;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    animation: trail 1s ease-out forwards;
}

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

.cursor-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9994;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 23, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

#typewriter-text {
    color: var(--primary-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 0.9em;
    font-weight: 500;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: rgba(96, 165, 250, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
    border-color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 80px 0;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.1);
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-primary);
}


/* Experience Cards */
.experience-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.experience-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

.experience-card:hover::before {
    left: 100%;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.2);
    border-color: var(--primary-color);
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.experience-card .company {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.experience-card .date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.experience-card p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.skill-category:hover::before {
    opacity: 0.3;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.research-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

.research-card:hover::before {
    left: 100%;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.2);
    border-color: var(--primary-color);
}

.research-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

.research-icon i {
    display: inline-block;
}

.research-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.research-card p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Publications */
.publication-list {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.publication-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.publication-card.hidden {
    display: none;
}

.publication-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.publication-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.2);
}

.publication-card:hover::after {
    opacity: 1;
    right: 15px;
}

.publication-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.4;
}

.publication-card .journal {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 5px;
}

.publication-card .year {
    color: var(--text-muted);
    font-size: 0.9em;
}

.award-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 10px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.award-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: left 0.5s;
}

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

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.15);
    border-color: var(--accent-color);
}

.award-icon {
    font-size: 2em;
    animation: bounce 2s infinite;
    color: var(--accent-color);
}

.award-icon i {
    display: inline-block;
}

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

/* Contact Section */
.contact-info {
    text-align: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.contact-info a:hover::after {
    width: 100%;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
}

footer p {
    margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.theme-toggle:hover svg {
    color: white;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Animation Classes */
.section-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-animated.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: center;
    }

    .theme-toggle {
        top: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }

    .hero-content img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .container {
        padding: 0 15px;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .cursor,
    .cursor-follower,
    .cursor-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2em;
    }
    
    .publication-card h3 {
        font-size: 1em;
    }
    
    .experience-card h3 {
        font-size: 1.2em;
    }
}

