/* --- ROOT VARIABLES & THEME CONFIG --- */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-alt: #f1f5f9;
    --sidebar-bg: rgba(255, 255, 255, 0.98);
    --border-color: #e2e8f0;
    --glass-border: rgba(255, 255, 255, 0.5);
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Dimensions */
    --sidebar-width: 280px;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-alt: #1e293b;
    --sidebar-bg: rgba(15, 23, 42, 0.98);
    --border-color: #334155;
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(129, 140, 248, 0.2);
}


/* --- RESET & BASICS --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --- UTILITIES --- */

.accent {
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- BUTTONS --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}


/* --- TOGGLES --- */

.theme-toggle,
.menu-toggle {
    position: fixed;
    top: 20px;
    z-index: 1002;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle {
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--primary);
}

.menu-toggle {
    right: 85px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.4rem;
    display: none;
}


/* --- SIDEBAR (Fixed & Scroll Hidden) --- */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    z-index: 1003;
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow-y: auto;
    /* Allow scroll if needed */
    scrollbar-width: none;
    /* Firefox: Hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge: Hide scrollbar */
}


/* Chrome/Safari/Opera: Hide scrollbar */

.sidebar::-webkit-scrollbar {
    display: none;
}

.profile-container {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary);
    padding: 4px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 15px;
    color: var(--primary-light);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    color: var(--primary);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}


/* --- MAIN CONTENT WRAPPER (Desktop Fix) --- */


/* This ensures ALL content clears the fixed sidebar on large screens */

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}


/* --- SECTIONS GENERAL --- */

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}


/* --- HERO SECTION --- */

.hero-section {
    min-height: 100vh;
    padding: 0 5%;
    /* Simplified padding as .main-content handles the sidebar offset now */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h4 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.typing-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
    min-height: 3.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


/* Floating Shapes */

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    right: -5%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    left: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #10b981;
    top: 40%;
    right: 30%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}


/* --- ABOUT SECTION --- */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    z-index: 1;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    top: 20px;
    left: 20px;
    z-index: -1;
    border-radius: 20px;
    transition: var(--transition);
}

.about-img-wrapper:hover::before {
    top: 10px;
    left: 10px;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--text-main);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    padding: 15px 20px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}


/* --- STATS SECTION --- */

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* --- SERVICES SECTION --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.icon-box {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 28px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: center;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    transform: rotate(0deg) scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
}


/* --- SKILLS SECTION --- */

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

.skills-left h3,
.skills-right h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.skill-bar-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.progress-line {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 10px;
    overflow: hidden;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pro-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.pro-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}


/* --- PORTFOLIO SECTION (NEW DESIGN) --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--bg-alt);
    /* Fallback bg for the card itself */
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    /* NEW: This is key for the new design */
    position: relative;
    overflow: hidden;
}

.portfolio-img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* NEW: Changed transition for a smoother zoom */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* NEW: This is the zoom effect on the image */

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.1);
}

.portfolio-content {
    /* NEW: This positions the content box */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* This is the content styling */
    padding: 20px;
    background: var(--bg-card);
    /* Use the blur/opacity background */
    border-top: 1px solid var(--glass-border);
    /* NEW: This is the slide-up animation. 
      It moves the box down 100% of its own height,
      then pulls it back up by 65px, so only the top 65px is visible.
    */
    transform: translateY(calc(100% - 65px));
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* NEW: This is the hover-state (and tap-state) animation */

.portfolio-card:hover .portfolio-content {
    transform: translateY(0);
    /* Slides the box all the way up */
}

.portfolio-content h4 {
    font-size: 1.25rem;
    /* Adjusted for the "title bar" */
    margin-bottom: 15px;
    color: var(--text-main);
    /* Prevents text wrap from breaking the design */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.portfolio-tags {
    margin-bottom: 15px;
}

.portfolio-tags span {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}


/* NEW: Styles for the "View Project" link */

.portfolio-view-link {
    display: inline-flex;
    /* Use flex for icon alignment */
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-view-link i {
    transition: transform 0.3s ease;
}

.portfolio-view-link:hover {
    gap: 12px;
    /* Move icon slightly on hover */
}

.portfolio-view-link:hover i {
    transform: translateX(5px);
}


/* --- CONTACT SECTION --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.c-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.c-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.clean-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-alt);
    transition: var(--transition);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    padding: 0 5px;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--bg-card);
}


/* --- FOOTER --- */

.main-footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    width: 100%;
}


/* --- EXTRAS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 998;
}

#back-to-top.active {
    opacity: 1;
    pointer-events: auto;
}


/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */


/* Tablet / Small Laptop (992px - 1200px) */

@media (max-width: 1200px) {
     :root {
        --sidebar-width: 250px;
    }
    .about-grid,
    .contact-wrapper {
        gap: 40px;
    }
}


/* Mobile & Tablet (< 991px) */

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    .sidebar {
        left: -100%;
        width: 280px;
        box-shadow: none;
    }
    .sidebar.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    /* Reset main wrapper for mobile so it doesn't have left margin */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .hero-section {
        padding: 120px 20px 80px;
        text-align: center;
        justify-content: center;
    }
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-btns {
        justify-content: center;
    }
    .section {
        padding: 80px 0;
    }
    .about-grid,
    .contact-wrapper,
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
    .about-img-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .theme-toggle {
        right: 75px;
        top: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .menu-toggle {
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* * ========================================================
 * === THIS IS THE SECTION I UPDATED FOR YOU (lines 1060-1095) ===
 * ========================================================
 */

@media (max-width: 768px) {
    .portfolio-card {
        /* Disable tilt on touch */
        transition: none;
    }
    .portfolio-content {
        /* * FIX Part 1:
         * Force the content box to be fully visible (not slid down)
         */
        transform: translateY(0);
    }
    /* * FIX Part 2:
     * By default on mobile, hide the paragraph.
     */
    .portfolio-content p {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-bottom: 0;
        /* Remove space */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* * FIX Part 3:
     * On tap (:hover), show the paragraph.
     * This will make the content box expand.
     */
    .portfolio-card:hover .portfolio-content p {
        max-height: 100px;
        /* (Expand to show) */
        opacity: 1;
        margin-bottom: 15px;
        /* (Restore space) */
    }
}


/* Small Mobile (< 480px) */

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .sidebar {
        width: 85%;
        max-width: 300px;
    }
    .nav-link {
        padding: 15px 20px;
    }
    .skills-wrapper,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    /* * THIS IS THE BUTTON FIX:
     * Made buttons smaller to fit more in one row.
     */
    .portfolio-filters {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 14px;
        /* Reduced horizontal padding */
        font-size: 0.85rem;
        /* Reduced font size */
    }
    /* This rule makes the image smaller on mobile */
    .portfolio-img-box {
        aspect-ratio: 16/10;
    }
    .portfolio-content h4 {
        font-size: 1.25rem;
    }
    .portfolio-content p {
        font-size: 0.9rem;
    }
}


/* =========================================
   NEW STYLES ADDED FOR PORTFOLIO UPGRADE
========================================= */


/* --- 10. PORTFOLIO FILTER STYLES --- */

.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}


/* Animation for filtering */

.filterable-item {
    /* This ensures items are 'in' the layout to be animated */
    display: block;
    transform-origin: center;
    /* This transition is for the attractive fade/scale animation */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filterable-item.hide {
    transform: scale(0.8);
    opacity: 0;
    /* The JS will set 'display: none' after 400ms to remove it from the layout */
}