:root {
    --primary-color: grey;
    --secondary-color: darksalmon;
    --background-color: darkslategray;
    --text-color: #333;
    --accent-light: blanchedalmond;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.profile-section {
    flex: 0 0 35%;
    background-color: var(--accent-light);
    padding: 2rem;
    text-align: center;
    position: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
}

.profile-header h1, h2, h3, h4 {
    color: var(--primary-color);
}

.profile-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.details-section {
    flex: 1;
    max-width: 65%;
    padding: 2rem;
    margin-left: 35%;
    position: relative;
    min-height: 100vh;
}

.details-section div {
    margin: 3rem 0 0 0;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
}

.skills li {
    flex: 0 0 25%;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

ul li::before {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Handle screens up to 768px (medium and smaller like mobile) */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .profile-section {
        position: relative;
        flex: none;
        width: 100%;
        height: auto;
    }

    .details-section {
        margin-left: 0;
        width: 100%;
        min-width: 100%;
    }

    .skills ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .skills li {
        flex: 0 0 40%;
        margin: 5px;
        text-align: center;
    }
}
