/* 
Changes:
- 2025-12-25: Added PDFYogi-style tools section with category pills and filtering
- Tool cards with icon, title, description, category badge, and CTA
- JavaScript filtering by category
- Coming Soon badge for unavailable tools
- 2025-12-24: Complete hero redesign - mobile-first
- Bold, minimal design with grid background
- Single focused CTA approach
- Responsive from mobile up
*/

/* ============================================
   HERO SECTION - Mobile First
   ============================================ */

.hero-home {
    position: relative;
    min-height: 62dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.5rem 3rem;
    background: hsl(var(--background));
    overflow: hidden;
}

/* Grid background - kept as requested */
.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(hsl(var(--foreground) / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--foreground) / 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Gradient glow overlay */
.hero-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 60%;
    background: radial-gradient(
        ellipse 50% 80% at 50% 0%,
        hsl(var(--primary) / 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Hero content wrapper */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Animated file icons floating */
.hero-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    animation: float 3s ease-in-out infinite;
}

.hero-icon:nth-child(1) { 
    background: hsl(350 70% 50% / 0.15); 
    color: hsl(350 70% 50%);
    animation-delay: 0s;
}
.hero-icon:nth-child(2) { 
    background: hsl(200 80% 50% / 0.15); 
    color: hsl(200 80% 50%);
    animation-delay: 0.2s;
}
.hero-icon:nth-child(3) { 
    background: hsl(145 60% 45% / 0.15); 
    color: hsl(145 60% 45%);
    animation-delay: 0.4s;
}
.hero-icon:nth-child(4) { 
    background: hsl(35 90% 50% / 0.15); 
    color: hsl(35 90% 50%);
    animation-delay: 0.6s;
}
.hero-icon:nth-child(5) { 
    background: hsl(265 70% 55% / 0.15); 
    color: hsl(265 70% 55%);
    animation-delay: 0.8s;
}

.hero-icon svg {
    width: 22px;
    height: 22px;
}

/* Main headline */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

/* Primary CTA */
.hero-cta-primary {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px hsl(var(--primary) / 0.3);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsl(var(--primary) / 0.4);
}

.hero-cta-primary svg {
    width: 20px;
    height: 20px;
}

/* Secondary link */
.hero-cta-secondary {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-cta-secondary:hover {
    color: hsl(var(--primary));
}

.hero-cta-secondary svg {
    width: 16px;
    height: 16px;
}

/* Trust badges - bottom of hero */
.hero-trust {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.hero-trust-item svg {
    width: 14px;
    height: 14px;
    color: hsl(var(--primary) / 0.7);
}

/* Desktop breakpoint */
@media (min-width: 768px) {
    .hero-home {
        padding: 8rem 2rem 6rem;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-icons {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-icon {
        width: 56px;
        height: 56px;
    }

    .hero-icon svg {
        width: 26px;
        height: 26px;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 520px;
        margin-bottom: 2.5rem;
    }

    .hero-cta-primary {
        width: auto;
        max-width: none;
        padding: 1rem 2.5rem;
        font-size: 1.0625rem;
    }

    .hero-trust {
        gap: 3rem;
    }

    .hero-trust-item {
        font-size: 0.8125rem;
    }

    .hero-trust-item svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ============================================
   TOOLS SECTION (PDFYogi-style)
   ============================================ */

.tools-section {
    padding: 4rem 1.5rem;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .tools-section {
        padding: 5rem 2rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    max-width: 480px;
    margin: 0 auto;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .category-pills {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 0.5rem 0 2rem;
    }
}

.category-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover {
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--foreground));
}

.category-pill.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tool Card */
.tool-card {
    position: relative;
    padding: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .tool-card {
        padding: 1.25rem;
    }
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsl(var(--foreground) / 0.06);
    border-color: hsl(var(--primary) / 0.3);
}

.tool-card.coming-soon {
    opacity: 0.7;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.tool-card[hidden] {
    display: none;
}

/* Tool Icon */
.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.tool-icon svg {
    width: 20px;
    height: 20px;
}

/* Icon colors by category */
.tool-icon.image { background: hsl(265 70% 60% / 0.12); color: hsl(265 70% 55%); }
.tool-icon.video { background: hsl(350 70% 55% / 0.12); color: hsl(350 70% 50%); }
.tool-icon.audio { background: hsl(35 90% 50% / 0.12); color: hsl(35 90% 45%); }
.tool-icon.document { background: hsl(145 60% 45% / 0.12); color: hsl(145 60% 40%); }
.tool-icon.archive { background: hsl(200 80% 50% / 0.12); color: hsl(200 80% 45%); }
.tool-icon.dev { background: hsl(280 60% 55% / 0.12); color: hsl(280 60% 50%); }

/* Tool Title */
.tool-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

/* Tool Description */
.tool-description {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tool Footer */
.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* Category Badge */
.category-badge {
    padding: 0.25rem 0.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.category-badge.image { background: hsl(265 70% 55% / 0.1); color: hsl(265 70% 50%); }
.category-badge.video { background: hsl(350 70% 50% / 0.1); color: hsl(350 70% 45%); }
.category-badge.audio { background: hsl(35 90% 45% / 0.1); color: hsl(35 90% 40%); }
.category-badge.document { background: hsl(145 60% 40% / 0.1); color: hsl(145 60% 35%); }
.category-badge.archive { background: hsl(200 80% 45% / 0.1); color: hsl(200 80% 40%); }
.category-badge.dev { background: hsl(280 60% 50% / 0.1); color: hsl(280 60% 45%); }

/* Coming Soon Badge */
.coming-soon-badge {
    padding: 0.25rem 0.5rem;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Tool CTA */
.tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.tool-cta svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-cta svg {
    transform: translateX(2px);
}

/* Section footer note */
.tools-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 3rem 1.5rem;
    background: hsl(var(--primary));
}

@media (min-width: 768px) {
    .stats-section {
        padding: 4rem 2rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    color: hsl(var(--primary-foreground));
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 4rem 1.5rem;
    background: hsl(var(--background));
}

@media (min-width: 768px) {
    .features-section {
        padding: 6rem 2rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 1.25rem;
    background: hsl(var(--card));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
}

.feature-card:hover {
    border-color: hsl(var(--primary) / 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: hsl(var(--primary));
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-section {
    padding: 4rem 1.5rem;
    background: hsl(var(--muted) / 0.4);
}

@media (min-width: 768px) {
    .how-section {
        padding: 6rem 2rem;
    }
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
        position: relative;
    }

    .steps-container::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 15%;
        right: 15%;
        height: 2px;
        background: hsl(var(--primary) / 0.2);
    }
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .step-card {
        flex: 1;
        max-width: 220px;
    }
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: hsl(var(--card));
    border: 2px solid hsl(var(--primary) / 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    transition: all 0.2s ease;
}

.step-number svg {
    width: 24px;
    height: 24px;
}

.step-card:hover .step-number {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 4rem 1.5rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 5rem 2rem;
    }
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
}

.cta-subtitle {
    font-size: 0.9375rem;
    opacity: 0.75;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

@media (min-width: 768px) {
    .cta-button {
        width: auto;
        max-width: none;
        padding: 0.875rem 2rem;
    }
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.4);
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }

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