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

    margin: 0;
    padding: 0;
}
.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: fixed;
    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;
}

.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;
    margin-left: 180px;
}


h1 {
    text-align: center;
    margin-bottom: 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.internship-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.internship-item:hover, .certification-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 5px rgba(0, 0, 0, 0.2);
}

.internship-item img, .certification-item img {
    width: 110px;
    height: 100px;
    margin-bottom: 10px;
}

.internship-content {
    text-align: left;
}
.certification-content {
    text-align: center;
}

.internship-content h3, .certification-content h3 {
    margin: 0;
    font-size: 1.2em;
}

.internship-content p, .certification-content p {
    margin: 5px 0;
}
