
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #444;
    padding: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f3e8e3;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar {
    background-color: #f7eee8;
    padding: 20px;
    width: 100%;
    max-width: 320px;
}

.profile {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border-style: double;
    border-color: white;
}

.main h1 {
    margin: 10px;
    text-align: center;
}

.main p {
    font-weight: bolder;
    font-size: larger;
    margin: 10px;
    text-align: center;
}

.contact, .skills, .activities, .languages {
    margin-top: 20px;
}

.contact h3, .skills h3, .activities h3, .languages h3 {
    color: #a46d5a;
    margin-bottom: 10px;
}

.skills ul, .activities ul, .languages ul {
    list-style-type: none;
    padding-left: 0;
}

.main {
    flex-grow: 1;
    padding: 30px;
    background-color: #edd4cf;
    width: calc(100% - 320px); /* Adjust for the sidebar width */
}

.section {
    margin-bottom: 30px;
    margin-top: 30px;
}

.section p {
    font-size: 17px;
}

.section h3 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
    background-color: #d2b582;
    padding: 5px;
}

.education h4, .internship h4, .workexperiance h4 {
    margin-top: 20px;
    font-size: 1.1em;
    color: #6f4a3d;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
    margin-top: 5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
    }

    .main {
        width: 100%;
        padding: 20px;
    }

    .profile {
        padding-left: 0;
    }

    .profile img {
        width: 120px;
        height: 120px;
    }

    .main h1 {
        font-size: 1.5em;
    }

    .main p {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    .main h1 {
        font-size: 1.2em;
    }

    .main p {
        font-size: 1em;
    }

    .section p {
        font-size: 15px;
    }
}

.underline {
    display: inline-block;
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    cursor: pointer;
}

.underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(7, 7, 7);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

a {
    text-decoration: none;
    color: inherit;
}
