/* Responsive Styles for Material Design 3 */

/* Large Devices (Desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Mobile Landscape) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    nav {
        padding: 0 16px;
    }
    
    .nav-links {
        position: fixed;
        top: 64px; /* Match the header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background-color: var(--md-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--md-transition);
        z-index: 999;
    }
    
    [data-theme="dark"] .nav-links {
        background-color: color-mix(in srgb, var(--md-surface) 97%, var(--md-surface-tint) 3%);
    }
    
    .theme-toggle {
        position: absolute;
        right: 60px;
        top: 12px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        height: auto;
    }
    
    .nav-links a {
        height: 48px;
        width: 200px;
        justify-content: center;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        background-position: 80% center;
    }
    
    .hero::before {
        background: linear-gradient(90deg, rgba(255,251,254,0.9) 0%, rgba(255,251,254,0.7) 70%, rgba(255,251,254,0.5) 100%);
    }
    
    [data-theme="dark"] .hero::before {
        background: linear-gradient(90deg, rgba(28,27,31,0.9) 0%, rgba(28,27,31,0.7) 70%, rgba(28,27,31,0.5) 100%);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-contact-info {
        padding: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (Mobile Portrait) */
@media screen and (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .hero {
        background-position: 85% center;
        min-height: 90vh;
    }
    
    .hero::before {
        background: linear-gradient(90deg, rgba(255,251,254,0.95) 0%, rgba(255,251,254,0.8) 100%);
    }
    
    [data-theme="dark"] .hero::before {
        background: linear-gradient(90deg, rgba(28,27,31,0.95) 0%, rgba(28,27,31,0.8) 100%);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    .social-links a img {
        width: 20px;
        height: 20px;
    }
    
    .publication-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}