/* ===================================
   Global Styles & Reset
   =================================== */

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

:root {
    --primary-colour: #0f172a;
    --secondary-colour: #1e293b;
    --accent-colour: #3b82f6;
    --accent-light: #60a5fa;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success-colour: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-grey: #f1f5f9;
    --bg-white: #ffffff;
    --border-colour: #e2e8f0;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --orange: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Colour Variables */
[data-theme="dark"] {
    --primary-colour: #f8fafc;
    --secondary-colour: #e2e8f0;
    --accent-colour: #60a5fa;
    --accent-light: #93c5fd;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-light: #0f172a;
    --bg-grey: #1e293b;
    --bg-white: #1e293b;
    --border-colour: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--accent-gradient);
    margin: 1.5rem auto 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ===================================
   Page Loading Animations
   =================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.3s ease-in;
}

.hero,
.stats,
.research-impact,
.highlights,
.testimonials,
.recent-publications,
.expertise,
.cta,
section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stats {
    animation-delay: 0.1s;
}

.research-impact {
    animation-delay: 0.15s;
}

.highlights {
    animation-delay: 0.2s;
}

.testimonials {
    animation-delay: 0.25s;
}

.stat-card,
.highlight-card,
.testimonial-card,
.award-card,
.impact-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-colour);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: centre;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-colour);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent-colour);
    transform: scale(1.05);
}

.theme-toggle .theme-icon {
    display: flex;
    align-items: center;
}

.theme-toggle .light-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

/* Language Selector Styling */
.language-selector {
    background: var(--bg-white);
    border: 2px solid var(--border-colour);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-width: 140px;
}

.language-selector:hover {
    border-color: var(--accent-colour);
    background: var(--bg-secondary);
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary);
}

[data-theme="dark"] .language-selector {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .language-selector:hover {
    border-color: var(--accent-colour);
    background: rgba(255, 255, 255, 0.1);
}

/* Google Translate Widget Styling */
.translate-widget {
    display: inline-block;
}

.translate-widget select {
    background: var(--bg-white);
    border: 2px solid var(--border-colour);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.translate-widget select:hover {
    border-color: var(--accent-colour);
}

[data-theme="dark"] .translate-widget select {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Hide Google Translate branding */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

body {
    top: 0 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 10px;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--bg-white);
    padding: 180px 0 120px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta strong {
    color: #fff;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--accent-colour);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================
   About Section
   =================================== */

.about {
    background: var(--bg-grey);
}

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

.about-text .lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.about-text p {
    margin-bottom: 1.75rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.research-interests,
.memberships {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.research-interests li,
.memberships li {
    background: var(--bg-white);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-colour);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.research-interests li:hover,
.memberships li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    border-left-color: var(--purple);
}

.memberships .sub-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    display: block;
}

.memberships .sub-list li {
    background: transparent;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: none;
    box-shadow: none;
    font-size: 0.95rem;
    position: relative;
    transform: none;
}

.memberships .sub-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-colour);
}

.memberships .sub-list li:hover {
    transform: none;
    box-shadow: none;
}

/* ===================================
   Teaching Section
   =================================== */

.teaching {
    background: var(--bg-white);
}

/* ===================================
   Data Science & AI Projects Section
   =================================== */

.projects {
    background: var(--bg-white);
}

.section-intro {
    max-width: 950px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-colour);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.featured::before {
    background: var(--success-gradient);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.featured {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.project-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--bg-white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.project-card.featured .project-badge {
    background: var(--success-gradient);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.project-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 1.025rem;
}

.tech-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.tech-stack li {
    background: var(--bg-grey);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-colour);
    transition: var(--transition-fast);
}

.tech-stack li:hover {
    background: var(--accent-colour);
    color: var(--bg-white);
    border-color: var(--accent-colour);
    transform: translateY(-2px);
}

.project-outcomes {
    background: var(--bg-grey);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-colour);
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--text-light);
}

.project-card.featured .project-outcomes {
    border-left-color: var(--success-colour);
}

.project-outcomes strong {
    color: var(--text-dark);
    font-weight: 700;
}

.collaboration-note {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

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

.collaboration-note h3 {
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.collaboration-note p {
    font-size: 1.125rem;
    line-height: 1.9;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* ===================================
   Teaching Section (Updated)
   =================================== */

.teaching {
    background: var(--bg-grey);
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.teaching-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border-colour);
    position: relative;
    overflow: hidden;
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.teaching-card:hover::before {
    transform: scaleX(1);
}

.teaching-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.teaching-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.teaching-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1.025rem;
    line-height: 1.7;
}

.teaching-card ul {
    list-style: none;
    color: var(--text-light);
}

.teaching-card ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.teaching-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-colour);
    font-size: 1.2rem;
    font-weight: bold;
}

.teaching-card .note {
    font-size: 0.925rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-colour);
}

.external-experience {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--border-colour);
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.external-experience h3 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.external-experience ul {
    list-style: none;
}

.external-experience li {
    padding: 1.25rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.025rem;
}

.external-experience li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-colour);
    font-weight: bold;
    font-size: 1.4rem;
}

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

.research-impact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="dark"] .research-impact {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

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

.impact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="dark"] .impact-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .impact-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

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

.impact-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.impact-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.impact-highlight-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .impact-highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #a855f7;
}

.impact-highlight-item .highlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.impact-highlight-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .impact-card {
        padding: 1.5rem 1rem;
    }
    
    .impact-value {
        font-size: 2rem;
    }
    
    .impact-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

[data-theme="dark"] .testimonials {
    background: linear-gradient(135deg, #422006 0%, #78350f 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.testimonial-quote {
    font-size: 4rem;
    line-height: 1;
    color: #fbbf24;
    font-family: Georgia, serif;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .testimonial-author {
    border-top-color: rgba(251, 191, 36, 0.3);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.research {
    background: var(--bg-white);
}

.research-overview {
    max-width: 950px;
    margin: 0 auto 4rem;
    text-align: center;
}

.research-overview .lead {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-light);
}

.grants-section {
    margin-bottom: 5rem;
}

.grants-section h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

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

.grant-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-colour);
    border-top: 5px solid var(--success-colour);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.grant-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--success-gradient);
    border-radius: 0 0 0 100%;
    opacity: 0.1;
    transition: var(--transition);
}

.grant-card:hover::before {
    width: 150px;
    height: 150px;
}

.grant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.grant-card h4 {
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.grant-amount {
    font-weight: 800;
    color: var(--success-colour);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.grant-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.025rem;
}

.supervision-section {
    margin-top: 5rem;
}

.supervision-section h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.supervision-intro {
    max-width: 950px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.supervision-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-colour);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

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

.publications {
    background: var(--bg-grey);
}

.publications-intro {
    max-width: 950px;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

/* Publication Search & Controls */
.publication-controls {
    margin-bottom: 4rem;
}

.publication-search {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-colour);
    border-radius: 50px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-colour);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 1.5rem;
    background: var(--text-muted);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-clear:hover {
    background: var(--accent-colour);
}

.search-clear.active {
    display: flex;
}

.search-results-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.publication-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.publication-sort {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-colour);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    background: var(--accent-colour);
    color: white;
    border-color: var(--accent-colour);
}

.sort-btn.active {
    background: var(--accent-colour);
    color: white;
    border-color: var(--accent-colour);
}

.btn-export-bibtex {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-export-bibtex:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-export-bibtex:active {
    transform: translateY(0);
}

.publication-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-colour);
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.975rem;
    letter-spacing: 0.01em;
}

.filter-btn:hover {
    background: var(--accent-gradient);
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.publication-category {
    margin-bottom: 5rem;
}

.publication-category h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid transparent;
    border-image: var(--accent-gradient) 1;
    letter-spacing: -0.01em;
}

.publication-item {
    background: var(--bg-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-colour);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.publication-item.featured-pub {
    border-left: 5px solid var(--success-colour);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.publication-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(10px);
}

.pub-year {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--bg-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.publication-item.featured-pub .pub-year {
    background: var(--success-gradient);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.publication-item h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.pub-details {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.pub-link {
    color: var(--accent-colour);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.975rem;
    transition: var(--transition-fast);
    display: inline-block;
    margin-top: 0.5rem;
}

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

.more-pubs-note {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.more-pubs-note a {
    color: var(--accent-colour);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.more-pubs-note a:hover {
    color: var(--purple);
    text-decoration: underline;
}

/* ===================================
   Awards & Recognition Section
   =================================== */

.awards-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

[data-theme="dark"] .awards-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

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

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .award-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.award-card.featured {
    border-color: #a855f7;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.award-card.featured::before {
    height: 6px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .award-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.award-year {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .award-year {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.award-badge {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.award-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.award-issuer {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
}

.recognition-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .recognition-notes {
    border-top-color: rgba(168, 85, 247, 0.3);
}

.recognition-item {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: var(--text-light);
    line-height: 1.6;
}

[data-theme="dark"] .recognition-item {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #a855f7;
}

.recognition-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

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

/* ===================================
   Professional Experience Section
   =================================== */

.professional-experience {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

[data-theme="dark"] .professional-experience {
    background: linear-gradient(135deg, #164e63 0%, #0e7490 100%);
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
}

[data-theme="dark"] .experience-timeline::before {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
}

.experience-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.experience-item::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #06b6d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #06b6d4;
    font-weight: bold;
    z-index: 1;
}

[data-theme="dark"] .experience-item::before {
    background: rgba(255, 255, 255, 0.1);
    border-color: #22d3ee;
    color: #22d3ee;
}

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

.experience-period {
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .experience-period {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.experience-location {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.experience-item h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.experience-org {
    font-size: 1.05rem;
    color: #0891b2;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .experience-org {
    color: #22d3ee;
}

.experience-responsibilities {
    list-style: none;
    padding-left: 0;
}

.experience-responsibilities li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.experience-responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
}

[data-theme="dark"] .experience-responsibilities li::before {
    color: #22d3ee;
}

@media (max-width: 768px) {
    .experience-timeline::before {
        left: 15px;
    }
    
    .experience-item {
        padding-left: 50px;
    }
    
    .experience-item::before {
        left: 5px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================
   Qualifications Section (Timeline)
   =================================== */

.qualifications {
    background: var(--bg-white);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 3rem 0;
}

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

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-year {
    min-width: 90px;
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 2.5rem;
    text-align: right;
}

.timeline-year::after {
    content: '';
    position: absolute;
    left: 103px;
    top: 12px;
    width: 18px;
    height: 18px;
    background: var(--accent-colour);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--bg-white);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    margin-left: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-colour);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid var(--border-colour);
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 21px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 11px solid var(--bg-white);
}

.timeline-content:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    transform: translateX(10px);
}

.timeline-content h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.timeline-detail {
    font-size: 0.975rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-colour);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    background: var(--bg-grey);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-white);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-colour);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.contact-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-item a {
    color: var(--accent-colour);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--purple);
    text-decoration: underline;
}

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

footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0;
    text-align: center;
    border-top: 4px solid var(--accent-colour);
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ===================================
   Responsive Design
   =================================== */

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2.5rem 0;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border-colour);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1.25rem 0;
    }

    .nav-menu a {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .theme-toggle {
        margin: 1rem auto 0;
        width: fit-content;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 350px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

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

    .tech-stack {
        justify-content: center;
    }

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

    .supervision-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 60px;
    }

    .timeline-year {
        min-width: 55px;
        font-size: 1.4rem;
        padding-right: 1.5rem;
    }

    .timeline-year::after {
        left: 53px;
    }

    .timeline-content {
        margin-left: 2rem;
    }

    .research-interests,
    .memberships {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .supervision-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .collaboration-note {
        padding: 2.5rem 1.5rem;
    }

    .project-card,
    .teaching-card,
    .grant-card,
    .timeline-content {
        padding: 2rem;
    }
}

/* ===================================
   Page Header (for subpages)
   =================================== */

.page-header {
    padding: 150px 0 80px;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* ===================================
   Homepage Specific Styles
   =================================== */

.overview {
    background: var(--bg-light);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats-grid .stat-card {
    text-align: center;
}

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

.highlights {
    padding: 100px 0;
}

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

.highlight-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-colour);
}

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

.highlight-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.highlight-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--accent-colour);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--purple);
}

.expertise {
    background: var(--bg-light);
    padding: 100px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.expertise-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

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

.expertise-card ul {
    list-style: none;
}

.expertise-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.expertise-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-colour);
    font-weight: 600;
}

.recent-publications {
    padding: 100px 0;
}

.publications-showcase {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.publication-highlight {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-colour);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.publication-highlight .pub-year {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.publication-highlight h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pub-venue {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.view-all-pubs {
    text-align: center;
}

.cta {
    background: linear-gradient(135deg, var(--primary-colour) 0%, var(--secondary-colour) 100%);
    color: white;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

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

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.contact-intro .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

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

.contact-details-section {
    margin-top: 4rem;
}

.contact-details-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--accent-colour);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--purple);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.visit-info {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
}

/* ===================================
   Research & Grants Page
   =================================== */

.funding-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.grants-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.grant-card.major {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid var(--accent-colour);
}

.grant-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-colour);
    margin-bottom: 1rem;
}

.grant-badge {
    display: inline-block;
    background: var(--success-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.phd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.phd-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent-colour);
}

.phd-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.phd-status {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--success-colour);
    font-weight: 600;
    margin-top: 0.75rem;
}

.completed-supervision {
    margin: 2rem 0;
}

.completed-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.supervision-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 4rem;
}

.supervision-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.supervision-cta ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.supervision-cta ul li {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* ===================================
   Teaching Page
   =================================== */

.leadership-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.programmes-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.programme-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent-colour);
}

.programme-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programme-highlights {
    list-style: none;
    margin-top: 1.5rem;
}

.programme-highlights li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.programme-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-colour);
    font-weight: 700;
    font-size: 1.25rem;
}

.leadership-responsibilities {
    margin: 4rem 0;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.responsibility-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.teaching-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.teaching-philosophy {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
}

.teaching-philosophy ul {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.teaching-philosophy ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.teaching-philosophy ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-colour);
    font-weight: 700;
}

.professional-development {
    margin-top: 3rem;
}

.professional-development ul {
    list-style: none;
    padding-left: 0;
}

.professional-development ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.professional-development ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-colour);
    font-weight: 700;
}

/* ===================================
   Memberships & Lists
   =================================== */

.research-interests,
.memberships {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.research-interests li,
.memberships li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.research-interests li::before,
.memberships li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-colour);
    font-weight: 700;
}

/* ===================================
   Responsive Design Updates
   =================================== */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .stats-grid,
    .expertise-grid,
    .funding-summary {
        grid-template-columns: 1fr;
    }

    .highlights-grid,
    .contact-grid,
    .phd-grid,
    .responsibilities-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ===================================
   Contact Form Styles
   =================================== */

.contact-form-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 4rem 0;
}

.contact-form-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-form-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-colour);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-colour);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group .form-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.form-submit {
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-success,
.form-error {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: none;
}

.form-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.form-success.active,
.form-error.active {
    display: block;
}

/* ===================================
   CV Download Button
   =================================== */

.cv-download-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

.cv-download-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cv-download-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cv-download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-download.secondary {
    background: var(--success-gradient);
}

.btn-download-icon {
    font-size: 1.25rem;
}

/* ===================================
   Social & Academic Badges
   =================================== */

.social-badges {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin: 4rem 0;
}

.social-badges h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-badges-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

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

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-colour);
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-colour);
}

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

.badge-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.badge-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Badge-specific colors */
.badge-item.linkedin:hover {
    border-color: #0077b5;
}

.badge-item.scholar:hover {
    border-color: #4285f4;
}

.badge-item.orcid:hover {
    border-color: #a6ce39;
}

.badge-item.researchgate:hover {
    border-color: #00d0b1;
}

.badge-item.github:hover {
    border-color: #333;
}

/* Footer Social Links */
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

footer .social-link:hover {
    background: var(--accent-colour);
    color: white;
    transform: translateY(-3px);
}

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

    .cv-download-buttons {
        flex-direction: column;
    }

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

/* ===================================
   Gallery Section
   =================================== */

.gallery-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.gallery-intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-item-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: white;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent-colour);
    color: white;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--accent-colour);
    color: white;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: -2.5rem;
        width: 35px;
        height: 35px;
    }
}

/* ===================================
   Accessibility & Print Styles
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   Enhanced Footer Styles
   ============================================ */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

[data-theme="dark"] .scroll-to-top {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

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

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

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-about h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.footer-about p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8 !important;
}

.footer-nav h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 0.7rem;
}

.footer-nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-social h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: #0a66c2;
    color: #fff;
}

.footer-link.email:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #fff;
}

.footer-link.scholar:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
    color: #fff;
}

.footer-link.orcid:hover {
    background: rgba(166, 206, 57, 0.2);
    border-color: #a6ce39;
    color: #fff;
}

.footer-link.researchgate:hover {
    background: rgba(0, 204, 187, 0.2);
    border-color: #00ccbb;
    color: #fff;
}

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

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

/* ============================================
   Page Header Images
   ============================================ */

.page-header-image {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.page-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.about-profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 1.2rem;
    }
}

/* ============================================
   News & Updates Section
   ============================================ */

.news-updates {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    grid-column: span 2;
    border-left-width: 6px;
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.news-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.news-link:hover {
    gap: 0.5rem;
    color: var(--primary-dark);
}

.news-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 16px;
}

.news-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ============================================
   Videos Section
   ============================================ */

.videos-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--text-primary);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.video-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.video-note p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Upcoming Events Section
   ============================================ */

.events-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.events-timeline {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.event-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-card.past {
    opacity: 0.7;
    border-left-color: var(--text-secondary);
}

.event-card.past:hover {
    opacity: 1;
}

.event-date {
    text-align: center;
    min-width: 100px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.5rem 0;
}

.event-year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-content {
    flex: 1;
}

.event-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-badge.completed {
    background: var(--text-secondary);
}

.event-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.event-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 16px;
}

.events-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ============================================
   Student Success Stories Section
   ============================================ */

.success-stories {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.success-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.success-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.graduate-avatar {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.graduate-info h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.graduation-year {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.thesis-title {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.current-role {
    margin-bottom: 1.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--success);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.role-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.success-quote {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.achievement-tag {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.supervision-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 16px;
}

.supervision-stats .stat-card {
    text-align: center;
}

.supervision-stats .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.supervision-stats .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.phd-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 16px;
}

.phd-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.phd-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.phd-cta .btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .news-card.featured {
        grid-column: span 1;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .navbar,
    .hero-buttons,
    .hamburger {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: 2rem 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}
