/* Services Section Styles */
.services {
    padding: 80px 0;
    background: var(--background-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-card,
    .portfolio-item {
        margin: 0 10px;
    }
}

/* Gallery Section Styles */
.gallery-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-tab:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.gallery-tab.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: var(--background-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.gallery-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--background-light), var(--border-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.gallery-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.gallery-image-placeholder p {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Gallery Image Styles */
.gallery-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: block;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    image-rendering: pixelated !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    /* Prevent browser compression */
    image-rendering: auto !important;
    /* Ensure maximum quality */
    -webkit-image-smoothing: high-quality !important;
    -moz-image-smoothing: high-quality !important;
    image-smoothing: high-quality !important;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.02);
}



.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.gallery-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.gallery-cta {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.gallery-cta p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.gallery-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-links .btn {
    min-width: 200px;
}

.btn-secondary {
    background: var(--background-white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .gallery-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        margin: 0 10px;
    }
}
