@import "tailwindcss";

@theme {
    --color-primary: #0f172a;
    /* Slate 900 */
    --color-secondary: #334155;
    /* Slate 700 */
    --color-accent: #16a34a;
    /* Green 600 - Functional Green */
    --color-cream: #f8fafc;
    /* Slate 50 */

    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;

    --animate-fade-in: fadeIn 0.5s ease-out forwards;
    --animate-slide-up: slideUp 0.6s ease-out forwards;
}

/* Base Reset */
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    color: var(--color-primary);
    background-color: #ffffff;
}

/* Navbar Transitions */
nav {
    transition: all 0.3s ease-in-out;
    background: transparent;
    color: white;
    /* Default White Text on Dark Hero */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

nav.scrolled {
    /* Background and shadow handled by inline styles for floating pill */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

nav.scrolled .logo-dot {
    background-color: #16a34a;
    /* Ensure accent color remains */
}

/* Force override for links inside scrolled nav if needed */
nav.scrolled a:not(.btn-action) {
    color: #0f172a;
}

nav.scrolled .btn-action {
    background-color: #0f172a;
    color: white;
}

/* Custom Utilities */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85));
}

.bento-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Navigation Link State */
.active-nav-link {
    color: var(--color-accent) !important;
    position: relative;
}

.active-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Keep accent colour visible on the scrolled/solid navbar state */
nav.scrolled .active-nav-link,
nav.scrolled a.active-nav-link {
    color: var(--color-accent) !important;
}

/* Keep accent colour visible on the transparent (index) navbar */
nav a.active-nav-link {
    color: var(--color-accent) !important;
}

/* Mobile menu active link */
.active-nav-link.block {
    color: var(--color-accent) !important;
    background-color: rgba(22, 163, 74, 0.08);
    border-left: 3px solid var(--color-accent);
    padding-left: calc(1rem - 3px);
}