/*
 * style.css
 * Custom styles for "সাইবার নিরাপত্তা" (Cyber Security Awareness Portfolio)
 * Designed to complement Tailwind CSS.
 */

/* =========================================
   Global Resets & Typography
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    /* Fallback background color matching Tailwind's slate-100 */
    background-color: #f1f5f9;
    /* Improve Bengali font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================================
   Custom Components (Feature Cards)
   ========================================= */
.feature-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Smooth hover expansion and shadow glow */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6; /* Tailwind blue-500 */
}

/* =========================================
   Section Title Underline Animation
   ========================================= */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Initial base width */
    height: 4px;
    background-color: #3b82f6; /* Tailwind blue-500 */
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Expands the underline when hovering over the title */
.section-title:hover::after {
    width: 80%; 
}

/* =========================================
   Custom Scrollbar (Premium Look)
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0; /* Tailwind slate-200 */
}

::-webkit-scrollbar-thumb {
    background: #94a3b8; /* Tailwind slate-400 */
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6; /* Tailwind blue-500 */
}

/* =========================================
   Custom Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Can be added to HTML elements to make them fade in */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
