*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:       #27395c;
    --brand-mid:   #3d5a8a;
    --accent:      #79acf9;
    --accent-soft: rgba(121,172,249,0.12);
    --glass-bg:    rgba(255,255,255,0.05);
    --glass-bd:    rgba(255,255,255,0.09);
    --text:        #e2e8f0;
    --text-muted:  #94a3b8;
    --bg-main:     #0c1628;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-main);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .25s ease, color .25s ease;
}

html[data-theme='light'] body {
    --brand:       #2d4f81;
    --brand-mid:   #4d74ac;
    --accent:      #2c7be5;
    --accent-soft: rgba(44,123,229,0.16);
    --glass-bg:    rgba(255,255,255,0.82);
    --glass-bd:    rgba(61,106,168,0.2);
    --text:        #1f2d45;
    --text-muted:  #5e7798;
    --bg-main:     radial-gradient(circle at 16% 12%, #dfeaf9 0%, #f3f8ff 44%, #eaf1fb 100%);
}

.theme-fab {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(188,209,240,0.3);
    background: rgba(8,18,33,0.74);
    color: #e6f0ff;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all .2s ease;
}

.theme-fab:hover {
    border-color: rgba(121,172,249,0.6);
    background: rgba(121,172,249,0.2);
}

html[data-theme='light'] .theme-fab {
    color: #285082;
    border-color: rgba(53,99,162,0.3);
    background: rgba(220,234,252,0.9);
}

html[data-theme='light'] .theme-fab:hover {
    color: #173b67;
    border-color: rgba(44,123,229,0.55);
    background: rgba(44,123,229,0.2);
}

/* ── Progress bar ── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #c8e0ff);
    z-index: 1000;
    transition: width .08s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Aurora blobs ── */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .18;
    pointer-events: none;
    z-index: 0;
    animation: drift 14s ease-in-out infinite;
}
.blob-1 { width: 700px; height: 700px; background: #27395c; top: -250px; left: -200px; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: #3d5a8a; top: 45%; right: -150px; animation-delay: -5s; }
.blob-3 { width: 380px; height: 380px; background: #4a6fa5; bottom: 0; left: 25%; animation-delay: -9s; }

@keyframes drift {
    0%,100% { transform: translate(0,0); }
    50%      { transform: translate(30px,-30px); }
}

/* ── Page wrapper ── */
.page {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 44px 24px 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: 20px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.hero-logo-wrap {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 28px;
    margin-bottom: 24px;
}

.hero img { max-width: 160px; display: block; }

.hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

html[data-theme='light'] .hero h1,
html[data-theme='light'] .section-title,
html[data-theme='light'] strong,
html[data-theme='light'] .highlight-box p {
    color: var(--text);
}

.hero .badge,
.hero-badge {
    display: inline-block;
    margin-top: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(121,172,249,0.28);
    color: var(--accent);
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: .8px;
}

html[data-theme='light'] .hero-badge,
html[data-theme='light'] .hero .badge {
    color: #1c4a7d;
    border-color: rgba(44,123,229,0.35);
    background: rgba(44,123,229,0.14);
}

/* ── Two-column layout ── */
.layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: start;
}

.layout--single {
    display: block;
}

/* ── Sidebar ── */
.sidebar {
    position: sticky;
    top: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 14px;
}

.sidebar-label {
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-bd);
}

.sidebar nav a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .8rem;
    line-height: 1.4;
    transition: all .2s;
    margin-bottom: 2px;
}
.sidebar nav a:hover,
.sidebar nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ── Content cards ── */
.content section {
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--glass-bd);
    border-radius: 14px;
    padding: 26px 30px;
    margin-bottom: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color .25s;
}
.content section:hover { border-color: rgba(121,172,249,0.24); }

html[data-theme='light'] .content section,
html[data-theme='light'] .sidebar,
html[data-theme='light'] .hero {
    box-shadow: 0 10px 26px rgba(60,101,160,0.12);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-icon {
    width: 34px; height: 34px;
    background: var(--accent-soft);
    border: 1px solid rgba(121,172,249,0.22);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.section-title {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Typography ── */
p {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.85;
    margin-bottom: 10px;
}
p:last-child { margin-bottom: 0; }

ul { padding-left: 0; list-style: none; margin-bottom: 10px; }
ul li {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.85;
    padding: 4px 0 4px 18px;
    position: relative;
}
ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 13px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .6;
}

strong { color: var(--text); font-weight: 600; }

/* ── Highlight box ── */
.highlight-box {
    background: rgba(121,172,249,0.07);
    border: 1px solid rgba(121,172,249,0.18);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0;
}
.highlight-box p { color: var(--text); margin-bottom: 8px; font-weight: 500; }

/* ── Contact items ── */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-bd);
}
.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 34px; height: 34px;
    background: var(--accent-soft);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.contact-text { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.contact-text a { color: var(--accent); text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }

html[data-theme='light'] .contact-item {
    border-bottom-color: rgba(61,106,168,0.15);
}

html[data-theme='light'] .blob {
    opacity: .1;
}

/* ── Footer button ── */
.footer { text-align: center; margin-top: 36px; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand));
    color: #fff;
    padding: 13px 38px;
    border-radius: 10px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .4px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all .25s ease;
}
.btn-back:hover {
    background: linear-gradient(135deg, #4a6fa5, var(--brand-mid));
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(121,172,249,0.18);
    color: #fff;
    text-decoration: none;
}
.btn-back:active { transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 760px) {
    .theme-fab { top: 12px; right: 12px; width: 40px; height: 40px; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .content section { padding: 20px 18px; }
    .hero h1 { font-size: 1.3rem; }
    .page { padding: 28px 14px 56px; }
}
