/* ========================================
   PROJECTS SECTION - CLEAN UI DESIGN
   ======================================== */

/* Projects Section Container */
.projects-section {
    background-color: #f5f5f5;
    position: relative;
}

.projects-grid {
    display: block;
    width: 100%;
}

/* ========================================
   DOMAIN TILES BOX (Rectangular Container)
   ======================================== */

.domain-tiles-container {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 0 auto 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.domain-tiles-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.domain-tile {
    padding: 12px 28px;
    background: #f8f9fa;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.domain-tile:hover {
    background: #e9ecef;
    color: var(--primary);
    border-color: rgba(110, 72, 170, 0.2);
    transform: translateY(-2px);
}

.domain-tile.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(110, 72, 170, 0.3);
}

/* ========================================
   PROJECTS DISPLAY AREA
   ======================================== */

.projects-display-area {
    width: 100%;
}

.projects-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ========================================
   PROJECT CARD (Tile Design)
   ======================================== */

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(110, 72, 170, 0.2);
}

/* Project Image */
.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

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

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

/* Category Badge */
.project-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Project Content */
.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-content h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
    min-height: 50px;
}

.project-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Footer */
.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.project-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
}

.details-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(110, 72, 170, 0.25);
}

.details-btn:hover {
    box-shadow: 0 4px 16px rgba(110, 72, 170, 0.4);
    transform: translateY(-2px);
}

/* Show More Button Container */
.show-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .projects-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .projects-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .domain-tiles-container {
        padding: 20px;
        margin-bottom: 30px;
    }

    .domain-tiles-wrapper {
        gap: 8px;
    }

    .domain-tile {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .project-content h3 {
        font-size: 1.1rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .domain-tiles-wrapper {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .domain-tile {
        flex-shrink: 0;
    }
}