/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.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);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.nav-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-logo-link:hover h3 {
    color: #1d4ed8;
}

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

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #1f2937;
    padding: 120px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1,
.hero-content h2,
.hero-content .hero-subtitle {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.hero-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #374151;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 22px;
    background: transparent;
    color: #2563eb;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1.5px solid #2563eb;
    justify-content: flex-start;
}

.hero-btn:hover {
    background: #2563eb;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section.page-section-first {
    padding-top: 120px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About Section */
.about {
    background: #fafafa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: #2563eb;
    font-size: 1.2rem;
}

.info-item span {
    font-weight: 500;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

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

.education-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
}

.education-period {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

.education-degree {
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.education-location {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.education-gpa {
    font-weight: 500;
    margin-bottom: 1rem;
}

.coursework h4,
.achievements h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.coursework ul,
.achievements ul {
    list-style: none;
    padding-left: 0;
}

.coursework li,
.achievements li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.coursework li:before,
.achievements li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Research Section */
.research {
    background: #fafafa;
}

/* Projects Section */
.projects {
    background: white;
}

.research-timeline {
    position: relative;
    padding-left: 2rem;
}

.research-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.research-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.research-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 11px;
    height: 11px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.research-date {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.research-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.research-content-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.research-image-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 300px;
}

.research-pdf-preview {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.research-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.research-org {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.research-location {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.research-advisor {
    color: #2563eb;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1rem;
}

.research-details ul {
    list-style: none;
    padding-left: 0;
}

.research-details li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.research-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Academic Projects Layout */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.project-description {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem;
}

.project-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.project-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-images {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.project-images img {
    flex: 1 1 45%;
    min-width: 0;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.project-images.stacked {
    flex-direction: column;
}

.project-images.three-col img {
    flex: 1 1 28%;
}

.project-images.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.project-images.mosaic img:first-child {
    grid-column: 1 / -1;
}

.project-pdf {
    width: 100%;
    height: 420px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Skills Section */
.skills {
    background: #fafafa;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.skill-category i {
    color: #2563eb;
}

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

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Awards Section */
.awards {
    background: white;
}

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

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

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

.award-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.award-date {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.award-authority {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.award-location {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.award-description {
    line-height: 1.6;
}

.award-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.award-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Publications Section */
.publications {
    background: #fafafa;
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.publication-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.publication-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.publication-type {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.publication-date {
    color: #6b7280;
    font-weight: 500;
}

.publication-venue {
    color: #6b7280;
    font-style: italic;
}

.publication-location {
    color: #6b7280;
    margin-bottom: 1rem;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #2563eb;
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
}

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

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #fafafa;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        border-top: 1px solid #e5e7eb;
    }

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

    .hamburger {
        display: block;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 20px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        flex: 0 0 auto;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

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

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

    .hero-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .award-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .award-date {
        text-align: left;
    }

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

    .research-timeline {
        margin-left: 0;
    }

    .research-item {
        margin-left: 0;
    }

    .research-content-with-image {
        grid-template-columns: 1fr;
    }

    .project-layout {
        grid-template-columns: 1fr;
    }

    .research-image {
        max-height: 200px;
    }

    .research-pdf-preview {
        height: 300px;
    }

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

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

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

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

    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero-container {
        padding: 0 15px;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

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

    section {
        padding: 50px 0;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
} 