/* Base Styling */
body {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.6;
    background: #d4d3d3;
    color: #1a1919;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5px;
}

/* Remove modern effects */
* {
    box-sizing: border-box;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #222;
    border-bottom: 2px solid #bbbbbb; /* Add this line for a gray underline */
}

/* HEADER: name / title / description box*/

header.hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start; /* Align photo to top, text can be moved down */
    gap: 50px;
    border-bottom: 2px solid #a6a6a6;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.intro {
    margin-top: 10px; /* Only moves the text down, not the photo */
}

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 16px rgba(100, 100, 100, 0.3);
    /*margin-left: 225px; /* Push the photo right */
}

.social-buttons {
    margin-top: 20px;
}

.social-btn {
    display: inline-block;
    padding: 8px 25px;
    margin-right: 15px; /* Space between buttons */
    background: #f0eeee;      /* Lighter gray background */
    color: #222;              /* Darker text for contrast */
    border-radius: 25px;      /* More round */
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    border: none;             /* Remove border for a cleaner look */
}

.social-btn:hover {
    background: #bdbdbd;      /* Slightly darker gray on hover */
}


/* NAME STYLING */
.intro h1 {
    font-size: 2.3rem;
    margin: 0 0 0px 0;
    font-weight: bold;
}

/* TITLE STYLING */
.intro h2 {
    font-size: 1.5rem;
    margin: 0 0 2px 0;
    font-style: italic;
}

/* DESCRIPTION STYLING */
.intro p {
    font-size: 1rem;
    max-width: 550px;
}

/* PHONE VIEW --------------------------------------- */

@media (max-width: 800px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }
    header.hero {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .profile-photo {
        margin-left: 0;
        margin-bottom: 0px;
    }
    .intro h1 {
        font-size: 1.5rem; /* Adjust this value as needed */
    }
    .intro h2, .intro p {
        text-align: center;
    }
    /* Make project cards stack vertically on mobile */
    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* ...existing mobile styles... */
    .project-image {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        gap: 8px;
        margin-right: auto;
        display: block;
    }
    /* Optional: make learning resources full width */
    .learning {
        padding: 0px;
    }
}


/* PROJECTS */

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* Space between image and text */
    width: 100%;
    padding: 25px;
    margin-bottom: 10px;
    background: #e9e7e7;
    box-shadow: 0 10px 16px rgba(100, 100, 100, 0.3);
}


.project-image {
    width: 300px;      /* Set desired image width */
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;    /* Prevent image from shrinking */
}

.project-buttons {
    margin-top: 20px;
}

.project-btn {
    display: inline-block;
    padding: 8px 25px;
    margin-right: 15px; /* Space between buttons */
    background: #3e3d43;      /* Lighter gray background */
    color:  #ffffff;              /* Darker text for contrast */
    border-radius: 25px;      /* More round */
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    border: none;             /* Remove border for a cleaner look */
}

.project-btn:hover {
    background: #bdbdbd;      /* Slightly darker gray on hover */
}


.project-card h3 {
    margin: 0 0 10px 0;
}

.project-card p,
.project-link {
    margin: 0 0 10px 0;
}

.project-card > div {
    flex: 1;
}


/* LEARNING RESOURCES */
.learning {
    padding: 20px;
    margin-bottom: 40px;
    background: #e9e7e7;
    box-shadow: 0 10px 16px rgba(100, 100, 100, 0.3);
}

.learning h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.learning p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.learning-info {
    max-width: 1100px; /* or your preferred width */
}

/* COURSES */
.courses {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.courses-list > li::marker {
    color: #444; /* Makes only the bullet a lighter gray */
}

.sub-courses {
    list-style: none;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    padding-left: 1.5em;
}

/* dropdown */ 

.courses-dropdown summary {
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #444;
    padding: 8px 0;
    outline: none;
}

.courses-dropdown[open] summary {
    color: #222;
}

.courses-list {
    margin-top: 10px;
}

.in-progress-heading {
    color: #888;
    font-size: 1em;
    font-weight: bold;
}

.sub-courses li {
    font-size: 0.95em;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 0.1em;
    text-indent: -1em;
    padding-left: 1em;
    line-height: 1.3;
}

.sub-courses li::before {
    color: #555;
    font-weight: bold;
}

/* FOOTER */
footer {
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid #000;
    padding-top: 10px;
    margin-top: 40px;
}

footer a {
    color: #000;
    text-decoration: underline;
}