/* ============================= */
/* GALLERY SECTION */
/* ============================= */

.gallery-section {
    padding: 5rem 0;
    background-color: #fafafa; /* Subtle contrast from pure white */
}

.gallery-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Masonry-inspired Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px; /* Base row height */
    gap: 1.5rem;
}

/* Allows some images to be taller for a modern look */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #eee;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hover Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.overlay-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #fff;
}

.overlay-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
}

/* Hover Effects */
.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}







:root {
    --primary-blue: #00b4d8;
    --text-main: #334155;
    --bg-gradient: linear-gradient(145deg, #ffffff, #f1f5f9);
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stats-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Small Card Design */
.stat-card {
    position: relative;
    padding: 1.25rem;
    background: var(--bg-gradient);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 180, 216, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Refined Icon Wrapper */
.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--color-primary);
    font-size: 1.2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: rotate(10deg);
}

/* Label Styling */
.stat-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Subtle border glow on hover */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, var(--color-secondary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-stats-bar.modern {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    .gallery-item.tall {
        grid-row: span 1;
    }
    .gallery-stats-bar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}