:root {
    --primary-color: #ffc300;
    --secondary-color: #778da9;
    --accent-color: #e63946;
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --text-primary: #e5e5e5;
    --text-secondary: #8b949e;
    --card-bg: #161b22;
    --border-color: #30363d;
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.navbar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 195, 0, 0.5);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding-top: 80px;
    padding-bottom: 3rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 195, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 141, 169, 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    animation: fadeInUp 1s ease-out;
}

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

.hero-name {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffd60a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: underlineExpand 1.5s ease-out 1s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.hero-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.4rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-social {
    margin-top: 2rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 195, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
}

.social-link:hover::before {
    width: 60px;
    height: 60px;
}

.social-link:nth-child(1) { animation-delay: 1s; }
.social-link:nth-child(2) { animation-delay: 1.1s; }
.social-link:nth-child(3) { animation-delay: 1.2s; }
.social-link:nth-child(4) { animation-delay: 1.3s; }

/* Sections */
.section-padding {
    padding: 3rem 0;
}

.bg-dark {
    background: var(--bg-dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
    position: relative;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.8s ease;
}

.section-title.animate::after {
    width: 100px;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.subsection-title.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Info Cards */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.info-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(118, 141, 169, 0.15);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(118, 141, 169, 0.25);
    border-color: var(--secondary-color);
}

.skill-section {
    margin-top: 1rem;
}

.skill-section strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Achievements */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.achievement-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.achievement-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
}

/* Publications */
.publications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-30px);
}

.publication-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.publication-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.2);
    transform: translateX(10px) translateY(-3px);
}

.publication-item.highlight {
    border: 2px solid var(--primary-color);
    background: rgba(255, 195, 0, 0.05);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 195, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 195, 0, 0.3);
    }
}

.publication-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--secondary-color);
    color: var(--bg-darker);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.publication-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.publication-badge.accepted {
    background: #4ade80;
    color: var(--bg-darker);
}

.publication-badge.review {
    background: #fbbf24;
    color: var(--bg-darker);
}

.publication-badge.published {
    background: var(--secondary-color);
    color: var(--bg-darker);
}

.publication-badge.award {
    background: var(--primary-color);
    color: var(--bg-darker);
}

.publication-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.publication-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.authors {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-size: 0.95rem;
}

.authors strong {
    color: var(--primary-color);
    font-style: normal;
}

.venue {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.doi {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 195, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-item.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 195, 0, 0.25);
}

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

.project-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-tech {
    color: var(--secondary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.project-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.project-highlight {
    background: rgba(255, 195, 0, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 0.6rem;
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.experience-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(30px);
    position: relative;
}

.experience-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 0 0 12px;
    transition: height 0.4s ease;
}

.experience-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.experience-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.2);
    transform: translateX(10px) translateY(-3px);
}

.experience-item:hover::after {
    height: 100%;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.experience-company {
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.experience-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.experience-details li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

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

.experience-details li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 24px;
    transition: all 0.3s ease;
}

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

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

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 195, 0, 0.5);
}

.contact-item:hover a {
    color: var(--primary-color);
    transform: translateX(5px);
}

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

/* Footer */
.footer-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    color: var(--text-secondary);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
    }
    
    .experience-date {
        white-space: normal;
    }
    
    .social-link {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .hero-section {
        min-height: 60vh;
        padding-bottom: 2rem;
    }
    
    .info-card,
    .publication-item,
    .experience-item,
    .project-item {
        padding: 1.25rem;
    }
}
