* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Hero Header */
.gallery-hero {
    position: relative;
    height: 45vh;
    min-height: 340px;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)),
        url('../photos/BeforeAfter/Coverupdatetowerpic.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Gallery Section Wrapper */
.gallery-section {
    padding: 50px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filter-btn.active, .filter-btn:hover {
    background: #1E90FF;
    color: #ffffff;
    border-color: #1E90FF;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

/* Responsive Project Cards Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Individual Project Card */
.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.card-img {
    position: relative;
    width: 100%;
    height: 220px; /* Controlled height - NOT overly giant! */
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-img img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-meta {
    font-size: 0.85rem;
    color: #0284c7;
    font-weight: 600;
    background: #f0f9ff;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    background: #1E90FF;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 144, 255, 0.4);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #0078aa;
    transform: translateY(-2px);
}

/* Responsive Breakdown */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .cta-banner h2 {
        font-size: 1.5rem;
    }
}
