/* Homepage Visual Enhancements */

/* Floating Icons Animation */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float-around 20s infinite ease-in-out;
    filter: blur(1px);
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.floating-icon:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.floating-icon:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 24s;
}

.floating-icon:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    animation-duration: 26s;
}

.floating-icon:nth-child(6) {
    top: 60%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 23s;
}

@keyframes float-around {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

/* Feature Cards with Icons */
.features-section {
    padding: 4rem 0;
    background: var(--bg-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce-gentle 2s infinite;
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Decorative Shapes */
.decorative-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -100px;
    left: -100px;
}

/* Visual Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
    margin: 4rem 0;
}

/* Pulse Animation for Stats */
.stat-card {
    animation: pulse-in 0.6s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes pulse-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Topic Cards Hover Effect Enhancement */
.topic-card {
    position: relative;
    overflow: hidden;
}

.topic-card::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #667eea;
}

.topic-card:hover::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .floating-icon {
    opacity: 0.08;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .decorative-shape {
    opacity: 0.03;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }
}