/* ================================================
   Custom Styles — Chelsea Chueh's Portfolio
   ================================================ */


/* ------------------------------------------------
   Custom Cursor
   ------------------------------------------------ */

html, body, *, *:hover, *:focus, *:active { cursor: none !important; }

img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

a img, .work-img img, .work-full-media img {
    pointer-events: auto;
}

#cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #325BFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#cursor-dot.scrolling {
    background-color: #FF8379;
}


/* ------------------------------------------------
   Typography
   ------------------------------------------------ */

:root {
    --font-sans: "Open Sans", Arial, sans-serif;

    --text-xs:   11px;
    --text-sm:   13px;
    --text-base: 15px;
    --text-lg:   18px;
    --text-xl:   20px;
    --text-2xl:  26px;
    --text-3xl:  36px;

    --weight-normal:   400;
    --weight-semibold: 600;
    --weight-bold:     700;

    --leading-tight:   1.3;
    --leading-base:    1.6;
    --leading-relaxed: 1.75;

    --color-heading: #404041;
    --color-body:    #555;
}

/* Base */
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-sans);
    color: var(--color-heading);
    line-height: var(--leading-tight);
    margin-bottom: 16px;
}

h1 { font-size: var(--text-3xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-xl);  font-weight: var(--weight-semibold); }

h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--color-heading);
    margin-bottom: 10px;
}

h4 { font-size: 16px;              font-weight: var(--weight-bold);     line-height: var(--leading-base); }
h5 { font-size: var(--text-xs);   font-weight: var(--weight-bold);     line-height: var(--leading-base); }
h6 { font-size: var(--text-sm);   font-weight: var(--weight-normal);   line-height: var(--leading-base); }

h2, h3, h4, h5, h6 {
    text-transform: lowercase;
    letter-spacing: normal;
}

h2::first-letter,
h3::first-letter,
h4::first-letter,
h5::first-letter,
h6::first-letter {
    text-transform: uppercase;
}

p {
    line-height: var(--leading-relaxed);
    margin-bottom: 16px;
}

/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */

.home-section {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.hero-grid-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

.hero-wrapper {
    height: 550px;
    position: relative;
    z-index: 1;
}

#headlogo {
    width: 130px;
}


/* ------------------------------------------------
   About Section
   ------------------------------------------------ */

.about-tagline {
    color: var(--color-heading);
    font-weight: var(--weight-bold);
}


/* ------------------------------------------------
   Index Page: CTA Footer
   ------------------------------------------------ */

.cta-footer {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f7;
}

.cta-footer-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ------------------------------------------------
   Resume Page: Header Section
   ------------------------------------------------ */

.resume-header {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f7;
}

.resume-label {
    color: #1d1d1f;
}


/* ------------------------------------------------
   Resume Page: Footer
   ------------------------------------------------ */

.resume-footer {
    background-color: #267E51;
}

/* ================================================
   Work Pages
   ================================================ */

/* Indented lists inside work content */
.work-list {
    list-style-position: outside;
    margin-left: 2%;
}

.work-list-md {
    list-style-position: outside;
    margin-left: 3%;
    margin-top: 24px;
}

/* Blue accent text (Notification project) */
.work-accent-text {
    color: #004A98;
}

/* Highlight callout box (Checkout BB project) */
.highlight-box {
    background-color: #E5EDFD;
    border-radius: 8px;
    padding: 16px;
}

/* Image with subtle border */
.img-border {
    border: 1px solid #dddddd;
}

/* Work page footers */
.work-footer-green  { background-color: #3A8E63; color: white; }
.work-footer-purple { background-color: #7243A1; color: white; }
.work-footer-blue   { background-color: #005ffc; color: white; }
.work-footer-indigo { background-color: #4115FC; color: white; }

.text-mint { color: #CFF5FA; }
.text-pink { color: #FFBCBC; }


/* ------------------------------------------------
   Index Page: Slightly transparent nav
   ------------------------------------------------ */

.main-nav.nav-frosted {
    background: rgba(255, 255, 255, 0.82) !important;
}


/* ------------------------------------------------
   Resume Page: Responsive fix
   ------------------------------------------------ */

/* Prevent bullet points from touching the edge at xs breakpoint */
@media only screen and (max-width: 767px) {
    .section-text ul {
        padding-left: 20px;
    }
}

/* ------------------------------------------------
   Work Page: Image Placeholders
   ------------------------------------------------ */
.img-placeholder {
    background: #f5f5f5;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-align: center;
}

.img-placeholder a {
    display: block;
    width: 100%;
    min-height: 300px;
}

.work-principle-icon {
    font-size: 2.4em;
    color: #555;
    margin-bottom: 16px;
    display: block;
}

/* Other Projects: rounded corners on grid images */
#work-grid .work-img {
    border-radius: 12px;
    overflow: hidden;
}

#work-grid img.work-img {
    border-radius: 12px;
}

.work-principle-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}


/* ------------------------------------------------
   Featured Projects: Scroll Stacking Cards
   ------------------------------------------------ */

/* .page has overflow:hidden in style.css which silently kills position:sticky.
   overflow-x:clip clips visually without creating a scroll container,
   so sticky works again. overflow-y:visible lets sticky propagate upward. */
.page {
    overflow-x: clip;
    overflow-y: visible;
}


.featured-section-bg {
    padding-bottom: 0;
}

.featured-stack-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.featured-card {
    position: sticky;
    top: 85px;
    border-radius: 20px;
    margin-bottom: 32px;
    transition: opacity 0.15s ease;
}

.featured-card .container {
    padding-left: 40px;
    padding-right: 70px;
}

@media only screen and (min-width: 1200px) {
    .featured-card .container {
        padding-left: 60px;
        padding-right: 90px;
    }
}

/* z-index increases per card so each new card layers on top */

.featured-card.card-green  { z-index: 1; background-color: #fff; box-shadow: -4px 4px 24px rgba(196, 190, 221, 0.35); } /* grey-purple */
.featured-card.card-purple { z-index: 2; background-color: #fff; box-shadow: -4px 4px 24px rgba(221, 190, 196, 0.35); } /* grey-pink */
.featured-card.card-blue   { z-index: 3; background-color: #fff; box-shadow: -4px 4px 24px rgba(190, 196, 221, 0.35); } /* grey-blue */
.featured-card.card-peach  { z-index: 4; background-color: #fff; box-shadow: -4px 4px 24px rgba(221, 218, 190, 0.35); } /* grey-yellow */

@media only screen and (max-width: 767px) {
    .featured-card {
        width: calc(100% - 32px) !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .featured-card .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
