/* Dark Header Style */
.services-header {
    background-color: #111; /* Dark background gaya ng sa pic */
    color: #fff;
    text-align: center;
    padding: 80px 10%;
}

.portfolio-badge {
    color: #e67e22;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.services-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.services-header p {
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Filter Buttons Styling */
.gallery-section {
    padding: 60px 8%;
    background-color: #fff;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 22px;
    border: none;
    background-color: #f2f2f2; /* Light gray buttons */
    color: #444;
    border-radius: 50px; /* Fully rounded corners */
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #e67e22; /* Orange for active button */
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

/* Dark Hero Header */
.services-header {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 100px 10% 80px;
}

.portfolio-badge {
    color: #e67e22;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.services-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.services-header p {
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.gallery-section {
    padding: 60px 8%;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 22px;
    border: none;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    background-color: #eee;
}

.filter-btn.active {
    background-color: #e67e22;
    color: #fff;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-item:hover img {
    transform: scale(1.1);
}

/* Overlay Text (Always visible on hover or bottom-aligned) */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    opacity: 0;
    transition: 0.3s;
}

.project-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay .category {
    color: #e67e22;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.item-overlay .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Lightbox Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Mas light na overlay */
    justify-content: center;
    align-items: center;
}

/* Ang Puting Box */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px; /* Mas maliit na width gaya ng sa pic */
    border-radius: 12px;
    position: relative;
    padding: 30px; /* Padding sa loob para hindi dikit ang image sa edge */
    animation: popUp 0.3s ease-out;
}

/* Ang Image sa loob ng pop-up */
#modal-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Text Info sa ilalim ng image */
.modal-info {
    text-align: left;
}

#modal-category {
    color: #e67e22; /* Orange category */
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

#modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
}

/* Close Button (Yung bilog na 'x') */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #888; /* Gray circle */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-btn:hover {
    background: #555;
}

@keyframes popUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .services-header h1 { font-size: 2.5rem; }
    .project-grid { grid-template-columns: 1fr; }
}