/* ============================================
   Kingdom Energy & Nutrition — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll state */
.navbar-scrolled {
    background: rgba(240, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.navbar-scrolled .nav-text {
    color: #0A1628 !important;
}

.navbar-scrolled .nav-link {
    color: #162D57 !important;
}

.navbar-scrolled .menu-line {
    background: #0A1628 !important;
}

.navbar-dark .nav-text {
    color: #0A1628 !important;
}

.navbar-dark .nav-link {
    color: #162D57 !important;
}

.navbar-dark .menu-line {
    background: #0A1628 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    text-align: center;
}

/* Menu animation */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-active .menu-line:nth-child(3) {
    width: 1.4rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays */
    .scroll-reveal.animated[data-delay="1"] { transition-delay: 0.1s; }
    .scroll-reveal.animated[data-delay="2"] { transition-delay: 0.2s; }
    .scroll-reveal.animated[data-delay="3"] { transition-delay: 0.3s; }
    .scroll-reveal.animated[data-delay="4"] { transition-delay: 0.4s; }
}

/* Hero image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom selection color */
::selection {
    background: #5EEAD4;
    color: #0A1628;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #D8F5E8 0%, #B3EAD4 100%);
    background-size: cover;
}

/* Subtle pattern overlay on dark sections */
.bg-midnight-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(94, 234, 212, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
