/* --- Mobile Responsive Styles (up to 600px) --- */

/* --- Header --- */
header {
    padding: 0 1rem;
    height: 4rem;
}

header nav {
    gap: 1.25rem;
}

.nav-meta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    white-space: nowrap;
}

header > a {
    font-size: 0.6rem; 
}

header nav a {
    font-size: 0.6rem;
}

/* --- Hero Section --- */
#hero {
    height: 100vh; 
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

#hero-text {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-spin {
    width: 70px;
    margin-bottom: 1.5rem;
}

#hero-sub {
    font-size: 9px;
    padding: 0 1rem;
}










/* --- Portfolio Grid --- */
.portfolio-main-header {
    font-size: clamp(1.5rem, 9vw, 2.4rem);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column; /* Stacks Vertically */
    align-items: center;
    gap: 0; 
}

.projects-grid {
    grid-template-columns: 1fr; /* Single Column Mobile View */
    gap: 16px;
    margin: 1.5rem 1rem;
}

.project-info {
    padding: 16px 20px;
    transform: translateY(0); /* Label Info */
}

.project-info .tags p {
    font-size: clamp(8.5px, 1.8vw, 10px); 
    padding: 2px 7px;
}











/* --- Individual Project Pages --- */
.project-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 1rem;
}

.project-header h2 {
    font-size: clamp(26px, 9vw, 38px);
}

.project-meta {
    padding-top: 0;
}

.project-tags p {
    font-size: clamp(8.5px, 2.5vw, 10px);
}

.project-imgs {
    grid-template-columns: 1fr; /* Single Column */
    gap: 12px;
    padding: 0 1rem;
}

.project-imgs > img {
    height: auto; 
}

.scroll-next, a.scroll-next {
    font-size: 0.5rem;
    margin: 40px auto 20px;
}











/* --- About Page --- */
.aboutmain {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 30px;
    margin: 3rem 1rem;
    gap: 1.5rem;
}

.aboutmain p {
    max-width: 100%;
}

.aboutbanner-img {
    width: 100%;
    max-width: 100%; 
    align-self: center; 
    min-height: auto;
}

.aboutsocials {
    justify-content: flex-start;
    padding-top: 2rem;
}










/* --- Footer --- */
footer {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

footer p,
footer a {
    font-size: 0.75rem;
}

footer a {
    white-space: nowrap;
    overflow-wrap: normal;
}

.footer-top {
    grid-template-columns: 1fr auto auto;
    gap: 0.8rem;
}

.footer-top > div:first-child {
    grid-column: auto;
    margin-bottom: 0;
    min-width: 0;
}

.footer-top > div:nth-child(2),
.footer-top > div:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.socials {
    justify-content: flex-end;
}