/* =========================
   BASE HERO
========================= */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

/* =========================
   HERO IMAGE
========================= */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center; /* tuned for services image */
    z-index: 0;
    animation: heroBgZoom 10s ease-in-out infinite alternate;

}

/* =========================
   HERO OVERLAY (TUNED FOR YOUR IMAGE)
========================= */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.60) 28%,
        rgba(0, 0, 0, 0.35) 48%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.00) 82%
    );
    z-index: 1;
}

/* =========================
   HERO CONTENT LAYER
========================= */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* =========================
   HERO TEXT MICRO-ANIMATIONS
========================= */
.hero-title,
.hero-text,
.hero-actions {
    opacity: 0;
    transform: translateY(24px);
}

.hero-section .hero-title {
    animation: heroFadeUp 0.8s ease-out 0.2s forwards;
}

.hero-section .hero-text {
    animation: heroFadeUp 0.8s ease-out 0.45s forwards;
}

.hero-section .hero-actions {
    animation: heroFadeUp 0.8s ease-out 0.7s forwards;
}

/* =========================
   KEYFRAMES
========================= */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* @media (max-width: 576px) {
    .hero-img {
        object-position: 70% center;
    }
} */


/* =========================
   HERO → CONTENT SEAM FIX
========================= */
.hero-inner + .projects-page {
    margin-top: -1px;
}

/* =========================
   PROJECTS PAGE
========================= */
.projects-page {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

/* =========================
   FILTER BUTTONS
========================= */
.filter-btn {
    border-width: 2px;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* =========================
   PROJECT CARDS
========================= */
.projects-page .project-card img {
    height: 220px;
    border-radius: 0.75rem;
}

/* =========================
   PROJECT CARD REVEAL (FILTER-AWARE)
========================= */
.project-item {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.project-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================
   LIGHTBOX MODAL
========================= */
#prevProject,
#nextProject {
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 1056;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

#prevProject:hover,
#nextProject:hover {
    opacity: 1;
}

.project-img,
#projectModalImg {
    transition: opacity 0.3s ease;
}

#projectModalImg {
    opacity: 1;
}

#projectModalImg.fade-out {
    opacity: 0;
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
    background: linear-gradient(to right, #0d6efd, #003f88);
    color: #ffffff;
}

.cta-section .container {
    padding: 4rem 2rem;
}

.btn-accent {
    background-color: #fca311;
    color: #000;
    border: none;
}

.btn-accent:hover {
    background-color: #e69500;
    color: #000;
}
