/* ============================================
   Reward PT — Custom Styles
   Fresh & Airy | Forest Green + Off-White
   ============================================ */

/* ---------- Base / Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: color: #2D5A3D;
    color: #F5F0EB;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #2D5A3D;
    transition: width 0.3s ease;
}

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

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
    position: relative;
    color: #1e3d29;
    font-family: 'DM Serif Display', Georgia, serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #2D5A3D;
}

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

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

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #2D5A3D;
    color: #F5F0EB;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid #2D5A3D;
}

.btn-primary:hover {
    background: #244a32;
    border-color: #244a32;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #2D5A3D;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1.5px solid rgba(45, 90, 61, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #2D5A3D;
    background: rgba(45, 90, 61, 0.05);
    transform: translateY(-2px);
}

/* ---------- Floating Cards ---------- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ---------- Menu Tabs ---------- */
.menu-tab {
    background: transparent;
    color: #6b7c70;
    border: none;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab.active {
    background: #2D5A3D;
    color: #F5F0EB;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.menu-tab:not(.active):hover {
    background: rgba(45, 90, 61, 0.08);
    color: #2D5A3D;
}

/* ---------- Menu Items ---------- */
.menu-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(45, 90, 61, 0.08);
}

/* ---------- Experience Cards ---------- */
.experience-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-6px);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .floating-card {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}
