/* ============================================
   BuildYourCV - Home Page Specific Styles
   Mobile-first, premium marketing design
   ============================================ */

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== NAVBAR ===== */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-glass.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: #ffffff;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 40vw;
    max-width: 600px;
    height: 40vw;
    max-height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, rgba(37,99,235,0.08) 70%, transparent 100%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 35vw;
    max-width: 500px;
    height: 35vw;
    max-height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, rgba(236,72,153,0.06) 70%, transparent 100%);
    bottom: 10%;
    left: -5%;
    animation-delay: -4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ===== HERO CTA BUTTON ===== */
.hero-cta-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255,255,255,0.1) inset; }
    50% { box-shadow: 0 12px 40px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255,255,255,0.15) inset, 0 0 0 4px rgba(6, 182, 212, 0.1); }
}

/* ===== CV MOCKUP ===== */
.cv-mockup-card {
    animation: mockupFloat 6s ease-in-out infinite;
}

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

/* ===== FLOATING BADGES ===== */
.floating-badge {
    animation: badgeFloat 5s ease-in-out infinite;
}

.floating-badge-1 {
    animation-delay: -2s;
}

.floating-badge-2 {
    animation-delay: -4s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* ===== TEMPLATE CARDS ===== */
.template-card {
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,182,212,0.03), rgba(37,99,235,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.template-card:hover::before {
    opacity: 1;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    position: relative;
    overflow: hidden;
}

/* ===== STEP CARDS ===== */
.step-card {
    position: relative;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
}

/* ===== FAQ ===== */
.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3) !important;
}

/* ===== SCROLL ANIMATIONS ===== */
.feature-card,
.template-card,
.testimonial-card,
.step-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card.animate-in,
.template-card.animate-in,
.testimonial-card.animate-in,
.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 70ms; }
.feature-card:nth-child(3) { transition-delay: 140ms; }
.feature-card:nth-child(4) { transition-delay: 210ms; }
.feature-card:nth-child(5) { transition-delay: 280ms; }
.feature-card:nth-child(6) { transition-delay: 350ms; }

.template-card:nth-child(1) { transition-delay: 0ms; }
.template-card:nth-child(2) { transition-delay: 80ms; }
.template-card:nth-child(3) { transition-delay: 160ms; }
.template-card:nth-child(4) { transition-delay: 240ms; }

.testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonial-card:nth-child(2) { transition-delay: 100ms; }
.testimonial-card:nth-child(3) { transition-delay: 200ms; }

.step-card:nth-child(1) { transition-delay: 0ms; }
.step-card:nth-child(2) { transition-delay: 100ms; }
.step-card:nth-child(3) { transition-delay: 200ms; }

/* ============================================
   MOBILE RESPONSIVE — Mobile First
   ============================================ */

/* Touch-friendly tap targets */
@media (max-width: 640px) {
    .hero-mockup-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Smaller blobs on mobile */
    .hero-blob-1 {
        width: 70vw;
        height: 70vw;
        filter: blur(50px);
    }

    .hero-blob-2 {
        width: 60vw;
        height: 60vw;
        filter: blur(40px);
    }

    /* No animation on mobile to save battery */
    .cv-mockup-card {
        animation: none;
    }

    /* Stack CTA buttons vertically */
    .hero-cta-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.7rem;
        padding-right: 2rem; /* room for close button */
    }
}

/* ===== TABLET (sm → md) ===== */
@media (min-width: 640px) and (max-width: 1023px) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .cv-mockup-card {
        width: 300px;
    }
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1024px) {
    .hero-cta-btn:hover {
        background-position: right center;
    }
}

/* ===== PRINT MEDIA ===== */
@media print {
    .announcement-bar,
    .navbar-glass,
    footer,
    .hero-cta-btn,
    .floating-badge {
        display: none !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-blob,
    .cv-mockup-card,
    .floating-badge,
    .announcement-bar,
    .hero-cta-btn {
        animation: none !important;
    }

    .feature-card,
    .template-card,
    .testimonial-card,
    .step-card {
        opacity: 1 !important;
        transform: none !important;
        transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    }
}
