/* === Skip Navigation === */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-nav:focus {
    top: 0;
}

/* === General Styling === */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

.body-no-scroll {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-item:focus,
.btn-primary:focus,
.dropdown-content a:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.flow-root::after {
    content: "";
    display: table;
    clear: both;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .content-card:hover { transform: none; }
    .profile-pic:hover { transform: none; }
}

@media (prefers-contrast: high) {
    .content-card { border: 2px solid var(--text-heading); }
    .nav-item-active { background-color: var(--accent-light); color: #000000; }
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    color: var(--accent-light);
    background: var(--border-light);
}
