/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
   :root {
    --primary-color: #d4af37; /* Elegant Gold */
    --primary-dark: #b5952f;
    --primary-light: #f4d068; /* Warm gold */
    --secondary-color: #1a1a2e; /* Deep Navy/Dark */
    --bg-dark: #0f0f1a;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --gray-light: #e0e2e9;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-light); }
.dark-bg { 
    background-color: var(--bg-dark); 
    color: var(--text-light);
}

.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; }
.section-header.center { text-align: center; }
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}
.divider.mx-auto { margin: 1rem auto 2rem auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary.outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-primary.outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover { color: #fff; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.btn-contact {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--primary-color);
}
.btn-contact::after { display: none; }
.btn-contact:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 26, 0.9) 0%, rgba(15, 15, 26, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 10%;
}

.hero .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero .title {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-badges-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 580px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-badges-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 680px;
        gap: 1.5rem;
    }
}

.hero-badge-card {
    display: block;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

.hero-badge-card:hover {
    transform: translateY(-3px);
}

/* Gold Achievement Card Styling */
.card-achievement {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(15, 15, 26, 0.4) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-left: 4px solid var(--primary-color);
}

.card-achievement:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 15, 26, 0.6) 100%);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.card-achievement .badge-header i {
    color: var(--primary-color);
    animation: pulse-gold 2s infinite;
}

.card-achievement .badge-header span {
    color: var(--primary-light);
}

/* Red COVID-19 Card Styling */
.card-covid {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(15, 15, 26, 0.4) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid #ef4444;
}

.card-covid:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(15, 15, 26, 0.6) 100%);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

.card-covid .badge-header i {
    color: #ef4444;
    animation: pulse-red 2s infinite;
}

.card-covid .badge-header span {
    color: #ff8080;
}

/* Shared Badge Typography */
.badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.badge-header i {
    font-size: 1rem;
}

.badge-header span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge-body {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.badge-body strong {
    color: #ffffff;
}

@keyframes pulse-gold {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}


.hero-metrics {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: nowrap; /* Enforce single row */
}
@media (max-width: 576px) {
    .hero-metrics {
        gap: 1.5rem;
    }
    .hero-metric-num {
        font-size: 2.2rem;
    }
    .hero-metric-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}
.hero-metric-item {
    display: flex;
    flex-direction: column;
}
.hero-metric-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    text-shadow: 0 0 15px rgba(244, 208, 104, 0.35);
}
.hero-metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid-new {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .about-grid-new {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Timeline Biography */
.bio-timeline {
    position: relative;
    padding-left: 5rem;
    border-left: 3px solid rgba(212, 175, 55, 0.2);
    margin-left: 20px;
}

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

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

.bio-time {
    position: absolute;
    left: -9.5rem;
    top: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    width: 8rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bio-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.bio-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: rgba(212, 175, 55, 0.2);
}

.bio-content h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bio-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Side Cards */
.bio-side-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}

.bio-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.bio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.bio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.bio-card-header i {
    font-size: 1.5rem;
}

.bio-card-header h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.bio-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* COVID-19 Card Styling */
.covid-card {
    background: linear-gradient(135deg, #fff 0%, #fff0f0 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.covid-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.video-links-wrapper {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-btn {
    background: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.video-btn i {
    font-size: 1.2rem;
}

.video-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.video-btn:hover i {
    color: #ffffff !important;
}

/* ==========================================================================
   Academic Section (Glassmorphism)
   ========================================================================== */
.academic {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a4a 100%);
    position: relative;
    overflow: hidden;
}

.academic::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.2;
    top: -100px;
    right: -100px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.academic-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}
.icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}
.icon-wrap i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ==========================================================================
   Evkaf Section
   ========================================================================== */
.evkaf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.evkaf-info .years {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.evkaf-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.evkaf-list {
    margin-top: 2rem;
}
.evkaf-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}
.evkaf-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.evkaf-image {
    height: 400px;
    background: linear-gradient(135deg, var(--bg-dark), var(--secondary-color));
    border-color: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.concept-graphic {
    text-align: center;
    color: var(--primary-color);
}
.concept-graphic i {
    font-size: 5rem;
    margin-bottom: 1rem;
}
.concept-graphic span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

/* ==========================================================================
   Media / Video Grid
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #33334d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1; /* Behind iframe if iframe loads, visible if iframe is removed */
}
.video-placeholder.dark {
    background: linear-gradient(45deg, #0f0f1a, #1a1a2e);
}
.video-placeholder i {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.video-info {
    padding: 1.5rem;
}
.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}
.video-info .date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h2 {
    color: #fff;
    font-size: 2rem;
}
.footer-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact h3 {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero .title { font-size: 3.5rem; }
    .about-grid, .evkaf-layout { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.2rem; }
    
    .hero .title { font-size: 2.8rem; }
    .hero-content { padding: 0 5%; }
    .hero-buttons { flex-direction: column; }
    
    .section { padding: 4rem 0; }
    .glass-panel { padding: 2rem; }
}

/* ==========================================================================
   Profile Image in Hero
   ========================================================================== */
.profile-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: inline-block;
}
.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Publications Section
   ========================================================================== */
.publications-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}
.publications-container::-webkit-scrollbar {
    width: 8px;
}
.publications-container::-webkit-scrollbar-track {
    background: #f0f0f0; 
    border-radius: 4px;
}
.publications-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); 
    border-radius: 4px;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pub-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}
.pub-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-family: var(--font-primary);
}
.pub-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pub-year {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 0.5rem;
}
.pub-authors {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

/* New Hero Layout Styles */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-image-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}



@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 50px;
    }
    .hero-content {
        text-align: center;
        margin-top: 20px;
    }
    .hero-image-right img {
        max-width: 250px;
    }
}

/* Bibliometrics */
.bibliometrics {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.biblio-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--primary-light); /* Top accent border in gold */
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.biblio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(244, 208, 104, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.biblio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(244, 208, 104, 0.3);
}
.biblio-item:hover::before {
    opacity: 1;
}
.biblio-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 15px rgba(244, 208, 104, 0.25);
    letter-spacing: -1px;
}
.biblio-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* CV Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--primary-light);
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.2);
    z-index: 2;
    transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--primary-light);
}
.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.timeline-content h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.2);
    background-color: white;
}

.pub-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.pub-title-link:hover .pub-title {
    color: var(--primary-light);
    text-decoration: underline;
}

.bibliometrics-strip {
    background: linear-gradient(135deg, var(--bg-dark), #1a2a3a);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bibliometrics-strip .bibliometrics {
    margin-top: 0;
    justify-content: center;
}

/* Better Hero Image Styling */
.hero-image-right {
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.hero-image-right img {
    width: 100%;
    max-width: 380px;
    height: 480px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 4px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

/* Add a decorative element behind the image */
.hero-image-right::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 480px;
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    top: 20px;
    right: -20px;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-image-right {
        justify-content: center;
        margin-bottom: 30px;
    }
    .hero-image-right::before {
        display: none;
    }
    .hero-image-right img {
        height: auto;
        aspect-ratio: 3/4;
    }
}

/* Academic Layout with Sidebar Tabs */
.academic-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Sidebar Styling */
.academic-sidebar {
    flex: 0 0 250px; /* Fixed width for sidebar */
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.custom-tabs .nav-item {
    margin-bottom: 5px;
}

.custom-tabs .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    border-left: 3px solid transparent;
}

/* Orange/Red Tab Indicator like in the screenshot */
.tab-indicator {
    width: 12px;
    height: 12px;
    background-color: #f05a30; /* Orange/Red from the image */
    border-radius: 3px;
    margin-right: 15px;
    display: inline-block;
}

.custom-tabs .nav-link:hover {
    background: #f0f0f0;
}

.custom-tabs .nav-link.active {
    background: #eaeaea; /* Light grey active background */
    border-left: 3px solid #f05a30; /* Highlight border */
    color: #000;
}

/* Tab Panes */
.academic-panes {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.show.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Tables styling pulled from Final Uni */
.custom-academic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.custom-academic-table th,
.custom-academic-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.custom-academic-table th {
    background-color: #f4f4f4;
    font-weight: 600;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .academic-layout {
        flex-direction: column;
    }
    .academic-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
    .academic-panes {
        width: 100%;
    }
}

/* ============================================
   Custom Akademik CV Tabs (Kendi Tasarım)
   ============================================ */

.academic-cv-section {
    background: #fff;
}

.cv-tabs-layout {
    display: flex;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    margin-top: 40px;
}

/* Sidebar */
.cv-tab-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    background: #0f0f1a;
    padding: 12px 0;
}

.cv-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.cv-tab-btn i {
    font-size: 15px;
    width: 18px;
    flex-shrink: 0;
}

.cv-tab-btn span:first-of-type {
    flex: 1;
}

.cv-tab-count {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

.cv-tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    border-left-color: rgba(212,175,55,0.4);
}

.cv-tab-btn.active {
    background: rgba(212,175,55,0.12);
    color: var(--primary-color, #d4af37);
    border-left-color: var(--primary-color, #d4af37);
}

.cv-tab-btn.active .cv-tab-count {
    background: var(--primary-color, #d4af37);
    color: #0f0f1a;
}

/* Content Pane */
.cv-tab-content {
    flex: 1;
    background: #fafafa;
    padding: 32px;
    overflow: hidden;
}

.cv-pane {
    display: none;
}

.cv-pane.active {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

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

.pane-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #d4af37);
}

/* Styled Table */
.cv-table-wrap {
    overflow-x: auto;
}

.cv-styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cv-styled-table thead th {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.03em;
}

.cv-styled-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s;
}

.cv-styled-table tbody tr:hover {
    background: #f0f4ff;
}

.cv-styled-table tbody td {
    padding: 13px 16px;
    color: #333;
    vertical-align: top;
}

/* Publications */
.pub-cards-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.pub-year-group {
    margin-bottom: 20px;
}

.pub-year-badge {
    display: inline-block;
    background: var(--primary-color, #d4af37);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.pub-item-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border-color: var(--primary-color, #d4af37);
}

.pub-cat-badge {
    flex-shrink: 0;
    background: #1a1a2e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
}

.pub-item-card p {
    font-size: 13.5px;
    color: #333;
    line-height: 1.55;
    margin: 0;
}

/* Scrollbar styling */
.pub-cards-list::-webkit-scrollbar { width: 5px; }
.pub-cards-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.pub-cards-list::-webkit-scrollbar-thumb { background: var(--primary-color, #d4af37); border-radius: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .cv-tabs-layout {
        flex-direction: column;
    }
    .cv-tab-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset;
        padding: 8px;
        gap: 4px;
    }
    .cv-tab-btn {
        padding: 10px 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        flex: 1 1 auto;
        font-size: 12px;
    }
    .cv-tab-btn.active {
        border-bottom-color: var(--primary-color, #d4af37);
        border-left-color: transparent;
    }
    .cv-tab-content {
        padding: 20px 16px;
    }
}

/* Align first column of tables perfectly with left side */
.cv-styled-table th:first-child,
.cv-styled-table td:first-child {
    padding-left: 0 !important;
}

/* Evkaf Accordion */
.evkaf-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
}
.accordion-item {
    background: #fff;
    border: 1px solid #e0e2e9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.08);
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}
.accordion-header i:first-child {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}
.accordion-header .toggle-icon {
    margin-left: auto;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}
.accordion-item.active .accordion-content {
    max-height: 640px;
    padding: 0 24px 20px 24px;
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
}
.accordion-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Multilingual Visibility Control */
body.lang-tr .lang-en {
    display: none !important;
}
body.lang-en .lang-tr {
    display: none !important;
}

/* Language Switcher Button Styles */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5); /* muted on dark header */
    cursor: pointer;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: var(--font-primary);
    transition: all 0.25s ease;
}
/* If navbar is transparent/dark vs light scrolled state */
.navbar.scrolled .lang-btn {
    color: var(--text-muted);
}
.lang-btn.active, .lang-btn:hover {
    color: var(--primary-color) !important;
}
.lang-divider {
    color: rgba(255, 255, 255, 0.3);
}
.navbar.scrolled .lang-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 991px) {
    .lang-switch {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    .lang-btn {
        color: var(--text-muted);
        font-size: 1rem;
        padding: 5px 10px;
    }
    .lang-divider {
        color: var(--text-muted);
        opacity: 0.5;
    }
}

/* ==========================================================================
   Scientific Achievement & Clinical Trials Section Styling
   ========================================================================== */
.scientific-achievement {
    background-color: var(--bg-light);
}

.achievement-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .achievement-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    padding: 3rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary-color);
}

.discovery-details-card h3, .trials-details-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.8rem;
}

.discovery-details-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.trials-intro {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.trial-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trial-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.trial-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-left-color: var(--primary-color);
}

.nct-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.trial-item h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    max-width: calc(100% - 100px);
}

.trial-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.trial-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

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

.trials-footer {
    margin-top: 2rem;
    text-align: left;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* CV Request Button in Navbar */
.btn-cv-request {
    background-color: var(--primary-color);
    color: #1a1a2e !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
}
.btn-cv-request:hover {
    background-color: var(--primary-light);
    color: #1a1a2e !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   CV Request Modal Styling
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #f0f2f5;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #98a2b3;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: #344054;
    transform: scale(1.1);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #101828;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.modal-subtitle {
    color: #475467;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .modal-card {
        padding: 1.5rem;
    }
}

.form-group-half, .form-group-full {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #344054;
    letter-spacing: 0.5px;
}

.char-count {
    font-size: 0.7rem;
    color: #98a2b3;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form textarea {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: #1d2939;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    width: 100%;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #98a2b3;
}

.form-consent {
    margin: 0.4rem 0;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #d0d5dd;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.85rem;
    color: #475467;
    line-height: 1.4;
}

.btn-modal-submit {
    background: #d0d5dd;
    color: #344054;
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-modal-submit:hover {
    background: #b9c0cb;
}

.modal-form:valid .btn-modal-submit {
    background: var(--secondary-color);
    color: #ffffff;
}

.modal-form:valid .btn-modal-submit:hover {
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}

/* ==========================================================================
   CV Component Styles
   ========================================================================== */
.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.highlight-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.highlight-list li i {
    font-size: 1.2rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* CV Timeline */
.timeline-cv {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(26, 26, 46, 0.1);
}

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

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

.timeline-cv-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fafafa;
}

.t-year {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.t-content h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.t-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Two Column Grid */
.cv-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .cv-grid-two {
        grid-template-columns: 1fr;
    }
}

.cv-grid-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.cv-grid-card h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.cv-bullet-list {
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   Final Responsive & UX Polish
   ========================================================================== */
:focus-visible {
    outline: 3px solid rgba(244, 208, 104, 0.85);
    outline-offset: 4px;
}

section[id] {
    scroll-margin-top: 86px;
}

.navbar {
    min-height: 72px;
}

.nav-backdrop {
    display: none;
}

.hamburger {
    position: relative;
    z-index: 1102;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    margin-left: auto;
}

.hero {
    height: auto;
    min-height: clamp(760px, 100vh, 820px);
    padding: 92px 0 48px;
    overflow: hidden;
}

.hero-container {
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
    padding: 0;
}

.hero .title {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero .description {
    font-size: 1.12rem;
}

.hero-badge-card,
.bio-card,
.cv-grid-card,
.pub-card,
.video-card,
.trial-item {
    border-radius: 8px;
}

.hero-metrics {
    align-items: flex-start;
    margin-top: 1.4rem;
}

.hero-metric-num {
    font-size: 3rem;
}

.hero-image-right img {
    max-width: min(380px, 32vw);
    height: clamp(380px, 42vw, 480px);
}

.hero-image-right::before {
    width: min(380px, 32vw);
    height: clamp(380px, 42vw, 480px);
}

.cv-table-wrap {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.cv-styled-table thead th:first-child,
.cv-styled-table tbody td:first-child {
    width: 128px;
    min-width: 128px;
    padding-left: 16px !important;
    padding-right: 12px;
    text-align: left;
    white-space: nowrap;
}

.timeline-cv {
    padding-left: 0;
    border-left: 0;
}

.timeline-cv-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.timeline-cv-item:last-child {
    border-bottom: 0;
}

.timeline-cv-item::before {
    display: none;
}

.t-year {
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.modal-overlay {
    overflow-y: auto;
}

.modal-card {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.social-links a {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-image-right img {
        max-width: 320px;
    }

    .hero-image-right::before {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 15, 26, 0);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, background 0.3s ease;
        z-index: 1099;
    }

    body.menu-open .nav-backdrop {
        background: rgba(15, 15, 26, 0.72);
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open .hamburger {
        position: fixed;
        top: 14px;
        right: 18px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 340px);
        max-width: none;
        height: 100dvh;
        padding: 5rem 1.5rem 2rem;
        gap: 1.4rem;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        box-shadow: -24px 0 50px rgba(0, 0, 0, 0.35);
        transition: right 0.4s ease;
        z-index: 1101;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        text-align: center;
        font-size: 1.05rem;
    }

    .nav-link::after {
        display: none;
    }

    .btn-contact,
    .btn-cv-request {
        width: 100%;
        justify-content: center;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 0;
        justify-content: center;
        width: 100%;
    }

    .bio-side-cards {
        position: static;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-links {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 88px 0 44px;
        background-attachment: scroll;
        align-items: flex-start;
        overflow: visible;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 1.15rem;
        margin-top: 0;
        padding: 0 1.25rem;
    }

    .hero-content {
        margin-top: 0;
        max-width: 100%;
    }

    .hero .subtitle {
        font-size: 0.72rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }

    .hero .title {
        font-size: clamp(2.65rem, 11vw, 3.25rem);
        margin-bottom: 1rem;
    }

    .hero .description {
        font-size: 1.03rem;
        margin-bottom: 1.1rem;
    }

    .hero-badges-container {
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-badge-card {
        padding: 1rem;
    }

    .badge-header {
        justify-content: center;
    }

    .badge-header span {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .badge-body {
        font-size: 0.84rem;
    }

    .hero-metrics {
        width: 100%;
        justify-content: center;
        gap: clamp(1rem, 6vw, 1.6rem);
        margin-top: 1.25rem;
    }

    .hero-metric-item {
        min-width: 76px;
        align-items: center;
    }

    .hero-metric-num {
        font-size: clamp(2rem, 9vw, 2.45rem);
    }

    .hero-metric-label {
        font-size: 0.68rem;
        letter-spacing: 0.8px;
        text-align: center;
    }

    .hero-image-right {
        width: 100%;
        margin-bottom: 0;
        justify-content: center;
    }

    .hero-image-right img {
        width: min(62vw, 220px);
        max-width: 220px;
        height: auto;
        aspect-ratio: 3 / 4;
        object-position: top center;
        border-width: 3px;
        border-radius: 14px;
    }

    .bio-timeline {
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
    }

    .bio-time {
        position: static;
        display: inline-block;
        width: auto;
        min-width: 8rem;
        margin-bottom: 0.6rem;
    }

    .bio-content:hover {
        transform: none;
    }

    .cv-tabs-layout {
        border-radius: 8px;
    }

    .cv-tab-sidebar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scroll-snap-type: x proximity;
    }

    .cv-tab-btn {
        flex: 0 0 auto;
        min-width: 142px;
        justify-content: center;
        scroll-snap-align: start;
    }

    .timeline-cv-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .t-year {
        white-space: normal;
    }

    .cv-styled-table {
        min-width: 680px;
    }

    .modal-card {
        max-height: calc(100dvh - 24px);
        padding: 1.25rem;
        border-radius: 8px;
    }

    .modal-title {
        font-size: 1.55rem;
        padding-right: 2rem;
    }
}

@media (max-width: 430px) {
    .hero-image-right img {
        width: min(58vw, 205px);
        max-width: 205px;
    }

    .hero .description br {
        display: none;
    }

    .hero-metrics {
        flex-wrap: wrap;
    }

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

.cv-bullet-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cv-sub-section {
    margin-bottom: 2rem;
}

.cv-sub-section h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Landmark Publications */
.pub-landmark-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pub-landmark-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.landmark-badge {
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.pub-landmark-item h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.journal-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.landmark-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}
