@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }

    header {
        padding: 1rem;
    }

    header nav {
        position: fixed;
        top: 5rem;
        right: 1rem;
        display: none;
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        min-width: 150px;
        z-index: 1000;
    }

    header.home nav {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    header.home nav ul li a {
        color: #fff;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: start;
    }

    header .btn {
        display: none;
    }

    .gsi-material-button {
        width: 53px;
    }

    .gsi-material-button .gsi-material-button-icon {
        margin: 0;
    }

    .gsi-material-button-contents {
        display: none;
    }

    header .menu-btn {
        display: block;
        padding: 0.8rem;
        border-radius: 1rem;
        background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
        color: white;
        border: none;
        font-size: 22px;
    }

    .hero .layout {
        gap: 0;
        padding: 0 2rem;
    }

    .hero .layout h1 {
        font-size: 2rem;
    }

    .hero .layout p {
        font-size: 1rem;
        width: 90%;
    }

    .home-footer {
        left: 0;
        transform: unset;
    }

    .aichat-container {
        padding: 0;
    }

    .aichat-container aside {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        display: none;
        background: #fff;
        padding: 1rem;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .aichat-container #sidebar-right-btn {
        display: block;
    }

    .portfolio .layout {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .portfolio .layout aside {
        position: static;
    }

    .portfolio .layout aside .social-links {
        grid-template-columns: repeat(4, 1fr);
    }

    .blogs,
    .blog {
        padding: 2rem 1rem;
        overflow: hidden;
    }

    .blogs .blogs-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .blog h1 {
        font-size: 2rem;
    }

    .blog .layout .details .auther .author-image {
        width: 40px;
        height: 40px;
    }

    .blog .layout .details .auther h5 {
        font-size: 1rem;
    }

    .blog .layout .details .date h5 {
        font-size: 0.8rem;
    }

    .blog .layout .details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .separator a {
        margin: 0 !important;
    }

    .separator a img {
        width: 100% !important;
        height: auto !important;
    }

    section.reveal .items {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    footer {
        padding: 1rem;
    }

    footer .layout {
        align-items: start;
        flex-direction: column-reverse;
    }

    footer span {
        display: none;
    }

    .home-footer .layout,
    footer .layout {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
        width: 100%;
        text-align: start;
    }

    .home-footer ul,
    footer ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}