/* General Reset */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity; /* Snaps to sections when close */
}
body { margin: 0; font-family: sans-serif; line-height: 1.6; }

/* The Container */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar: Takes up 25% of the viewport width */
header {
    flex: 0 0 15%;
    height: 100vh;
    position: fixed;
    background: #2c3e50;
    color: white;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto; /* Scrollable if nav is long */
}
/* Navigation link styling */
nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

/* The highlighting effect */
nav a.active {
    color: #3498db; /* Your highlight color */
    font-weight: bold;
    border-left: 3px solid #3498db;
    padding-left: 0.5rem;
}


/* Main Body: Takes up the remaining 75% */
.content-area {
    margin-left: 15%; /* Matches the header width */
    flex: 1;
    padding: 3rem 2%; /* Relative horizontal padding */
    max-width: 60rem; /* Prevents text from getting too wide on ultrawide monitors */
}

section {
    min-height: 100vh; /* Each section is at least the full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the content */
    padding: 4rem 10%;
    box-sizing: border-box;
    border-bottom: 1px solid #eee; /* Visual divider */
    scroll-snap-align: start; /* Aligns the top of the section to the top */
}

/* Ensure the first section (About) starts at the top */
#about {
    justify-content: flex-start;
    padding-top: 6rem;
}


/* Skills section */

.skill-grid {
    display: grid;
    /* Uses relative units for the grid columns */
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column; /* Stacks Top Row and Bar vertically */
    gap: 0.5rem;
}

.skill-top-row {
    display: flex;
    align-items: center; /* Aligns icon and text horizontally */
    gap: 0.5rem;
}

.skill-icon {
    width: 1.25rem;  /* Icon size (relative to font size) */
    height: 1.25rem;
    object-fit: contain; /* Prevents stretching of custom images */
}

.skill-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Progress Bar Styling */
.skill-bar-container {
    width: 100%;
    height: 0.4rem;
    background-color: #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background-color: #3498db; /* Your theme color */
    transition: width 1s ease-in-out;
}

.skills-attribution {
    margin-top: 2rem;
    font-size: 0.75rem; /* Smaller than standard text */
    color: #888;        /* Subtle grey */
    font-style: italic;
    text-align: right;  /* Pulls it to the corner */
}

.skills-attribution a {
    color: #888;
    text-decoration: underline;
}

.skills-attribution a:hover {
    color: #3498db; /* Highlights on hover to show it's a link */
}

.skills-overview {
    max-width: 45rem; /* Keeps line length readable */
    margin-bottom: 2.5rem;
    color: #555; /* Slightly softer than the headers */
    font-size: 1.05rem;
}

.skills-overview p {
    line-height: 1.7;
    margin: 0;
}

.skills-overview strong {
    color: #2c3e50; /* Matches your header color for emphasis */
}



/*
Education section
*/

.edu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.edu-logo {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee; /* Optional: adds a subtle frame */
    flex-shrink: 0;
}

.edu-details h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.edu-degree {
    margin: 0.2rem 0;
    font-weight: 500;
}

.edu-minor {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.edu-dates {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #888;
}

/*
Overview css
*/


/* Circular Photo */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin-bottom: 1rem;
}

/* Split Name Styling */
.name-display {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.first-name {
    font-weight: 300; /* Lighter weight */
    color: #333;
}

.last-name {
    font-weight: 800; /* Bold weight */
    color: #0077b5; /* Accent color */
}

/* Credentials */
.job-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.degrees {
    font-style: italic;
    color: #666;
}

/* Social Icons */
.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: #555;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0077b5; /* LinkedIn Blue */
}


/* --- Desktop Defaults --- */
#menu-toggle { display: none; } /* Hidden on desktop */

/* Mobile: Stack layout below 48rem (~768px) */
@media (max-width: 60rem) {
    header {
        position: fixed; /* Keep it at the top while scrolling */
        top: 0;
        width: 100%;
        height: auto;
        z-index: 1000;
        padding: 1rem;
    }

    /* Show the hamburger button */
    #menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    #menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
    }

    /* Hide the navigation menu by default on mobile */
    #main-nav {
        display: none;
        width: 100%;
    }

    /* Show the menu when the header has the 'expanded' class */
    header.expanded #main-nav {
        display: block;
    }

    /* Stack links vertically on mobile */
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
    }

    .content-area {
        margin-left: 0%; /* Matches the header width */
        flex: 1;
        padding: 3rem 2%; /* Relative horizontal padding */
        max-width: 60rem; /* Prevents text from getting too wide on ultrawide monitors */
    }

    section {
        scroll-snap-align: none; /* Aligns the top of the section to the top */
    }

    /* Don't display the avatar icon when user is in mobile mode */
    .avatar {
        display: none;
    }
}



/* Navigation & List Styling */
nav ul { list-style: none; padding: 0; }
nav a { color: #ecf0f1; text-decoration: none; }
section { margin-bottom: 4rem; } /* Relative spacing between sections */
