/* ===== Custom Styles for FJH Global Ventures ===== */

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

/* ===== Section Common Styles ===== */
.section-label {
    display: inline-block;
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #528534;
    margin-right: 12px;
    vertical-align: middle;
}

.section-title {
    position: relative;
}

.section-desc {
    position: relative;
}

/* ===== Hero Animations ===== */
.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out 0.8s forwards;
}

.hero-stats {
    animation: fadeUp 0.8s ease-out 1s forwards;
}

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

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== Work Cards ===== */
.work-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:nth-child(1) { transition-delay: 0.05s; }
.work-card:nth-child(2) { transition-delay: 0.1s; }
.work-card:nth-child(3) { transition-delay: 0.15s; }
.work-card:nth-child(4) { transition-delay: 0.2s; }
.work-card:nth-child(5) { transition-delay: 0.25s; }
.work-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== Testimonial Cards ===== */
.testimonial-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.5s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.15s; }

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-forest-950 {
    color: #111c0a !important;
}

.navbar-scrolled .text-forest-600 {
    color: #315221 !important;
}

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

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== Selection ===== */
::selection {
    background: #528534;
    color: #faf9f6;
}

/* ===== Focus Styles ===== */
*:focus-visible {
    outline: 2px solid #528534;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #528534;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .section-label::before {
        width: 16px;
        margin-right: 8px;
    }
}
