:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f1729 0%, #1a1f3a 100%);
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-medium);
    border-radius: 3px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: var(--gradient-dark);
    overflow: hidden;
}

#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-medium);
    font-size: 1.2rem;
    -webkit-tap-highlight-color: transparent;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links a:active {
    transform: translateY(-1px) scale(0.95);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.gradient-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid var(--dark-bg);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-medium);
}

.profile-image:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

.profile-placeholder {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: var(--text-muted);
    border: 5px solid var(--dark-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-secondary);
    font-size: 2rem;
    text-decoration: none;
}

.about {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition-medium);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.experience {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1729 100%);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.experience-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.experience-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.experience-content h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.experience-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

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

.company-link:hover {
    color: var(--accent-color);
}

.company-link:hover::after {
    width: 100%;
    background: var(--accent-color);
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.experience-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-meta i {
    color: var(--primary-color);
}

.experience-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.highlight-content strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.highlight-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.7;
}

.experience-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.research {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.research-grid {
    max-width: 900px;
    margin: 0 auto;
}

.research-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    display: flex;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.research-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.research-content {
    flex: 1;
}

.research-content h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.research-venue {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.research-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.research-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-medium);
    font-size: 0.95rem;
}

.research-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.skills {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1729 100%);
}

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

.skill-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.projects {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card a {
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    border-radius: 15px;
}

.project-card:hover a {
    transform: translateY(-10px);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.project-image-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-card:nth-child(1) .project-image {
    background: linear-gradient(135deg, #1e2344 0%, #2a2d52 100%);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #1e2344 0%, #2a2d52 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #1e2344 0%, #2a2d52 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition-medium);
    pointer-events: none;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.opensource {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1729 100%);
}

.opensource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.opensource-card {
    background: var(--dark-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.opensource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.opensource-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opensource-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.opensource-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}

.opensource-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.opensource-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--accent-color);
}

.opensource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition-medium);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-medium);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer p {
    color: var(--text-muted);
}

.footer-heart {
    font-size: 0.9rem;
}

.heart {
    color: #ec4899;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-medium);
}

.footer-links a:hover {
    background: var(--primary-color);
    color: white;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .image-container {
        width: 350px;
        height: 350px;
    }

    .profile-image {
        width: 300px;
        height: 300px;
    }

    .experience-card {
        padding: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    #neural-network-canvas {
        opacity: 0.25;
    }

    .hero-title,
    .hero-subtitle {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar .container {
        padding: 1rem 20px;
    }

    .nav-logo a {
        font-size: 1.35rem;
        font-weight: 700;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition-medium);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 8px;
        margin: -8px;
        cursor: pointer;
    }

    .hamburger .bar {
        width: 28px;
        height: 3px;
    }

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

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

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

    .hero {
        min-height: auto;
        padding: 90px 0 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 20px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        margin: 0 auto 1.5rem;
        font-size: 0.95rem;
        max-width: 100%;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 14px 32px;
        font-size: 1rem;
        min-width: 160px;
    }

    .social-links {
        justify-content: center;
        gap: 1.2rem;
    }

    .social-links a {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .image-container {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    .profile-image,
    .profile-placeholder {
        width: 220px;
        height: 220px;
    }

    .profile-placeholder {
        font-size: 5rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: var(--section-padding);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .section-title::after {
        width: 80px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .lead {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .about-text p {
        margin-bottom: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 2.5rem;
    }

    .stat {
        padding: 1.8rem 1.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1rem;
        margin-top: 0.3rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-card {
        padding: 2rem 1.5rem;
    }

    .experience-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .experience-company-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .experience-content h3 {
        font-size: 1.4rem;
    }

    .experience-content h4 {
        font-size: 1.1rem;
    }

    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .experience-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
    }

    .highlight-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .highlight-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .highlight-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-content strong {
        font-size: 1.4rem;
    }

    .highlight-content span {
        font-size: 0.85rem;
    }

    .experience-achievements {
        font-size: 0.95rem;
    }

    .experience-achievements li {
        margin-bottom: 0.7rem;
        line-height: 1.6;
    }

    .research-card {
        flex-direction: column;
        padding: 1.8rem;
        gap: 1.5rem;
    }

    .research-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin: 0 auto;
    }

    .research-content h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .research-venue {
        font-size: 0.95rem;
        text-align: center;
    }

    .research-description {
        font-size: 0.95rem;
        text-align: center;
    }

    .research-tags {
        justify-content: center;
    }

    .research-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .research-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.3rem;
    }

    .skill-tags {
        gap: 0.4rem;
    }

    .tag {
        padding: 0.35rem 0.8rem;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .project-image {
        height: 180px;
    }

    .project-image-icon {
        font-size: 4rem;
    }

    .project-info {
        padding: 1.3rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }

    .opensource-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .opensource-card {
        padding: 1.5rem;
    }

    .opensource-header h3 {
        font-size: 1.3rem;
    }

    .opensource-description {
        font-size: 0.95rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p,
    .contact-item a {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        align-items: center;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-logo a {
        font-size: 1.25rem;
    }

    .hero {
        padding: 85px 0 45px;
    }

    .hero-content {
        gap: 1.5rem;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.7rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 13px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }

    .profile-image,
    .profile-placeholder {
        width: 185px;
        height: 185px;
    }

    .profile-placeholder {
        font-size: 3.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .about-text {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .lead {
        font-size: 1.08rem;
        line-height: 1.5;
    }

    .about-text p {
        margin-bottom: 1rem;
    }

    .stat {
        padding: 1.5rem 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.95rem;
        margin-top: 0.2rem;
    }

    .experience-card {
        padding: 1.5rem 1.2rem;
    }

    .experience-content h3 {
        font-size: 1.25rem;
    }

    .experience-content h4 {
        font-size: 1rem;
    }

    .experience-meta span {
        font-size: 0.85rem;
    }

    .experience-highlights {
        padding: 1rem;
        gap: 0.8rem;
    }

    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .highlight-content strong {
        font-size: 1.2rem;
    }

    .highlight-content span {
        font-size: 0.8rem;
    }

    .experience-achievements {
        font-size: 0.9rem;
    }

    .experience-achievements li {
        padding-left: 1.2rem;
        line-height: 1.5;
    }

    .research-card {
        padding: 1.5rem 1.2rem;
    }

    .research-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .research-content h3 {
        font-size: 1.25rem;
    }

    .research-venue {
        font-size: 0.9rem;
    }

    .research-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .research-link {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }

    .skill-card {
        padding: 1.3rem;
    }

    .skill-icon {
        font-size: 2.2rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    .tag {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    .project-image {
        height: 160px;
    }

    .project-image-icon {
        font-size: 3.5rem;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .opensource-card {
        padding: 1.3rem;
    }

    .opensource-icon {
        font-size: 1.8rem;
    }

    .opensource-header h3 {
        font-size: 1.2rem;
    }

    .opensource-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .stat-item {
        font-size: 0.85rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .contact-form .btn {
        width: 100%;
        max-width: 100%;
    }

    .footer p {
        font-size: 0.85rem;
    }

    .footer-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .image-container {
        width: 190px;
        height: 190px;
    }

    .profile-image,
    .profile-placeholder {
        width: 160px;
        height: 160px;
    }

    .profile-placeholder {
        font-size: 3rem;
    }

    .experience-card,
    .research-card,
    .skill-card,
    .opensource-card {
        padding: 1.2rem 1rem;
    }
}

#matrix-terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#matrix-terminal.terminal-hidden {
    display: none !important;
}

.terminal-container {
    width: 90%;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

.terminal-header {
    background: #0d0d0d;
    padding: 12px 20px;
    border-bottom: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.terminal-title {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
}

.terminal-close {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: bold;
}

.terminal-close:hover {
    background: #00ff00;
    color: #0a0a0a;
    box-shadow: 0 0 15px #00ff00;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

#terminal-output {
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-line {
    margin: 5px 0;
    animation: fadeIn 0.2s ease;
}

.terminal-input-line {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 10px #00ff00;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    text-shadow: 0 0 5px #00ff00;
}

#terminal-input::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

#terminal-input::selection {
    background: #00ff00;
    color: #0a0a0a;
}

.terminal-command {
    color: #00ff00;
    font-weight: bold;
}

.terminal-error {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

.terminal-success {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

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

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

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 80vh;
        max-height: none;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 14px;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 13px;
    }
    
    #terminal-input {
        font-size: 13px;
    }
}

.ai-search-bar-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 550px;
}

.ai-search-bar {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3),
                0 0 30px rgba(118, 75, 162, 0.2);
    transition: all 0.3s ease;
}

.ai-search-bar:hover {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4),
                0 0 40px rgba(118, 75, 162, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.ai-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}

.ai-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ai-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.ai-search-btn:active {
    transform: scale(0.95);
}

.ai-result-card {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 550px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(102, 126, 234, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.ai-result-card.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ai-result-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.ai-result-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
}

.ai-result-content {
    padding: 25px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    overflow-y: auto;
    max-height: 400px;
}

.ai-result-content strong {
    color: #667eea;
    font-weight: 600;
}

.ai-result-content a {
    color: #667eea;
    text-decoration: underline;
}

.ai-result-content a:hover {
    color: #764ba2;
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 16px;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-header {
    height: 20px;
    width: 40%;
    margin-bottom: 16px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.ai-result-content::-webkit-scrollbar {
    width: 6px;
}

.ai-result-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.ai-result-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.ai-result-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

@media (max-width: 768px) {
    .ai-search-bar-container {
        bottom: 20px;
        width: 95%;
    }
    
    .ai-search-bar {
        padding: 6px 16px;
    }
    
    .ai-search-input {
        font-size: 15px;
    }
    
    .ai-search-btn {
        width: 40px;
        height: 40px;
    }
    
    .ai-result-card {
        bottom: 90px;
        width: 95%;
        max-height: 350px;
    }
    
    .ai-result-content {
        padding: 20px;
        padding-top: 15px;
        font-size: 14px;
        max-height: 350px;
    }
    
    .ai-result-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
}

