/**Personal Portfolio Styles Sheet - will copy to IndexStyles.css**/

Body {
    background-color: aliceblue;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.welcome h1, .welcome h3, h2.st-header, .projects-header, a.nav-link{
    font-family: 'Montserrat', sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7vh;
    background-color: #333;
    color: aliceblue;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    z-index: 1000; /* Ensures navbar stays above other content */
}

.left-head img {
    display: block;
    width: 10vw;
    max-height: 95px;
    box-sizing: border-box;
    padding: 5px;
    object-fit: contain;
}

.navbar {
    height: 100%;
    color: aliceblue;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin-right: 5rem;
    padding: 0;
    align-items: center;
}

.navbar ul li {
    margin: 0 15px;
}

a.nav-link {
    color: aliceblue;
    font-size: 1.75rem;
    text-decoration: none;
}

main {
    margin: 0vh 5rem 5rem 5rem;
}

.welcome {
    font-size: 1.25rem;
    height: 80vh;
}

.target {
    margin-top: 0rem;
    padding-top: 8rem;
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Align items at top for consistent appearance */
    gap: 1rem;
    padding: 1rem;
}

.gallery-item {
    text-align: center; /* Centers title under image */
    flex: 0 0 auto; /* Prevent stretching, use content size */
    scroll-margin-top: 7rem;
}

.project-link {
    text-decoration: none; /* Keep link styling */
    display: inline-block; /* Constrain to content width */
}

.project-image {
    height: 20vh;
    max-width: 100%; /* Prevents image overflow */
    display: block; /* Ensures link wraps entire item */
}

.project-title {
    background-color: #333;
    color: aliceblue;
    font-size: 1.5rem;
    text-align: center;
    margin: 0.25rem 0 0.5rem 0;
    text-wrap: pretty; /* Ensures clean wrapping */
    width: inherit; /* Matches container width */
    box-sizing: border-box; /* Include padding in width */
}

/* Optional: If b-banner adds spacing, ensure it doesn't break layout  */
.b-banner {
    display: inline;  /*Prevent banner from affecting width */
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.social-links a {
    color: #333;
    font-size: 32px;
    transition: color 0.3s;
}

.social-links img {
    width: 32px;
    height: 32px;
}

.social-links a:hover {
    color: #0077B5; /* LinkedIn blue, adjust per platform */
}

/**@media only screen and (max-width: 767px) {
/* Medium screens: Laptops and tablets (768px–1199px) */
@media screen and (max-width: 1199px) {
    header {
        height: 8vh; /* Slightly taller header for better spacing */
        padding: 8px;
    }

    .left-head img {
        width: 12vw; /* Slightly larger avatar */
        max-height: 80px;
    }

    .navbar ul {
        margin-right: 2rem; /* Reduce margin for compact layout */
    }

    a.nav-link {
        font-size: 1.5rem; /* Smaller nav links */
    }

    main {
        margin: 0 3rem 3rem 3rem; /* Reduced margins */
    }

    .welcome {
        font-size: 1.1rem; /* Slightly smaller text */
        height: auto; /* Allow content to flow naturally */
    }

    .gallery {
        gap: 0.8rem; /* Tighter spacing */
    }

    .project-image {
        height: 18vh; /* Slightly smaller images */
    }

    .project-title {
        font-size: 1.3rem; /* Smaller project titles */
    }

    .social-links img {
        width: 28px; /* Smaller social icons */
        height: 28px;
    }
}

/* Small screens: Phones (≤767px) */
@media screen and (max-width: 767px) {
    header {
        flex-direction: column; /* Stack header elements vertically */
        height: auto; /* Allow header to expand */
        padding: 10px;
        position: fixed; /* Keep fixed for scrolling */
    }

    .left-head img {
        width: 20vw; /* Larger avatar for visibility */
        max-height: 60px;
        margin: 0 auto;
    }

    .navbar ul {
        flex-direction: column; /* Vertical navbar */
        margin: 0;
        padding: 10px 0;
        align-items: center;
    }

    .navbar ul li {
        margin: 8px 0; /* Vertical spacing for nav items */
    }

    a.nav-link {
        font-size: 1.2rem; /* Smaller nav links */
    }

    main {
        margin: 12rem 1rem 2rem 1rem; /* Adjust for fixed header, smaller side margins */
    }

    .welcome {
        font-size: 1rem; /* Smaller text for readability */
        height: auto; /* Allow content to flow */
        text-align: justify; /* Better text flow on narrow screens */
    }

    .welcome h1 {
        font-size: 1.8rem; /* Smaller heading */
    }

    .welcome h3 {
        font-size: 1.2rem; /* Smaller subheading */
    }

    .target {
        padding-top: 12rem; /* Extra padding to account for fixed header */
    }

    .gallery {
        flex-direction: column; /* Stack gallery items vertically */
        gap: 1rem;
        padding: 0.5rem;
    }

    .project-image {
        height: 15vh; /* Smaller images for mobile */
        max-width: 90%; /* Prevent overflow */
        margin: 0 auto;
    }

    .project-title {
        font-size: 1.1rem; /* Smaller titles */
        padding: 0.5rem;
    }

    .social-links {
        gap: 10px; /* Tighter spacing for icons */
        padding: 15px;
    }

    .social-links img {
        width: 24px; /* Smaller social icons */
        height: 24px;
    }
}

/* Extra small screens: Very small phones (≤576px) */
@media screen and (max-width: 576px) {
    .left-head img {
        width: 25vw; /* Even larger avatar for tiny screens */
        max-height: 50px;
    }

    a.nav-link {
        font-size: 1rem; /* Even smaller nav links */
    }

    main {
        margin: 14rem 0.5rem 1rem 0.5rem; /* Tighter margins */
    }

    .welcome {
        font-size: 0.9rem; /* Tiny text for small screens */
    }

    .welcome h1 {
        font-size: 1.5rem;
    }

    .welcome h3 {
        font-size: 1rem;
    }

    .project-image {
        height: 12vh; /* Very small images */
    }

    .project-title {
        font-size: 1rem;
    }
}

