/* Responsive Design */

/* Tablet and Below */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-top: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-shapes {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-2xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    }
    
    .hero-content {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-shapes {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - var(--spacing-lg));
        justify-content: center;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}