/* =============================================
   AARCH Group – Custom Stylesheet
   Supplements Tailwind CSS
   ============================================= */

/* --- Smooth scroll for anchor navigation --- */
html {
    scroll-behavior: smooth;
}

/* Offset scroll targets so sticky header doesn't cover them */
section[id] {
    scroll-margin-top: 72px;
}

/* --- Base font --- */
body {
    font-family: 'Inter', sans-serif;
}

/* =============================================
   Navigation
   ============================================= */

/* Animated underline on nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #C2A87E;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 70%;
}

/* =============================================
   Buttons – press / active feedback
   ============================================= */

a[href], button {
    -webkit-tap-highlight-color: transparent;
}

/* Primary CTA buttons (gold bg) */
a.bg-\[\#C2A87E\],
a.bg-\[\#C2A87E\]:visited {
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

a.bg-\[\#C2A87E\]:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* Navy buttons */
a.bg-\[\#0C1968\] {
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

a.bg-\[\#0C1968\]:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* =============================================
   Cards – smooth lift on hover
   ============================================= */

/* Research / project cards */
section .shadow-md {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* =============================================
   Section fade-in on scroll
   ============================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   People cards – image display
   ============================================= */

/* Ensure portrait photos never squish regardless of source dimensions */
.person-card img {
    object-fit: cover;
    object-position: top center;
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease;
}

.person-card:hover img {
    transform: scale(1.06);
}

/* =============================================
   Publication cards
   ============================================= */

/* Subtle left-border glow on hover */
.pub-card {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pub-card:hover {
    box-shadow: -4px 0 0 #C2A87E, 0 4px 16px rgba(0,0,0,0.10);
}

/* =============================================
   Footer links
   ============================================= */

footer a {
    transition: color 0.2s ease;
}

/* =============================================
   Scrollbar (optional polish – Webkit only)
   ============================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C2A87E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0C1968;
}
