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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

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

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Hero Section (Home page) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.intro-text p {
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Content Sections */
.highlights-section,
.research-content,
.publications-content,
.presentations-content,
.teaching-content,
.cv-content,
.contact-content {
    padding: 4rem 0;
    background: white;
}

.highlights-section {
    background: #f8f9fa;
}

.highlights-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
}

.highlight-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Research Page Styles */
.research-areas {
    margin-bottom: 4rem;
}

.research-item {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
}

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

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

.research-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Publications Page Styles */
.publication-year {
    margin-bottom: 3rem;
}

.publication-year h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

.publication-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #27ae60;
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.authors {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.journal {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 1rem;
}

.equal-contribution {
    color: #e67e22;
    font-size: 0.9rem;
    font-style: italic;
}

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

.pub-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: #3498db;
    color: white;
}

/* Presentations Page Styles */
.presentation-categories {
    margin-bottom: 3rem;
}

.presentation-category {
    margin-bottom: 3rem;
}

.presentation-category h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.presentation-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.presentation-item.oral {
    border-left: 5px solid #27ae60;
}

.presentation-item.poster {
    border-left: 5px solid #9b59b6;
}

.presentation-item.highlight {
    border-left: 5px solid #f39c12;
    background: #fffbf0;
}

.presentation-item:hover {
    transform: translateY(-3px);
}

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

.presentation-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
}

.presentation-date {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.presentation-location {
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.presentation-title {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.presentation-type {
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.highlight-badge {
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Teaching Page Styles */
.teaching-sections {
    margin-bottom: 3rem;
}

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

.teaching-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.teaching-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #3498db;
}

.teaching-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.teaching-item p:first-of-type {
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info,
.professional-links {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-info h2,
.professional-links h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

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

.professional-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.professional-link:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

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

.link-info h4 {
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.link-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cv-link-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cv-link-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cv-link-section a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

.footer p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}



/* Hide removed sections */
.collaboration-note {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .presentation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Abstract content styling with smooth slide effect */
.abstract-content {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 0 1rem; /* No vertical padding initially */
    font-size: 0.98rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    
    /* Sliding animation properties */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.4s ease-out;
}

/* When abstract is shown */
.abstract-content.show {
    max-height: 500px; /* Adjust based on your longest abstract */
    opacity: 1;
    padding: 1rem; /* Full padding when expanded */
}

/* Abstract toggle button styling */
.abstract-toggle-btn {
    margin-left: 1rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    background-color: #fff;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.abstract-toggle-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

.abstract-toggle-btn:active {
    transform: translateY(0);
}

/* Hamburger Menu - hidden by default */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.hamburger .bar {
    height: 3px;
    width: 25px;
    background-color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-top: 1px solid #f1f1f1;
        border-radius: 0;
    }
    
    .nav-links a:first-child {
        border-top: none;
    }
    
    .nav-links a.active::after {
        display: none;
    }
}

.abstract-content {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0;
  font-size: 0.98rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  max-height: 0;
  overflow-y: hidden;
  opacity: 0;
  transition:
    max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
    padding 0.3s ease,
    opacity 0.3s ease;
}
.abstract-content.show {
  opacity: 1;
  max-height: 200px;
  padding: 1rem;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .abstract-content.show {
    max-height: 90vh;
  }
}

/* Make links inherit the text color */
a {
  color: inherit;           /* Use parent element's color */
  text-decoration: none;    /* Remove underline (optional) */
}

a:visited {
  color: inherit;           /* Keep same color after being clicked */
}

a:hover {
  text-decoration: underline; /* Optional: show underline on hover for usability */
}
