
/* Index page */
@media only screen and (max-width: 1074px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .section-heading {
        font-size: 1.8em;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #profileDivPic {
        width: 220px;
        height: 220px;
        margin: 0 30px 15px 0;
    }
    
    #paragraph1,
    #paragraph2,
    #paragraph3,
    #paragraph4 {
        font-size: 1em;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media only screen and (max-width: 700px) {
    #topLine {
        grid-template-columns: 1fr;
        grid-template-areas: 'nav'
                             'emailDiv'
                             'socialIcons';
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    #emailDiv {
        justify-content: center;
    }
    
    #socialIcons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .section-heading {
        font-size: 1.5em;
        padding: 15px;
    }
    
    #hero {
        padding: 50px 15px 40px;
    }

    #about, #skills {
        padding: 5%;
    }

    #profileDivPic {
        float: none;
        width: 200px;
        height: 200px;
        margin: 0 auto 25px auto;
        display: block;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-highlight {
        padding: 20px;
    }
    
    .about-highlight h3 {
        font-size: 1.2em;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category h3 {
        text-align: center;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    #contact {
        padding: 30px 20px;
    }
    
    .contact-intro {
        font-size: 1em;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Project page */
@media only screen and (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .project-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 700px) {
    #project {
        padding: 20px 15px;
    }

    .project-category {
        margin-bottom: 40px;
    }

    .project-category-heading {
        font-size: 1.3em;
    }

    .project-category.featured .project-category-heading {
        font-size: 1.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 110px;
    }

    .project-content {
        padding: 15px;
    }
    
    .modal {
        top: 3vh;
        width: 95%;
        max-height: 94vh;
        font-size: 0.95em;
    }
    
    .modal::before {
        font-size: 1em;
        margin-bottom: 15px;
        padding: 20px 50px 10px 20px;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 12px;
        right: 15px;
    }
    
    .modal p {
        font-size: 0.95em;
        margin: 0 20px 15px 20px;
    }
    
    .modal ol {
        margin: 0 20px 20px 45px;
    }
    
    .modal h3 {
        margin: 0 20px 15px 20px;
    }
    
    button {
        width: calc(100% - 40px);
        margin: 25px 20px 10px 20px;
        padding: 14px 25px;
    }
    
    button:last-of-type {
        margin-bottom: 30px;
    }

    .project-links {
        grid-template-columns: 1fr;
        width: calc(100% - 40px);
        margin: 20px 20px 28px 20px;
    }

    .project-links button,
    .project-links > a,
    .project-links .project-link-disabled {
        width: 100%;
        margin: 0;
    }

    .project-links button > a,
    .project-links > a {
        padding: 0 14px;
    }
}

/* Certificate page */
@media only screen and (max-width: 1074px) {
    #certification {
        padding: 30px 20px;
    }
    
    .cert-card {
        flex-direction: column;
        padding: 25px;
    }
    
    .cert-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    #certification ul.two-column {
        column-count: 1;
    }
}

@media only screen and (max-width: 700px) {
    #certification {
        padding: 20px 15px;
        gap: 30px;
    }
    
    .cert-card {
        padding: 20px;
    }
    
    .cert-image {
        height: 180px;
    }
    
    #certification h2 {
        font-size: 1.5em;
    }
    
    #certification h3 {
        font-size: 1.1em;
    }
    
    #certification li {
        font-size: 0.9em;
    }
}
