/* Responsive Design */

/* Base container for all sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tablet Devices (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    nav {
        gap: 20px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero_text {
        font-size: 2.8rem;
    }

    .image-container {
        width: 320px;
        height: 420px;
    }

    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    .news-content {
        padding: 0 40px;
        gap: 40px;
    }
}

/* Small Tablet & Large Mobile (max-width: 992px) */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-content, .hero-description {
        text-align: center;
    }

    .hero-description p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .news-content {
        flex-direction: column;
        text-align: center;
    }

    .news-text {
        text-align: center;
    }

    .news-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        margin-top: 0;
        position: relative;
    }

    nav {
        margin-top: 15px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        padding: 5px 10px;
        margin: 0 5px;
    }

    nav a::after {
        left: 10px;
        width: calc(100% - 20px);
    }

    .hero-section {
        padding-top: 60px;
        min-height: auto;
    }

    .hero_text {
        font-size: 2.2rem;
    }

    .image-container {
        width: 280px;
        height: 380px;
    }

    .section-title {
        font-size: 2rem;
        padding-left: 20px;
    }

    .section-title::after {
        left: 20px;
    }

    .about-text {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        margin: 0 auto;
    }

    .about-greeting {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-details {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .about-skills {
        display: inline-block;
        text-align: left;
    }

    .news-content {
        padding: 0 20px;
    }

    .news-heading {
        font-size: 1.6rem;
    }

    .projects-list {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .skill-container {
        padding-left: 20px;
        justify-content: center;
    }

    .skill-card {
        width: 140px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero_text {
        font-size: 1.8rem;
    }

    .image-container {
        width: 240px;
        height: 320px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skill-card {
        width: calc(50% - 15px);
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }
}
