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

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

:root {
    --primary-blue: #0f4c81;
    --secondary-blue: #2563eb;
    --light-blue: #60a5fa;
    --lighter-blue: #93c5fd;
    --lightest-blue: #dbeafe;
    --dark-blue: #1e293b;
    --cyan: #06b6d4;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --off-white: #f9fafb;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
    --gradient-4: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-5: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-6: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-animated: linear-gradient(-45deg, #667eea, #764ba2, #2563eb, #06b6d4, #8b5cf6);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4), 0 0 40px rgba(102, 126, 234, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--secondary-blue);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--secondary-blue);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #667eea, #764ba2, #2563eb, #06b6d4, #8b5cf6);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    animation: profileFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 255, 255, 0.15);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-info a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hero-info a:hover {
    border-bottom-color: var(--white);
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.7;
    z-index: 1;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-alt {
    background: var(--off-white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    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: 120px;
    height: 5px;
    background: var(--gradient-3);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

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

.research-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.research-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.research-card:nth-child(1) .research-icon {
    background: var(--gradient-3);
}

.research-card:nth-child(2) .research-icon {
    background: var(--gradient-5);
}

.research-card:nth-child(3) .research-icon {
    background: var(--gradient-4);
}

.research-card:hover .research-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(102, 126, 234, 0.3);
}

.research-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.research-card p {
    color: var(--text-light);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInLeft 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -42px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-blue);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--light-blue);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--lightest-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.timeline-company {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--secondary-blue);
    transition: all 0.3s ease;
}

.publication-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.publication-badge {
    display: inline-block;
    background: var(--gradient-3);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.publication-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.publication-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.publication-authors {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.highlight-badge {
    background: var(--lightest-blue);
    color: var(--primary-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

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

.award-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.award-trophy {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.award-card:nth-child(1) .award-trophy {
    background: var(--gradient-3);
}

.award-card:nth-child(2) .award-trophy {
    background: var(--gradient-5);
}

.award-card:nth-child(3) .award-trophy {
    background: var(--gradient-4);
}

.award-card:nth-child(4) .award-trophy {
    background: var(--gradient-6);
}

.award-card:hover .award-trophy {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(102, 126, 234, 0.3);
}

.award-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.award-org {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.award-card p:last-child {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Skills and Education */
.skills-education-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.skills-section h3,
.education-section h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-category {
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.skill-category h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

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

.skill-tag {
    background: var(--lightest-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-tag:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--light-blue);
}

.education-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--light-blue);
}

.education-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.education-icon:hover {
    transform: scale(1.1) rotate(15deg);
}

.education-card h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.education-honors {
    color: var(--secondary-blue);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.education-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.education-details {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.education-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.education-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 2rem 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-blue);
    transform: translateY(-3px);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

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

    .hero-info {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -37px;
        width: 15px;
        height: 15px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .section {
        padding: 60px 20px;
    }
}
