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

:root {
    /* Pastel Color Palette */
    --pastel-pink: #FFB5C2;
    --pastel-peach: #FFDAB9;
    --pastel-lavender: #E6E6FA;
    --pastel-mint: #B5EAD7;
    --pastel-blue: #C7CEEA;
    --pastel-yellow: #FFF4B8;
    --pastel-coral: #FFB4A2;
    
    /* Main Colors */
    --primary-color: #6B5B7B;
    --secondary-color: #7BA8AA;
    --accent-color: #D89BC7;
    --light-bg: #FFFFFF;
    --white: #FFFFFF;
    --text-dark: #3A3A3A;
    --text-light: #6B6B6B;
    --heading-dark: #2D2D2D;
    --border-color: #F0E6F6;
    --shadow: 0 2px 15px rgba(107, 91, 123, 0.1);
    --shadow-hover: 0 5px 25px rgba(107, 91, 123, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 150px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FFFFFF;
}

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

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-lavender));
    transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.5) 0%, rgba(181, 234, 215, 0.5) 50%, rgba(199, 206, 234, 0.5) 100%);
    color: var(--text-dark);
    padding: 6rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background image support - add your image */
.hero.with-background {
    background-image: url('hero-background.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero.with-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.3) 0%, rgba(181, 234, 215, 0.3) 50%, rgba(199, 206, 234, 0.3) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 181, 194, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

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

.hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--white);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(107, 91, 123, 0.3);
    animation: fadeIn 1.5s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--heading-dark);
}

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

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.hero-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 91, 123, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(107, 91, 123, 0.3);
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-lavender));
    color: var(--white);
}

/* Sections */
.section {
    padding: 8rem 2rem 5rem 2rem;
    background: var(--white);
}

.section-alt {
    background: #FFFFFF;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--heading-dark);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-lavender), var(--pastel-mint));
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.research-interests {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-mint) 100%);
    border-radius: 20px;
}

.research-interests h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-dark);
    font-weight: 700;
}

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

.tag {
    padding: 0.5rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(107, 91, 123, 0.1);
    font-weight: 500;
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-peach));
    color: var(--white);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--pastel-pink), var(--pastel-lavender), var(--pastel-mint));
}

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

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-lavender));
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--pastel-lavender);
}

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

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pastel-lavender);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-yellow));
    color: var(--heading-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--heading-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

.timeline-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.timeline-content ul {
    margin-left: 1.5rem;
    color: var(--text-light);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

.highlights h5 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--heading-dark);
    font-weight: 600;
}

.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-lavender));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    border: none;
    font-weight: 500;
}

.advisor {
    font-style: italic;
    color: var(--text-light);
}

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

.education-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    border: 2px solid var(--border-color);
}

.education-card:nth-child(1) {
    border-top: 4px solid var(--pastel-pink);
}

.education-card:nth-child(2) {
    border-top: 4px solid var(--pastel-lavender);
}

.education-card:nth-child(3) {
    border-top: 4px solid var(--pastel-mint);
}

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

.degree-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.3rem;
    color: var(--heading-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gpa {
    color: var(--text-dark);
    font-weight: 600;
}

/* Publications */
.pub-category {
    margin-bottom: 4rem;
}

.pub-category h3 {
    font-size: 1.8rem;
    color: var(--heading-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--pastel-pink);
    animation: fadeIn 0.6s ease;
}

.pub-card:nth-child(2n) {
    border-left-color: var(--pastel-lavender);
}

.pub-card:nth-child(3n) {
    border-left-color: var(--pastel-mint);
}

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

.pub-year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--pastel-coral), var(--pastel-peach));
    color: var(--white);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pub-card h4 {
    font-size: 1.1rem;
    color: var(--heading-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}

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

.award-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    border: 2px solid var(--border-color);
}

.award-card:nth-child(1) { background: linear-gradient(135deg, rgba(255, 181, 194, 0.1), transparent); }
.award-card:nth-child(2) { background: linear-gradient(135deg, rgba(230, 230, 250, 0.1), transparent); }
.award-card:nth-child(3) { background: linear-gradient(135deg, rgba(181, 234, 215, 0.1), transparent); }
.award-card:nth-child(4) { background: linear-gradient(135deg, rgba(199, 206, 234, 0.1), transparent); }
.award-card:nth-child(5) { background: linear-gradient(135deg, rgba(255, 244, 184, 0.1), transparent); }
.award-card:nth-child(6) { background: linear-gradient(135deg, rgba(255, 180, 162, 0.1), transparent); }

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

.award-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.award-card h4 {
    font-size: 1.1rem;
    color: var(--heading-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.award-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 181, 194, 0.1), var(--white));
}

.contact-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.1), var(--white));
}

.contact-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(181, 234, 215, 0.1), var(--white));
}

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

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--heading-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-mint));
    color: var(--text-dark);
    text-align: center;
    padding: 2rem;
    font-weight: 500;
}

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

@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 float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

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

    .section {
        padding: 3rem 1rem;
    }

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.5rem;
    }

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

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

@media (max-width: 480px) {
    .hero-img {
        width: 150px;
        height: 150px;
    }

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

    .nav-container {
        padding: 1rem;
    }

    .hero-links {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }
}

/* Extra spacing for About section to prevent overlap */
#about {
    padding-top: 10rem !important;
    margin-top: 2rem;
}

/* Ensure section titles have proper spacing */
.section-title {
    padding-top: 1rem;
}
