/* media-queries.css */

/* Large Laptops and Desktops (1200px and down) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    #description {
        width: 450px;
    }
}

/* Tablets and Small Laptops (992px and down) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    #bio {
        flex-direction: column;
        justify-content: space-evenly;
        margin: 1rem;
        align-items: center;
    }

    #description {
        width: 100%;
        margin-bottom: 2rem;
    }

    #about-pic {
        height: 350px;
        width: 290px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .experience-title {
        min-width: unset;
    }
}

/* Tablets (768px and down) */
@media screen and (max-width: 768px) {
    #title {
        font-size: 50pt;
    }

    #subtitle {
        font-size: 20pt;
    }

    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }

    #about-pic {
        height: 300px;
        width: 250px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about p {
        font-size: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .experience-card {
        padding: 2rem;
    }
}

/* Large Phones (576px and down) */
@media screen and (max-width: 576px) {
    #title {
        font-size: 35pt;
    }

    #subtitle {
        font-size: 15pt;
    }

    .container {
        padding: 0 1rem;
    }

    #about-pic {
        height: 280px;
        width: 230px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-tags {
        gap: 0.375rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    section {
        padding: 3rem 0;
    }

    .contact p {
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-title h3 {
        font-size: 1.25rem;
    }

    .experience-title .company {
        font-size: 1.1rem;
    }
}

/* Small Phones (400px and down) */
@media screen and (max-width: 400px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .project-card img {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.9rem;
    }

    .experience-card {
        padding: 1.25rem;
    }

    .experience-title h3 {
        font-size: 1.1rem;
    }

    .experience-title .company {
        font-size: 1rem;
    }

    .experience-date {
        font-size: 0.9rem;
    }

    .experience-achievements li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Height-based media queries for better hero section display */
@media screen and (max-height: 600px) {
    .hero {
        min-height: 500px;
    }
}

/* Print styles for better printing */
@media print {
    .hero {
        height: auto;
        background: white;
        color: black;
    }

    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cta-button {
        display: none;
    }

    footer {
        background: white;
        color: black;
    }

    .experience-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}