/* Custom Styles for Tech News Site */

body {
    scroll-behavior: smooth;
}

.hero-section {
    background-size: cover;
    background-position: center center;
    min-height: 70vh; /* Ensure hero is tall enough */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceSlow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.05);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s forwards; /* Delay for staggered effect */
    opacity: 0; /* Start hidden before animation */
}

.animate-bounce-slow {
    animation: bounceSlow 2s infinite 1s; /* Delay start of bounce */
}


/* Section Title Styling */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #2dd4bf; /* teal-400 */
    border-radius: 2px;
}

/* News Card Enhancements */
.news-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.news-card:hover {
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2), 0 6px 6px rgba(0, 255, 255, 0.15); /* Cyan glow */
}

.news-card img {
    transition: transform 0.3s ease-in-out;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* Category Card Hover Effect */
.category-card:hover {
    transform: translateY(-5px);
}

/* Scrollbar Styling (Optional - for a more modern feel) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937; /* gray-800 */
}

::-webkit-scrollbar-thumb {
    background: #14b8a6; /* teal-500 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488; /* teal-600 */
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Initial state before animation */
}
