/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Styles (< 768px) */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Layout */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 0 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles (< 480px) */
@media screen and (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form Elements */
    .btn {
        width: 100%;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
}

/* Height-based Media Queries */
@media screen and (max-height: 600px) {
    .hero {
        height: auto;
        min-height: calc(100vh - 70px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .contact-form,
    .theme-toggle,
    .nav-toggle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    main {
        margin-top: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
} 