:root {
    --max: 1200px;
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #ffffff;
    --bg-offwhite: #f8fafc;
    --bg-gray: #f1f5f9;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

/* Dark theme variables */
body.dark-theme {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --text-dark: #f3f4f6;
    --text-light: #9ca3af;
    --bg-light: #111827;
    --bg-offwhite: #1f2937;
    --bg-gray: #374151;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

/* Add RGB variables for backdrop blur */
:root {
    --bg-light-rgb: 255, 255, 255;
}
body.dark-theme {
    --bg-light-rgb: 17, 24, 39;
}

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-dark);
    background: var(--bg-offwhite);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern Header */
.site-header {
    background: var(--bg-light);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-light-rgb), 0.95);
    transition: background-color 0.4s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

.mobile-header-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: var(--bg-light);
    transition: border-color 0.4s ease;
}

.site-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    gap: 0.75rem;
}

.site-title a {
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
    transition: color 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

/* Theme Toggle in Menu */
.nav-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin-left: 0.5rem;
}

.nav-theme-toggle:hover {
    background: var(--bg-gray);
}

/* Mobile Menu Toggle - HAMBURGER BUTTON */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.4s ease;
}

/* Menu toggle animation to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== HERO SECTION ENHANCEMENTS ===== */
.hero {
    padding: 3rem 2rem 4rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 2rem auto;
    max-width: var(--max);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle brand color glow - positioned behind image area */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.08), 
        rgba(124, 58, 237, 0.04),
        transparent 70%
    );
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle gradient overlay for depth */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above background */
.hero-content-wrapper {
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    position: relative;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.4s ease;
}

/* ===== HERO NAME WITH HANDWRITTEN FONT ===== */
.hero-name {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    transition: color 0.4s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

/* Handwritten last name */
.hero-name .handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    font-size: 3.8rem; /* Slightly larger for handwritten feel */
    line-height: 1.1;
}

/* First name - keep clean sans-serif with gradient */
.hero-name {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Override for handwritten to keep its gradient */
.hero-name .handwritten {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Pen icon styling */
.hero-name .pen-icon {
    display: inline-block;
    font-size: 2.2rem;
    -webkit-text-fill-color: initial;
    background: none;
    animation: penFloat 3s ease-in-out infinite;
    transform-origin: bottom center;
    margin-left: 0.1rem;
    line-height: 1;
}

/* Pen floating animation */
@keyframes penFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }
    50% {
        transform: translateY(-10px) rotate(8deg) scale(1.1);
    }
}

/* Hover effect - pen writes when hovering over name */
.hero-name:hover .pen-icon {
    animation: penWrite 0.8s ease-in-out;
}

@keyframes penWrite {
    0% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }
    30% {
        transform: translateY(-15px) rotate(20deg) scale(1.2);
    }
    60% {
        transform: translateY(-5px) rotate(-10deg) scale(1.1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Dark theme adjustments */
body.dark-theme .hero-name {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .hero-name .handwritten {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
        gap: 0.1rem;
        justify-content: center;
    }
    
    .hero-name .handwritten {
        font-size: 2.8rem;
    }
    
    .hero-name .pen-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
        gap: 0.05rem;
    }
    
    .hero-name .handwritten {
        font-size: 2.2rem;
    }
    
    .hero-name .pen-icon {
        font-size: 1.5rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-name .pen-icon {
        animation: none;
    }
    
    .hero-name:hover .pen-icon {
        animation: none;
    }
}
/* Subtle hand-drawn underline effect */
.hero-name .handwritten::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
    border-radius: 2px;
    opacity: 0.3;
    transform: scaleX(0.8);
    transform-origin: left;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
    padding-bottom: 1rem;
    display: inline-block;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-light);
    transition: color 0.4s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    position: relative;
}

.service-item {
    background: var(--bg-offwhite);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
    border: 1px solid var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-item i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.4s ease;
}

.service-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    color: var(--text-light);
    transition: color 0.4s ease;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-outline:hover i {
    transform: translateX(5px);
}

/* Dark theme adjustments */
body.dark-theme .hero {
    background: var(--bg-light);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

body.dark-theme .hero::before {
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.12), 
        rgba(124, 58, 237, 0.06),
        transparent 70%
    );
}

body.dark-theme .hero::after {
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

body.dark-theme .service-item {
    background: var(--bg-offwhite);
    border-color: var(--bg-gray);
}

body.dark-theme .hero-tagline {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem 3rem;
        margin: 1rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero::before {
        width: 300px;
        height: 300px;
        right: 5%;
        opacity: 0.5;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding: 0;
        margin: 2rem 0 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* Publications Section */
.publications {
    max-width: var(--max);
    margin: 4rem auto;
    padding: 0 2rem;
}

.publications h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

.publications h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.publications h4 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.4s ease;
}

.publications h4 i {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: color 0.4s ease;
}

.publications ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.publications li {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease, background-color 0.4s ease;
    border-left: 4px solid transparent;
}

.publications li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.publications a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
}

.publications a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.publications a i {
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--bg-gray);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    color: white !important;
}

/* Social icon colors - always visible */
.social-icon.researchgate {
    background: #00ccbb;
    box-shadow: 0 4px 10px rgba(0, 204, 187, 0.3);
}

.social-icon.linkedin {
    background: #0077b5;
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3);
}

.social-icon.github {
    background: #333;
    box-shadow: 0 4px 10px rgba(51, 51, 51, 0.3);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
        position: relative;
    }

    .mobile-header-group {
        width: 100%;
        justify-content: space-between;
    }

    /* Show hamburger on mobile */
    .menu-toggle {
        display: flex;
    }

    .site-title {
        flex: 1;
        justify-content: flex-start;
    }

    .site-title a {
        font-size: 1.2rem;
    }

    /* Hide desktop nav by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 101;
        gap: 1rem;
    }

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

    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-links a::after {
        display: none;
    }

    /* Theme toggle in mobile menu */
    .nav-theme-toggle {
        margin: 1rem 0 0;
        padding: 0.75rem;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        border-radius: 8px;
        background: var(--bg-gray);
    }

    .nav-theme-toggle:hover {
        background: var(--bg-light);
        filter: brightness(0.95);
    }

    .nav-theme-toggle i {
        font-size: 1.2rem;
    }

    .nav-theme-toggle span {
        display: inline-block;
        font-size: 1.1rem;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Hero mobile styles */
    .hero {
        padding: 2rem 1.5rem 3rem;
        margin: 1rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Fix for buttons encroaching on mobile */
.hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%; /* Ensure container takes full width */
    padding: 0; /* Remove any padding */
    margin: 2rem 0 0; /* Adjust margin */
}

.btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
    white-space: normal; /* Allows text to wrap if needed */
    text-align: center;
    padding: 0.75rem 1rem; /* Slightly reduce horizontal padding on mobile */
}

    .publications {
        padding: 0 1rem;
    }

    .publications li {
        padding: 1.25rem;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .nav-overlay {
        display: none;
    }
    
    .nav-theme-toggle span {
        display: none; /* Hide text on desktop */
    }
}

/* About Page */
.about-content {
    max-width: var(--max);
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    transition: color 0.4s ease;
}

.interests-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.interests-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.interests-list li {
    padding: 0.75rem;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.4s ease;
}

.interests-list li i {
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.collaboration {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Contact Page */
.contact-content {
    max-width: var(--max);
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-email {
    font-size: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 50px;
    transition: background-color 0.4s ease;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.contact-note {
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-gray);
    transition: color 0.4s ease, border-color 0.4s ease;
}

/* ===== HERO WITH IMAGE LAYOUT ===== */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    flex: 1.2;
    min-width: 0;
}

.hero-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
}

/* Main Profile Image */
.hero-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(37, 99, 235, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-profile-image:hover {
    transform: scale(1.03) rotate(-2deg);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(37, 99, 235, 0.3);
}

/* Glowing ring effect */
.hero-image-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    animation: ringRotate 6s ease-in-out infinite;
    z-index: 1;
    opacity: 0.7;
}

.hero-image-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-offwhite);
    z-index: 0;
}

/* Glow effect behind image */
.hero-image-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.15), 
        rgba(124, 58, 237, 0.05),
        transparent 70%
    );
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Floating badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: floatBadge 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.floating-badge i {
    color: var(--primary-color);
    font-size: 1rem;
}

.badge-1 {
    top: 10%;
    right: -15%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -15%;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes ringRotate {
    0%, 100% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(180deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .hero-image-wrapper {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-image-container {
        max-width: 280px;
    }
    
    .floating-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
    }
    
    .floating-badge i {
        font-size: 0.8rem;
    }
    
    .badge-1 {
        top: 5%;
        right: -5%;
    }
    
    .badge-2 {
        bottom: 10%;
        left: -5%;
    }
    
    .hero-text-content {
        text-align: center;
    }
    
    .hero-tagline {
        display: inline-block;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        max-width: 220px;
    }
    
    .hero-image-container {
        max-width: 220px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-badge {
        display: none; /* Hide badges on very small screens */
    }
}

/* Dark theme adjustments for hero image */
body.dark-theme .hero-profile-image {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.15);
}

body.dark-theme .hero-image-ring {
    opacity: 0.5;
}

body.dark-theme .floating-badge {
    background: rgba(30, 41, 59, 0.95);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .floating-badge i {
    color: var(--primary-color);
}

body.dark-theme .hero-image-glow {
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.2), 
        rgba(124, 58, 237, 0.08),
        transparent 70%
    );
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-profile-image:hover {
        transform: none;
    }
    
    .hero-image-ring {
        animation: none;
    }
    
    .hero-image-glow {
        animation: none;
    }
    
    .floating-badge {
        animation: none;
    }
}



/* Page-only layout: shared stylesheets and shared scripts remain unchanged. */
.profile-page {max-width:1160px;margin:0 auto;padding:0 28px 64px;}
.profile-page * {box-sizing:border-box;}
.profile-page section[id] {scroll-margin-top:110px;}
.profile-page h1,.profile-page h2,.profile-page h3,.profile-page p {margin-top:0;}
.profile-page h1 {font-size:clamp(2.6rem,5.3vw,4.6rem);line-height:1.08;letter-spacing:-.055em;margin-bottom:24px;}
.profile-page h2 {font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.2;letter-spacing:-.035em;margin-bottom:16px;}
.profile-page h3 {font-size:1.16rem;line-height:1.45;margin-bottom:12px;}
.profile-page a {color:var(--primary-color);text-underline-offset:4px;}
.profile-page a:focus-visible {outline:3px solid var(--primary-color);outline-offset:5px;}
.profile-page .pp-eyebrow {font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--primary-color);margin-bottom:18px;}
.profile-page .pp-muted {color:var(--text-light);}
.profile-page .pp-lead {font-size:1.13rem;line-height:1.85;max-width:650px;color:var(--text-light);}
.profile-page .pp-hero {display:grid;grid-template-columns:1.55fr 1fr;gap:64px;align-items:center;padding:70px 0 60px;}
.profile-page .pp-portrait {background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:24px;padding:28px;position:relative;}
.profile-page .pp-portrait img {display:block;width:100%;max-width:300px;aspect-ratio:1;object-fit:cover;border-radius:18px;margin:auto;background:var(--bg-gray);}
.profile-page .pp-caption {margin:22px 0 0;font-size:.9rem;line-height:1.8;}
.profile-page .pp-actions {display:flex;gap:14px;flex-wrap:wrap;margin-top:26px;align-items:center;}
.profile-page .pp-button {display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 20px;border-radius:8px;background:var(--primary-color);color:white;text-decoration:none;font-weight:600;}
.profile-page .pp-button:hover {background:var(--primary-dark);}
.profile-page .pp-secondary {background:var(--bg-light);color:var(--text-dark);border:1px solid var(--bg-gray);}
.profile-page .pp-secondary:hover {background:var(--bg-gray);}
.profile-page .pp-section {padding:50px 0;border-top:1px solid var(--bg-gray);}
.profile-page .pp-heading {display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px;}
.profile-page .pp-heading h2 {margin-bottom:0;}
.profile-page .pp-heading>a {flex-shrink:0;font-size:.9rem;font-weight:600;}
.profile-page .pp-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.profile-page .pp-card {background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:14px;overflow:hidden;}
.profile-page .pp-card-content {padding:24px;}
.profile-page .pp-card p {font-size:.93rem;color:var(--text-light);margin-bottom:0;}
.profile-page .pp-card h3 a,.profile-page .pp-reading h3 a {color:var(--text-dark);text-decoration:none;}
.profile-page .pp-card h3 a:hover,.profile-page .pp-reading h3 a:hover {color:var(--primary-color);text-decoration:underline;}
.profile-page .pp-card img {width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:var(--bg-gray);}
.profile-page .pp-meta {display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:.75rem;color:var(--text-light);margin-bottom:14px;}
.profile-page .pp-tag {border:1px solid var(--bg-gray);border-radius:4px;padding:2px 7px;}
.profile-page .pp-icon {font-size:1.35rem;color:var(--primary-color);margin-bottom:22px;}
.profile-page .pp-feature {display:grid;grid-template-columns:1fr 2fr;gap:36px;background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:16px;padding:36px;}
.profile-page .pp-feature h3 {font-size:1.5rem;letter-spacing:-.025em;}
.profile-page .pp-feature p {color:var(--text-light);}
.profile-page .pp-reading {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:0;margin:0;counter-reset:reading;}
.profile-page .pp-reading li {counter-increment:reading;border-top:2px solid var(--primary-color);padding-top:20px;}
.profile-page .pp-reading li:before {content:'0' counter(reading);display:block;color:var(--primary-color);font-size:1.4rem;font-weight:600;margin-bottom:18px;}
.profile-page .pp-callout {background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:16px;padding:36px;display:flex;align-items:center;justify-content:space-between;gap:30px;}
.profile-page .pp-callout p {margin-bottom:0;color:var(--text-light);}
.profile-page .pp-callout .pp-button {flex-shrink:0;}
.profile-page .pp-jump {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:42px;}
.profile-page .pp-jump a {padding:8px 14px;background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:6px;font-size:.85rem;text-decoration:none;}
.profile-page .pp-bio {display:grid;grid-template-columns:1fr 2fr;gap:45px;}
.profile-page .pp-bio p {color:var(--text-light);line-height:1.9;}
.profile-page .pp-chips {display:flex;gap:9px;flex-wrap:wrap;list-style:none;padding:0;margin:20px 0 0;}
.profile-page .pp-chips li {background:var(--bg-gray);border-radius:6px;padding:7px 12px;font-size:.85rem;}
.profile-page .pp-year {display:grid;grid-template-columns:90px 1fr;gap:26px;margin-top:28px;}
.profile-page .pp-year>h3 {color:var(--primary-color);font-size:1.35rem;}
.profile-page .pp-citations {list-style:none;margin:0;padding:0;}
.profile-page .pp-citations li {padding:0 0 25px;margin-bottom:25px;border-bottom:1px solid var(--bg-gray);line-height:1.85;}
.profile-page .pp-citations a {display:inline-block;margin-top:8px;font-size:.86rem;font-weight:600;}
@media(max-width:800px){.profile-page .pp-hero{grid-template-columns:1fr;gap:32px;padding:44px 0;}.profile-page .pp-portrait{max-width:420px;}.profile-page .pp-grid,.profile-page .pp-reading{grid-template-columns:1fr;}.profile-page .pp-card{display:grid;grid-template-columns:1fr 1.4fr;}.profile-page .pp-card img{height:100%;min-height:210px;}.profile-page .pp-feature,.profile-page .pp-bio{grid-template-columns:1fr;gap:18px;}.profile-page .pp-heading,.profile-page .pp-callout{align-items:start;flex-direction:column;}.profile-page .pp-section{padding:36px 0;}}
@media(max-width:480px){.profile-page{padding:0 20px 40px;}.profile-page .pp-card{display:block;}.profile-page .pp-card img{min-height:0;}.profile-page .pp-feature,.profile-page .pp-callout{padding:24px;}.profile-page .pp-year{grid-template-columns:1fr;gap:0;}.profile-page .pp-actions{align-items:stretch;}.profile-page .pp-actions a{width:100%;}}



/* MODERN SHARED HEADER, COMPACT NAVIGATION, AND FOOTER */
.modern-header{background:rgba(var(--bg-light-rgb),.92);border-bottom:1px solid var(--bg-gray);box-shadow:none;backdrop-filter:blur(20px);padding:18px 0;}
.modern-header .header-inner{max-width:1240px;gap:30px;}
.modern-header .site-title a{background:none;-webkit-text-fill-color:currentColor;color:var(--text-dark);font-size:1.13rem;letter-spacing:-.035em;line-height:1.25;}
.modern-header .brand-detail{display:block;font-size:.51rem;letter-spacing:.16em;font-weight:600;color:var(--text-light);margin-top:5px;}
.modern-header .profile-img{border:0;padding:0;width:42px;height:42px;}
.modern-header .nav-links{gap:7px;}
.modern-header .nav-links>a{padding:10px 15px;border-radius:9px;font-size:.87rem;font-weight:600;}
.modern-header .nav-links>a::after{display:none;}
.modern-header .nav-links>a:hover,.modern-header .nav-links>a[aria-current="page"]{background:var(--bg-gray);color:var(--primary-color);}
.modern-header .nav-links>a i{display:none;}
.modern-header .nav-theme-toggle{width:40px;height:40px;box-sizing:border-box;border:1px solid var(--bg-gray);border-radius:10px;}
.modern-header .nav-theme-toggle .theme-text{display:none;}
.modern-footer{background:radial-gradient(ellipse at 95% 0%,#163e5d 0%,transparent 49%),radial-gradient(ellipse at 5% 100%,#202957 0%,transparent 46%),#091525;color:#edf4ff;border:0;padding:0;margin-top:0;position:relative;overflow:hidden;}
.modern-footer *{box-sizing:border-box;}
.mf-shell{max-width:1184px;margin:auto;padding:70px 28px 25px;}
.mf-invite{display:flex;justify-content:space-between;gap:40px;align-items:center;padding-bottom:56px;border-bottom:1px solid #ffffff24;}
.mf-eyebrow{color:#9bafc8;font-size:.68rem;letter-spacing:.18em;font-weight:600;margin:0 0 20px;}
.mf-invite h2{font-size:clamp(2rem,4.3vw,3.7rem);font-weight:500;line-height:1.15;letter-spacing:-.045em;margin:0;}
.mf-invite h2 span{color:#79decf;}
.mf-contact{border:1px solid #ffffff45;border-radius:100px;display:flex;align-items:center;justify-content:space-between;gap:36px;padding:20px 26px;color:#fff;text-decoration:none;font-size:1rem;white-space:nowrap;}
.mf-contact span{font-size:2rem;color:#79decf;line-height:1;}
.mf-contact:hover{background:#ffffff12;border-color:#79decf;}
.mf-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:70px;padding:50px 0;}
.mf-name{color:#fff;font-size:1.55rem;font-weight:600;letter-spacing:-.055em;text-decoration:none;}
.mf-name span{color:#79decf;}
.mf-brand p{color:#a7b8ce;font-size:.9rem;line-height:1.9;margin:16px 0 22px;}
.mf-socials{display:flex;gap:10px;}
.mf-socials a{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid #ffffff30;color:#dbe9f9;text-decoration:none;font-size:1.15rem;}
.mf-socials a:hover{background:#79decf;color:#091525;border-color:#79decf;transform:translateY(-3px);}
.mf-grid nav h3{margin:0 0 19px;font-size:.73rem;text-transform:uppercase;letter-spacing:.14em;color:#fff;}
.mf-grid nav a{display:block;color:#a7b8ce;text-decoration:none;font-size:.88rem;margin:11px 0;}
.modern-footer a{transition:background .2s,color .2s,transform .2s;}
.mf-grid nav a:hover,.mf-bottom a:hover{color:#79decf;}
.mf-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid #ffffff24;padding-top:25px;font-size:.73rem;color:#a7b8ce;}
.mf-bottom small{font-size:inherit;}
.mf-bottom nav{display:flex;gap:20px;}
.mf-bottom a{color:#a7b8ce;text-decoration:none;}
.modern-footer a:focus-visible,.modern-header a:focus-visible,.modern-header button:focus-visible{outline:3px solid #38bdaa;outline-offset:4px;}
@media(max-width:768px){
 .modern-header{padding:13px 0;}.modern-header .header-inner{position:relative;padding:0 20px;}.modern-header .mobile-header-group{gap:14px;}.modern-header .site-title{flex:1;}.modern-header .site-title a{font-size:1.03rem;}.modern-header .brand-detail{font-size:.46rem;}
 .modern-header .menu-toggle{display:flex;position:relative;width:42px;height:42px;padding:12px 10px;border:1px solid var(--bg-gray);border-radius:12px;background:var(--bg-light);gap:5px;justify-content:center;flex-shrink:0;}
 .modern-header .menu-toggle span{height:2px;flex-shrink:0;}.modern-header .menu-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}.modern-header .menu-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
 .modern-header .nav-links{box-sizing:border-box;position:absolute;top:calc(100% + 16px);right:20px;left:auto;width:min(292px,calc(100vw - 40px));max-width:none;height:auto;max-height:calc(100dvh - 100px);overflow-y:auto;padding:12px;gap:4px;border:1px solid #d5e5ed;border-radius:18px;background:linear-gradient(145deg,#f4fbff,#edf4fa 55%,#e9f5f1);box-shadow:0 22px 65px #09152530;display:none;align-items:stretch;transform-origin:top right;}
 .modern-header .nav-links.active{display:flex;left:auto;animation:nav-arrive .18s ease-out;}
 .modern-header .nav-links>a{box-sizing:border-box;display:flex;align-items:center;gap:15px;width:100%;padding:13px 15px;color:#243c55;font-size:.92rem;border:0;border-radius:10px;}
 .modern-header .nav-links>a i{display:inline-block;color:#36716b;font-size:.95rem;width:20px;text-align:center;}
 .modern-header .nav-links>a:hover,.modern-header .nav-links>a[aria-current="page"]{background:#d8ebe9;color:#163f3a;}
 .modern-header .nav-theme-toggle{width:100%;height:auto;justify-content:flex-start;gap:15px;margin:7px 0 0;padding:13px 15px;border:0;border-top:1px solid #cddfe5;border-radius:8px;color:#243c55;background:#ffffff80;}
 .modern-header .nav-theme-toggle .theme-text{display:inline;font-size:.88rem;}
 body.dark-theme .modern-header .nav-links{background:linear-gradient(145deg,#142b40,#132c2c);border-color:#355466;}
 body.dark-theme .modern-header .nav-links>a,body.dark-theme .modern-header .nav-theme-toggle{color:#e1eef8;}
 body.dark-theme .modern-header .nav-links>a i{color:#79decf;}
 body.dark-theme .modern-header .nav-links>a:hover,body.dark-theme .modern-header .nav-links>a[aria-current="page"]{background:#244b4b;color:#fff;}
 body.dark-theme .modern-header .nav-theme-toggle{background:#ffffff08;border-color:#355466;}
 .mf-shell{padding:44px 22px 25px;}.mf-invite{align-items:start;flex-direction:column;padding-bottom:35px;gap:25px;}.mf-contact{padding:15px 23px;}.mf-grid{grid-template-columns:1fr 1fr;gap:32px;padding:35px 0;}.mf-brand{grid-column:1/-1;}.mf-bottom{align-items:start;flex-direction:column;gap:18px;}
}
@keyframes nav-arrive{from{opacity:0;transform:translateY(-7px) scale(.97);}to{opacity:1;transform:none;}}
/* Page design: editorial type, asymmetric panels and richer surfaces. */
.profile-page{max-width:1240px;padding:0 32px 65px;}
.profile-page .pp-eyebrow{color:#237b72;font-size:.67rem;letter-spacing:.19em;}
body.dark-theme .profile-page .pp-eyebrow{color:#79decf;}
.profile-page .pp-hero{position:relative;gap:55px;padding:74px 0 64px;grid-template-columns:1.3fr 1fr;}
.profile-page h1{font-size:clamp(3.2rem,6.8vw,6rem);font-weight:600;line-height:1.02;letter-spacing:-.065em;}
.profile-page .pp-hero h1 .pp-name-last{display:block;color:#237b72;}
body.dark-theme .profile-page .pp-hero h1 .pp-name-last{color:#79decf;}
.profile-page .pp-lead{font-size:1.25rem;color:var(--text-dark);font-weight:500;line-height:1.6;letter-spacing:-.018em;}
.profile-page .pp-muted{line-height:1.85;max-width:580px;}
.profile-page .pp-portrait{border:0;border-radius:28px;padding:42px 30px 25px;background:radial-gradient(circle at 50% 25%,#bdd7d0,transparent 64%),#d9e9e2;isolation:isolate;overflow:hidden;transform:rotate(2deg);box-shadow:0 25px 70px #1b3e3320;}
.profile-page .pp-portrait:before{content:'';position:absolute;inset:22px;border:1px solid #507f6b30;border-radius:50% 50% 20px 20px;z-index:-1;}
.profile-page .pp-portrait img{max-width:340px;border-radius:50% 50% 22px 22px;background:#b6ccc6;filter:saturate(.8);box-shadow:0 10px 35px #17372c20;transform:rotate(-2deg);}
.profile-page .pp-caption{padding:20px 18px 0;color:#183a35;transform:rotate(-2deg);}
.profile-page .pp-caption .pp-muted{color:#43645c;}
body.dark-theme .profile-page .pp-portrait{background:radial-gradient(circle at 50% 25%,#2c6663,transparent 65%),#183b3b;}
body.dark-theme .profile-page .pp-caption,body.dark-theme .profile-page .pp-caption .pp-muted{color:#cce7e2;}
.profile-page .pp-button{border-radius:100px;background:#183e38;color:#fff;padding:14px 23px;font-size:.9rem;box-shadow:0 6px 18px #173e3812;}
.profile-page .pp-button:hover{background:#28665b;transform:translateY(-2px);}
.profile-page .pp-secondary{background:transparent;color:var(--text-dark);border-color:#8caca355;box-shadow:none;}
.profile-page .pp-secondary:hover{background:var(--bg-gray);}
.profile-page .pp-section{padding:60px 0;}
.profile-page h2{font-size:clamp(1.9rem,3.2vw,2.8rem);font-weight:500;letter-spacing:-.055em;}
.profile-page .pp-heading{margin-bottom:32px;}.profile-page .pp-heading>a{color:var(--text-dark);text-decoration:none;border-bottom:1px solid #60948a;padding-bottom:4px;}
.profile-page .pp-grid{gap:24px;}.profile-page .pp-card{border:1px solid var(--bg-gray);border-radius:20px;box-shadow:0 9px 28px #183c3210;transition:transform .25s,box-shadow .25s;}
.profile-page .pp-card:hover{transform:translateY(-5px);box-shadow:0 18px 35px #183c321c;}
.profile-page .pp-card-content{padding:27px;}.profile-page .pp-card img{aspect-ratio:16/10;}.profile-page .pp-card h3{font-size:1.18rem;letter-spacing:-.035em;}
.profile-page .pp-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e4f0e9;color:#237b72;font-size:1.2rem;}
.profile-page .pp-card:nth-child(2) .pp-icon{background:#e8ecfa;color:#626cba;}.profile-page .pp-card:nth-child(3) .pp-icon{background:#f5edde;color:#a57932;}
.profile-page .pp-meta{font-size:.7rem;letter-spacing:.02em;}.profile-page .pp-tag{border:0;border-radius:100px;background:var(--bg-gray);padding:4px 9px;}
.profile-page .pp-feature{position:relative;border:0;border-radius:25px;padding:45px;background:radial-gradient(ellipse at top right,#245a64,transparent 60%),#122b3b;color:#f4f8fc;gap:50px;overflow:hidden;}
.profile-page .pp-feature .pp-eyebrow{color:#79decf;}.profile-page .pp-feature p{color:#bbccda;}.profile-page .pp-feature h3{font-size:1.75rem;line-height:1.35;font-weight:500;}.profile-page .pp-feature .pp-button{background:#a3e3d3;color:#12392f;}.profile-page .pp-feature a{color:#c2ece2;}
.profile-page .pp-reading{gap:35px;}.profile-page .pp-reading li{border-color:#a4c6bd;}.profile-page .pp-reading li:before{font-size:2.6rem;font-weight:400;letter-spacing:-.08em;color:#8aafa4;}
.profile-page .pp-callout{display:none;}/* The shared footer now carries the contact invitation. */
.profile-page .pp-section:has(>.pp-callout){display:none;}
.profile-page .pp-jump{padding:15px;background:var(--bg-light);border:1px solid var(--bg-gray);border-radius:16px;gap:8px;}
.profile-page .pp-jump a{border:0;border-radius:9px;padding:9px 16px;background:var(--bg-offwhite);color:var(--text-dark);}
.profile-page .pp-jump a:hover{background:#e0eee8;color:#183e38;}
.profile-page .pp-year{grid-template-columns:110px 1fr;gap:30px;}.profile-page .pp-year>h3{font-size:2.3rem;letter-spacing:-.07em;color:#7ca194;font-weight:400;}
.profile-page .pp-citations li{background:var(--bg-light);padding:25px 30px;border:1px solid var(--bg-gray);border-radius:17px;margin-bottom:16px;}
.profile-page .pp-citations a{color:#237b72;}body.dark-theme .profile-page .pp-citations a{color:#79decf;}
.profile-page .pp-chips li{border-radius:100px;padding:8px 15px;font-size:.78rem;}
@media(max-width:900px){.profile-page .pp-hero{gap:30px;}.profile-page .pp-portrait{padding:30px 20px 22px;}.profile-page .pp-feature{padding:30px;gap:25px;}}
@media(max-width:800px){.profile-page{padding:0 24px 40px;}.profile-page .pp-hero{grid-template-columns:1fr;padding:45px 0;gap:40px;}.profile-page .pp-portrait{width:100%;max-width:420px;margin:auto;box-sizing:border-box;transform:none;}.profile-page .pp-portrait img,.profile-page .pp-caption{transform:none;}.profile-page .pp-section{padding:40px 0;}.profile-page .pp-feature{grid-template-columns:1fr;}.profile-page .pp-year{grid-template-columns:1fr;gap:0;}.profile-page .pp-card-content{padding:23px;}}
@media(prefers-reduced-motion:reduce){.modern-header *,.modern-footer *,.profile-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

/* Show the complete recent-post images at every screen size. */
.profile-page #home-recent-posts .pp-card {
    display: flex;
    flex-direction: column;
}
.profile-page #home-recent-posts .pp-card > img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    flex: 0 0 auto;
}
.profile-page #home-recent-posts .pp-card-content {
    flex: 1;
}
