@media (max-width: 1200px) {
    .portfolio-switcher {
        flex-wrap: wrap;
        gap: 15px;
    }
}
@media (max-width: 1100px) {
    .portfolio-item {
        grid-template-columns: repeat(1, 1fr);
    }
    .top .LinkItem {
        margin-right: 15px;
        padding-bottom: 8px;
        font-size: 16px;
    }
}

@media (max-width: 1020px) {

    .skills-list {
        margin: 0 0 50px 0;
        max-width: 100%;
    }

    .skill-header {
        cursor: pointer;
    }

    .skill-icon {
        display: block;
    }

    .skill-explanation {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 15px;
        text-align: left;
        
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
    }

    .skill-item:hover .skill-explanation {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        visibility: hidden;
    }

    .skill-item.open .skill-explanation {
        max-height: 300px;
        opacity: 1;
        padding-top: 15px;
        padding-bottom: 15px;
        visibility: visible;
    }

    .skill-item.open .skill-icon {
        transform: rotate(180deg);
    }
    
    .skill-item:hover .skill-name {
        transform: none;
    }

    .skill-item.open .skill-name {
        color: #fff;
    }
    html.light-theme .skill-item.open .skill-name {
        color: #079e7b;
    }

    .about-me-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-me-text h2, .about-me-skills h3 {
        font-size: 3rem;
    }
}


@media (max-width: 800px) {
    .top .LinkItem {
        margin-right: 11px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    body {
        margin: 30px 15px;
    }

    .top {
        padding: 15px 0;
    }

    h1 {
        font-size: 2.8rem;
        padding-top: 3rem;
        text-align: center;
        padding-top: 0;
    }

    header .container {
        margin-bottom: 40px;
    }

    main .container {
        padding: 0 20px;
    }

    .burger-menu {
        display: flex;
        order: 1;
    }

    .top {
        flex-wrap: wrap;
        gap: 0;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        flex-direction: column;
        align-items: center;
        padding: 100px 30px 30px;
        gap: 0;
        z-index: 1000;
        transition: top 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        display: none;
        border-radius: 7px;
    }

    html.light-theme .navigation {
        background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navigation.open {
        top: 0;
        display: flex;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .navigation .LinkItem {
        width: 80%;
        max-width: 300px;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
        padding: 15px 20px;
        font-size: 1.3rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .navigation .LinkItem:hover,
    .navigation .LinkItem.activeLink {
        background: rgba(7, 158, 123, 0.1);
        transform: translateY(-2px);
    }

    html.light-theme .navigation .LinkItem:hover,
    html.light-theme .navigation .LinkItem.activeLink {
        background: rgba(7, 158, 123, 0.15);
    }

    .navigation .activeLink::after {
        content: none;
    }

    


    .about {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-top: 100px;
    }
    .about h2 {
        font-size: 2.2rem;
        text-align: center;
        margin-right: 0;
    }
    .wrapAnimation {
        width: 300px;
        height: 250px;
    }
    #code-animation {
        width: 300px;
        height: 225px;
    }
    .bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
    }

    .portfolio-details h3 {
        font-size: 1.8rem;
    }

    .portfolio-btn {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .sticky-nav {
        margin-bottom: -72px;
    }

    .about h2 i {
        top: -110px;
    }
}


@media (max-width: 600px) {
    .sticky-nav {
        width: 98%;
    }
}


@media (max-width: 480px) {
    body {
        margin: 20px 10px;
    }
    main .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2rem;
    }
    .about h2 {
        font-size: 1.8rem;
        margin-right: 0;
    }
    #skills-page h2, #contact-page h2, #portfolio-page h2, .about-me-text h2, .about-me-skills h3 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .skill-name {
        font-size: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-switcher {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-btn {
        width: 100%;
        max-width: 200px;
    }

    .portfolio-item video, .portfolio-item img {
        scroll-margin-top: 80px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.2rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .review-date {
        font-size: 0.75rem;
    }

    .review-rating {
        font-size: 0.9rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .reviews-fl-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    #reviews-page h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .reviews-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}