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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #14b8a6;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-secondary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-medium);
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

/* Overview Page Specific Styles */
.overview-page {
    padding-top: 0;
}

/* Hero Section for Overview Page */
.hero-overview {
    min-height: 100vh;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: height 0.1s linear;
}

.hero-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content-overview {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1450px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.profile-photo-large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-text h1 {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    transition: font-size 0.1s linear;
}

.hero-text .subtitle {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.hero-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    transition: opacity 0.2s ease;
}

.hero-nav a {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Compact Navigation */
.compact-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.compact-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.profile-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Container */
.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem;
}

.page-content {
    padding-top: 3rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease;
}

.page-header h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 400;
}

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

/* Sections */
section {
    background: var(--bg-primary);
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Cards */
.experience-card,
.education-card,
.project-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.experience-card:hover,
.education-card:hover,
.project-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.experience-card h3,
.education-card h3,
.project-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.company,
.institution {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.date {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.experience-card ul,
.education-card ul,
.project-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-card li,
.education-card li {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
    position: relative;
}

.experience-card li::marker,
.education-card li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Tech Stack */
.tech-stack {
    color: var(--text-medium);
    margin: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Work Experience Section with Timeline */
.work-experience .timeline {
    position: relative;
    padding-left: 3rem;
}

.work-experience .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.work-experience .timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.work-experience .timeline-marker {
    position: absolute;
    left: -3.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 1;
}

.work-experience .experience-card {
    padding: 2rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.work-experience .experience-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

/* Skills with Progress Bars */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

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

.skill-category h4 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-item {
    margin-bottom: 1.25rem;
}

.skill-name {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

.skill-percentage {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

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

/* More Link */
.more-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1.05rem;
}

.more-link::after {
    content: 'â†’';
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

.more-link:hover::after {
    transform: translateX(5px);
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -3.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.timeline-content h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-content h2::after {
    display: none;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content li {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.timeline-content li::marker {
    color: var(--primary-color);
}

.tech-list {
    color: var(--text-medium);
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Education Detailed */
.edu-card-detailed {
    background: var(--bg-primary);
    margin-bottom: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

/* Education with Background Images */
.edu-header-with-bg {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.edu-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.edu-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.edu-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    overflow: hidden;
}

.edu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

.edu-header-content {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem 2rem 7rem;
    color: white;
}

.edu-header-content h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.edu-header-content h2::after {
    display: none;
}

.edu-header-content .institution {
    color: white;
    opacity: 0.95;
    font-size: 1.3rem;
}

.edu-header-content .date {
    color: white;
    opacity: 0.9;
}

.edu-content {
    padding: 2.5rem;
}

.edu-section {
    margin-bottom: 2.5rem;
}

.edu-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.edu-section ul {
    padding-left: 1.5rem;
}

.edu-section li {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.edu-section li::marker {
    color: var(--primary-color);
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

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

.cert-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.cert-card h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Awards Slideshow */
.awards-slideshow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
}

.award-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.award-slide.active {
    opacity: 1;
}

.award-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.award-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.award-info {
    text-align: center;
}

.award-info h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.award-info p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 10;
}

.slide-prev:hover,
.slide-next:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.slide-prev {
    left: 1rem;
}

.slide-next {
    right: 1rem;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Projects Sidebar Layout */
.projects-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.projects-sidebar {
    width: 25%;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.projects-sidebar h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.projects-menu {
    margin-bottom: 2rem;
}

.project-menu-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-menu-item:hover {
    transform: translateX(5px);
}

.project-menu-item.active {
    box-shadow: var(--shadow-md);
}

.project-menu-item.publication {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.25) 100%);
}

.project-menu-item.professional {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.25) 100%);
}

.project-menu-item.research {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.25) 100%);
}

.project-menu-item.personal {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
}

.project-number {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.category-legend {
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.category-legend h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.publication {
    background: var(--primary-color);
}

.legend-color.professional {
    background: var(--secondary-color);
}

.legend-color.research {
    background: var(--accent-color);
}

.legend-color.personal {
    background: #f59e0b;
}

/* Projects Content Area */
.projects-content {
    flex: 1;
    padding: 2rem 3rem;
    padding-top: 2rem;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

.project-detail {
    display: none;
}

.project-detail.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.project-detail h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.project-meta-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.category-badge.publication {
    background: var(--gradient-primary);
}

.category-badge.professional {
    background: var(--gradient-secondary);
}

.category-badge.research {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

.category-badge.personal {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.project-date {
    color: var(--text-light);
    font-weight: 600;
}

.project-links-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-image-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-section {
    margin-bottom: 3rem;
}

.project-section h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.project-section p {
    color: var(--text-medium);
    line-height: 1.9;
    font-size: 1.05rem;
}

.project-section ul {
    padding-left: 1.5rem;
}

.project-section li {
    margin-bottom: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.project-section li::marker {
    color: var(--primary-color);
}

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

.tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

/* Interests Gallery - Masonry Layout */
.interests-gallery {
    column-count: 3;
    column-gap: 2rem;
    margin-top: 2rem;
}

.interest-box {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.interest-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.interest-box-content {
    transition: var(--transition);
}

.interest-box:hover .interest-box-content {
    opacity: 0.2;
}

.interest-box-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.interest-box:hover .interest-box-hover {
    opacity: 1;
    pointer-events: auto;
}

.interest-hover-text {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.interest-hover-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.interest-hover-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.interest-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.interest-box h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.interest-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Awards Gallery - Masonry Layout */
.awards-gallery {
    column-count: 3;
    column-gap: 2rem;
    margin-top: 2rem;
}

.award-box {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.award-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.award-box-content {
    transition: var(--transition);
}

.award-box:hover .award-box-content {
    opacity: 0.2;
}

.award-box-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.award-box:hover .award-box-hover {
    opacity: 1;
    pointer-events: auto;
}

.award-hover-text {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.award-hover-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.award-hover-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.award-image-small {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.award-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.award-box h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.award-year {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Modal Styles */
.interest-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.interest-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.modal-body p {
    color: var(--text-medium);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.modal-image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.modal-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer with Contact */
footer {
    background: var(--bg-primary);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

footer h3 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-scroll-btn {
    cursor: pointer;
}

/* Intro Section Styling */
.intro {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-left: 5px solid var(--primary-color);
}

.intro p {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.9;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* Notable Projects Section */
.notable-projects {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* Interests Preview Section */
.interests-preview {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-left: 5px solid var(--accent-color);
}

.interests-preview p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-sidebar {
        width: 30%;
    }
    
    .hero-content-overview {
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .projects-layout {
        flex-direction: column;
    }
    
    .projects-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .projects-content {
        padding: 2rem;
    }
    
    .hero-content-overview {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-photo-large {
        width: 250px;
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .interests-gallery,
    .awards-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-accent);
        margin-top: 0.5rem;
        border: none;
    }
    
    .container {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2.6rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .page-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        text-align: center;
        width: 100%;
    }
    
    .interests-gallery,
    .awards-gallery {
        column-count: 1;
    }
    
    .hero-overview {
        min-height: auto;
        padding: 4rem 2rem;
    }
    
    .profile-photo-large {
        width: 200px;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-nav a {
        width: 100%;
        text-align: center;
    }
    
    .project-detail h1 {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
    
    .modal-body h2 {
        font-size: 2rem;
    }
    
    .slideshow-container {
        height: 400px;
    }
    
    .slide-prev,
    .slide-next {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.85rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-tabs,
    .gallery-filter {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1rem;
    }
    
    .profile-photo-large {
        width: 180px;
        height: 180px;
    }
    
    .profile-photo-small {
        width: 40px;
        height: 40px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .project-images {
        grid-template-columns: 1fr;
    }
    
    .slideshow-container {
        height: 350px;
    }
    
    .award-image-placeholder {
        height: 250px;
    }
}