/* ═══════════════════════════════════════════════
   SHARED STYLES — Mohammad Abdulraheem Portfolio
   Import this in every page.
   ═══════════════════════════════════════════════ */

:root {
    --white: #ffffff;
    --off-white: #f7f6f3;
    --cream: #f0ede6;
    --black: #0a0a0a;
    --ink: #1a1a1a;
    --ink-mid: #4a4a4a;
    --ink-light: #8a8a8a;
    --ink-faint: #c5c5c5;
    --accent: #0d3fa8;
    --accent-dark: #082d7a;
    --accent-glow: rgba(13, 63, 168, .15);
    --gold: #b8860b;
    --gold-light: #d4a843;
    --ease: cubic-bezier(.23, 1, .32, 1);
    --t: .28s;
    --nav-height: 68px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

h1,h2,h3,h4,h5 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: .02em;
    line-height: 1;
}
h1 { font-size: clamp(2.6em, 6.5vw, 4.8em); font-weight: 700; }
h2 { font-size: clamp(1.8em, 3.5vw, 2.6em); font-weight: 600; }
h3 { font-size: 1.5em; font-weight: 400; }
h4 { font-size: .85em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
p  { font-size: 1.05em; line-height: 1.85; color: var(--ink-mid); margin: 14px 0; }
strong { font-weight: 600; color: var(--ink); }

.section-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: .66em;
    font-weight: 300;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ── CONTAINER ── */
.container { width: min(1080px, 90vw); margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: .72em; font-weight: 500; letter-spacing: .2em;
    text-transform: uppercase;
    transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t), border-color var(--t);
    cursor: pointer; border: none; outline: none; border-radius: 3px;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); box-shadow: 0 8px 28px rgba(13,63,168,.35); }
.btn-outline { background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
    display: inline-block; padding: 5px 13px;
    border: 1px solid var(--ink);
    font-family: 'Oswald', sans-serif; font-size: .64em; font-weight: 400;
    letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
    transition: background var(--t), color var(--t); cursor: default; border-radius: 2px;
}
.tag:hover { background: var(--ink); color: #fff; }
.tag-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.tag-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.tag-gold:hover { background: #9a6d0c; border-color: #9a6d0c; }

/* ── PAGE TITLE BANNER ── */
.page-title-banner {
    background: var(--ink); padding: 48px 0; text-align: center;
    position: relative; overflow: hidden;
}
.page-title-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 100%);
    pointer-events: none;
}
.page-title-banner h2 {
    color: #fff; position: relative; z-index: 2;
    font-size: clamp(1.6em, 3vw, 2.2em);
}
.page-title-banner .section-label { position: relative; z-index: 2; color: var(--accent); }

/* ── PAGE ENTRY ANIMATION ── */
.page-content {
    animation: pageFadeIn .5s var(--ease);
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── TOP NAVBAR ── */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    height: var(--nav-height);
    background: rgba(10,10,10,.94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    transition: background var(--t);
}
.topnav.light {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.topnav.light .nav-brand { color: var(--ink); }
.topnav.light .nav-link { color: var(--ink-mid); }
.topnav.light .nav-link:hover, .topnav.light .nav-link.active { color: var(--accent); }
.topnav.light .nav-link.active::after { background: var(--accent); }
.topnav.light .nav-toggle span { background: var(--ink); }

.nav-brand {
    font-family: 'Oswald', sans-serif; font-size: 1.15em; font-weight: 700;
    letter-spacing: .06em; color: #fff;
    display: flex; align-items: center; gap: 10px;
    transition: color var(--t); white-space: nowrap;
}
.nav-brand-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent); display: inline-block; flex-shrink: 0;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
    font-family: 'Oswald', sans-serif; font-size: .7em; font-weight: 400;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.7); padding: 8px 16px; position: relative;
    transition: color var(--t); cursor: pointer; white-space: nowrap;
    display: flex; align-items: center; gap: 7px;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 2px;
    left: 16px; right: 16px; height: 2px;
    background: var(--accent); border-radius: 1px;
}
.nav-link-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-link-icon svg {
    width: 16px; height: 16px; fill: none;
    stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 6px; z-index: 501;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: #fff;
    border-radius: 1px; transition: transform var(--t), opacity var(--t);
}

/* ── FOOTER BAR ── */
.footer-bar {
    padding: 24px 0; text-align: center;
    font-family: 'Oswald', sans-serif; font-size: .58em; font-weight: 300;
    letter-spacing: .22em; color: var(--ink-light);
    text-transform: uppercase; border-top: 1px solid #eee;
    direction: ltr;
}
.footer-bar.dark {
    border-top-color: rgba(255,255,255,.05);
    color: rgba(255,255,255,.16);
}

/* ── IEEE BADGE ── */
.ieee-badge-card {
    display: inline-flex; align-items: center; gap: 14px;
    background: #f9f7f1; border: 1px solid #e0d9c8;
    padding: 14px 22px; border-radius: 6px; margin-top: 20px;
    transition: box-shadow var(--t);
}
.ieee-badge-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.ieee-icon-wrap {
    width: 48px; height: 48px; flex-shrink: 0;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #d0c8b0;
}
.ieee-icon-wrap svg { width: 28px; height: 28px; }
.ieee-info .ieee-title {
    display: block;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: .85em;
    letter-spacing: .04em; color: var(--ink);
}
.ieee-info .ieee-sub {
    font-size: .75em; color: var(--ink-mid); font-family: 'Cairo', sans-serif;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(10,10,10,.97); flex-direction: column;
        padding: 80px 24px 24px; gap: 4px;
        transition: right var(--t) var(--ease); z-index: 499;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }
    .nav-link { padding: 12px 16px; font-size: .75em; width: 100%; }
}
@media (max-width: 520px) {
    .hero-cta-row { flex-direction: column; gap: 8px; }
    .hero-cta-row .btn { width: 100%; justify-content: center; }
}
