/* Mobile First Approach */

/* Base styles for mobile */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero Section */
    .hero-content {
        padding: 0 1rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        scale: 70%;
        margin-right: 50%;
    }

    /* Contact Form */
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop styles */
@media screen and (min-width: 1025px) {
    .container {
        padding: 0;
    }

    .mobile-menu {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }
}

/* High-resolution screens */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    #particles-js,
    .contact-form,
    .theme-switch,
    .lang-switch {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }
}
