/* ============================================================
   COMMON — shared across all pages.
   Page-specific rules live in index/education/skills/projects/papers.css,
   which are loaded after this file and may override it.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #03045e;
    --bg-page:    #eef2f7;
    --bg-footer:  #eef2f7;
    --hover-color: gray;
}

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
    background-color: var(--bg-page);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* ── NAVBAR — glass effect ── */
.navbar {
    background: rgba(238, 244, 248, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(238, 244, 248, 0.35);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 4px 24px rgba(3, 4, 94, 0.12);
}

.nav-name {
    font-family: "Marck Script", cursive;
    letter-spacing: -5px;
    font-weight: 100;
    font-size: larger;
    color: var(--primary-color);
}

.nav-name .letter {
    display: inline-block;
    animation: colorChange 4s var(--delay) infinite;
    transition: transform 0.3s ease;
}

.nav-name .letter:hover { transform: translateY(-2px) scale(1.1); }

@keyframes colorChange {
    0%   { color: #e95057; }
    25%  { color: #ab3e8f; }
    50%  { color: #03045e; }
    75%  { color: #00a989; }
    100% { color: #dfdd19; }
}

.social-links-nav { margin-top: 5px; display: flex; gap: 75px; }

.nav-social-icon { color: #483D8B; font-size: .9rem; transition: color 0.2s ease; }
.nav-social-icon:hover { color: var(--hover-color); }

.navbar-toggler { padding: 0.25rem 0.5rem; border: none; outline: none; }
.navbar-nav { margin-left: auto; padding: 0 15px; gap: 10px; }

.navbar-nav .nav-link {
    border: 1px dashed yellowgreen;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.1s ease;
    border-radius: 10px;
    padding: 0;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    font-weight: 700;
    color: #003366;
    background-color: rgba(0, 51, 102, 0.12);
}

.navbar-nav .nav-link:hover {
    font-weight: 700;
    background-color: gainsboro;
    transform: scale(1.1);
}

/* ── PAGE HEADING ── */
.intro {
    text-align: center;
    margin: 2rem 0;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ── SHARED TEXT HELPERS ── */
.fonts { font-family: "IBM Plex Mono", monospace; }

strong {
    color: var(--primary-color);
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}

/* ── SKILL / COURSEWORK CHIPS — two tiers:
   .chip.core (solid navy) = applied / completed,
   .chip (light)           = familiar / learning  ── */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
}

.chip {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #03045e;
    background-color: #eef4ff;
    border: 1px solid #c8daff;
    border-radius: 10px;
    padding: 5px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 4, 94, 0.15);
}

.chip.core {
    background-color: #03045e;
    border-color: #03045e;
    color: #ffffff;
}

/* ── BADGES — Solo/Team and paper status ── */
.badge-type,
.status-badge {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* ── FOOTER ── */
.footer {
    background-color: var(--bg-footer);
    padding: clamp(15px, 3vw, 25px) 0;
    margin-top: auto;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    border-top: 1px solid rgba(3, 4, 94, 0.12);
}

.footer p { margin-bottom: 5px; }
.contact-info { margin-top: 10px; }

.footer-link {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--primary-color);
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-link:hover { color: var(--hover-color); transform: translateY(-2px); }

/* ── TYPOGRAPHY ── */
h1 { font-family: 'Times New Roman', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 700; line-height: 1.2; }
h2 { font-family: 'Times New Roman', serif; font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 600; line-height: 1.3; }
h3 { font-family: 'Times New Roman', serif; font-size: clamp(1.2rem,2.5vw,1.8rem); font-weight: 600; line-height: 1.4; }
h4, h5, h6 { font-family: 'Times New Roman', serif; font-weight: 500; line-height: 1.4; }

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .navbar-nav { padding-top: 1rem; }
    .navbar-nav .nav-link { padding: 1px; width: fit-content; }
}

@media (max-width: 576px) {
    .navbar { padding: 10px 0; }
    body { padding-top: 80px; }

    .chip {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}
