/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --accent-gold: #6D5F32;
    --dark-green: #1e3c33;
    --text-main: #333333;
    --text-muted: #666666;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    color: var(--text-main);
}

/* ==========================================================================
   GLOBAL VARIABLES (NAVBAR ONLY)
   ========================================================================== */
:root {
    --brand-gold: #6D5F32;
}
/* ==========================================================================
   2. NAV-PILL (FIXED AT TOP)
   ========================================================================== */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 95%;
    z-index: 1030;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    top: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-collapse {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    color: #6D5F32 !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.nav-pill.scrolled .navbar-nav .nav-link {
    color: var(--brand-gold) !important;
}

.nav-pill.scrolled .navbar-nav .nav-link::after {
    background-color: var(--brand-gold);
}

.src-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f0;
    border-radius: 30px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 5px;
}

.nav-pill.scrolled .src-container {
    background-color: transparent;
    border: 1px solid var(--brand-gold);
}

.nav-pill.scrolled .src-btn {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input::placeholder {
    color: var(--brand-gold);
    opacity: 0.7;
}

.src-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6D5F32;
    font-size: 14px;
    transition: all 0.3s ease;
}

.src-btn:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.src-container input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 13px;
}

.src-container.active input {
    width: 150px;
    opacity: 1;
    padding: 4px 8px;
}

.mobile-dropdown-container {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(109, 95, 50, 0.1);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 500;
    color: #6D5F32;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-pill.scrolled .mobile-menu-btn {
    color: var(--brand-gold);
    background: transparent;
    border: 1px solid var(--brand-gold);
}

.mobile-menu-btn:hover {
    background: rgba(109, 95, 50, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn i {
    font-size: 18px;
}

.mobile-menu-btn span {
    font-size: 14px;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow: hidden;
}

.mobile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6D5F32;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(178, 161, 108, 0.1);
    transition: all 0.3s ease;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: rgba(178, 161, 108, 0.15);
    padding-left: 28px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.projects-hero {
    background-image: url('../images/ProjectsBanner.png');
    height: 400px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    margin-top: 0;
    left: 0;
    border: none;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content {
    animation: fadeInUp 0.9s ease-out;
    border: none;
    padding: 0 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
    max-width: 1200px;
    margin: 40px auto 30px auto;
    padding: 0 20px;
    display: block;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.filter-left {
    flex: 0 0 auto;
}

.filter-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6D5F32;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid #6D5F32;
    line-height: 1.2;
}

.filter-right {
    flex: 1;
    max-width: 800px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.filter-select {
    flex: 0 0 140px;
    height: 50px;
    padding: 0 35px 0 15px;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.filter-select:hover {
    border-color: #6D5F32;
    box-shadow: 0 2px 8px rgba(109, 95, 50, 0.15);
}

.filter-select:focus {
    outline: none;
    border-color: #1A3B2A;
    box-shadow: 0 0 0 3px rgba(26, 59, 42, 0.15);
}

.search-wrapper {
    flex: 0 0 260px;
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    height: 50px;
    padding: 0 50px 0 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: white;
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-input:hover {
    border-color: #6D5F32;
}

.search-input:focus {
    outline: none;
    border-color: #1A3B2A;
    box-shadow: 0 0 0 3px rgba(26, 59, 42, 0.15);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    background: transparent;
    border: none;
    border-left: 2px solid #dee2e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    color: #666;
    font-size: 1.1rem;
}

.search-btn:hover {
    background-color: #f8f9fa;
    color: #1A3B2A;
}

.search-btn:hover i {
    transform: scale(1.1);
}

.search-btn i {
    transition: transform 0.3s ease;
    color: #6D5F32;
}

/* ============================================
   PROJECTS CONTAINER
   ============================================ */
.projects-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   PROJECT CARD
   ============================================ */
.project-card {
    display: flex;
    height: 250px;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(odd) {
    background: linear-gradient(135deg, #6D5F32 0%, #5a4e2a 100%);
    border: 1px solid #5a4e2a;
}

.project-card:nth-child(even) {
    background: linear-gradient(135deg, #1A3B2A 0%, #0f2a1e 100%);
    border: 1px solid #0f2a1e;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.3s; }
.project-card:nth-child(5) { animation-delay: 0.4s; }

/* Subtle pattern overlay */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.project-image, 
.project-details {
    position: relative;
    z-index: 1;
}

/* Project Image */
.project-image {
    flex: 0 0 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;  
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-image i {
    font-size: 4rem;
    color: #999;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.project-image .fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #999;
    opacity: 0.6;
}

.project-card:hover .project-image .fallback-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: #6D5F32;
    opacity: 0.8;
}

.project-image.no-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.project-image.fixed-ratio img {
    object-fit: cover;
}

.project-image img.portrait {
    object-position: center 20%;
}

.project-image img.landscape {
    object-position: center;
}

.project-card:hover .project-image i {
    transform: scale(1.1);
    color: #6D5F32;
    opacity: 0.8;
}

/* Project Details */
.project-details {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.project-name {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.location-icon {
    font-style: normal;
    font-size: 1.2rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Service Badges */
.service-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* ============================================
   NO PROJECTS MESSAGE
   ============================================ */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-size: 1.2rem;
    border: 2px dashed #dee2e6;
}

/* ============================================
   PAGINATION SECTION
   ============================================ */
.pagination-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.pagination-btn:not(:disabled):hover {
    border-color: #6D5F32;
    background-color: #6D5F32;
    color: white;
}

.pagination-btn:not(:disabled):hover i {
    transform: translateX(-3px);
}

.next-btn:not(:disabled):hover i {
    transform: translateX(3px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #6D5F32;
    background-color: #6D5F32;
    color: white;
}

.page-link.active {
    background: linear-gradient(135deg, #6D5F32 0%, #5a4e2a 100%);
    border-color: #5a4e2a;
    color: white;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(109, 95, 50, 0.2);
}

.page-dots {
    color: #666;
    font-weight: 600;
    margin: 0 5px;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.pagination-info p {
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    background: #6D5F32;
    color: #ffffff;
    padding: 20px 0;
    font-weight: 500;
    margin-top: 50px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d4af37;
}

/* ============================================
   LIGHTBOX GALLERY STYLES
   ============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
}

.lightbox-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 50px auto;
    background: transparent;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.close-lightbox:hover {
    transform: scale(1.1);
    color: #6D5F32;
}

.photo-count {
    position: absolute;
    top: -40px;
    left: 0;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.lightbox-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin: 0 auto;
    width: fit-content;
    max-width: 80%;
    pointer-events: none;
}

.gallery-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: #6D5F32;
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.prev-photo,
.next-photo {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.prev-photo:hover,
.next-photo:hover {
    background: #6D5F32;
    border-color: #6D5F32;
    transform: scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        height: 85%;
    }
    
    .close-lightbox {
        top: -35px;
        font-size: 30px;
    }
    
    .photo-count {
        top: -35px;
        font-size: 14px;
    }
    
    .lightbox-title {
        bottom: -45px;
        font-size: 14px;
    }
    
    .prev-photo,
    .next-photo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .gallery-container {
        gap: 10px;
        padding: 10px;
    }
}

/* ============================================
   RESPONSIVE DESIGN (MUST BE LAST)
   ============================================ */
@media (max-width: 1024px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-right {
        width: 100%;
        max-width: none;
    }
    
    .filter-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .nav-pill {
        padding: 6px 16px !important;
        width: 95% !important;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
    
    .mobile-dropdown-container {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .src-container input {
        width: auto !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-pill {
        width: 95% !important;
        top: 10px;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .filter-section {
        margin: 30px auto 20px auto;
    }
    
    .filter-container {
        padding: 5px 0;
    }
    
    .filter-title {
        font-size: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .filter-select {
        flex: 0 0 auto;
        width: 100%;
        height: 48px;
    }
    
    .search-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .search-input,
    .search-btn {
        height: 48px;
    }
    
    .project-card {
        flex-direction: column;
        height: auto;
    }
    
    .project-image {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }
    
    .project-details {
        padding: 25px;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-btn {
        justify-content: center;
        width: 100%;
    }
    
    .pagination-pages {
        order: -1;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .nav-pill {
        padding: 5px 12px !important;
        width: 95% !important;
    }
    
    .mobile-menu-btn span {
        display: none;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .src-container {
        max-width: 110px;
    }
    
    .src-container input {
        font-size: 11px;
    }
    
    .filter-section {
        margin: 20px auto 15px auto;
        padding: 0 15px;
    }
    
    .filter-title {
        font-size: 1.3rem;
        padding-left: 15px;
        border-left-width: 4px;
    }
    
    .projects-container {
        margin: 0 auto 30px auto;
        padding: 0 15px;
    }
    
    .project-details {
        padding: 20px;
    }
    
    .project-name {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .pagination-section {
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .pagination-pages {
        gap: 5px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .pagination-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .nav-pill {
        padding: 4px 10px !important;
        gap: 8px !important;
    }
    
    .src-container {
        max-width: 90px;
        padding: 4px 8px !important;
    }
    
    .mobile-menu-btn {
        padding: 5px 8px;
    }
}