@font-face {
    font-family: 'Roboto Fallback';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Noto Sans');
}
@font-face {
    font-family: 'Orbitron Fallback';
    src: local('Arial Black'), local('Impact'), local('Roboto Black');
}
@font-face {
    font-family: 'Caveat Fallback';
    src: local('Segoe Print'), local('Bradley Hand'), local('Comic Sans MS');
}
:root {
    --bg-color: #fff;
    --text-color: #222;
    --toggle-bg: #e0e0e0;
    --toggle-color: var(--text-color);
}
[data-theme="dark"] {
    --bg-color: #1B0033;
    --text-color: #fafafa;
    --toggle-bg: #333;
    --toggle-color: #fafafa;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', 'Roboto Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    font-size-adjust: 0.5;
    min-height: 100vh;
    background: var(--bg-color);
    transition: background 0.3s;
    color: var(--text-color);
}
.center-text {
    font-size: 4.5rem;
    font-family: 'Orbitron', 'Orbitron Fallback', Arial, sans-serif;
    font-size-adjust: 0.55;
    letter-spacing: 2px;
    color: var(--text-color);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: titleColorPulse 60s ease-in-out infinite;
}
@keyframes titleColorPulse {
    0% {
        color: var(--text-color);
    }
    12.5% {
        color: #00b3ff;
    }
    25% {
        color: var(--text-color);
    }
    37.5% {
        color: #e25555;
    }
    50% {
        color: var(--text-color);
    }
    62.5% {
        color: #19c37d;
    }
    75% {
        color: var(--text-color);
    }
    87.5% {
        color: #ffe066;
    }
    100% {
        color: var(--text-color);
    }
}
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fafafa;
    border: none;
    border-radius: 16px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.theme-toggle i {
    font-size: 1.25em;
    vertical-align: middle;
    margin-right: 0.5em;
    color: #ffd43b; /* yellow */
    text-shadow: 0 2px 6px rgba(0,0,0,0.22);
}
.theme-toggle:focus {
    outline: 2px solid #888;
}
.subtitle {
    font-weight: bold;
    font-size: 2.5rem;
    font-family: 'Caveat', 'Caveat Fallback', cursive;
    font-size-adjust: 0.6;
    color: var(--text-color);
    opacity: 0.85;
    margin-top: 0.5em;
    text-align: right;
    letter-spacing: 1px;
}
/* Full-height sections */
.section {
    min-height: 100vh;
    padding: 4rem 1rem 80px; /* bottom padding to clear fixed bottom nav */
}
/* Left fixed vertical social sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 6px;
    z-index: 1040; /* above content, below modals */
}
.social-btn {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--text-color);
    background: transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
.social-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}
[data-theme="dark"] .social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.social-btn i {
    font-size: 1.5rem;
}
/* Bottom nav link underline via bottom border */
#bottom-nav .nav-link {
    border-bottom: 2px solid transparent;
    padding-bottom: 0.35rem; /* space for border */
}
#bottom-nav .nav-link.active {
    border-bottom-color: currentColor;
}
/* Circular image utility */
.img-circle {
    /* Keep width responsive (inherited or constrained by parent) */
    aspect-ratio: 1 / 1; /* ensure a square box */
    border-radius: 50%; /* make it a circle */
    object-fit: cover; /* crop to fill the circle without distortion */
    overflow: hidden; /* ensure no overflow outside the circle */
    display: inline-block; /* play nice with inline images */
}