:root {
    --bg-color: #2B252F; 
    --orange: #EE9A2E;
    --pink: #FF99C6;
    --yellow: #E5C07B; 
    --white: #ffffff;
    --text-grey: #cccccc;
    --border-line: rgba(255, 255, 255, 0.15);
    --btn-shadow: #b3b3b3;
    --card-bg: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@font-face { font-family: 'Supreme'; src: url('font/Supreme-Thin.otf') format('opentype'); font-weight: 100; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Extralight.otf') format('opentype'); font-weight: 200; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Light.otf') format('opentype'); font-weight: 300; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Regular.otf') format('opentype'); font-weight: 400; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Medium.otf') format('opentype'); font-weight: 500; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Bold.otf') format('opentype'); font-weight: 700; }
@font-face { font-family: 'Supreme'; src: url('font/Supreme-Extrabold.otf') format('opentype'); font-weight: 800; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #2F2833;
    font-family: 'Supreme', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; 
    z-index: 0; 
}

.navbar {
    width: 100%; 
    border-bottom: 1px solid var(--border-line); 
    display: flex;
    justify-content: center; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
}

.nav-content-container {
    width: 85%;
    max-width: 1400px;
    padding: 20px 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.5px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-grey); font-size: 0.9rem; font-weight: 400; transition: color 0.3s; }
.nav-links a:hover { color: var(--orange); }

.layout-wrapper {
    width: 85%;
    max-width: 1400px;
    position: relative;
    z-index: 1; 
}

.bordered-layout {
    border-left: 1px solid var(--border-line);
    border-right: 1px solid var(--border-line);
    width: 100%;
    min-height: calc(100vh - 80px); 
   
}

.btn-keycap {
    background-color: var(--white);
    color: var(--bg-color);
    font-family: 'Supreme', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--btn-shadow), 0 5px 10px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-keycap:hover, 
.btn-keycap:active { 
    transform: translateY(4px); 
    box-shadow: 0 0 0 var(--btn-shadow), inset 0 2px 5px rgba(0,0,0,0.1); 
}

.btn-keycap .bracket { color: var(--orange); margin: 0 3px; font-weight: 800; }

.hero { display: flex; flex-direction: column; padding-top: 60px; }

.hero-content-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 50px;
    padding: 0 50px; 
}
.hero-text { width: 55%; }

.code-label {
    font-family: 'Supreme', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--white); 
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.punct { color: var(--text-grey); font-weight: 400; }
.tag-name { color: var(--pink); font-weight: 500; font-family: 'Supreme', sans-serif; }
.attr-name { color: var(--orange); font-weight: 500; font-family: 'Supreme', sans-serif; }
.attr-value { color: var(--yellow); font-weight: 500; font-family: 'Supreme', sans-serif; }
.plain-text { color: var(--white); font-weight: 400; }

.sub-label {
    font-size: 0.8rem;
    font-weight: 300;
    max-width: 95%;
    margin-bottom: 40px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    border-left: 1px solid var(--border-line);
    padding-left: 30px; 
    margin: 15px 0 15px 0; 
}

.cta-group { display: flex; gap: 20px; }

.hero-image-section { width: 40%; display: flex; flex-direction: column; align-items: center; }
.placeholder-box {
    width: 100%; height: 350px;
    background-color: var(--card-bg); /* The background stays visible */
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-grey); font-size: 1.2rem; font-weight: 300;
    border: 1px solid var(--border-line); /* The border stays on the container */
    overflow: hidden; /* Ensures image doesn't spill over corners */
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps image proportions */
    border-radius: 12px;
    /* Removed the border from the image itself so it stops fading out! */
    transition: opacity 0.5s ease;
}
.code-caption { margin-top: 15px; font-family: 'Supreme', sans-serif; font-size: 0.85rem; color: var(--text-grey); }

.skills-container {
    width: 100%; 
    border-top: 1px solid var(--border-line); 
    padding: 30px 0 50px 0; 
    position: relative; 
    overflow: hidden;
}

.skills-header { 
    text-align: center; 
    font-family: 'Supreme', sans-serif; 
    font-weight: 500; 
    font-size: 0.9rem; 
    margin: 0px auto 40px auto; 
    color: var(--white);
    width: fit-content; 
}

.marquee { 
    width: 100%; 
    overflow: hidden; 
    white-space: nowrap; 
    display: flex; /* Add flex to prevent strange wrapping */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

.marquee-content { 
    display: flex; /* Changed from inline-block to flex */
    align-items: center;
    width: max-content; /* This is the secret! It forces the exact width so -50% calculates perfectly */
    animation: scroll 40s linear infinite; 
}

/* FIX: Grayscale removed directly in CSS */
.marquee-content img {
    height: 45px; 
    width: auto; 
    margin: 0 30px;
    vertical-align: middle; 
    filter: grayscale(0%); 
    opacity: 1;
    transition: filter 0.3s, opacity 0.3s;
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.content-section {
    width: 100%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-top: 1px solid var(--border-line);
}

#team-members { padding-bottom: 0; }

.section-pill {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-line);
    font-size: 0.75rem;
    font-family: 'Supreme', sans-serif;
    font-weight: 500;
}

.curly-header {
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 40px;
    text-align: center;
    margin-top: 20px;
}
.curly-header .curly { color: var(--orange); }

.about-text-wrapper {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-paragraph {
    font-size: 1.05rem; 
    line-height: 1.7;
    color: #DDDDDD; 
    font-weight: 300;
    margin-bottom: 25px;
    text-align: left; 
}

.section-subtext {
    max-width: 700px;
    text-align: center;
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 300;
}

.skills-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 15px; 
    width: 100%;
    max-width: 100%; 
}

.skill-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; 
    cursor: pointer;
}

.skill-box {
    width: 100%;
    aspect-ratio: 1/1; 
    background-color: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 14px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-unit:hover .skill-box {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--orange) !important;
}

.skill-box img {
    height: 40px; 
    width: auto;
}

.skill-label {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 500;
    text-align: center;
}

.project-view-cta { margin-bottom: 60px; }
.small-btn { padding: 8px 16px; font-size: 0.8rem; }

.category-divider {
    color: var(--white);
    font-family: 'Supreme', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin: 10px 0 30px 0;
    text-align: center;
}

.category-divider .bracket {
    color: var(--orange);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 60px;
}

.project-card {
    background-color: transparent;
    border: 1px solid var(--border-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.project-icons {
    height: 200px; 
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center; 
    flex-wrap: wrap; 
    gap: 15px 20px;
    padding: 30px;
    border-bottom: 1px solid var(--border-line);
}

.project-icons img {
    height: 45px; 
    filter: grayscale(0%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.project-card:hover .project-icons img {
    filter: grayscale(0%);
    opacity: 1;
}

.project-info {
    padding: 25px;
    font-size: 0.85rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.proj-title { display: block; }

.proj-desc {
    color: var(--text-grey);
    margin: 15px 0 20px 10px; 
    border-left: 1px solid var(--border-line); 
    padding-left: 15px;
    font-weight: 300;
    font-size: 0.85rem;
    min-height: 80px; 
}

.proj-footer {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: auto; 
    font-size: 0.8rem;
}

.view-link {
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--text-grey);
    transition: color 0.3s;
}
.view-link:hover { color: var(--orange); }

.team-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.tab-btn {
    background-color: #383040;
    color: var(--white);
    font-family: 'Supreme', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 #1e1a22, 0 5px 10px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover,
.tab-btn:active {
    transform: translateY(4px); 
    box-shadow: 0 0 0 #1e1a22, inset 0 2px 5px rgba(0,0,0,0.1); 
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--bg-color);
    box-shadow: 0 4px 0 var(--btn-shadow), 0 5px 10px rgba(0,0,0,0.2);
}

.tab-btn.active:hover,
.tab-btn.active:active {
    transform: translateY(4px); 
    box-shadow: 0 0 0 var(--btn-shadow), inset 0 2px 5px rgba(0,0,0,0.1); 
}

.tab-btn.active .tab-text { 
    color: var(--bg-color); 
    font-weight: 700;
}

.tab-btn .tab-text { 
    color: var(--white); 
    font-weight: 700;
}

.tab-btn .bracket { 
    color: var(--orange); 
    font-weight: 800; 
    margin: 0 4px; 
}

.horizontal-divider {
    width: calc(100% + 100px);
    margin: 0 -50px;
    height: 1px;
    background-color: var(--border-line);
}

.team-profile-bg {
    position: relative;
    width: calc(100% + 100px); 
    margin: 0 -50px;
    padding: 0 50px 40px 50px; 
    background-color: #2F2833; 
}

.team-section-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.team-top-half, .team-bottom-half { 
    width: 62%; 
}
.team-top-half {
    width: calc(100% + 100px);
    margin: 0 -50px;
    padding: 30px 50px 20px 50px;
    background-color: #2B252F !important;
    
}

.team-bottom-half { padding-top: 20px; padding-bottom: 10px; }

.inner-horizontal-divider {
    width: calc(100% + 100px);
    margin: 0 -50px;
    height: 1px;
    background-color: var(--border-line);
}

.code-tag-line {
    font-size: 0.9rem;
    margin: 5px 0;
    font-family: 'Supreme', sans-serif;
}

.code-content-vertical {
    border-left: 1px solid rgba(255, 255, 255, 0.2); 
    padding-left: 25px;
    margin-left: 5px; 
    padding-top: 15px;
    padding-bottom: 15px;
}

.code-content-vertical.nested {
    padding-bottom: 5px; 
    margin-bottom: 10px;
}

.name-role-wrapper {
    display: flex; 
    flex-direction: column;
    align-items: flex-end; 
    width: fit-content;
}

.member-big-name {
    font-size: 4rem; 
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
    margin: 0;
}

.member-role-label {
    font-size: 1rem;
    margin-top: 5px;
}

.contact-info-block {
    margin-top: 20px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-bottom: 15px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 450px; 
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    color: var(--text-grey);
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--orange);
    opacity: 1;
    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.view-resume-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: 20px; 
    font-size: 0.8rem;
    font-family: 'Supreme', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.view-resume-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--orange);
}

.about-me-title {
    font-size: 2.7rem;
    font-weight: 700;
    color: var(--white);
    margin: 20px 0 15px 0;
}

.about-me-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-grey);
    max-width: 100%;
}

.mini-marquee { 
    width: 100%; 
    overflow: hidden; 
    white-space: nowrap; 
    margin-top: 15px;
    margin-bottom: 5px;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}
.mini-marquee-content { 
    display: inline-flex; 
    width: max-content; /* Add this line */
    gap: 15px;
    animation: mini-scroll 35s linear infinite; 
    margin-top: 5px;
    margin-bottom: 5px;
}

.skill-unit.mini { 
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
}
.skill-unit.mini .skill-box {
    width: 55px;
    height: 55px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-unit.mini .skill-box img { 
    height: 28px; 
    width: auto;
}
.skill-unit.mini .skill-label { 
    font-size: 0.65rem; 
    color: var(--text-grey);
}

@keyframes mini-scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.team-image-absolute {
    position: absolute;
    right: 10px;
    top: 90px; 
    width: 35%;
    height: fit-content;
}
.member-photo-frame {
    width: 100%;
    aspect-ratio: 1.1/1; 
    background-color: #2B252F; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.member-photo-inner {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 3px solid #606060; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
}

.serverless-stack-section {
    margin-top: 50px;
    width: 100%;
    display: block;
    clear: both;
    position: relative;
    z-index: 2;
}

.stack-title {
    text-align: center;
    font-family: 'Supreme', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 30px;
}

.stack-title .bracket {
    color: var(--orange);
    font-weight: 600;
}

.stack-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    gap: 20px;
    width: 100%;
}

.stack-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stack-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.stack-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.stack-card.tall {
    justify-content: flex-start;
}

.stack-card.small {
    flex: 1;
    justify-content: center;
    ALIGN-ITEMS: center;
}

.stack-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
}

.stack-card-header img {
    height: 24px;
    width: auto;
}
a {
    text-decoration: none;
    color: var(--bg-color);
}
.stack-desc {
    font-size: 0.8rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-top: 50px;
    font-weight: 300;
}

/* --- Updated Resume Modal Styles with Animation & VS Code Explorer Sidebar --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1; visibility: visible; pointer-events: all;
}

.modal-container {
    width: 85%; max-width: 1000px; height: 75vh; 
    background: var(--bg-color); border: 1px solid var(--border-line); 
    border-radius: 12px; display: flex; position: relative; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: scale(0.95) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    color: var(--text-grey); background: none; border: none; 
    cursor: pointer; z-index: 10; line-height: 1; transition: color 0.3s;
}

.modal-close-btn:hover { color: var(--orange); }

/* --- VS Code Explorer Styled Sidebar --- */
.modal-sidebar {
    width: 30%; background: #231E26; border-right: 1px solid var(--border-line);
    padding: 20px 0; 
    overflow-y: auto;
}

.explorer-title {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-family: sans-serif; 
}

.explorer-title svg {
    color: var(--text-grey);
}

.sidebar-list { list-style: none; display: flex; flex-direction: column; }

.sidebar-btn {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text-grey); 
    padding: 6px 20px 6px 40px; 
    cursor: pointer; 
    font-family: 'Supreme', sans-serif; 
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s, color 0.1s;
}

.sidebar-btn:hover { background: rgba(255,255,255,0.05); color: var(--white); }

.sidebar-btn.active {
    background: rgba(255, 255, 255, 0.08); 
    color: var(--white); 
}

.file-icon {
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}

.file-icon.html { color: var(--orange); letter-spacing: -1px; font-size: 0.9rem; font-family: monospace;}
.file-icon.js { color: var(--yellow); }
.file-icon.css { color: #5B95E8; font-size: 1rem; }
.file-icon.folder svg { color: var(--text-grey); }

.modal-main {
    width: 70%; padding: 50px; overflow-y: auto; position: relative;
}

.resume-content { display: none; }

.resume-content.active {
    display: block; animation: modalFadeIn 0.4s ease;
}

.file-icon.node img {
    width: 16px; /* Matches the width of the other icons */
    height: auto;
    display: block;
}

.member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px; /* Space between name and role */
}

.member-name {
    line-height: 1;
}

.member-role {
    font-size: 0.7rem;
    color: rgba(204, 204, 204, 0.6); /* Faded grey to look like a subtitle */
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* --- Resume PDF Container Styles --- */
.pdf-container {
    width: 100%;
    height: 55vh; /* Takes up most of the vertical space in the modal */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    margin-top: 20px;
    overflow: hidden;
}

/* This ensures that when you add the iframe later, it perfectly fills the box */
.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* --- Resume Header Subtitles --- */
.resume-subtitle {
    text-align: center;
    color: var(--text-grey);
    font-family: 'Supreme', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.resume-subtitle .bracket {
    color: var(--orange);
    font-weight: 700;
    margin: 0 4px;
}

/* --- Custom Scrollbar for the Modal --- */

/* Targets the scrollable areas in the modal */
.modal-sidebar::-webkit-scrollbar,
.modal-main::-webkit-scrollbar {
    width: 6px; /* Makes the scrollbar sleek and thin */
}

/* The track (background) of the scrollbar */
.modal-sidebar::-webkit-scrollbar-track,
.modal-main::-webkit-scrollbar-track {
    background: transparent; 
}

/* The draggable thumb */
.modal-sidebar::-webkit-scrollbar-thumb,
.modal-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Subtle grey */
    border-radius: 10px; /* Rounded corners */
    transition: background 0.3s ease;
}

/* The draggable thumb when hovered */
.modal-sidebar::-webkit-scrollbar-thumb:hover,
.modal-main::-webkit-scrollbar-thumb:hover {
    background: var(--orange); /* Highlights with your theme's orange */
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modern Footer Styles --- */
.site-footer {
    width: 100%;
    padding: 80px 50px 30px 50px;
    background-color: #231E26; /* Slightly darker background to separate it from the main content */
    border-top: 1px solid var(--border-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 130px;
}

.footer-top {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.footer-cta-text {
    color: var(--text-grey);
    font-weight: 300;
    margin-bottom: 30px;
    font-size: 1.05rem;
    max-width: 500px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-line), transparent);
    margin-bottom: 60px;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 30px;
}

.footer-links-group {
    display: flex;
    gap: 100px;
}

.footer-column ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    color: var(--text-grey);
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Slide to the right slightly on hover like code indentation */
.footer-column a:hover {
    color: var(--orange);
    transform: translateX(6px); 
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-line);
}

.back-to-top {
    color: var(--text-grey);
    font-size: 0.85rem;
    font-family: 'Supreme', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    color: var(--orange);
}

.back-to-top .bracket {
    color: var(--pink);
    margin: 0 4px;
    font-weight: 800;
}

/* --- Team Members Tab Logic --- */
.team-tab-content {
    display: none;
}

.team-tab-content.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

/* --- Members Modal Popover --- */
.members-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.members-popover {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(15px, -50%) scale(0.95);
    background-color: #231E26;
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 220px;
}

/* Little triangle pointing to the button */
.members-popover::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #231E26;
    border-bottom: 1px solid var(--border-line);
    border-left: 1px solid var(--border-line);
}

.members-popover.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(25px, -50%) scale(1);
}

/* Popover Buttons */
.members-popover .sub-btn {
    background: transparent;
    color: var(--text-grey);
    border: none;
    padding: 12px 15px;
    text-align: left;
    border-radius: 8px;
    font-family: 'Supreme', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.members-popover .sub-btn:hover,
.members-popover .sub-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--orange);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .site-footer { padding: 60px 30px 30px 30px; }
    
    .footer-middle {
        flex-direction: column;
        gap: 50px;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; }
    .team-top-half, .team-bottom-half { width: 100%; }
    .team-image-absolute {
        position: relative;
        width: 100%;
        margin-top: 30px;
    }
    .stack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .skills-grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
}

@media (max-width: 768px) {
    .modal-container { flex-direction: column; }
    .modal-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-line); }
    .modal-main { width: 100%; }
}