/* ============================================
   Responsive Design
   ============================================ */

/* Tablet Styles */
@media screen and (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-contact a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .experience-header {
        flex-direction: column;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hero-title .greeting {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .section-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .strengths-grid,
    .projects-grid,
    .skills-grid,
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .education-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .hero-contact a {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .social-link,
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .strength-card,
    .project-card,
    .skill-category,
    .certification-card,
    .achievement-card {
        padding: 1.5rem;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented if needed */
}