/* =============================== PROJECT/WORK PAGE ========================== */
:root {
    --primary-color: #16a085;
    --primary-dark: #12876f;
    --secondary-color: #2ecc71;
    --dark-color: #333;
    --light-color: #fff;
    --gray-light: #f5f5f5;
    --text-dark: #2c3e50;
    --background-light: #f8f9fa;
    --text-light: #7f8c8d;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--background-light);
            overflow-x: hidden;
        }

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--light-color);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('images/work/hero-bg.webp') center/cover no-repeat;
    padding: 0 2rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    /* font-family: 'Montserrat', sans-serif; */
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Work Grid Section */
.work-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    /* font-family: 'Montserrat', sans-serif; */
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Work Cards */
.work-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 380px;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.card-content {
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition);
}

.card-content h3 {
    /* font-family: 'Montserrat', sans-serif; */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
}

.card-btn:hover {
    background-color: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .work-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .work-section {
        padding: 3rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-card {
        height: 300px;
    }
    
    .card-overlay {
        padding: 1.5rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 1s ease-out forwards;
}