/* Hey Quickie - Custom Styles */

/* ===== CSS Variables ===== */
:root {
    --hq-coral: #FF6B4A;
    --hq-coral-light: #FF8A6F;
    --hq-coral-dark: #E5553A;
    --hq-white: #FFFFFF;
    --hq-off-white: #FAFAFA;
    --hq-light-gray: #F3F4F6;
    --hq-gray: #9CA3AF;
    --hq-dark-gray: #374151;
    --hq-black: #111827;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ===== Phone Mockup ===== */
.phone-mockup {
    width: 280px;
    background: #fff;
    border-radius: 2.5rem;
    box-shadow:
        0 0 0 2px #e5e7eb,
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 12px #f9fafb;
    overflow: hidden;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

.phone-screen {
    background: #fafafa;
    min-height: 480px;
}

/* ===== Scroll Reveal Animation ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--reveal-delay, 0s);
}

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

/* ===== Floating Avatar Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-avatar {
    animation: float 3s ease-in-out infinite;
}

/* ===== Pulse Ring Animation ===== */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

.pulse-ring {
    animation: pulse-ring 3s ease-in-out infinite;
}

.pulse-ring-delay {
    animation-delay: 0.5s;
}

.pulse-ring-delay-2 {
    animation-delay: 1s;
}

/* ===== Activity Card Hover ===== */
.activity-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Hero Parallax ===== */
.hero-parallax {
    transition: transform 0.3s ease-out;
}

/* ===== Form States ===== */
.waitlist-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.waitlist-form button[type="submit"].loading {
    color: transparent;
    pointer-events: none;
}

.waitlist-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Messages */
.form-message {
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-message.duplicate {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===== Navbar Shadow on Scroll ===== */
#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ===== Mobile Menu Animation ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    display: block;
    max-height: 300px;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: inherit;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid var(--hq-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float-avatar,
    .pulse-ring {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
