@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nav-center {
        position: absolute;
        top: -450px;
        left: 0;
        width: 100%;
        background-color: rgba(15, 27, 45, 0.98);
        flex-direction: column;
        padding: 0;
        transition: top 0.4s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        opacity: 0;
        
    }
    
    .nav-center.active {
        top: 70px;
        opacity: 1;

    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        margin-left: 15px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
        background-color: rgba(15, 27, 45, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-section {
        padding: 60px 0;
    }
    
    .about-section::before {
        top: -50px;
        height: 70px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }
    
    .about-cta {
        flex-direction: column;
        gap: 10px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .portfolio-img-container {
        height: 180px;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .checkbox-group {
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer {
        padding-top: 50px;
    }
    
    .footer-divider {
        margin: 30px 0 20px;
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .contact-btn {
        bottom: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}


@media (max-width: 500px) {
    .nav-logo, .nav-right {
        flex: none;
    }
    
    .navbar {
        padding: 15px 20px;
    }

    .greeting {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .hero-description {
        font-size: 1rem;
    } 
}

@media (max-width: 480px) {
    .portfolio-img-container {
        height: 160px;
    }
    
    .portfolio-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-item-title {
        font-size: 1.2rem;
    }

    .contact-info-item {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    
    .contact-social {
        text-align: center;
    }
    
    .contact-social-icons {
        justify-content: center;
    }

    .footer-policies {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}