/* Responsive Design - Mobile & Tablet Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 0 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    /* Buttons */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Background Animation - Reduce for mobile performance */
    .gear:nth-child(2),
    .gear:nth-child(3) {
        display: none;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0.5rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .project-card,
    .skill-category {
        padding: 1rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .section {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .bg-animation,
    .gear,
    nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gear {
        animation: none;
    }
    
    .hero h1 {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --accent-cyan: #ffffff;
        --accent-magenta: #ffffff;
        --text-secondary: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.8);
    }
    
    .project-card,
    .skill-category {
        border: 2px solid white;
    }
}