/* ========================================
   HOME PAGE - Additional Styles
   ======================================== */

/* CTA Buttons in Hero */
.intro-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.cta-button-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 212, 255, 0.5);
}

.cta-button-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.cta-button-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 212, 255, 0.3);
}

.cta-icon {
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Featured Tools Section */
.featured-tools-section {
    padding: 6rem 2rem;
    background: var(--primary-bg);
    position: relative;
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.title-icon {
    font-size: 2.5rem;
    animation: iconRotate 3s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(0, 255, 136, 0.03));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.featured-card[data-scroll-animate].animated {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.featured-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.25);
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.featured-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-logo {
    transform: scale(1.1) rotate(5deg);
}

.featured-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.featured-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-tertiary), #9333ea);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    }
}

.featured-card-body {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.featured-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.featured-card:hover .featured-name {
    color: var(--accent-primary);
}

.featured-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-tag {
    padding: 0.4rem 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.featured-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.featured-card-footer {
    position: relative;
    z-index: 1;
}

.featured-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.featured-btn:hover::before {
    width: 400px;
    height: 400px;
}

.featured-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Scroll Animations */
[data-scroll-animate] {
    opacity: 0;
}

[data-scroll-animate].animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .featured-tools-section {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .intro-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-tools-section {
        padding: 3rem 1rem;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
    
    .featured-logo {
        width: 60px;
        height: 60px;
    }
    
    .featured-name {
        font-size: 1.3rem;
    }
    
    .featured-description {
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .featured-card,
    .featured-btn,
    .view-all-btn,
    .title-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .featured-card:hover,
    .featured-btn:hover,
    .view-all-btn:hover {
        transform: none;
    }
}
