/* ==========================================
   ACADEMIC WEBSITE - DR. MANUEL COBOS BUDIA
   Elegant, Modern & Professional Design
   ========================================== */

/* === VARIABLES === */
:root {
    --primary-blue: #1a56db;
    --secondary-blue: #0e4c92;
    --light-blue: #3b82f6;
    --very-light-blue: #eff6ff;
    --pale-blue: #c7d7fe;
    --dark-blue: #0c2340;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: rgba(15, 23, 42, 0.08);
    --shadow-hover: rgba(15, 23, 42, 0.12);
    --shadow-strong: rgba(15, 23, 42, 0.15);
    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text-medium);
    background: linear-gradient(to bottom, var(--bg-light), #ffffff);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

html {
    scroll-behavior: smooth;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-blue);
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--light-blue) 100%);
    color: var(--white);
    padding: 1.2rem 2rem 0.9rem;
    box-shadow: 0 8px 32px var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header-avatar:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
}

header h1 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header .subtitle {
    font-size: 0.9rem;
    color: var(--very-light-blue);
    margin-bottom: 0.2rem;
    font-weight: 400;
}

header .affiliation {
    font-size: 0.85rem;
    color: var(--pale-blue);
    font-weight: 300;
}

/* === NAVIGATION === */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === MAIN CONTENT === */
main {
    max-width: 1200px;
    margin: 4rem auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow), 0 8px 16px var(--shadow-hover);
    padding: 4rem 3.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

section:last-child {
    margin-bottom: 0;
}

/* === BIO HIGHLIGHT === */
.bio-highlight {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(255, 255, 255, 0.95));
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--primary-blue);
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(10px);
}

.bio-highlight p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.expertise-list li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.expertise-list i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

/* === TIMELINE (FORMACIÓN) === */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--light-blue), var(--accent-purple));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.3rem;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(239, 246, 255, 0.8), 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    border-color: var(--light-blue);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(255, 255, 255, 0.95));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateX(4px);
}

.timeline-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
}

.timeline-content .institution,
.timeline-content .date,
.timeline-content .thesis,
.timeline-content .supervisors,
.timeline-content .grade,
.timeline-content .specialization {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.timeline-content .institution {
    font-weight: 600;
    color: var(--text-dark);
}

.training-section {
    margin-top: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--pale-blue);
}

.training-list {
    list-style: none;
    padding: 0;
}

.training-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--very-light-blue);
}

.training-list li:last-child {
    border-bottom: none;
}

/* === EXPERIENCE GRID === */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: linear-gradient(135deg, var(--very-light-blue), rgba(255, 255, 255, 0.9));
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--primary-blue);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px var(--shadow-strong);
    border-left-color: var(--light-blue);
}

.experience-card.current {
    border-left-color: var(--light-blue);
    border-left-width: 6px;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--white) 100%);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.3rem;
}

.experience-card .institution {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.experience-card .date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.3rem 0;
}

.experience-card .description {
    margin: 1rem 0;
    line-height: 1.7;
}

.experience-card .keywords {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === BADGES === */
.badge-current,
.badge-ip,
.badge-tech,
.badge-team,
.badge-active,
.badge-q1,
.badge-q2,
.badge-corresponding,
.badge-chapter,
.badge-oss,
.badge-registered {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.badge-current,
.badge-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-ip {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-tech {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-team {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(199, 215, 254, 0.3));
    color: var(--primary-blue);
    border: 1px solid var(--pale-blue);
}

.badge-q1 {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-q2 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-corresponding {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.badge-chapter {
    background: linear-gradient(135deg, #64748b, #475569);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.badge-oss {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.4);
}

.badge-registered {
    background: linear-gradient(135deg, #78350f, #6b7280);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(120, 53, 15, 0.3);
}

/* === PROJECTS === */
.projects-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border: 2px solid rgba(199, 215, 254, 0.6);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px var(--shadow);
}

.project-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 32px var(--shadow-strong);
    transform: translateY(-6px) scale(1.01);
}

.project-card.featured {
    border-color: var(--light-blue);
    border-width: 3px;
    background: linear-gradient(to bottom, var(--very-light-blue), var(--white));
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--primary-blue);
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.project-ref,
.project-funding,
.project-period,
.project-ips,
.project-team,
.project-institution {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.project-description {
    margin: 1.2rem 0;
    line-height: 1.7;
}

.project-link a {
    color: var(--primary-blue);
    font-weight: 600;
}

/* === PUBLICATIONS === */
.publications-intro {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.9));
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 2px 12px var(--shadow);
}

.publications-intro .metrics {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.publications-list h3 {
    color: var(--primary-blue);
    margin: 2.5rem 0 1.5rem;
    font-size: 1.7rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, rgba(248, 250, 252, 0.5), var(--white));
    border-left: 5px solid var(--pale-blue);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.publication-item:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateX(8px) scale(1.01);
    border-left-color: var(--primary-blue);
}

.publication-item.featured {
    border-left-color: var(--light-blue);
    border-left-width: 6px;
    background: var(--very-light-blue);
}

.pub-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 60px;
    text-align: center;
}

.pub-content {
    flex: 1;
}

.pub-authors {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pub-authors strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pub-journal {
    font-style: italic;
    margin-bottom: 0.7rem;
    color: var(--text-medium);
}

.pub-impact,
.pub-citations {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.3rem 0;
}

.pub-link {
    display: inline-block;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.pub-link:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.congress-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--very-light-blue);
    border-radius: 10px;
}

.congress-summary {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.congress-list {
    list-style: none;
    padding: 0;
}

.congress-list li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.congress-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* === SOFTWARE === */
.software-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.software-card {
    background: var(--white);
    border: 2px solid rgba(199, 215, 254, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--shadow);
}

.software-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 32px var(--shadow-strong);
    transform: translateY(-8px) scale(1.01);
}

.software-card.featured {
    border-color: var(--light-blue);
    border-width: 3px;
    background: var(--very-light-blue);
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.software-header h3 {
    color: var(--primary-blue);
    margin: 0;
}

.software-desc {
    margin: 1rem 0;
    line-height: 1.7;
}

.software-tech,
.software-ip,
.software-date {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: var(--text-light);
}

.software-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.software-links a {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.software-links a:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tech-stack {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--very-light-blue);
    border-radius: 10px;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.tech-category h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-badge {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px solid var(--pale-blue);
    color: var(--text-dark);
    font-weight: 500;
}

/* === TEACHING === */
.teaching-intro {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.9));
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 2px 12px var(--shadow);
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.teaching-card {
    background: var(--white);
    border: 2px solid rgba(199, 215, 254, 0.5);
    padding: 2.2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--shadow);
}

.teaching-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px var(--shadow-strong);
    transform: translateY(-6px);
}

.teaching-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.teaching-program {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.teaching-type,
.teaching-credits,
.teaching-date {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.teaching-desc {
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.supervision-section,
.innovation-section,
.seminars-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--very-light-blue);
    border-radius: 10px;
}

.supervision-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.supervision-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
}

.thesis-title {
    font-style: italic;
    margin: 0.5rem 0;
}

.innovation-list,
.seminars-list {
    list-style: none;
    padding: 0;
}

.innovation-list li,
.seminars-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--light-blue);
}

/* === AWARDS === */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.award-card {
    display: flex;
    gap: 2rem;
    background: var(--white);
    border: 2px solid rgba(199, 215, 254, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--shadow);
}

.award-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-strong);
}

.award-card.featured {
    border-color: var(--light-blue);
    border-width: 3px;
    background: linear-gradient(135deg, var(--very-light-blue), var(--white));
}

.award-icon {
    font-size: 3rem;
    color: var(--light-blue);
}

.award-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
}

.award-desc {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--text-dark);
}

.award-org,
.award-year,
.award-note {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* === METRICS === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metric-card {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-strong);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px var(--shadow-strong);
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    font-weight: 500;
}

.research-ids {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--very-light-blue);
    border-radius: 10px;
}

.ids-list {
    list-style: none;
    padding: 0;
}

.ids-list li {
    padding: 0.7rem 0;
    font-size: 1.05rem;
}

/* === OUTREACH === */
.outreach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.outreach-card {
    background: var(--white);
    border: 2px solid var(--pale-blue);
    padding: 2rem;
    border-radius: 12px;
}

.outreach-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

.outreach-card ul {
    list-style: none;
    padding: 0;
}

.outreach-card li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--very-light-blue);
}

.outreach-card li:last-child {
    border-bottom: none;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(21, 101, 192, 0.95), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    color: var(--white);
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--very-light-blue);
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info {
    background: var(--very-light-blue);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

.contact-info p {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.contact-links h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    background: var(--white);
    border: 2px solid var(--pale-blue);
    color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--shadow);
}

.contact-btn:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.contact-btn.email {
    border-color: var(--primary-blue);
}

.contact-btn.orcid {
    border-color: #a6ce39;
}

.contact-btn.researchgate {
    border-color: #00ccbb;
}

.contact-btn.github {
    border-color: #333;
}

.contact-btn.scopus {
    border-color: #f36e21;
}

.contact-btn i {
    font-size: 1.5rem;
}

.quote-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--very-light-blue), var(--white));
    border-left: 5px solid var(--primary-blue);
    border-radius: 10px;
}

.quote-section blockquote {
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    padding: 1rem 0;
}

.quote-section .fa-quote-left,
.quote-section .fa-quote-right {
    font-size: 2rem;
    color: var(--light-blue);
    opacity: 0.3;
}

/* === FOOTER === */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    main {
        padding: 2.5rem 2rem;
    }
    
    .experience-grid,
    .teaching-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    header .subtitle {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    main {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .experience-grid,
    .software-grid,
    .teaching-grid,
    .awards-grid,
    .outreach-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pub-year {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header-avatar {
        width: 100px;
        height: 100px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}