/* ============================================
   Ingenious KQ — Custom Styles
   ============================================ */

/* Base reset & smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #4fd1ab;
    color: #0F172A;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(240, 244, 248, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

/* Mobile menu lines animation */
.menu-line {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* ============================================
   Philosophy Cards
   ============================================ */
.philosophy-card {
    padding: 2rem 0;
    border-top: 1px solid #d9e2ec;
    transition: border-color 0.3s ease;
}

.philosophy-card:hover {
    border-top-color: #8ee5c6;
}

/* ============================================
   Offering Cards
   ============================================ */
.offering-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offering-card:hover {
    transform: translateY(-4px);
}

.offering-card h3 {
    transition: color 0.3s ease;
}

.offering-card:hover h3 {
    color: #1fa87e;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Utility
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4fd1ab;
    outline-offset: 4px;
    border-radius: 4px;
}
