@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    /* Color Palette - Brighter / Light Theme */
    --bg-dark: #f8fafc;
    /* Slate 50 (Off-white) */
    --bg-darker: #ffffff;
    /* White */
    --text-primary: #020617;
    /* Slate 950 (Almost Black) for maximum contrast */
    --text-secondary: #334155;
    /* Slate 700 (Dark Gray) for readability */
    --text-on-dark: #cbd5e1;
    /* Slate 300 for dark backgrounds (Footer) */
    --accent-gold: #b45309;
    /* Darker Gold/Amber for contrast on white */
    --accent-platinum: #64748b;
    /* Slate 500 */

    /* Glassmorphism - Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* More opaque for better text bg */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --blur-amount: 20px;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.1rem;
    /* Increased base size */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

/* Glass Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
    border-color: var(--accent-gold);
}

/* Utility Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    /* Lighter nav for light theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Combined Hero + About Section */
.hero-about-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 100px 0 0;
    overflow: hidden;
}

.hero-about-section>.container {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-about-section>.quote-banner {
    flex-shrink: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(204, 164, 59, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.hero-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.hero-about-content {
    padding-top: 1rem;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.about-bio {
    margin-bottom: 2rem;
}

.about-bio p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--accent-gold);
}

.image-wrapper {
    position: relative;
    padding: 0;
    border-radius: 24px;
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(110%);
}

/* Full-width quote banner */
.quote-banner {
    width: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 2.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.quote-banner blockquote {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.quote-banner cite {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
}

/* Mobile responsive for hero-about */
@media (max-width: 768px) {
    .hero-about-section {
        padding: 100px 0 0;
        min-height: auto;
    }

    .hero-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        max-width: 200px;
    }

    .title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .about-bio p {
        font-size: 0.95rem;
        text-align: left;
    }

    .quote-banner {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .quote-banner blockquote {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger X Animation when active */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .title {
        font-size: 3rem;
    }

    .tagline {
        margin: 0 auto 2.5rem;
    }
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.section-header {
    margin-bottom: 2rem;
    /* Reduced from 5rem */
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-primary);
    display: inline-block;
    position: relative;
}

/* Underline decoration for headers */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    /* Removed 300 */
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    /* Gold instead of blue */
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.quote-card blockquote {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    /* Removed 300 */
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.quote-card cite {
    display: block;
    text-align: right;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
}

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

    .stats-row {
        flex-direction: column;
    }
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

/* New Expandable Experience Cards */
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.exp-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease;
}

.exp-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.exp-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.exp-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.exp-title {
    flex: 1;
    min-width: 0;
}

.exp-title h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.exp-role {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.exp-toggle {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.exp-toggle svg {
    width: 100%;
    height: 100%;
}

.exp-card.expanded .exp-toggle {
    transform: rotate(180deg);
}

/* Expandable Details */
.exp-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.exp-card.expanded .exp-details {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.exp-location {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.exp-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.exp-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 1rem;
}

.exp-badge.current {
    background: var(--accent-gold);
    color: white;
}

/* Current position highlight */
.exp-card.expanded:first-child {
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .exp-logo {
        width: 40px;
        height: 40px;
    }

    .exp-title h3 {
        font-size: 1rem;
    }

    .exp-role {
        font-size: 0.85rem;
    }

    .exp-header {
        padding: 0.875rem 1rem;
    }

    .exp-card.expanded .exp-details {
        padding: 0 1rem 1rem;
    }
}

.timeline-item .content {
    background: white;
    /* Ensure distinct card background */
    border: 1px solid #e2e8f0;
    /* Clear border (Slate-200) */
    padding: 1rem;
    /* Compact padding */
    height: 100%;
    /* Equal height cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 12px;
    /* Slightly tighter radius */
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

/* Logo Styling */
.timeline-logo {
    width: 48px;
    /* Smaller logo */
    height: 48px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    border: 1px solid var(--glass-border);
}

.timeline-item h3 {
    margin: 0 0 0.25rem 0;
    /* Reduced margin */
    color: var(--text-primary);
    font-size: 1.25rem;
    /* Slightly smaller title */
    font-weight: 700;
}

.timeline-item .role {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 0.25rem 0;
    /* Reduced margin */
    font-size: 1rem;
    /* Slightly smaller role */
}

.timeline-item .location {
    display: inline-block;
    font-size: 0.75rem;
    /* Compact location */
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.timeline-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on tablet */
    }
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        width: 100%;
    }

    .timeline-item.current-role {
        grid-column: auto;
        /* Reset span on mobile */
        max-width: 100%;
    }

    .timeline-item {
        width: 100%;
    }
}

/* Education Section */
.education-section {
    padding: var(--section-padding);
    background: linear-gradient(to top, var(--bg-dark), var(--bg-darker));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.education-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    align-items: center;
    /* Center content including logo */
    text-align: center;
    /* Center text */
}

.education-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.edu-details {
    text-align: left;
    /* Reset text align for details list */
    width: 100%;
}

.education-card h4 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.edu-details h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.edu-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edu-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.edu-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* School Colors */
.edu-harvard {
    background-color: #A51C30 !important;
    /* Harvard Crimson */
    border: none !important;
}

.edu-queens {
    background-color: #002452 !important;
    /* Queen's Blue */
    border: none !important;
}

/* Text overrides for dark school backgrounds */
.edu-harvard h3,
.edu-harvard h4,
.edu-harvard h5,
.edu-harvard li,
.edu-queens h3,
.edu-queens h4,
.edu-queens h5,
.edu-queens li {
    color: white !important;
}

.edu-harvard .edu-details h5,
.edu-queens .edu-details h5 {
    border-color: rgba(255, 255, 255, 0.3);
}

.edu-harvard .edu-details li::before,
.edu-queens .edu-details li::before {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .education-logo {
        width: 60px;
        margin-bottom: 1rem;
    }

    .education-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .education-card h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .edu-details h5 {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .edu-details li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* Research Section */
.research-section {
    padding: var(--section-padding);
    background: linear-gradient(to top, var(--bg-dark), var(--bg-darker));
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Explicit 3 columns */
    gap: 1.5rem;
    /* Reduced gap from 3rem */
}

/* ... media queries ... */

.research-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    height: auto;
    overflow: visible;
    background: white;
    padding: 1.5rem;
    position: relative;
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-platinum);
    margin-bottom: 0.5rem;
    /* Reduced margin */
    font-weight: 700;
}

.category-tag.research {
    color: var(--accent-gold);
}

.research-card h3 {
    font-size: 1.2rem;
    /* Smaller title */
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.publication {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    /* Reduced margin */
    font-style: italic;
    opacity: 0.8;
}

.summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1rem;
    /* Reduced from 2rem */
    /* Clamp text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.read-more {
    text-decoration: none;
    color: var(--accent-gold);
    font-weight: 600;
    transition: margin-left 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more:hover {
    margin-left: 5px;
    color: white;
}

/* Contact Modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-primary);
    text-decoration: none;
}

/* Adjust contact form for modal */
.modal-content .contact-form {
    padding: 0;
}

/* Past Research Expandable Section */
.past-research-toggle {
    margin-top: 2rem;
    text-align: center;
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
}

.expand-btn.expanded {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
}

.expand-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.past-research-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.past-research-content.expanded {
    max-height: 10000px;
    opacity: 1;
    transition: max-height 0.8s ease-in, opacity 0.3s ease;
}

.past-research-content .concepts-row {
    margin-top: 3rem;
}

.past-research-content .case-study-section {
    padding: 3rem 0;
}

.past-research-content .stats-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.past-research-content .methodology-section {
    padding: 3rem 0;
}

/* D&I Consulting Section */
.consulting-section {
    padding: var(--section-padding);
    padding-bottom: 0;
    background: linear-gradient(to top, var(--bg-dark), var(--bg-darker));
}

/* Colorful Concept Cards Row */
.concepts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.concept-card {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    border: none;
}

.concept-diversity {
    background: #f5a623;
}

.concept-inclusion {
    background: #e74c3c;
}

.concept-equity {
    background: #27ae60;
}

.concept-icon {
    margin-bottom: 1.5rem;
}

.concept-icon svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.9);
}

.concept-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: white;
}

.concept-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* Case Study Section */
.case-study-section {
    padding: 5rem 0;
    background: white;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Report Cover */
.report-cover {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.report-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Case Study Text */
.case-study-text h3 {
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.case-study-text h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.case-study-text h4:first-of-type {
    margin-top: 0;
}

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

.project-questions {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--text-secondary);
}

.project-questions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.case-study-text .disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
    margin: 1.5rem 0;
    text-align: left;
}

/* Quote Section */
.quote-section {
    background: #1e3a5f;
    padding: 5rem 0;
    text-align: center;
}

.quote-section blockquote {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-style: normal;
}

.quote-section cite {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: normal;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: white;
}

.stats-title {
    text-align: center;
    color: #e74c3c;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

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

.stat-block {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.stat-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .concepts-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .report-cover {
        max-width: 400px;
        margin: 0 auto;
    }
}

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

    .consulting-header {
        padding: 3rem 0;
    }

    .consulting-header h2 {
        font-size: 2rem;
    }

    .quote-section blockquote {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* Methodology Gallery Section */
.methodology-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.methodology-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.methodology-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.methodology-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.methodology-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.methodology-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.methodology-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* LinkedIn Section */
.linkedin-section {
    padding: var(--section-padding);
    background-color: #f8fafc;
    /* Slightly different bg to separate from white/Research */
}

/* LinkedIn Feed Widget Wrapper */
.linkedin-feed-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

/* Hide the repeated profile headers from SociableKIT widget */
.sk-ww-linkedin-profile-post .sk-linkedin-profile-post-profile {
    display: none !important;
}

/* Ensure posts display in a nice grid */
.sk-ww-linkedin-profile-post .sk-linkedin-profile-post-posts {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1024px) {
    .sk-ww-linkedin-profile-post .sk-linkedin-profile-post-posts {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sk-ww-linkedin-profile-post .sk-linkedin-profile-post-posts {
        grid-template-columns: 1fr !important;
    }
}

/* Limit to showing only 5 posts */
.sk-ww-linkedin-profile-post .sk-linkedin-profile-post-posts>*:nth-child(n+6) {
    display: none !important;
}

.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.linkedin-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #0077b5;
}

.linkedin-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.li-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    /* Use the standard blue filter or leave original */
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .linkedin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem;
    /* Generous padding */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    /* Clearer border */
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.submit-btn {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 42%;
    height: 1px;
    background: var(--glass-border);
}

.modal-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 42%;
    height: 1px;
    background: var(--glass-border);
}

.linkedin-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border: 1px solid #0077b5;
    border-radius: 4px;
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.linkedin-message-btn:hover {
    background: #0077b5;
    color: white;
}

.linkedin-message-btn .btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain;
    /* Icon is blue by default */
    transition: filter 0.3s ease;
}

.linkedin-message-btn:hover .btn-icon {
    filter: brightness(0) invert(1);
    /* Turn white on hover */
}

footer {
    padding: 2rem;
    /* Reduced padding */
    text-align: center;
    background-color: #0f172a;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    border-top: 1px solid var(--glass-border);
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right columns */
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
}

.footer-email {
    font-size: 1rem;
    /* Compact font size */
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0;
    justify-self: start;
    /* Align to far left */
}

.footer-email:hover {
    color: var(--accent-gold);
}

.copyright {
    grid-column: 2;
    /* Force to center column */
    font-size: 0.9rem;
    color: var(--text-on-dark);
    opacity: 0.8;
    margin: 0;
    justify-self: center;
    /* Align to exact center */
    white-space: nowrap;
    /* Prevent wrapping if possible */
}

.footer-social {
    grid-column: 3;
    /* Force to right column */
    justify-self: end;
    /* Align to far right */
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-icon-link:hover {
    transform: scale(1.1);
}

.footer-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Removed filter to show original brand color */
    transition: transform 0.3s ease;
}

.footer-icon-link:hover .footer-icon {
    /* No filter change needed */
}

/* Footer Contact Button */
.footer-contact-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: black;
}

/* Fix for Research Card Layout */
.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Use flex-grow instead of height: 100% */
    justify-content: space-between;
}

/* Outer card just needs to be a flex container, GRID will stretch it */
.research-card {
    height: auto;
    /* Let grid handle height */
}

/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   =========================================== */
@media (max-width: 768px) {

    /* General spacing adjustments */
    :root {
        --section-padding: 3rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    /* Hero section */
    .hero-section {
        min-height: auto;
        padding: 100px 1rem 3rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .image-wrapper {
        max-width: 280px;
    }

    /* About section */
    .about-content p {
        font-size: 1rem;
    }

    .quote-card blockquote {
        font-size: 1.2rem;
    }

    /* Experience section */
    .timeline-logo {
        width: 40px;
        height: 40px;
    }

    .timeline-item h3 {
        font-size: 1.1rem;
    }

    .timeline-item .role {
        font-size: 0.9rem;
    }

    .timeline-item p {
        font-size: 0.9rem;
    }

    /* Education section */
    .education-card {
        padding: 1.5rem;
    }

    .education-logo {
        width: 60px;
    }

    .education-card h3 {
        font-size: 1.25rem;
    }

    .edu-details li {
        font-size: 0.9rem;
    }

    /* Research section */
    .filter-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .research-card {
        padding: 1.25rem;
        margin-bottom: 0;
        height: auto !important;
        min-height: auto !important;
        overflow: visible;
        transform: none !important;
    }

    .research-card:hover {
        transform: none !important;
    }

    .research-card h3 {
        font-size: 1.1rem;
    }

    /* Disable card hover transforms on mobile to prevent overlap */
    .glass-card:hover {
        transform: none;
    }

    .timeline-item .content:hover {
        transform: none;
    }

    /* Expandable section */
    .expand-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Concept cards */
    .concept-card {
        padding: 2rem 1.5rem;
    }

    .concept-card h3 {
        font-size: 1.5rem;
    }

    .concept-card p {
        font-size: 0.95rem;
    }

    /* Case study */
    .case-study-text h3 {
        font-size: 1.5rem;
    }

    .case-study-text h4 {
        font-size: 1.1rem;
    }

    .project-questions {
        padding-left: 1.5rem;
    }

    /* LinkedIn section */
    .linkedin-feed-wrapper {
        padding: 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-content .section-header h2 {
        font-size: 1.5rem;
    }

    /* CTA buttons */
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

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

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .timeline-item .content {
        padding: 0.75rem;
    }

    .concept-icon svg {
        width: 50px;
        height: 50px;
    }
}