:root {
    /* Premium Purple & Green Palette (Light Theme) */
    --primary-color: #7e22ce;
    /* Purple 700 */
    --primary-dark: #581c87;
    /* Purple 900 */
    --primary-light: #a855f7;
    /* Purple 500 */
    --accent-color: #10b981;
    /* Emerald 500 */
    --accent-glow: rgba(16, 185, 129, 0.4);

    --text-main: #111827;
    /* Gray 900 */
    --text-muted: #4b5563;
    /* Gray 600 */
    --text-light: #f3f4f6;
    /* Gray 100 */

    --bg-gradient-start: #f8fafc;
    /* Slate 50 */
    --bg-gradient-end: #e2e8f0;
    /* Slate 200 */

    /* Light Glass */
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);

    --transition-speed: 0.3s;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out alternate;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    top: -100px;
    right: -100px;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #a855f7, #10b981);
    bottom: -100px;
    left: -200px;
    animation-delay: -5s;
}

.globe-3 {
    width: 300px;
    height: 300px;
    background: #10b981;
    bottom: 20%;
    right: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(126, 34, 206, 0.2);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(126, 34, 206, 0.3);
}

.nav-socials {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.nav-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 140px 2rem 100px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(126, 34, 206, 0.4);
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(126, 34, 206, 0.5), 0 0 20px rgba(16, 185, 129, 0.2);
}

.secondary-button {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(126, 34, 206, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Cards & Sections */
.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 20px 40px -10px rgba(126, 34, 206, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.citation-box {
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.citation-box i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.citation {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Grid Layouts (Centers) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(126, 34, 206, 0.1), 0 0 15px rgba(16, 185, 129, 0.08);
    border-color: var(--accent-color);
}

.grid-icon {
    display: none;
    /* Hide old icon circles */
}

.inst-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    max-height: 50px;
    min-width: 50px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    background-color: rgba(112, 48, 160, 0.05);
    border-radius: 8px;
    padding: 5px;
}

.grid-item:hover .inst-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.mini-logo {
    height: 30px;
    width: auto;
    max-height: 30px;
    min-width: 30px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    background-color: rgba(112, 48, 160, 0.05);
    border-radius: 5px;
    padding: 3px;
}

.grid-item.compact:hover .mini-logo {
    filter: grayscale(0%) brightness(1000%);
    /* Make white on hover if background is dark, or keep colored */
    filter: grayscale(0%);
    opacity: 1;
}

.grid-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.grid-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hover-arrow {
    margin-top: auto;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.grid-item:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Compact Grid (Fellowships) */
.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.compact-grid .grid-item.compact {
    padding: 1.25rem;
    justify-content: center;
    font-weight: 500;
    color: var(--primary-dark);
    border: 1px solid rgba(126, 34, 206, 0.1);
}

.compact-grid .grid-item.compact:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

/* Sidebar Layout (Leadership & Meetings) */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Timeline/Leadership */
.timeline-list {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    /* center on line */
    top: 5px;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--text-muted);
    border-radius: 50%;
}

.timeline-item.current::before {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-item .year {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content strong {
    color: var(--primary-dark);
    display: block;
    font-size: 1.1rem;
}

/* Meeting Grid */
.meetings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.meeting-month {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.meeting-month:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Resources */
.highlight-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(16, 185, 129, 0.06));
    border-color: var(--accent-color);
}

.resource-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.resource-column h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.resource-column i {
    color: var(--accent-color);
}

.text-link-animated {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.text-link-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.text-link-animated:hover::after {
    width: 100%;
}

/* Contact & Footer */
.contact-section {
    text-align: center;
    background: var(--primary-dark);
    color: white;
    border: none;
}

.contact-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.big-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-dark);
}

.big-button:hover {
    background: var(--accent-color);
    color: white;
}

.footer-socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.developer-credit {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive */
@media (max-width: 900px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu would go here */
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 600px) {
    .hero {
        padding-top: 140px;
    }

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

    .section-card {
        padding: 1.5rem;
    }

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