/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-frame {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Profile */
    .profile-frame {
        width: 250px;
        height: 250px;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Stats */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Hover Media Query */
@media (hover: hover) {
    .hover-enabled {
        transition: all 0.3s;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #ffffff;
        --color-surface: #f5f5f5;
        --color-border: #e0e0e0;
        --color-text: #0a0a0a;
        --color-text-secondary: #666666;
    }
    
    .grid-bg {
        background-image: 
            linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    }
}

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