/* Responsive Styles */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    :root {
        --font-size-3xl: 36px;
        --font-size-2xl: 28px;
        --font-size-xl: 20px;
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 200px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    :root {
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --font-size-xl: 18px;
        --section-padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-image img {
        width: 150px;
        height: 150px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .portfolio-item {
        margin: 0 10px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

/* Large Desktop Styles */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .footer-content {
        max-width: 1400px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .btn {
        border-width: 3px;
    }
}



/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .contact-form,
    .social-links {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .portfolio-item {
        page-break-inside: avoid;
    }
}
