/*
   Erica Leija
   style.css — updated 4/22/26
*/

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section, nav, main, footer {
    display: block;
}

/* =============================================
   COLOR & VALUE REFERENCE
   (edit these to change the whole site)
   =============================================

   Page background:   #EDECEA
   Card background:   #f5f3f1
   White:             #ffffff
   Dark text (ink):   #1a1a1a
   Muted/gray text:   #777777
   Hint/light gray:   #aaaaaa
   Border color:      #d8d5d1
   Accent (red-brown):#8B3A2A

   Serif font:  'DM Serif Display', Georgia, serif
   Sans font:   'DM Sans', Arial, sans-serif

   Border radius small:  8px
   Border radius medium: 16px
   Border radius large:  24px
   Pill shape:           100px

   Transition: 0.2s ease
*/

/* =============================================
   BASE
   ============================================= */
body {
    background: #EDECEA;
    font-family: 'DM Sans', Arial, sans-serif;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-custom {
    background: #EDECEA;
    border-bottom: 1px solid #d8d5d1;
    padding: 14px 0;
}

.navbar-custom .navbar-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #1a1a1a;
}

.navbar-custom .nav-link {
    color: #777777 !important;
    font-size: 14px;
    padding: 6px 14px !important;
    border-radius: 100px;
    transition: 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: #1a1a1a;
    color: #ffffff !important;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

h3 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

p {
    color: #777777;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
    max-width: 65ch;
}

/* =============================================
   HERO
   ============================================= */
.hero-card {
    background: #f5f3f1;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 24px;
}

.profile-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.profile-img {
    width: 102px;
    height: 102px;
    object-fit: cover;
}

.hero-bio {
    max-width: 52ch;
    margin: 1rem auto 1.5rem;
    color: #777777;
    font-size: 0.92rem;
}

.hero-cta {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: 0.2s ease;
}

.hero-cta:hover {
    background: #333333;
    color: #ffffff;
}

/* =============================================
   SECTION LABEL
   ============================================= */
.section-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777777;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-section {
    padding: 2.5rem 0 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

.skills-card {
    background: #f5f3f1;
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 16px;
    border: 1px solid #e8e5e2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.service-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #d8d5d1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B3A2A;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.service-num {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #aaaaaa;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 500;
    margin-bottom: 2px;
}

.skills-card h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.skills-card p {
    font-size: 12.5px;
    margin-bottom: 0;
    line-height: 1.65;
    color: #777777;
}

/* =============================================
   PORTFOLIO STRIP
   ============================================= */
.collab-strip {
    text-align: center;
    padding: 2.5rem 1rem;
}

/* =============================================
   SKILL FILTER PILLS
   ============================================= */
.portfolio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.portfolio-skill {
    font-size: 12px;
    color: #777777;
    border: 1px solid #d8d5d1;
    padding: 6px 14px;
    border-radius: 100px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: 'DM Sans', Arial, sans-serif;
}

.portfolio-skill:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.portfolio-skill.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* =============================================
   CAROUSEL WRAPPER
   ============================================= */
.portfolio-card {
    background: #f5f3f1;
    border-radius: 24px;
    padding: 2rem;
}

.carousel-outer {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    align-items: stretch;
}

/* =============================================
   CAROUSEL CARDS
   ============================================= */
.carousel-card {
    flex: 0 0 auto;
    width: 100%;        /* on mobile each card fills the full track width */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d8d5d1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* on larger screens show fixed-width cards so multiple peek into view */
@media (min-width: 576px) {
    .carousel-card { width: 280px; }
}

/* FIX: was accidentally written as }} before — now correct single } */

.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

/* IMAGE + OVERLAY */
.project-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #EDECEA;
    transition: transform 0.4s ease;
}

.carousel-card:hover .project-img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-link {
    color: #ffffff;
    font-size: 13px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 7px 18px;
    border-radius: 100px;
}

/* CARD BODY */
.project-body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    color: #777777;
    border: 1px solid #d8d5d1;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.5rem;
    background: #EDECEA;
    align-self: flex-start;
}

.project-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 12.5px;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    flex: 1;
}

.project-link {
    font-size: 13px;
    font-weight: 500;
    color: #8B3A2A;
    text-decoration: none;
    transition: 0.2s ease;
    align-self: flex-start;
}

.project-link:hover {
    color: #1a1a1a;
}

/* CAROUSEL NAV */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1.2rem;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d8d5d1;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

.carousel-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaaaaa;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #1a1a1a;
    width: 16px;
    border-radius: 3px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-cta-card {
    background: #f5f3f1;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
}

.cta-btn-dark,
.cta-btn-light {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    margin: 5px;
    transition: 0.2s ease;
}

.cta-btn-dark {
    background: #1a1a1a;
    color: #ffffff;
}

.cta-btn-dark:hover {
    background: #333333;
    color: #ffffff;
}

.cta-btn-light {
    background: #ffffff;
    border: 1px solid #d8d5d1;
    color: #1a1a1a;
}

.cta-btn-light:hover {
    border-color: #1a1a1a;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    padding: 2rem 0;
    border-top: 1px solid #d8d5d1;
    margin-top: 2rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 0;
}

.footer-copy {
    font-size: 12.5px;
    color: #777777;
    margin-bottom: 0;
}

footer a {
    color: #777777;
    text-decoration: none;
}

footer a:hover {
    color: #1a1a1a;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    margin: 6px 0 8px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #777777;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: #1a1a1a;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --muted: #777777;
}

/* =============================================
   NAVBAR SCROLLED STATE
   ============================================= */
.navbar-custom.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* =============================================
   PROJECT OVERLAY TEXT
   (alias for .project-overlay-link used in HTML)
   ============================================= */
.project-overlay-text {
    color: #ffffff;
    font-size: 13px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 7px 18px;
    border-radius: 100px;
}

/* =============================================
   MODAL OVERLAY
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* =============================================
   MODAL BOX
   ============================================= */
.modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: #d8d5d1 transparent;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: #d8d5d1; border-radius: 10px; }

/* =============================================
   MODAL ACCENT BAR
   ============================================= */
.modal-accent-bar {
    height: 4px;
    background: #8B3A2A;
    border-radius: 20px 20px 0 0;
}

/* =============================================
   MODAL HEADER
   ============================================= */
.modal-header-area {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.4rem 1.6rem 0.8rem;
    gap: 1rem;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-cat {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B3A2A;
    margin-bottom: 0;
    font-weight: 500;
}

.modal-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0;
}

.modal-live-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #777777;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.modal-live-link:hover {
    color: #8B3A2A;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d8d5d1;
    background: #f5f3f1;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #777777;
    flex-shrink: 0;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* =============================================
   MODAL BODY
   ============================================= */
.modal-body {
    padding: 0.8rem 1.6rem 1.6rem;
}

/* =============================================
   MODAL GALLERY
   ============================================= */
.modal-gallery {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid #d8d5d1;
    background: #EDECEA;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

/* =============================================
   MODAL DESCRIPTION
   ============================================= */
.modal-desc p {
    font-size: 13.5px;
    color: #555555;
    line-height: 1.75;
    margin-bottom: 0.75rem;
    max-width: 100%;
}

/* =============================================
   MODAL TOOLS
   ============================================= */
.modal-tools-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-tool-tag {
    font-size: 11.5px;
    color: #1a1a1a;
    border: 1px solid #d8d5d1;
    padding: 4px 12px;
    border-radius: 100px;
    background: #f5f3f1;
    font-family: 'DM Sans', Arial, sans-serif;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.92);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}