/* ============================================
   PORTFOLIO PAGE STYLES - Abhi's Craft Soft
   ============================================ */
:root {
    --primary: #2896cd;
    --primary-light: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #2896cd 0%, #00cec9 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* --- Hero Section --- */
.portfolio-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(40, 150, 205, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(0, 206, 201, 0.05), transparent);
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(40, 150, 205, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* --- Filter Section --- */
.filter-section {
    padding-bottom: 60px;
}

/* Filter Grid (Desktop/Tablet) */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.filter-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.filter-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.filter-card span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
}

.filter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(40, 150, 205, 0.2);
}

.filter-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
}

.filter-card.active {
    background: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(40, 150, 205, 0.1);
}

.filter-card.active span {
    color: var(--primary);
}

.filter-card.active .icon-box {
    background: var(--primary-gradient);
    color: var(--white);
}

/* Mobile Filter (Dropdown) */
.mobile-filter-container {
    display: none;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.filter-dropdown-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.filter-dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.dropdown-item {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-body);
}

.dropdown-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* --- Project Grid --- */
.projects-container {
    padding-bottom: 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
    /* Placeholder color */
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 12px;
}

.project-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.view-btn {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.view-btn:hover i {
    transform: translateX(4px);
}

/* --- Animations --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filter-grid {
        display: none;
    }

    .mobile-filter-container {
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* --- Placeholder Styling --- */
.placeholder-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}