/* 1. Base Colors and Attractive Gradient (White/Light Mint to Professional Blue/Gray) */
body {
    font-family: 'Poppins', sans-serif;
    /* Attractive Gradient: Light mint/cyan to soft professional blue/gray */
    background: linear-gradient(135deg, #E0FFFF 0%, #D8DDEB 100%);
    min-height: 100vh;
}

/* 2. Liquid Glass Effect for Sidebar and Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    /* Highly transparent white background */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.1);
    border-radius: 15px;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 30px 20px;
    transition: transform .3s ease, width .3s ease;
    z-index: 1000;
    /* Applying glass effect to sidebar */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar.hide {
    transform: translateX(-100%);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-link {
    color: #333;
    margin: 10px 0;
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.1);
    /* Light blue active background */
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2);
}

.nav-link i {
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

/* Toggle button */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    display: none;
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: left .3s ease, transform .3s ease;
}

/* Icon transition for smooth transformation */
.toggle-btn i {
    transition: transform 0.3s ease;
}

/* Main content */
.main-content {
    margin-left: 280px;
    padding: 60px;
    transition: margin .3s ease, filter .3s ease;
    cursor: default;
    /* Reset cursor */
}

/* Blur effect when sidebar is open on mobile */
.main-content.blurred {
    filter: blur(5px);
    /* Allow clicks to pass through to close the sidebar */
    cursor: pointer;
}

.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.2;
}

section {
    padding: 45px 0;
}

/* Card styling using glass effect */
.card-glass {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: none;
    height: 100%;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.card-glass .icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Portfolio grid */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 110, 253, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s;
    border-radius: 15px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

#top-display {
    display: none;
}

.img-fluid {
    width: 459px;
}
/* Responsive */
@media (max-width: 800px) {
    #display {
        display: none;
    }

    #top-display {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 2px 5px gray);
    }

}
.toggle-btn {
    display: none !important;
}

@media (max-width: 992px) {
    .toggle-btn {
        display: block !important;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 9999;
    }
}


@media (max-width: 992px) {

    .sidebar {
        width: max(200px, 45vw);
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .toggle-btn {
        display: block; /* Mobile এ show */
    }

    .main-content {
        margin-left: 0;
        padding: 40px 20px;
    }

    .sidebar.show + .main-content + .toggle-btn {
        left: calc(max(200px, 45vw) + 10px);
    }

    .hero h1 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.2;
    }
}

