/* Reset and global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Common sidebar styles */
.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;
}

.sidebar.collapsed .sidebar-img,
.sidebar.collapsed .social-icons,
.sidebar.collapsed nav a span {
    /*display: none;*/
}

.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed h2
 {
    display: none;
}

/*.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}*/


.social-icons a img {
    width: 28px;
    height: 28px;
}
.sidebarcollapsed .social-icons {
    display: flex;
    flex-direction: column;
    align-items: center
    gap: 10px;
    margin-bottom: 20px;
}


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;
    font-size: 14px;
    margin: 5px 20px;
}

nav a span {
    margin-top: 5px; /* Space between icon and text */
}

.sidebar.collapsed nav a span {
    font-size: 14px;
    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-right: 10px; }
.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;
    text-align: center;
    background-color: #2c3e50;
}

/* Container Styles */
.container {
    max-width: 1155px;
    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-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Skills Page Specific Styles */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    width: 20%;
    transition: transform 0.3s;
    cursor: pointer;
}

.skill-item img {
    width: 80px;
    height: 80px;
}

.skill-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.skill-item:hover {
    transform: scale(1.1);
}

.skill-info {
    display: none;
    background: url('photo/skills_bg.jpg') no-repeat center center/cover;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    max-width: 600px;
    background-color: white;
    padding: 100px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: left;
}

.close-btn {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

#skillHeading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#skillDescription {
    font-size: 16px;
    margin-bottom: 20px;
}

#githubLink {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

#githubLink:hover {
    text-decoration: underline;
}

/* Projects Page Specific Styles */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    width: 20%;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-item img {
    width: 100px;
    height: 100px;
}

.project-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.project-item:hover {
    transform: scale(1.1);
}

.project-info {
    display: none;
    background: url('photo/projects_bg.jpg') no-repeat center center/cover;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    max-width: 600px;
    background-color: white;
    padding: 100px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: left;
}

.close-btn {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

#projectHeading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#projectDescription {
    font-size: 16px;
    margin-bottom: 20px;
}

#projectGithubLink {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

#projectGithubLink:hover {
    text-decoration: underline;
}
