/**
 * Hero Modern: Premium Redesign Styles
 * AI Tools Platform Aesthetic
 */

/* --- LAYOUT & WRAPPERS --- */
.hero-modern {
    padding: 80px 0 120px;
    z-index: 5;
}

.hero-content-left {
    position: relative;
    z-index: 10;
}

/* --- TYPOGRAPHY --- */
.hero-title-modern {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-desc-modern {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- TRUST BAR --- */
.hero-trust-bar {
    display: flex;
    gap: 2rem;
    margin-top: 50px;
    padding: 20px;
    background: rgba(var(--brand-primary-rgb), 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.05);
    width: fit-content;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.trust-item i {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

/* --- SMART SEARCH --- */
.hero-search-wrapper {
    position: relative;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-search-input {
    width: 100%;
    padding: 18px 25px 18px 60px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 30px rgba(var(--brand-primary-rgb), 0.15);
    transform: translateY(-2px);
    outline: none;
}

.search-icon-left {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-primary);
    font-size: 1.2rem;
}

/* --- SHOWCASE MATRIX (RIGHT COLUMN) --- */
.hero-visual-right {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-showcase-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform: perspective(1000px) rotateY(-5deg);
}

.showcase-card {
    position: absolute;
    width: 200px; /* Reduced from 240px */
    padding: 12px; /* Reduced from 16px */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float-slow 6s ease-in-out infinite;
    cursor: pointer; /* Ensure pointer cursor */
    z-index: 10;
    display: block; /* Ensure it behaves as a block link */
    color: inherit; /* Prevent link color override */
}

.card-1 { top: 20px; right: 10px; z-index: 10; animation-delay: 0s; }
.card-2 { top: 150px; left: 0px; z-index: 5; animation-delay: 1s; }
.card-3 { bottom: 60px; right: 20px; z-index: 8; animation-delay: 2s; }
.card-4 { top: -40px; left: 80px; z-index: 7; animation-delay: 3s; }
.card-5 { bottom: 180px; left: -30px; z-index: 9; animation-delay: 0.5s; }
.card-6 { top: 260px; right: -20px; z-index: 6; animation-delay: 1.5s; }
.card-7 { bottom: -20px; left: 120px; z-index: 4; animation-delay: 2.5s; }
.card-8 { top: 340px; left: 50px; z-index: 3; animation-delay: 3.5s; }

.showcase-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-primary);
}

.card-icon {
    width: 42px; /* Reduced from 50px */
    height: 42px; /* Reduced from 50px */
    border-radius: 10px; /* Slimitly smaller radius */
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reduced from 1.5rem */
    margin-bottom: 12px; /* Reduced from 15px */
}

.card-title {
    font-size: 0.85rem; /* Reduced from 0.95rem */
    font-weight: 800;
    margin-bottom: 4px; /* Slightly tighter */
}

.card-meta {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--text-tertiary);
    line-height: 1.3; /* Tighter leading */
}

.card-link {
    font-size: 0.7rem; /* Significantly reduced as requested */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

/* --- LIGHT/DARK MODE FIXES --- */
[data-theme="dark"] .showcase-card {
    background: rgba(15, 23, 42, 0.4);
}

[data-theme="dark"] .trust-item {
    color: var(--text-secondary);
}

/* --- ANIMATIONS --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@media (max-width: 991px) {
    .hero-title-modern { font-size: 2.8rem; }
    .hero-visual-right { min-height: 500px; margin-top: 40px; }
    .showcase-card { width: 170px; padding: 10px; } /* Even smaller on mobile */
    .hero-trust-bar { flex-direction: column; gap: 1rem; width: 100%; }

    /* Show only first 4 cards on mobile to prevent clutter */
    .card-5, .card-6, .card-7, .card-8 { display: none; }
    
    .card-1 { top: 0; right: 0; }
    .card-2 { top: 100px; left: 0; }
    .card-3 { top: 220px; right: 10px; }
    .card-4 { top: 320px; left: 10px; }
}
