/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url("b5.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;

}



.btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}


.hire-btn {
    background: transparent;
    border: 2px solid rgb(165, 71, 168);
    color: #ffffff;
}




.header h2 {

    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    font-size: xx-large;
}


.header nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header nav a:hover {
    color: rgba(151, 139, 139, 0.3);
}

/* Menu Bar */
.menu-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.menu-bar i {
    font-size: 1.5rem;
    color: #fff;
}

.dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 40px;
    right: 0;
    padding: 10px;
    width: 200px;
    z-index: 1000;
    /* ensure it stays above */
}

.dropdown.active {
    display: flex;
}


.dropdown a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.dropdown a:hover {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 6px;
}

.menu-bar.active .dropdown {
    display: flex;
}

/* Layout */
.container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 120px);
    /* Stretch layout */
}

/* Sidebar */
.sidebar {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
}

.sidebar .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s, transform 0.2s;
}

.sidebar .btn:hover {
    background: rgba(115, 9, 124, 0.3);
    transform: translateX(5px);
}

/* Main Content */
main {
    display: grid;
    gap: 20px;
}

.main {
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.main:hover {
    transform: translateY(-3px);
}

.main h2 {
    color: #ffd700;
    margin-bottom: 10px;
}

.blog-card {
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.blog-content {
    flex: 1;
    padding-right: 15px;
}

.blog-title {

    color: #ffffff;
    margin-bottom: 8px;

}

.blog-meta {
    font-size: 0.8rem;
    color: #777;
    cursor: pointer;

}

.blog-meta :hover {
    color: purple;
}



.blog-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.product-card-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.webpage-layout-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.quizApp-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.todoList-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.webClone-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}


@media (max-width: 600px) {
    .blog-image {
        width: 100%;
        height: 180px;
        margin-top: 10px;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header nav {
        flex-direction: column;
        gap: 10px;
    }
}