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

/*------------- CSS Variables for Easy Customization ---------------- */
:root {
    --primary-color: #2C5282;
    --secondary-color: #3182CE;
    --accent-color: #63B3ED;
    --text-color: #2D3748;
    --text-light: #4A5568;
    --bg-color: #FFFFFF;
    --bg-light: #F7FAFC;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/*------------- Whole Document ---------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

/*------------- Links ---------------- */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/*------------- Profile Image ---------------- */
img[src*="naimi_headshot"] {
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
    transition: transform 0.3s ease;
}

img[src*="naimi_headshot"]:hover {
    transform: scale(1.02);
}

/*------------- Lists ---------------- */
ul {
    padding-left: 0;
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

/*------------- Navbar Customization ---------------- */
.navbar {
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
}

.navbar-nav > li > a {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav > li > a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color) !important;
}

.navbar-nav > li > a > i {
    transition: transform 0.2s ease;
}

.navbar-nav > li > a:hover > i {
    transform: scale(1.1);
}

/*------------- Content Sections ---------------- */
.container {
    max-width: 900px;
}

/*------------- Welcome Section ---------------- */
body > div.container > p:first-of-type {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 2rem;
}

/*------------- Section Spacing ---------------- */
h2 + br + p {
    margin-top: 1rem;
}

/*------------- Buttons/Links Enhancement ---------------- */
a[href*="publications.html"],
a[href*="teaching.html"] {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white !important;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none !important;
    margin-top: 0.5rem;
}

a[href*="publications.html"]:hover,
a[href*="teaching.html"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/*------------- News Section ---------------- */
h2:contains("News") + p {
    margin-top: 1.5rem;
}

/*------------- Logo Images ---------------- */
img[alt*="Logo"] {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/*------------- Footer/Dividers ---------------- */
hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
}

center {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/*------------- Responsive Design ---------------- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    img[src*="naimi_headshot"] {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
        float: none !important;
    }

    .container {
        padding: 0 1rem;
    }
}

/*------------- Smooth Animations ---------------- */
* {
    transition: color 0.2s ease;
}

/*------------- Cards for Sections (Optional Enhancement) ---------------- */
.section-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

/*------------- Accessibility ---------------- */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/*------------- Print Styles ---------------- */
@media print {
    .navbar {
        display: none;
    }

    a {
        color: var(--text-color) !important;
        text-decoration: underline;
    }
}
