/* Custom styles to complement Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Service card hover effect */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Modal animation */
.modal-enter {
    opacity: 0;
    transform: scale(0.9);
}
.modal-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 300ms, transform 300ms;
}
.modal-exit {
    opacity: 1;
}
.modal-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 300ms, transform 300ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for service selection */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.selected-service {
    animation: pulse 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* --- Base Section Styling --- */
.our-work-section {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    padding: 80px 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header Styling --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter Controls --- */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item.hide {
    transform: scale(0.8);
    opacity: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 100%;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: var(--light-color);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-caption {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.portfolio-category {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.portfolio-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.portfolio-link:hover {
    background-color: var(--primary-hover);
}

/* --- CTA Button --- */
.cta-container {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}