/* Tablet Styles */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    /* Expertise Section */
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .expertise-visual {
        order: -1;
    }
    
    .expertise-stats {
        position: static;
        margin-top: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    /* Projects Filter */
    .projects-filter {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
        grid-column: 1 / -1;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo {
        width: 120px !important;
        height: 120px !important;
    }
    
    footer {
        padding: 1.4rem 0 0.9rem;
        margin-top: 2.1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .details-sidebar {
        order: -1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Navigation Mobile */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .nav-toggle span:nth-child(1) {
        top: 8px;
    }
    
    .nav-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-toggle span:nth-child(3) {
        bottom: 8px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 50%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Hero Mobile */
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Expertise Section Mobile */
    .expertise {
        padding: 4rem 0;
    }
    
    .expertise-list {
        gap: 1.5rem;
    }
    
    .expertise-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .expertise-icon {
        align-self: center;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .expertise-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-masonry {
        columns: 1;
    }
    
    /* Projects Filter Mobile */
    .projects-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: auto;
    }
    
    /* Project Cards Mobile */
    .project-card {
        border-radius: 0.75rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-overlay {
        padding: 1rem;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Filter Buttons Mobile */
    .filter-buttons {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo {
        width: 100px !important;
        height: 100px !important;
    }
    
    footer {
        padding: 1.05rem 0 0.7rem;
        margin-top: 1.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 0.7rem;
        gap: 0.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.813rem;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }
    
    .intro-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: clamp(2rem, 6vw, 2.8rem) !important;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .hero-nav,
    .scroll-indicator,
    .filter-buttons,
    footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .project-card {
        break-inside: avoid;
    }
}