/* === FONT AND COLOR DEFINITIONS === */
:root {
    /* Main Site Theme (Light) */
    --dark-sage: #718355;
    --light-sage: #87986a;
    --off-white: #F5F5F5;
    --dark-text: #373d20;
    --light-shadow: rgba(0, 0, 0, 0.1);
    --dark-green-bg: #373d20;
    --text-light: #A9BA9D;
    --card-green-1: #718355;
    --card-green-2: #87986a;
    --card-green-3: #5b6e3a;

    /* Font Families */
    --body-font: 'Momo Trust Display', sans-serif;
    --heading-font: 'Momo Trust Display', sans-serif;
}

/* === GENERAL STYLING === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-sage);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-sage);
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

.item-quicklinks hr {
    border: none;
    height: 1px;
    background-color: rgba(232, 240, 232, 0.3);
    margin: 0.8em 0;
}

/* === PAGE TRANSITION OVERLAY (CIRCLE WIPE) === */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background-color: var(--dark-green-bg);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

body.is-loading #page-transition-overlay {
    clip-path: circle(100% at 50% 50%);
    transition: none;
}

body.is-loaded #page-transition-overlay {
    clip-path: circle(0% at 50% 50%);
}

body.is-transitioning #page-transition-overlay {
    clip-path: circle(100% at 50% 50%);
}

/* === LOADER (FOR FIRST-TIME VISIT) === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-green-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#loader h1 {
    font-family: var(--heading-font);
    color: var(--text-light);
    font-size: 3rem;
}

#enter-button {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.8em 2em;
    margin-top: 1rem;
    font-family: var(--body-font);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

#enter-button:hover {
    background-color: var(--text-light);
    color: var(--dark-green-bg);
}

#page-content.hidden {
    display: none;
}

/* === BENTO BOX INTRO === */
.welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    height: auto;
    padding-bottom: 3rem;
    padding-top: 1vh;
    box-sizing: border-box;
    background-color: var(--dark-green-bg);
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 95%;
    height: 90vh;
}

.grid-item {
    border-radius: 12px;
    padding: 2rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.grid-item h1,
.grid-item h2,
.grid-item h4,
.grid-item p {
    color: var(--text-light);
}

.grid-item h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

.grid-item h2 {
    font-size: 2.5rem;
    margin: 0;
}

.grid-item h4 {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-welcome h1,
.item-quote p,
.item-quote span,
.item-aboutme h4,
.item-aboutme p,
.item-lookingfor h4,
.item-lookingfor p {
    color: var(--dark-green-bg);
}

.item-welcome {
    grid-area: 1 / 1 / 2 / 3;
    animation-delay: 0.2s;
    background-color: var(--card-green-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-headshot {
    grid-area: 1 / 3 / 3 / 4;
    animation-delay: 0.3s;
    padding: 0;
}

.item-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.item-quicklinks {
    grid-area: 1 / 4 / 4 / 5;
    animation-delay: 0.4s;
    background-color: var(--card-green-3);
}

.item-quote {
    grid-area: 2 / 1 / 3 / 3;
    animation-delay: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--card-green-2);
}

.item-aboutme {
    grid-area: 3 / 1 / 4 / 2;
    animation-delay: 0.6s;
    background-color: var(--card-green-1);
}

.item-lookingfor {
    grid-area: 3 / 2 / 4 / 3;
    animation-delay: 0.7s;
    background-color: var(--card-green-2);
}

.item-contact {
    grid-area: 3 / 3 / 4 / 4;
    animation-delay: 0.8s;
    background-color: var(--card-green-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-quote p {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.item-quote span {
    align-self: flex-end;
    opacity: 0.6;
}

.item-quicklinks a {
    display: block;
    font-weight: 600;
    padding: 0.7rem 0;
    transition: color 0.3s;
}

.item-quicklinks i {
    margin-right: 0.75em;
}

.arrow {
    transition: transform 0.3s;
    display: inline-block;
}

.item-contact a:hover .arrow,
.item-aboutme a:hover .arrow {
    transform: translateX(5px);
}

/* === SCROLL DOWN INDICATOR === */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.scroll-down-indicator span {
    font-family: var(--body-font);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.scroll-arrow-container {
    width: 2px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 100%;
    background-color: var(--text-light);
    height: 30px;
    transition: height 0.1s linear;
}

/* === SOFTWARE & DESIGN TWO-COLUMN SECTION === */
.projects-two-col-section {
    max-width: 1200px;
    margin: 8 em auto 4em auto;
    padding: 0 2em;
}

.projects-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
}

.project-column h2 {
    text-align: left;
}

/* === PROJECT LIST (LARGE TYPE WATERFALL) === */
.project-list-container {
    border-top: 2px solid var(--light-sage);
}

.project-list-item {
    display: block;
    text-decoration: none;
    color: var(--dark-text);
    padding: 3.5em 2em;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--dark-sage);
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-list-item h3,
.project-list-item p {
    transition: color 0.4s ease;
}

.project-list-item h3 {
    font-size: 3.5rem;
    color: var(--dark-text);
    margin: 0 0 0.1em 0;
    line-height: 1.1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-list-item h3::after {
    content: '→';
    font-size: 0.8em;
    color: var(--dark-sage);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-list-item p {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
    max-width: 80%;
}

.project-list-item:hover::before {
    height: 100%;
}

.project-list-item:hover h3 {
    color: white;
}

.project-list-item:hover p {
    color: var(--off-white);
}

.project-list-item:hover h3::after {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* === AREAS OF FOCUS (HOVER-REVEAL GRID) === */
.research-grid-section {
    max-width: 1200px;
    margin: 4em auto;
    padding: 0 2em;
    text-align: center;
}

.research-grid-section .section-description {
    font-size: 1.15rem;
    color: #555;
    margin-top: -0.5em;
    margin-bottom: 3em;
}

.research-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.research-card {
    display: block;
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--light-shadow);
}

.research-card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-green-bg);
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.research-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.5em;
    background-color: var(--card-green-1);
    transition: background-color 0.4s ease;
}

.research-card-content h3 {
    font-size: 1.75rem;
    color: var(--dark-text);
    margin: 0 0 0.5em 0;
    transition: color 0.4s ease;
}

.research-card-content .research-card-tag {
    font-weight: 600;
    color: var(--dark-text);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.research-card-content .research-card-button {
    font-weight: 700;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5em 1em;
    border-radius: 5px;
    margin-top: 1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.research-card:hover .research-card-content {
    background-color: transparent;
}

.research-card:hover .research-card-bg-image {
    opacity: 0.8;
    transform: scale(1.05);
}

.research-card:hover .research-card-content h3,
.research-card:hover .research-card-content .research-card-tag {
    color: white;
    opacity: 1;
}

.research-card:hover .research-card-content .research-card-button {
    opacity: 1;
    transform: translateY(0);
}

/* === COMMUNITY SPLIT SECTION === */
.community-split-section {
    background-color: var(--off-white);
    padding: 4em 2em;
    overflow: hidden;
}

.split-layout-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3em;
}

.split-layout-left {
    flex-basis: 40%;
}

.community-nav ul {
    list-style: none;
    padding: 0;
    margin-top: 2em;
}

.community-nav-item {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    padding: 0.75em 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.community-nav-item:hover {
    opacity: 0.75;
}

.community-nav-item.active {
    opacity: 1.0;
}

.split-layout-right {
    flex-basis: 60%;
    min-height: 450px;
}

.card-shuffle-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.shuffle-card {
    position: absolute;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--dark-green-bg);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: rotate(5deg) translateY(30px) scale(0.9);
}

.shuffle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.shuffle-card.active {
    opacity: 1;
    z-index: 10;
    transform: rotate(0deg) translateY(0) scale(1);
}

.shuffle-card.next-1 {
    opacity: 0.7;
    z-index: 9;
    transform: rotate(2deg) translateY(10px) scale(0.98);
}

.shuffle-card.next-2 {
    opacity: 0.4;
    z-index: 8;
    transform: rotate(4deg) translateY(20px) scale(0.96);
}

.shuffle-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2em;
    color: white;
}

.shuffle-card-content h3 {
    font-size: 2rem;
    color: white;
    margin: 0 0 1em 0;
}

.shuffle-card-content .button {
    display: inline-block;
    background-color: var(--dark-sage);
    color: white;
    padding: 0.7em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.shuffle-card-content .button:hover {
    background-color: var(--light-sage);
}

/* === AWARDS & HONORS (HOVER-REVEAL GRID) === */
.recognition-section {
    padding: 3em 1em;
    background-color: var(--off-white);
}

.recognition-grid-three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.award-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--card-green-1);
    transition: background-color 0.4s ease;
}

.award-card:hover {
    background-color: var(--card-green-2);
}

.award-card h3 {
    color: var(--dark-text);
    text-align: center;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.award-card-content {
    padding-top: 5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.award-card:hover h3 {
    top: 2rem;
    transform: translateY(0);
}

.award-card:hover .award-card-content {
    opacity: 1;
    transform: translateY(0);
}

.award-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-card-content li {
    color: var(--dark-text);
    margin-bottom: 0.5em;
    border-bottom: 1px solid rgba(55, 61, 32, 0.2);
    padding-bottom: 0.5em;
}

.award-card-content .click-hint {
    display: block;
    text-align: center;
    margin-top: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-text);
    font-size: 0.9rem;
}

/* === STYLES FOR SUB-PAGES (PROJECTS, DESIGN, ETC.) === */
.project-header {
    text-align: center;
    border-bottom: 1px solid var(--light-sage);
    padding-bottom: 1em;
    margin-top: 1em;
}

.project-header .subtitle {
    font-size: 1.2em;
    color: var(--text-light); /* This color won't work on --off-white */
    max-width: 600px;
    margin: 0.5em auto 0 auto;
}

.project-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em;
}

.project-main-visual {
    padding: 2em;
    margin-top: 1em;
    overflow: hidden;
}

.project-main-visual img {
    width: 100%;
    display: block;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1.25fr;
    gap: 2.5em;
    align-items: start;
}

.column-text h3 {
    border-bottom: 2px solid var(--light-sage);
    padding-bottom: 0.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.column-text h3:first-child {
    margin-top: 0;
}

.tech-stack-box {
    background-color: var(--off-white);
    border-radius: 8px;
    padding: 1em 1.5em;
    margin-bottom: 1.5em;
}

.tech-stack-box h4 {
    margin: 0 0 0.5em 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
}

.tech-stack-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack-box li {
    padding: 0.5em 0;
}

.tech-stack-box i {
    margin-right: 0.75em;
    color: var(--dark-sage);
}

.button {
    display: block;
    text-align: center;
    background-color: var(--dark-sage);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.button:hover {
    background-color: var(--dark-text);
}

.button.button-outline {
    background-color: transparent;
    color: var(--dark-sage);
    border: 2px solid var(--dark-sage);
}

.back-link {
    display: block;
    text-align: center;
    margin: 2em auto;
    font-weight: bold;
    color: var(--dark-sage);
}

/* === SUB-PAGE: PHYSICAL DESIGN (TIMELINE, ETC.) === */
.design-header {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8em 2em;
}

.design-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 63, 58, 0.9), rgba(42, 63, 58, 0.5));
    z-index: 1;
}

.design-header > * {
    position: relative;
    z-index: 2;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: -4em auto 4em auto;
    position: relative;
    z-index: 3;
}

.feature-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2em;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 2.5em;
    color: var(--dark-sage);
    margin-bottom: 0.5em;
}

.feature-item h4 {
    margin: 0.5em 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid var(--light-sage);
}

.timeline-item {
    position: relative;
    margin-bottom: 3em;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-icon {
    position: absolute;
    left: -61.5px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-sage);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    border: 3px solid white;
}

.timeline-content h4 {
    margin-top: 0;
}

.timeline-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 1em;
    border: 1px solid #ddd;
}

.specs-section {
    max-width: 800px;
    margin: 4em auto;
    padding: 0 1em;
}

.specs-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em 2em;
    background-color: var(--off-white);
    border-radius: 8px;
    padding: 2em;
}

.specs-list li {
    padding: 0.75em 0;
    border-bottom: 1px solid #e0e0e0;
}

.specs-list li strong {
    color: var(--dark-sage);
}

/* === SUB-PAGE: ACCORDION LISTS (COMMUNITY) === */
.accordion-section {
    max-width: 800px;
    margin: 2em auto 0 auto;
    border-top: 2px solid var(--light-sage);
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 1em;
    cursor: pointer;
}

.accordion-title h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.accordion-title h4 i {
    margin-right: 0.75em;
    color: var(--dark-sage);
    width: 20px;
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--dark-sage);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1em;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-in, padding 0.3s ease-out;
}

.accordion-content p {
    margin-bottom: 1em;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 2em;
    margin-bottom: 1em;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding: 0 1em 1.5em 1em;
}

blockquote {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--dark-sage);
    border-left: 4px solid var(--light-sage);
    padding-left: 1em;
    margin: 1.5em 0;
}

/* === SUB-PAGE: MASTER LIST GRIDS (RESEARCH) === */
.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: 2em auto 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--light-shadow);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    padding: 1em 1.25em 0.5em 1.25em;
    margin: 0;
}

.project-card .project-description {
    font-size: 1rem;
    color: #555;
    padding: 0 1.25em 1.5em 1.25em;
    margin: 0;
    flex-grow: 1;
}

.project-card .card-button {
    display: block;
    text-align: right;
    padding: 0 1.5em 1.5em 1.5em;
    font-weight: 700;
    color: var(--dark-sage);
}

/* === FOOTER & SIDEBAR === */
#contact {
    background-color: var(--dark-text);
    color: white;
    text-align: center;
    padding: 4em 1em;
}

#contact h2,
#contact h3,
#contact h4 {
    color: white;
}

.email-link {
    display: inline-block;
    background-color: var(--dark-sage);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 30px;
    text-decoration: none;
    margin: 1em 0;
    transition: background-color 0.3s;
    font-weight: bold;
}

.email-link:hover {
    background-color: var(--light-sage);
}

.socials a {
    color: white;
    font-size: 2em;
    margin: 0 0.5em;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--light-sage);
}

#menu-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    color: var(--text-light);
    background-color: rgba(42, 63, 58, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s, outline 0.2s;
    user-select: none;
}

#menu-icon:focus {
    outline: 3px solid var(--dark-sage);
    outline-offset: 2px;
}

#menu-icon:hover {
    background-color: rgba(42, 63, 58, 0.8);
}

#sidebar {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: var(--card-green-1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 80px;
}

#sidebar.is-open {
    transform: translateX(0);
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.2em;
    color: var(--text-light);
    display: block;
    transition: background-color 0.3s, color 0.3s, outline 0.2s;
}

#sidebar a:hover {
    background-color: var(--card-green-3);
}

#sidebar a:focus {
    outline: 3px solid var(--text-light);
    outline-offset: -3px;
    background-color: var(--card-green-3);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

#sidebar .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebar .dropdown-toggle .arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

#sidebar .dropdown.open > .dropdown-toggle > .arrow {
    transform: rotate(180deg);
}

#sidebar .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
}

#sidebar .dropdown.open > .dropdown-menu {
    max-height: 500px;
}

#sidebar .dropdown-menu a {
    font-size: 1em;
    padding-left: 40px;
}
/* === RESPONSIVE STYLES === */
@media (max-width: 900px) {
    /* 1. Stack the Two-Column Project Layouts */
    .two-column-layout,
    .projects-two-col-grid,
    .split-layout-container { 
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    /* 2. Stack the Bento Grid (Intro) */
    .grid-container {
        display: flex; /* Switch to Flexbox for easier mobile stacking */
        flex-direction: column;
        height: auto; /* Remove fixed height */
        max-width: 90%; /* Add side padding */
        gap: 1rem;
    }

    /* Reset individual grid items so they stack nicely */
    .grid-item {
        width: 100%;
        min-height: 200px;
        opacity: 1; /* Ensure they are visible */
        transform: none; /* Remove complex transforms if they glitch */
        animation: none; /* Optional: remove animation on mobile for performance */
    }

    /* Fix the Headshot Image on Mobile */
    .item-headshot {
        order: -1; /* Move image to the top of the stack */
        min-height: 300px;
    }
    
    .item-headshot img {
        height: 100%;
        object-fit: cover;
    }

    /* Adjust container padding */
    .welcome-container {
        padding: 1rem 0;
        height: auto;
    }

    /* Adjust Font Sizes */
    .grid-item h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }
    
    #menu-icon {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 2em;
    }
    
    .recognition-grid-three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-item h1 {
        font-size: 2rem;
    }
    .grid-item h2 {
        font-size: 1.5rem;
    }
    .item-quote p {
        font-size: 1.2rem;
    }
}