body {
    background-color: #f5f5f5;
    color: #333;              
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px auto;
    display: block;
}

.sidebar h1 {
    margin: 5px 0 2px 0;
    font-size: 20px;
    line-height: 1.2;
}

.sidebar p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #ccc;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: white;       
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 8px 0;
}

.sidebar nav ul li a:hover {
    color: #ddd;
}

.sidebar-image {
    margin-top: 15px;
    padding-top: 10px;
}

.sidebar-image img {
    width: 90%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.content {
    margin-left: 300px;
    padding: 40px;      
    max-width: 900px;
}

.content h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#projects section h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 5px;
}

img {
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
    height: 100%;
}

.feature-icons {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.feature-icons li {
    flex: 0 0 50%;
    padding: 5px 0;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-item i {
    font-size: 18px;
    color: #333;
}

.social-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.social-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #555;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* Tablets */
@media (max-width: 1024px) {
    .content {
        margin-left: 270px;
        padding: 20px;
        max-width: 100%;
    }
}

/* Phones */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        text-align: center;
    }
    .content {
        margin-left: 0;
        padding: 20px;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .feature-icons li {
        flex: 0 0 100%;
        text-align: center;
    }
    .image-gallery img {
        width: 100%;
    }
    img, video {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }
    .profile-pic {
        width: 80px;
        height: 80px;
    }
    .sidebar-image img {
        max-width: 120px;
    }
    .contact-form button {
        font-size: 14px;
        padding: 8px;
    }
}
