/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .nav-container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .search-container {
        gap: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    

    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        border-radius: 8px;
    }
    
    .search-btn {
        border-radius: 8px;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        max-width: 200px;
    }
    
    .clear-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1rem;
    }
}

/* Navigation toggle animation */
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Smooth transitions for all interactive elements */
.nav-link,
.search-btn,
.filter-select,
.clear-btn,
.project-card {
    transition: all 0.3s ease;
}

/* Hover effects for touch devices */
@media (hover: none) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .project-card:hover {
        transform: none;
    }
    

}

/* Print styles */
@media print {
    .header,
    .search-section,
    .nav-toggle,
    .modal {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}