:root {
    --primary-color: #dbd5ed;
    --secondary-color: #b292ed;
    --bg-color: #0f0f38;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition-duration: 200ms;
}

body {
    background: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 14px;
}

.darkerText {
    color: var(--secondary-color);
}

header, main, footer {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

p {
    font-size: 1.5em;
}

nav {
    color: var(--secondary-color);
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
    opacity: 0.7;
}

main, section, .nameContainer {
    display: flex;
    flex-direction: column;
}

.nameContainer {
    gap: 8px;
}

.statsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

/* Specifically for the profile image container */
.statsContainer .imgContainer {
    width: 200px;
    min-width: 200px; /* Prevent shrinking */
    height: 200px;
    overflow: hidden;
    border-radius: 50%; /* Make it circular */
    margin: 0 auto;
    border: 3px solid var(--secondary-color); /* Add border */
}

.statsContainer .imgContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Match container */
}

/* Container for qualifications */
.qualifications {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

main {
    gap: 32px;
    padding-bottom: 64px;
}

section {
    gap: 48px;
}

/* For project images - now separate from project info */
.projectImage {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px auto; /* Add margin below the image */
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

.projectImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: flex;
    align-items: center;
}

.aboutMe {
    line-height: 1.5em;
    margin-bottom: 10px;
}

.button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 32px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

.button:hover {
    opacity: 0.7;
}

.outreach {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 20px;
    color: var(--secondary-color);
    text-align: right;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.outreach i {
    transform: rotate(-45deg);
}

.outreach:hover {
    opacity: 0.7;
}

.projectContainer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.projectInfo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-bottom: 20px;
}

.headerText {
    margin-bottom: 24px;
}

/* Style for project titles */
.projectTitle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Title class as requested */
.title {
    color: var(--primary-color);
    font-size: 2em;
    border-style: dashed;
    align-items: center;
    text-align: center;
}

/* Media query for larger screens */
@media (min-width: 640px) {
    .statsContainer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .statsContainer .imgContainer {
        width: 200px;
        min-width: 200px;
        height: 200px;
        margin: 0;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    
    .qualifications {
        flex: 1;
        padding-left: 40px;
    }
    
    .aboutMe {
        width: 100%;
    }
    
    /* Project image is now even larger on desktop */
    .projectImage {
        max-width: 90%;
        margin: 0 auto 40px auto;
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
    p {
        font-size: 1.2em;
    }
    
    .statsContainer .imgContainer {
        width: 150px;
        height: 150px;
    }
    
    .button {
        padding: 10px 24px;
        font-size: 14px;
    }
}