@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Baskervville:ital,wght@0,400..700;1,400..700&family=Zilla+Slab+Highlight:wght@400;700&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
/* Global Styles */
html{
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
    background-color:#ac3d37;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    color: #1e1e1e;
    /* Sticky footer layout */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color:#ac3d37;
}


/* Site Header */
.site-header {
    position: sticky;
    margin-top: 2rem; /* add breathing room from top of browser */
    z-index: 1000;
    background: #ac3d37; /* light surface over dark page bg */
}

.container-fluid {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar {
    padding: 0.85rem 0;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    font-family: "Abril Fatface";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FDF0D5;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 24px; /* nudge links slightly left from the edge */
}

.nav-links a {
    font-family: Baskervville;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FDF0D5;
    text-decoration: none;
    padding: 0.35rem 0.25rem;
    position: relative;
    display: inline-block; /* ensure underline width animates reliably */
    transition: color 0.25s ease;

}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #FDF0D5;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #cdc3af;

}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Anchor jump offset so sticky header doesn't cover #about */
#about {
    scroll-margin-top: 84px;
}

/* ==============================
   Site Content / Hero Section
   Two columns with image on the right
   ============================== */
.site-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    min-height: 90svh; /* fill the viewport height */
    display: grid;
    place-items: center; /* center the hero both vertically and horizontally */
    padding: 0.5rem 20px 1rem; /* reduced top padding to pull hero closer to navbar */
}

.site-greetings {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* text | image (image on right) */
    align-items: center;
    gap: 2rem;
}

.greeting-message h2,
.greeting-message h1,
.greeting-message h3,
.greeting-message h4 {
    color: #FDF0D5; /* readable on maroon background */
}

.greeting-message h1 { 
    color: #FDF0D5;
    font-family: "Zilla Slab Highlight";
    font-size: 90px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1.92px;
    line-height: 1.25; /* add space between first and last name lines */
    margin: 0; /* remove default margins to control spacing precisely */
}

.greeting-message h2 { 
    font-family: "Zilla Slab";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1; /* tighten line height to remove large gap */
    letter-spacing: 1.92px;
    opacity: 0.9;
    margin: 0 0 0.25rem 0; /* small, controlled gap before h1 */

}
.greeting-message h3 { 
    font-family: "Zilla Slab";
    font-size: 1.25rem; 
    color: #dcd4c5; 
}
.greeting-message h4 { 
    font-size: 0.9rem; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    opacity: 0.85; 
    font-family: "Zilla Slab";
}

.profile-image {
    display: flex;
    justify-content: flex-end; 
}

.profile-image img {
    width: 441px;
    height: 440px;
    max-width: 100%;
    flex-shrink: 0;
    aspect-ratio: 441 / 440;
    object-fit: cover;
    border-radius: 41px;
}


/* Role line: "Aspiring Software Engineer" */
.site-greetings .role {
    grid-column: 1 / -1;           /* span across both columns */
    justify-self: center;          /* center within the grid */
    text-align: center;
    margin-top: 1rem;
    line-height: 1.25;
    color: #FDF0D5;
    
}

/* Allow styling whether inside or outside .greeting-message */
.role-prefix,
.greeting-message .role-prefix {
    font-size: 2rem;            /* smaller */
    letter-spacing: 0.08em;
    opacity: 0.9;
    font-family: "Zilla Slab";
    
}
.role-title,
.greeting-message .role-title {
    font-size: 3rem;             /* larger */
    font-weight: 700;
    color: #FDF0D5;
    font-family: "Zilla Slab";
    text-decoration: underline;
    text-underline-offset: 6px;
}
 




/* ==============================
   About Me Section - Card Style
   ============================== */
.about-me {
    max-width: 1280px;
    width: 100%;
    margin: 2.5rem auto 4rem; /* extra bottom space below the card */
    padding: 0 20px;
}

.about-me h2 {
    color: #FDF0D5;
    font-family: "Zilla Slab";
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.about-me h2 .highlight {
    font-family: "Zilla Slab Highlight";
    font-weight: 400;
}

.about-me-container {
    display: flex;
    justify-content: center;
}

.about-me-description {
    background: #FDF0D5; /* light card on maroon bg */
    color: #2b2b2b;
    width: 100%;
    max-width: 860px;
    padding: clamp(1rem, 2vw + 0.5rem, 2rem);
    padding-bottom: clamp(2.25rem, 4vw + 0.5rem, 3rem); /* extra bottom padding */
    border-radius: 16px;
    
    
}

.about-me-description p {
    margin: 0 0 1rem 0;
    line-height: 1.65;
}

.about-me-description p:last-child {
    margin-bottom: 0;
}

/* ==============================
            Main Content
   ============================== */
main {
    flex: 1 0 auto; /* push footer to bottom on short pages */
}

/* ==============================
            Footer
   ============================== */
.site-footer {
    background: #370617;
    color: #FDF0D5;
}

.site-footer .container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* space between credits, divider, and socials */
}

.site-footer .credits {
    display: flex;
    align-items: center;
}

.site-footer .credits p {
    margin: 0;
    font-family: Arial;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Vertical divider */
.site-footer .container::before {
    content: '';
    width: 1px;
    height: 1.5rem;
    background: rgba(253, 240, 213, 0.3);
    order: 1; /* place divider between credits and socials */
}

.site-footer .credits {
    order: 0;
}

.site-footer .social-links {
    order: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer .social-links a {
    display: inline-block;
    transition: opacity 0.25s ease;
}

.site-footer .social-links a:hover {
    opacity: 0.7;
}

.site-footer .social-links img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) saturate(100%) invert(98%) sepia(6%) saturate(897%) hue-rotate(315deg) brightness(103%) contrast(98%);
}

/* ==============================
   Projects Page
   ============================== */
.projects-content {
    max-width: 1280px;
    width: 100%;
    margin: 2.5rem auto 4rem;
    padding: 0 20px;
    /* Grow to fill remaining height so footer sticks to bottom */
    flex: 1 0 auto;
}

.projects-content h1,
.projects-content h2 {
    color: #FDF0D5;
    font-family: "Zilla Slab";
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
}

.projects-content h1 .highlight,
.projects-content h2 .highlight {
    font-family: "Zilla Slab Highlight";
    font-weight: 400;
}

/* Single card layout for projects page */
.projects-content .card {
    background: #FDF0D5;
    color: #2b2b2b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    margin: 0 auto 2rem auto;
    max-width: 350px;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.projects-content .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.18);
}
.projects-content .card-img-top {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8dcc4, #d8c7a9);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.projects-content .card-body {
    padding: 1rem 1.25rem 1.25rem;
}
.projects-content .card-title {
    font-family: "Baskervville", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: #370617;
}
.projects-content .card-text {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    overflow-wrap: anywhere; /* prevent overflow on long words/URLs */
}
.projects-content .card-text.card-text--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show 4 lines by default */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.projects-content .card-body {
    position: relative;
}
.projects-content .card.expanded .card-text.card-text--clamped {
    /* fully expand: remove clamping and restore normal flow */
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
}
.projects-content .btn-toggle {
    background: transparent;
    color: #902923;
    font-family: "Zilla Slab";
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.projects-content .btn {
    display: inline-block;
    background: #ac3d37;
    color: #FDF0D5;
    font-family: "Zilla Slab";
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    margin-top: 0.5rem;
}
.projects-content .btn:hover {
    background: #902923;
    color: #fff;
}

/* Center action buttons */
.projects-content .card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}
.projects-content .card-actions .btn-toggle {
    margin: 0; /* remove default spacing so it aligns well with .btn */
}

/* Optional grid for multiple cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card */
.card {
    background: #FDF0D5; 
    color: #2b2b2b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.18);
}

.card-img-top {
    display: block;
    width: 100%;
    height: 220px; /* consistent thumbnail height */
    object-fit: cover;
    background: linear-gradient(135deg, #e8dcc4, #d8c7a9); /* fallback if image missing */
}

.card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.card-title {
    font-family: Roboto;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: #370617;
}

.card-text {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.text-body-secondary {
    color: #6e5f55;
    opacity: 0.9;
}

/* Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

/* ==============================
   Project Drawer (half-screen)
   ============================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1100;
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.project-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(600px, 50vw);
    background: #FDF0D5;
    color: #2b2b2b;
    box-shadow: -12px 0 28px rgba(0,0,0,0.22), -4px 0 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}
.project-drawer.open {
    transform: translateX(0);
}
.project-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.project-drawer__title {
    font-family: "Zilla Slab";
    font-size: 1.25rem;
    margin: 0;
    color: #370617;
}
.project-drawer__close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #370617;
}
.project-drawer__body {
    padding: 1rem;
    overflow-y: auto;
}
.project-drawer__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8dcc4, #d8c7a9);
    margin-bottom: 0.75rem;
}
.project-drawer__text {
    line-height: 1.65;
}



/* ==============================
   Resume page theme (offwhite)
   Applies ONLY when body has .resume-theme
   ============================== */
body.resume-theme {
    background: #f8f8f8; /* offwhite */
}
body.resume-theme .site-header {
    background: #f8f8f8; /* offwhite navbar */   
}
body.resume-theme .navbar-brand {
    color: #820811;
}
body.resume-theme .nav-links a {
    color: #111;
}
body.resume-theme .nav-links a::after {
    background: #111;
}
body.resume-theme .nav-links a:hover {
    color: #333;
}

/* Resume layout */
.resume-content {
    max-width: 1280px;
    width: 100%;
    margin: 2.5rem auto 4rem;
    padding: 0 20px;
    flex: 1 0 auto; /* push footer to bottom on short pages */
}
.resume-container {
    max-width: 900px; /* narrow the resume body for better centering */
    margin: 0 auto;   /* center the block within the page */
}
.resume-content h1 {
    font-family: "Zilla Slab";
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: #111;
}

.resume-content h2 {
    font-family: "Zilla Slab";
    font-weight: 600;
    font-size: 2.25rem;
    margin: 0 0 1rem 0;
    color: #111;
}   

.resume-content h2 .highlight {
    font-family: "Zilla Slab Highlight";
    font-weight: 600;
    color: #820811;
}

/* Resume: label-detail rows where degree is first, school below */
.resume-list {
    display: grid;
    grid-template-columns: 240px 1fr; /* widen label to push details toward center */
    column-gap: 6rem; /* increase gap for more middle placement */
    row-gap: 1.25rem;
    align-items: start;
}
.resume-list dt {
    font-family: "Zilla Slab";
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: #111;
    grid-column: 1; /* ensure label sits in left column */
}
.resume-list dd {
    margin: 0;
    padding-left: 0.5rem; /* slight extra nudge */
    grid-column: 2; /* ensure details sit in right column */
}
.resume-list .degree {
    font-family: "Zilla Slab";
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
}
.resume-list .school {
    font-family: "Zilla Slab";
    margin-top: 0.25rem;
    color: #333;
}
.resume-list li {
    font-family: "Zilla Slab";
    margin-top: 0.25rem;
}
.resume-list .dates {
    font-family: "Zilla Slab";
    font-weight: 700;
    color: #820811;
    margin-top: 0.25rem;
}

/* Courses button styling (resume) */
.resume-list #open-courses {
    display: block;               /* center using auto margins */
    margin: 1rem auto 0;       /* small gap above, centered */
    font-family: "Zilla Slab";
    font-size: 1rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 2px solid #820811;    /* resume accent color */
    background: transparent;
    color: #820811;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.resume-list #open-courses:hover {
    background: #820811;
    color: #fff;
}
.resume-list #open-courses:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

.resume-list hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 1rem 0;
    grid-column: 1 / -1; /* span across both label and details columns */
}

/* Download Resume button styling (supports id or class) */
.resume-container #download-resume,
.resume-container .download-resume {
    display: block;               /* center using auto margins */
    margin: 1rem auto 0;          /* small gap above, centered */
    font-family: "Zilla Slab";
    font-size: 1rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 2px solid #820811;    /* resume accent color */
    background: transparent;
    color: #820811;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.resume-container #download-resume:hover,
.resume-container .download-resume:hover {
    background: #820811;
    color: #fff;
}
.resume-container #download-resume:focus-visible,
.resume-container .download-resume:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

/* Tweak Bootstrap popover look under resume theme */
body.resume-theme .popover {
    border-color: #820811;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
body.resume-theme .popover .popover-body {
    font-family: "Zilla Slab";
    color: #111;
}




