/* Basic Styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #ffecd2 0%, #f0f0f0 100%);
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}
/* Common styles for both pages */

.container {
    padding: 4rem;
    max-width: 1060px;
    margin: auto;
    margin-left: 270px; /* Add margin to avoid sidebar overlap */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 1s ease-out;
    margin-top: 20px; /* Added margin-top for spacing */
    transition: margin-left 0.3s ease;
}

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

h1 {
    font-size: 2.5rem;
    color: #ff7e5f;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-in-out;
}

p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    animation: fadeIn 2s ease-in-out;
    text-align: left;
}

.highlight {
    color: #ff7e5f;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Additional Styles */
p span {
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

p span:hover {
    transform: scale(1.1);
    color: #ff7e5f;
}

/* Media Queries */
@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .container {
        padding: 1rem;
        margin-left: 0; /* Reset margin for smaller screens */
    }
}

.request-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.request-box h2 {
    color: #333;
    margin-bottom: 1rem;
}

.request-buttons {
    display: flex;
    gap: 10px;
}

.request-buttons a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.request-buttons a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.request-buttons a.whatsapp {
    background-color: #25D366;
}

.request-buttons a.whatsapp:hover {
    background-color: #1ebe5e;
    transform: scale(1.05);
}

.request-buttons a.email {
    background-color: #2980b9;
}

.request-buttons a.email:hover {
    background-color: #1f6fa5;
    transform: scale(1.05);
}

/* 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;
}

.toggle-btn {
    position: fixed;
    top: 10px;
    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;
    z-index: 1000;
}

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

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

.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 h2,
.sidebar.collapsed .social-icons,
.sidebar.collapsed nav a span {
 /*   display: none;  */
}

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


.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;
    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-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;
    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: 90px;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar {
        height: auto;
        width: 100%;
        position: relative;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .sidebar-footer {
        position: relative;
    }

    .toggle-btn {
        top: 5px;
        right: 10px;
    }
}
