:root {
    --background-color: #000;
}

html,
body {
    background-color: #000;

    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;

    font-family: "Roboto", sans-serif;
}

.glass-1 {
    backdrop-filter: blur(75px);
}

#loading-div {
    display: none;
    position: fixed;
    left: 0;
    top: 0;

    z-index: 1000;

    width: 100vw;
    height: 100vh;

    background-color: rgba(255, 255, 255, .2);
    backdrop-filter: blur(50px);
}

#loading-div #error-div {

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 250px;
    height: 100px;

    position: absolute;
    background-color: aqua;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 50px;
    height: 50px;
    border: 6px solid rgba(255,255,255,.2);
    /* Light grey background */
    border-top: 6px solid #3ae;
    /* Blue "progress" */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    /* Center horizontally if parent allows */
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


#section-identifier {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;

    backdrop-filter: blur(25px);
    width: 100%;
    height: 50px;

    z-index: 3;
}

#section-identifier-ul {
    display: flex;
    list-style: none;
    padding: 0;
    width: 100%;
    justify-content: space-evenly;
}

#section-identifier-ul li,
a {
    color: #ffffff48;
    font-weight: 200;
    transition: .125s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.active {
    color: #fff;
    transform: scale(1.1);
    font-weight: 500;
}

#blurb-background-canvas {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    filter: blur(75px);
}

#body-container {
    display: flex;
    flex-direction: column;
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;

    z-index: 2;
}

.section-divider {
    width: 100%;
    height: 50px;
    z-index: 5;

    backdrop-filter: blur(100px);
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    scroll-snap-align: center;

    width: 100%;
    height: 100vh;
}

#hero-section {
    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: xx-large;
    font-family: "Roboto", sans-serif;
}

#hero-section h1 {
    padding: 50px 30px;

    width: fit-content;
    height: fit-content;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(50px);
}


/* About Section */

/* Center the whole block in the section */
#about-section {
    display: grid;
    place-items: center;
    overflow: hidden;
    /* centers vertically + horizontally */
}

/* The content container */
#about-blurb-container {
    /* cap width, then shrink to fit small screens */
    width: min(90vw, 1100px);
    /* or: clamp(320px, 90vw, 1100px) */
    margin-inline: auto;

    display: grid;
    grid-template-columns: 1fr;
    /* stack on small screens */
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    justify-items: center;
    /* centers children on mobile */
    text-align: center;
    /* center text on mobile */
}

/* Side-by-side on larger screens */
@media (min-width: 768px) {
    #about-blurb-container {
        grid-template-columns: minmax(220px, 340px) 1fr;
        /* image | text */
        justify-items: start;
        /* align items inside to the left */
        text-align: left;
        /* natural reading alignment */
    }
}



#about-blurb-container img {
    width: 100%;
    max-width: 340px;
    /* caps image column on very wide screens */
    height: auto;
    aspect-ratio: 1 / 1;
    /* square portrait; remove if not desired */
    object-fit: cover;
    border-radius: 10px;
    display: block;
    /* remove inline gap */
}

#about-me-text-div {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vw, 14px);

    padding: clamp(12px, 2vw, 20px);
    border-radius: 10px;
    backdrop-filter: blur(50px);
    background: rgba(255, 255, 255, 0.05);
    /* you already use this globally */
    max-width: 70ch;
    /* keeps paragraphs readable */
    color: white;
    /* or your theme color */

    height: clamp(200px, 30vh, 400px);
    max-height: 100%;
    overflow-y: scroll;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#about-me-text-div {}

#about-me-text-div h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    line-height: 1.2;
    margin: 0;
}

#about-me-text-div p {
    font-size: clamp(1rem, 0.9vw + 0.75rem, 1.125rem);
    line-height: 1.6;
    margin: 0;
}

/* If you want text FIRST on mobile, image FIRST on desktop */
@media (max-width: 767.98px) {
    #about-me-text-div {
        order: +1;
    }

    /* move text above image on small screens */
}

/* Skills & Projects */

/* Whole section (centers content inside vertically + horizontally) */
/* Section shell (you already use this pattern) */
#skills-projects-section {
    display: grid;
    place-items: center;
    height: 100vh;
    scroll-snap-align: center;
}

#skills-projects-blurb-container {
    width: min(90vw, 1100px);
    margin-inline: auto;
    display: grid;
    gap: clamp(20px, 3vw, 36px);
}

/* Section titles */
.block-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.6rem);
    color: white;
}

/* Skills as chips */
.skills-grid {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(10px, 1.8vw, 16px);

    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
}

.skills-grid li {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin: 2px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;

    font-size: clamp(0.9rem, 0.8vw + 0.7rem, 1rem);
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    transition: .125s ease-in-out;
}

.skills-grid li:hover {
    background: rgba(95, 159, 255, 0.5);
}

/* Projects cards */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    padding: clamp(14px, 2vw, 20px);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.project-card h4 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
}

.project-card p {
    margin: 0 0 0.75rem;
    font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.05rem);
    line-height: 1.5;
}

.project-link {
    color: #93c5fd;
    /* adjust to your palette */
    text-decoration: underline;
}


/* Contact Section */

#contact-section {
    display: grid;
    place-items: center;
    height: 100vh;
    scroll-snap-align: center;
}

#contact-blurb-container {
    width: min(90vw, 700px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    padding: clamp(20px, 4vw, 40px);
    border-radius: 12px;
    backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    text-align: center;
    align-items: center;

}

/* Contact info links */
.contact-info a {
    color: #93c5fd;
    /* accent color */
    text-decoration: underline;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;

    width: 90%;
    margin: auto;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;

    justify-content: center;
    align-items: center;

    width: 100%;
    margin: auto;
}

.form-field label {
    align-self: baseline;
}

input,
textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;

    outline: none;
    width: 100%;
    min-width: 90%;
}

button {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    background: #60a5fa;
    /* accent blue */
    color: black;
    font-size: 1rem;
    cursor: pointer;
    width: 75%;
    align-self: center;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
}

button:hover {
    background: #3b82f6;
    /* darker blue */
}

#buffer-section div,
h1 {
    margin: 0 25px;
}

#buffer-section div {
    text-align: center;
    max-width: 90%;
    padding: 10px 25px;
    border-radius: 25px;
    color: white;
}