/* =====================================================
   JuliusXavierScott.css
   Custom styles for the Academic Profile
   ===================================================== */

:root {
  --primary: #0b3d6f;
  --bg-light: #f6f7f8;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --font-display: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --card-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(11, 61, 111, 0.1);
}
.mb-0{
  margin-bottom: 0;
}
* { box-sizing: border-box; font-family: var(--font-display); }
body { margin: 0; padding: 0; background-color: var(--bg-light); color: var(--text-main); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; color: var(--primary); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#main-header{
    background: linear-gradient(140deg, #0B3C6D 0%, #0d2d5c 55%, #08203f 100%) !important;
}
#main-header.sticky{
    background: #f6f7f8 !important;
}

/* Main Layout */
.main-content { padding: 40px 0; margin-top: 130px !important;}
.card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 12px; padding: 40px; border: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.02); margin-bottom: 30px; }

/* Hero */
.hero-card { display: flex; gap: 50px; align-items: center; }
.hero-image-container { position: relative; flex-shrink: 0; }
.hero-image { width: 220px; height: 220px; border-radius: 50%; border: 4px solid rgba(11,61,111,0.15); padding: 6px; }
.hero-image div { width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; }
.hero-verified { position: absolute; bottom: 15px; right: 15px; background: var(--primary); color: white; border-radius: 50%; display: flex; padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 2px solid white; }
.hero-info { flex-grow: 1; }
.badge-consultant { display: inline-block; background: rgba(11,61,111,0.1); color: var(--primary); font-size: 11px; font-weight: bold; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; letter-spacing: 1px; margin-bottom: 15px; font-family: sans-serif; }
.hero-name { font-size: 48px; font-weight: bold; margin-bottom: 10px; }
.hero-name span { font-size: 20px; font-weight: normal; color: var(--text-muted); font-family: var(--font-display); margin-left: 10px; }
.hero-role { font-size: 20px; font-weight: 500; color: var(--text-main); margin-bottom: 20px; font-family: var(--font-display); }
.hero-location { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: bold; font-size: 16px; margin-bottom: 25px; font-family: sans-serif; }
.hero-location .material-symbols-outlined { font-size: 20px; }
.hero-stats { display: flex; gap: 15px; }
.stat-badge { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.6); font-family: sans-serif; }
.stat-badge .material-symbols-outlined { color: var(--primary); font-size: 20px; }

/* Two Column Layout */
.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 25px; font-weight: bold; }
.section-title .material-symbols-outlined { color: var(--primary); font-size: 26px; }

/* Left Column */
.bio-text { font-size: 18px; line-height: 1.7; color: var(--text-main); margin-bottom: 25px; text-align: justify;}
.bio-quote { background: rgba(11,61,111,0.04); border-left: 4px solid var(--primary); padding: 18px 25px; font-style: italic; color: var(--text-muted); font-size: 16px; border-radius: 0 8px 8px 0; }

.edu-item { display: flex; gap: 15px; margin-bottom: 25px; }
.edu-item:last-child { margin-bottom: 0; }
.edu-item .material-symbols-outlined { color: var(--primary); padding-top: 2px; }
.edu-content h4 { font-size: 18px; margin-bottom: 5px; font-family: var(--font-display); font-weight: bold; color: var(--text-main); }
.edu-content p { font-size: 15px; color: var(--text-muted); margin: 0; }

.exp-timeline { position: relative; padding-left: 35px; }
.exp-timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: rgba(11,61,111,0.15); }
.exp-item { position: relative; margin-bottom: 35px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-item::before { content: ''; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid white; outline: 1px solid var(--primary); }
.exp-item.secondary::before { background: white; border-color: var(--primary); outline: none; border-width: 4px; border: 4px solid rgba(11,61,111,0.3); }
.exp-content h4 { font-size: 18px; margin-bottom: 5px; font-family: var(--font-display); font-weight: bold; color: var(--text-main); }
.exp-content .company { color: var(--primary); font-size: 15px; font-weight: 600; margin: 0 0 5px 0; font-family: sans-serif; }
.exp-content .desc { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Right Column */
.column-right{ position: sticky; top: 130px; height: fit-content;}
.books-card { background: var(--primary); color: white; border: none; }
.books-card .section-title { color: white; }
.books-card .section-title .material-symbols-outlined { color: white; }
.book-item { background: rgba(255,255,255,0.1); padding: 18px; border-radius: 8px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.15); }
.book-item:last-child { margin-bottom: 0; }
.book-item h4 { color: white; font-family: var(--font-display); font-size: 18px; margin-bottom: 5px; font-weight: bold; }
.book-item p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0; }
.book-item .total { font-size: 15px; font-family: sans-serif; font-weight: 500; }
.book-item .total span { font-size: 22px; font-weight: bold; font-family: var(--font-display); }

.achieve-list li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; line-height: 1.5; color: var(--text-main); }
.achieve-list li:last-child { margin-bottom: 0; }
.achieve-list .material-symbols-outlined { color: var(--primary); font-size: 20px; }

.membership-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(11,61,111,0.05); font-size: 10px; font-weight: bold; padding: 6px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-family: sans-serif; color: var(--text-main); }

/* Books Edited Section */
.books-edited-section { margin-top: 50px; }
.books-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.books-header-info h3 { font-size: 32px; margin-bottom: 5px; color: var(--primary); font-weight: bold; }
.books-header-info p { font-size: 16px; color: var(--text-muted); margin: 0; }

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-edited-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.book-edited-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(11,61,111,0.1); border-color: rgba(11,61,111,0.3); }
.book-cover { width: 140px; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.book-edited-card h4 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; margin-bottom: 10px; font-weight: bold; color: var(--text-main); }
.book-edited-card p { font-size: 14px; color: var(--text-muted); font-style: italic; margin: 0; flex-grow: 1; }
.book-lang { margin-top: 10px; font-size: 12px; font-weight: bold; color: var(--primary); background: rgba(11,61,111,0.05); padding: 5px 10px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 900px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .books-grid { grid-template-columns: 1fr; }
}

/* Publications */
.pub-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 35px; }
.pub-header-info h3 { font-size: 32px; margin-bottom: 5px; color: var(--primary); font-weight: bold; }
.pub-header-info p { font-size: 16px; color: var(--text-muted); margin: 0; }
.pub-badge { background: rgba(11,61,111,0.08); color: var(--primary); font-size: 14px; font-weight: bold; padding: 10px 18px; border-radius: 8px; font-family: sans-serif; }

.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pub-card { background: rgba(255,255,255,0.5); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; transition: border-color 0.3s; }
.pub-card:hover { border-color: rgba(11,61,111,0.3); }
.pub-category { font-size: 11px; font-weight: bold; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; font-family: sans-serif; }
.pub-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; font-weight: bold; line-height: 1.4; color: var(--text-main); }
.pub-card p { font-size: 14px; color: var(--text-muted); font-style: italic; margin: 0; }

.pub-footer { text-align: center; margin-top: 40px; }
.pub-footer a { color: var(--primary); font-weight: bold; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: sans-serif; }
.pub-footer a:hover { text-decoration: underline; }
.pub-footer .material-symbols-outlined { font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 40px 0; margin-top: 60px; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 15px; }
.footer-icon { background: var(--primary); color: white; padding: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-name { font-family: var(--font-heading); font-weight: bold; color: var(--primary); font-size: 18px; }
.footer-right { text-align: right; font-size: 13px; color: var(--text-muted); line-height: 1.6; font-family: sans-serif; }
.footer-right p { margin: 0; }

@media (max-width: 900px) {
    .header-nav nav { display: none; }
    .grid-layout { grid-template-columns: 1fr; }
    .hero-card { flex-direction: column; text-align: center; gap: 30px; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-location { justify-content: center; }
    .pub-grid { grid-template-columns: 1fr; }
    .pub-header { flex-direction: column; gap: 15px; }
    .footer .container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-right { text-align: center; }
}

/* =====================================================
   DARK MODE
   ===================================================== */
body.dark-mode {
  --primary: #7AAACE;
  --bg-light: #0d1621;
  --text-main: #e2eaf5;
  --text-muted: #94a3b8;
  --card-bg: rgba(23, 36, 52, 0.85);
  --border-color: rgba(122, 170, 206, 0.12);
}

body.dark-mode { background-color: #0d1621; color: #e2eaf5; }

/* Header */
body.dark-mode #main-header {
    background: linear-gradient(140deg, #0a1929 0%, #0d1621 55%, #060e18 100%) !important;
}
body.dark-mode #main-header.sticky {
    background: rgba(13, 22, 33, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Cards */
body.dark-mode .card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero */
body.dark-mode .hero-image {
    border-color: rgba(122, 170, 206, 0.25);
}
body.dark-mode .hero-verified {
    background: #7AAACE;
    border-color: #172434;
}
body.dark-mode .badge-consultant {
    background: rgba(122, 170, 206, 0.15);
    color: #9CD5FF;
}
body.dark-mode .hero-name { color: #e2eaf5; }
body.dark-mode .hero-name span { color: #94a3b8; }
body.dark-mode .hero-role { color: #cbd5e1; }
body.dark-mode .hero-location { color: #9CD5FF; }
body.dark-mode .stat-badge {
    background: rgba(122, 170, 206, 0.08);
    border-color: rgba(122, 170, 206, 0.15);
    color: #e2eaf5;
}
body.dark-mode .stat-badge .material-symbols-outlined { color: #9CD5FF; }

/* Section Titles */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #9CD5FF;
}
body.dark-mode .section-title { color: #9CD5FF; }
body.dark-mode .section-title .material-symbols-outlined { color: #9CD5FF; }

/* Bio */
body.dark-mode .bio-text { color: #cbd5e1; }
body.dark-mode .bio-quote {
    background: rgba(122, 170, 206, 0.06);
    border-left-color: #7AAACE;
    color: #94a3b8;
}

/* Education */
body.dark-mode .edu-item .material-symbols-outlined { color: #9CD5FF; }
body.dark-mode .edu-content h4 { color: #e2eaf5; }
body.dark-mode .edu-content p { color: #94a3b8; }

/* Experience Timeline */
body.dark-mode .exp-timeline::before { background: rgba(122, 170, 206, 0.2); }
body.dark-mode .exp-item::before {
    background: #7AAACE;
    border-color: #172434;
    outline-color: #7AAACE;
}
body.dark-mode .exp-item.secondary::before {
    background: #172434;
    border-color: rgba(122, 170, 206, 0.4);
}
body.dark-mode .exp-content h4 { color: #e2eaf5; }
body.dark-mode .exp-content .company { color: #9CD5FF; }
body.dark-mode .exp-content .desc { color: #94a3b8; }

/* Books Card (already dark bg) – no change needed */

/* Achievements */
body.dark-mode .achieve-list li { color: #cbd5e1; }
body.dark-mode .achieve-list .material-symbols-outlined { color: #9CD5FF; }

/* Membership Tags */
body.dark-mode .tag {
    background: rgba(122, 170, 206, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(122, 170, 206, 0.15);
}

/* Books Edited Section */
body.dark-mode .books-header-info h3 { color: #9CD5FF; }
body.dark-mode .books-header-info p { color: #94a3b8; }
body.dark-mode .book-edited-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}
body.dark-mode .book-edited-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(122, 170, 206, 0.3);
}
body.dark-mode .book-edited-card h4 { color: #e2eaf5; }
body.dark-mode .book-edited-card p { color: #94a3b8; }
body.dark-mode .book-lang {
    background: rgba(122, 170, 206, 0.12);
    color: #9CD5FF;
}

/* Publications */
body.dark-mode .pub-header-info h3 { color: #9CD5FF; }
body.dark-mode .pub-header-info p { color: #94a3b8; }
body.dark-mode .pub-badge {
    background: rgba(122, 170, 206, 0.12);
    color: #9CD5FF;
}
body.dark-mode .pub-card {
    background: rgba(23, 36, 52, 0.6);
    border-color: var(--border-color);
}
body.dark-mode .pub-card:hover { border-color: rgba(122, 170, 206, 0.3); }
body.dark-mode .pub-category { color: #9CD5FF; }
body.dark-mode .pub-card h4 { color: #e2eaf5; }
body.dark-mode .pub-card p { color: #94a3b8; }
body.dark-mode .pub-footer a { color: #9CD5FF; }

/* Publications List (inline styles override) */
body.dark-mode .all-pubs-list h3 { color: #9CD5FF !important; }
body.dark-mode .all-pubs-list h4 { color: #cbd5e1 !important; }
body.dark-mode .all-pubs-list li { color: #cbd5e1 !important; }
body.dark-mode .all-pubs-list li strong { color: #9CD5FF !important; }
body.dark-mode .all-pubs-list h3 { border-bottom-color: rgba(122, 170, 206, 0.15) !important; }
body.dark-mode .all-pubs-list a { color: #7AAACE !important; }

/* Scrollbar for pubs */
body.dark-mode .all-pubs-list::-webkit-scrollbar { width: 6px; }
body.dark-mode .all-pubs-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
body.dark-mode .all-pubs-list::-webkit-scrollbar-thumb { background: rgba(122, 170, 206, 0.25); border-radius: 3px; }
body.dark-mode .all-pubs-list::-webkit-scrollbar-thumb:hover { background: rgba(122, 170, 206, 0.4); }

/* Footer */
body.dark-mode .footer,
body.dark-mode footer {
    background: rgba(13, 22, 33, 0.95) !important;
    border-top-color: rgba(122, 170, 206, 0.1);
}
body.dark-mode .footer-name { color: #9CD5FF; }
body.dark-mode .footer-right { color: #94a3b8; }
body.dark-mode .footer-icon {
    background: #7AAACE;
    color: #0d1621;
}
