/* ============================================================
   BIM Architects — CodeIgniter 3 theme CSS
   Mirrors the Next.js globals.css animations & overlays.
   Tailwind v4 (Play CDN) handles utilities; this file owns:
     - gradient overlays
     - nav-link underline animation
     - btn-slide hover fill
     - .reveal fade-up animation (with safety fallback)
     - slow-zoom hero ken-burns
     - project-card image hover zoom
     - custom scrollbar + selection
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar          { width: 10px; height: 10px; }
::-webkit-scrollbar-track    { background: #1a1a1a; }
::-webkit-scrollbar-thumb    { background: #3a3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4a373; }

/* ---------- Selection ---------- */
::selection { background: #d4a373; color: #1a1a1a; }

/* ---------- Hero gradient overlay ---------- */
.hero-overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 35%,
        rgba(0, 0, 0, 0.35) 65%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* ---------- Project card overlay ---------- */
.project-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0) 70%
    );
}

/* ---------- Innovation section overlay ---------- */
.innovation-overlay {
    background: linear-gradient(
        to right,
        rgba(15, 15, 15, 0.95) 0%,
        rgba(15, 15, 15, 0.88) 50%,
        rgba(15, 15, 15, 0.78) 100%
    );
}

/* ---------- Animated underline for nav links ---------- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background-color: #d4a373;
    transition: width 0.3s ease;
}
.nav-link:hover              { color: #d4a373; }
.nav-link:hover::after       { width: 100%; }

/* ---------- Button hover slide effect ---------- */
.btn-slide {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #d4a373;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.btn-slide:hover::before { left: 0; }
.btn-slide:hover {
    color: #1a1a1a;
    border-color: #d4a373;
}

/* ---------- Fade-up reveal animation ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-visible {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Slow zoom for hero image ---------- */
@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.slow-zoom {
    animation: slowZoom 20s ease-out forwards;
}

/* ---------- Project image hover zoom ---------- */
.project-img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
    transform: scale(1.08);
}

/* ---------- Details/summary marker reset (for FAQ accordions) ---------- */
details summary::-webkit-details-marker { display: none; }
details summary                         { list-style: none; }

/* ---------- Iframe map ---------- */
iframe { display: block; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; animation: none !important; }
    .slow-zoom { animation: none !important; }
    html { scroll-behavior: auto; }
}
