/* ==========================================================================
   COAREA - Main Stylesheet (style.css)
   ========================================================================== */

/* --- General & Scrolling --- */
html {
    scroll-padding-top: 80px;
}

/* State to hide scrollbar while loading */
body.is-loading {
    overflow: hidden;
}

/* --- Navigation --- */
#navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* --- Hero Video --- */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- Preloader --- */
@keyframes slow-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#loader-icon {
    /* Perfectly timed 3-second rotation */
    animation: slow-rotate 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.loader-hide {
    opacity: 0;
    pointer-events: none;
}

/* --- Gradients & Cards --- */
.text-gradient {
    background: linear-gradient(to right, #06b6d4, #1e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card {
    transition: all 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Team Directory ID Cards --- */
.id-card-inner {
    position: relative;
    height: 380px; /* Fixed height for uniform grid */
    background: white;
    border-radius: 0.9rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
}

.id-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
}

.verify-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
