body {
    font-family: Arial, sans-serif;
     background: linear-gradient(to right, #ffecd2 0%, #f0f0f0 100%);

    margin: 0;
    padding: 0;

}

/* Common styles for both pages */
.sidebar {
    position: fixed;
    top: 10;
    left: 0;
    width: 250px;
    height: 90%;
    background-color: #2c3e50;
    text-align: center;
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar:hover {
    width: 250px;
}

.toggle-btn {
    position: absolute;
    top: 0px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-btn .toggle {
    font-size: 24px;
    color: black;
}

.toggle-btn:hover {
    background-color: #f0f0f0;
}

.sidebar-img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 20px;
    cursor: pointer;
}
.sidebar.collapsed .sidebar-img {
    width: 50px;
    height: 50px;
}

.sidebar h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebarcollapsed .social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-icons a img {
    width: 28px;
    height: 28px;
}

nav {
    margin-bottom: 60px; /* Add space to avoid overlap with the footer */
}

nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    font-size: 18px;
    color: #fff;
    margin: 5px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sidebar.collapsed nav a {
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    color: #fff;
    margin: 5px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

nav a span {
    margin-top: 5px; /* Space between icon and text */
}

.sidebar.collapsed nav a span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.home:before { content: "🏠"; margin-right: 10px; }
.nav-btn.about:before { content: "ℹ️"; margin-left: 4px; margin-right: 23px; }
.nav-btn.skills:before { content: "💻"; margin-right: 10px; }
.nav-btn.projects:before { content: "📁"; margin-right: 10px; }
.nav-btn.internship:before { content: "📋"; margin-right: 10px; }
.nav-btn.hobbies:before { content: "🎨"; margin-right: 10px; }

.sidebar-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    color: white;
    font-size: 14px;
    padding: 0px;
    text-align: center;
    background-color: #2c3e50;
}

.sidebar.collapsed .sidebar-img,
.sidebar.collapsed h2,
.sidebar.collapsed .social-icons,
.sidebar.collapsed nav a span {
 /*   display: none;  */
}

.sidebar.collapsed h2,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

/* Projects Page Specific Styles */
.container {
    max-width: 1150px;
    margin: 50px auto;
    margin-left: 270px; /* Add margin to avoid sidebar overlap */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;

    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .container {
    margin-left: 180px;
}

h1 {
    font-weight: bold;
    font-style: italic;
    background-color: #E8EAEA;
    color: #0B0B0B; /* Dark text color */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
margin: 50px;
    justify-content: center;
    gap: 20px;
}

.project-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    width: 300px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item:hover {
    transform: scale(1.05); /* Zoom effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better effect */
}

.project-item img {
    width: 250px; /* Adjusted icon size */
    height: 180px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.tech-tag {
    background-color: #007BFF;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.project-details {
    max-width: 900px;
    margin: 50px auto;
    margin-left: 270px; /* Add margin to avoid sidebar overlap */
    padding: 0px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
    margin-bottom: 50px;
padding-top: 10px;    /* Top padding */
  padding-right: 15px;  /* Right padding */
  padding-bottom: 20px; /* Bottom padding */
  padding-left: 25px;   /* Left padding */
  border: 1px solid #000;
    transition: margin-left 0.3s ease;

}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}
