
.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(196, 155, 102, 0.5);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(196, 155, 102, 0.5);
    transform: scale(1.05);
    border-color: var(--accent);
}

.filter-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.filter-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* ===== Portfolio Search Bar ===== */
#portfolioSearch {
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(196, 155, 102, 0);
}

#portfolioSearch:focus {
    box-shadow: 0 0 30px rgba(196, 155, 102, 0.4), inset 0 0 10px rgba(196, 155, 102, 0.1);
}

#portfolioSearch::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#portfolioSearch:hover {
    border-color: rgba(196, 155, 102, 0.6);
    background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
    
    .filter-buttons-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}


.portfolio-item {
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.portfolio-item img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 30, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .text-center {
    text-align: center;
    padding: 1rem;
}

.portfolio-overlay span:first-child {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(196, 155, 102, 0.2);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay h3 {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Amiri', serif;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.portfolio-overlay span:last-child {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.portfolio-overlay span:last-child:hover {
    background: var(--accent);
    color: var(--primary);
}


#portfolioGallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    #portfolioGallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #portfolioGallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    #portfolioGallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

#noResults {

    text-align: center;
    padding: 3rem 0;
}

#noResults.hidden {
    display: none;
}

#noResults i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

#noResults p:first-of-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}

#noResults p:last-of-type {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeIn 0.5s ease both;
}

.portfolio-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

/* Decorative Accent Shapes - Removed */

.portfolio-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

/* Breadcrumb Navigation */
.hero-breadcrumb {
    z-index: 20;
}

.hero-breadcrumb a,
.hero-breadcrumb span {
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: var(--accent) !important;
    transform: translateX(-2px);
}

/* Hero CTA Buttons */
.hero-cta-btn {
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 155, 102, 0.3);
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn i {
    transition: all 0.3s ease;
}

.hero-cta-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Scroll Down Indicator */
.hero-scroll-indicator {
    animation: fadeInUp 1s ease-in-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

.animate-scroll-wheel {
    animation: scroll-wheel 1.5s infinite;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
    color: var(--accent);
}


@media (max-width: 640px) {
    .portfolio-hero {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 100px;
        overflow: hidden;
    }
    #portfolioGallery {
        gap: 1rem;
    }
    
    .portfolio-item img {
        height: 14rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.75rem;
    }
}

.portfolio-item {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.portfolio-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(196, 155, 102, 0.2);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cta-btn {
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 1rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; 
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    min-height: 60px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.cta-btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.cta-btn-outline:active {
    transform: translateY(-2px);
}

.cta-btn-solid {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn-solid:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 12px 32px rgba(196, 155, 102, 0.35);
    transform: translateY(-4px);
}

.cta-btn-solid:active {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cta-btn {
        width: 100%;
        padding: 1rem 1.5rem; 
        font-size: 1rem; 
        min-height: 56px;
    }
}

.cta-btn i {
    font-size: 1.25rem; 
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: scale(1.1);
}

/* ===== Search Modal Styles ===== */
.search-modal {
    animation: fadeIn 0.3s ease;
    top: 0;
}

.search-modal.hidden {
    display: none !important;
}
.search-modal-content {
    animation: slideUp 0.3s ease;
    height: 100vh !important;
    min-height: 100vh !important;
    padding-top: 120px;
    overflow: hidden;
    z-index: 999;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#navSearchInput {
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
}

#navSearchInput:focus {
    box-shadow: 0 0 30px rgba(196, 155, 102, 0.4), inset 0 0 10px rgba(196, 155, 102, 0.1);
}

#navSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(196, 155, 102, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-result-item:hover {
    background-color: rgba(196, 155, 102, 0.1);
    transform: translateX(-4px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    color: var(--accent);
    font-size: 1.5rem;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-family: 'Tajawal', sans-serif;
}

.search-result-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-family: 'Tajawal', sans-serif;
}

.search-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Tajawal', sans-serif;
}