/* Responsive Design */

/* Tablet and Desktop */
@media (min-width: 768px) {
    /* Hero Section */
    .hero {
        grid-template-columns: 300px 1fr;
    }
    
    .profile-container {
        justify-content: flex-start;
    }
    
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .caption {
        font-size: 1.125rem;
    }
    
    /* Tabs */
    .tab {
        font-size: 1rem;
    }
    
    /* Content Area */
    .content-area {
        padding: var(--spacing-2xl);
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .container {
        padding: var(--spacing-md);
    }
    
    /* Reduce particles on mobile for better performance */
    .background {
        opacity: 0.7;
    }
    
    .profile {
        width: 200px;
        height: 200px;
    }
    
    .profile-content {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.125rem;
    }
    
    .caption {
        font-size: 0.9375rem;
    }
    
    .nav-tabs {
        gap: var(--spacing-sm);
    }
    
    .tab {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.75rem;
    }
    
    .content-area {
        padding: var(--spacing-md);
    }
    
    .item {
        padding: var(--spacing-md);
    }
    
    .item h3 {
        font-size: 1.125rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn:hover,
    .tab:hover,
    .item:hover,
    .social-link:hover {
        transform: none;
    }
    
    /* Effetto hover disabilitato anche per mobile */
    /*
    .profile-wrapper:hover .profile-glow {
        filter: blur(40px);
    }
    */
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body.dark {
        --bg-primary: #000000;
        --text-primary: #ffffff;
    }
    
    body.light {
        --bg-primary: #ffffff;
        --text-primary: #000000;
    }
}
