@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    body {
        overflow-y: auto;
    }

    .header-center {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .container {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .intro-footer {
        display: block;
        text-align: center;
        padding: 1rem 0;
        border-top: 0.1px solid var(--border-color);
        margin-top: 1rem;
    }

    .hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1rem; 
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-image {
        display: none;
        max-width: 100%;
        height: auto;
        max-height: 450px;
    }

    .features {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .main-content {
        padding: 1rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .site-header {
        padding: 0.5rem 1rem;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .site-header h1 {
        font-size: 1.1rem;
    }

    .site-header .subtitle {
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-icon {
        font-size: 1.25rem;
    }

    .header-nav {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0.75rem 0 0 0;
        justify-content: center;
        gap: 0.5rem;
        box-sizing: border-box;
    }

    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
        min-width: 0;
        white-space: nowrap;
    }

    .nav-dropdown {
        flex: 1;
    }

    .dropdown-trigger {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        min-width: 160px;
    }

    .intro-page {
        height: auto;
        min-height: calc(100vh - 60px);
        flex-direction: column;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 55px;
    }

    .site-header h1 {
        font-size: 1rem;
    }

    .site-header .subtitle {
        display: none;
    }

    .header-text {
        min-width: auto;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 0.5rem 0;
    }

    .nav-links {
        padding-left: 1.5rem;
    }

    .nav-links ul {
        padding-left: 1.5rem;
    }

    .nav-links li {
        margin-bottom: 0.4rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-links ul a {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .nav-tab {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }

    .dropdown-trigger {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }

    .dropdown-menu {
        font-size: 0.85rem;
    }

    .callout {
        padding: 1rem;
    }

    .last-updated {
        font-size: 1rem;
    }
}