/* ===================================
   Civil Engineering Portfolio 
   Blueprint & Architectural Theme
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #2C5F7A;
    --secondary-color: #4A90A4;
    --accent-color: #E17B34;
    --dark-blue: #1A3A4A;
    --light-blue: #E8F4F8;
    --blueprint-blue: #003D5B;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --border-color: #D1D5DB;
    --grid-color: rgba(44, 95, 122, 0.08);
    --background: #FFFFFF;
    --background-alt: #F9FAFB;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    position: relative;
    overflow-x: hidden;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers nav horizontally */
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem; /* even spacing between items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.nav-menu li a.active {
    border-bottom: 2px solid #0a5275; /* highlight color */
}
.nav-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    border-radius: 6px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   Page Headers
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    position: relative;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

/* ===================================
   Academic Profile Section (Homepage)
   =================================== */

.academic-profile-section {
    padding: 3rem 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-image-wrapper {
    position: relative;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-contact-brief {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.profile-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-link-btn {
    padding: 0.5rem 1rem;
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.profile-link-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.biography-section {
    margin-bottom: 2rem;
}

.biography-text {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-image-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-contact-brief {
        justify-content: center;
    }
    
    .profile-links {
        justify-content: center;
    }
}

/* ===================================
   Sections
   =================================== */

section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.link-arrow {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ===================================
   Homepage Compact Sections
   =================================== */

/* Research Interests Compact */
.research-interests-home {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.interests-compact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interest-compact-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.interest-compact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.interest-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.interest-compact-item h3 {
    font-size: 1.125rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.interest-compact-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Recent Projects Compact */
.recent-work-section {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-alt);
}

.recent-projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recent-project-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.recent-project-thumb {
    height: 150px;
    overflow: hidden;
    background: var(--background-alt);
}

.recent-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-project-item:hover .recent-project-thumb img {
    transform: scale(1.05);
}

.recent-project-info {
    padding: 1.5rem;
    padding-left: 0;
}

.project-meta-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.meta-category {
    padding: 0.25rem 0.75rem;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
}

.meta-date {
    color: var(--text-light);
}

.recent-project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.recent-project-info h3 a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: var(--transition);
}

.recent-project-info h3 a:hover {
    color: var(--primary-color);
}

.recent-project-info p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Recent Publications Compact */
.recent-publications-section {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.publications-compact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-compact-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.publication-compact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.pub-year-badge {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
    text-align: center;
    padding-top: 0.25rem;
}

.pub-info h3 {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.pub-venue {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.pub-links-compact {
    display: flex;
    gap: 1rem;
}

.pub-links-compact a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pub-links-compact a:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .recent-project-item {
        grid-template-columns: 1fr;
    }
    
    .recent-project-thumb {
        height: 200px;
    }
    
    .recent-project-info {
        padding: 1.5rem;
    }
    
    .publication-compact-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pub-year-badge {
        text-align: left;
    }
}

/* ===================================
   Research Section
   =================================== */

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

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

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

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

.research-card h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Research Detail Page */
.research-detail-grid {
    display: grid;
    gap: 3rem;
}

.research-detail-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

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

.research-description {
    color: var(--text-medium);
    line-height: 1.8;
}

.research-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--light-blue);
    border-radius: 12px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===================================
   Projects Section
   =================================== */

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--background-alt);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 95, 122, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    transition: var(--transition);
}

.project-link:hover {
    background: white;
    color: var(--primary-color);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.project-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

.project-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.project-title {
    font-size: 1.375rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.project-description {
    color: var(--text-medium);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.project-role {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--background-alt);
    color: var(--text-medium);
    font-size: 0.8125rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

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

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    background: white;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.filter-clear {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.filter-clear:hover {
    background: #c96929;
    color: white;
}

/* Project Detail */
.project-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.project-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

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

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-medium);
    margin: 0;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-link {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.detail-link:hover {
    background: var(--primary-color);
    color: white;
}

.project-main-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.project-description-section h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.text-content {
    color: var(--text-medium);
    line-height: 1.8;
}

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

.project-gallery h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-nav {
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .project-detail-content {
        grid-template-columns: 1fr;
    }
    
    .project-detail-sidebar {
        position: static;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Publications Section
   =================================== */

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

.publication-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.publication-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.publication-title {
    font-size: 1.125rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-authors {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-venue {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.publication-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 0.5rem;
}

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

.pub-link {
    padding: 0.375rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Publications Detail Page */
.year-group {
    margin-bottom: 3rem;
}

.year-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.publication-detail-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.publication-detail-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.publication-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.publication-abstract {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.publication-abstract summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.publication-abstract p {
    margin-top: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

@media (max-width: 768px) {
    .publication-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .publication-year {
        font-size: 1.25rem;
    }
}

/* ===================================
   Timeline (Education & Experience)
   =================================== */

.timeline-section {
    margin-bottom: 4rem;
}

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

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

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

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.timeline-date {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.timeline-institution {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.timeline-description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===================================
   About Page
   =================================== */

.about-section {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    margin-bottom: 4rem;
}

.about-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-bio h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.bio-text {
    color: var(--text-medium);
    line-height: 1.8;
}

.about-image .image-frame {
    width: 100%;
    max-width: 300px;
}

.about-details {
    margin-top: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.detail-list {
    list-style: none;
}

.detail-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list strong {
    color: var(--text-dark);
}

/* Awards */
.awards-section {
    margin-top: 4rem;
}

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

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

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

.award-date {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.award-card h3 {
    color: var(--dark-blue);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.award-issuer {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.award-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .about-main {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* ===================================
   Skills Page
   =================================== */

.skill-category {
    margin-bottom: 4rem;
}

.category-title {
    color: var(--dark-blue);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

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

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.skill-name {
    font-size: 1.125rem;
    color: var(--dark-blue);
    margin: 0;
}

.skill-level {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.skill-bar {
    height: 8px;
    background: var(--background-alt);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.skill-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.skills-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--light-blue);
    border-radius: 12px;
}

.skills-cta h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.skills-cta p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* ===================================
   Contact Page
   =================================== */

.contact-section {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-text p,
.contact-text a {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.contact-social {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-social h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--light-blue);
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.5rem;
}

.message-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.message-card h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.message-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.interest-list {
    list-style: none;
    margin: 1rem 0;
}

.interest-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-medium);
    position: relative;
}

.interest-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.cv-download {
    margin-top: 2rem;
}

.contact-links {
    margin-top: 4rem;
}

.contact-links h3 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.link-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-left-color: var(--accent-color);
}

.link-card h4 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-medium);
    margin: 0;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background: var(--accent-color);
    color: white;
}

/* ===================================
   Pagination
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.page-current {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* ===================================
   Empty State
   =================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-medium);
}

.empty-state p {
    font-size: 1.125rem;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.built-with {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* ===================================
   Main Content
   =================================== */

.main-content {
    min-height: calc(100vh - 400px);
}

/* ===================================
   Utility Classes
   =================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

