/* Media Queries for Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .resume-content {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .container {
        max-width: 800px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Tablet Portrait */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .resume-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .resume-header h2 {
        font-size: 2rem;
    }
    
    .resume-section-item {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 20px;
        padding: 1.5rem;
        width: 95%;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile Large */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .resume-section {
        padding: 2rem 0;
    }
    
    .resume-section-item {
        padding: 1rem;
    }
    
    .resume-section-item h3 {
        font-size: 1.3rem;
    }
    
    .experience-item, .education-item {
        padding: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 10px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .btn-email {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        max-width: 250px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .resume-header h2 {
        font-size: 1.8rem;
    }
    
    .resume-section-item h3 {
        font-size: 1.2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .btn {
        max-width: 220px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .resume-section-item {
        padding: 0.8rem;
    }
    
    .modal-content {
        padding: 0.8rem;
        margin: 5px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .theme-toggle {
        border-width: 1px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .theme-toggle,
    .modal {
        display: none !important;
    }
    
    .resume-section {
        display: block !important;
        background: white !important;
        color: black !important;
    }
    
    .resume-section-item {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .skill-tag {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .resume-section-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --bg-tertiary: #e9ecef;
        --text-primary: #212529;
        --text-secondary: #6c757d;
        --border-color: #dee2e6;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --modal-overlay: rgba(0, 0, 0, 0.5);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --modal-overlay: rgba(0, 0, 0, 0.8);
    }
}

