body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #f5f5f5;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #273e4a;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.hidden {
    transform: translateX(-250px);
}
.folder-tab {
    position: fixed;
    top: 20px;
    left: 0; /* Set left to 0 to align it with the sidebar */
    width: 40px;
    height: 40px;
    background-color: #66c1c1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: 1001;
}

.folder-tab::before {
    content: '≡';
    font-size: 24px;
}

.sidebar.hidden + .folder-tab {
    transform: translateX(0); /* Reset position when sidebar is hidden */
}



.main {
    margin-left: 250px;
    padding: 40px 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

.main.full-width {
    margin-left: 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    justify-items: center;
    align-items: stretch;
}

.project {
    background-color: #2e3c45;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for smooth effect */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 400px;
}

/* Hover effect */
.project:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Add shadow effect on hover */
}


.project img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project h3 {
    margin: 10px 0;
    color: #66c1c1;
}

.project p {
    padding: 0 10px 5px;
    color: #d9d9d9;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar a {
    display: block;
    background-color: #1c2a35;
    padding: 15px;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #66c1c1;
}

.contact {
    padding-bottom: 20px;
    font-size: 14px;
    color: #d9d9d9;
}

.footer {
    font-size: 12px;
    color: #d9d9d9;
    text-align: center;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .folder-tab {
        display: flex;
        transform: translateX(0); /* Ensure it resets */
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .main h1 {
        margin-top: 60px;
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }

    .main {
        margin-left: 250px;
    }
}
