/* --- FILTER CONTROLS --- */
.filter-controls {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: var(--border-thick);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-black);
    color: white;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* --- FEATURED PROJECT (Split Layout) --- */
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: white;
    border: var(--border-thick);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}

.featured-img-col {
    position: relative;
    background: #f0f0f0;
    min-height: 400px;
}

.featured-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tech-stack-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-stack-floating span {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.featured-content-col {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    color: var(--brand-red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.project-summary {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--brand-black);
}

.project-details h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    color: var(--brand-black);
}

.project-details p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.feature-list {
    margin-bottom: 2rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border: var(--border-thick);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: var(--border-thick);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 10px; right: 10px;
}

.overlay-tag {
    background: #00aa00;
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid white;
}

.card-body {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.tech-tags {
    margin: 1rem 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tags span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
}

.results-box {
    background: #e0f7fa; /* Light cyan */
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #006064;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--brand-cyan);
}

.read-more {
    text-decoration: none;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.read-more:hover { gap: 10px; }

/* --- COMPARISON TABLE --- */
.comparison-wrapper {
    overflow-x: auto;
    border: 1px solid #444;
    border-radius: var(--radius);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tech-table th, .tech-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.tech-table th {
    background: black;
    color: var(--brand-cyan);
    font-family: var(--font-head);
    font-size: 1.1rem;
}

.winner { color: #4caf50; font-weight: bold; background: rgba(76, 175, 80, 0.1); }
.loser { color: #ff5252; opacity: 0.8; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-img-col { min-height: 250px; border-bottom: var(--border-thick); }
    .featured-content-col { padding: 2rem; }
}