/* CSS RESET */
* {
    padding: 0;
    border: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: url(./src/cursor_pointer.svg), auto;
}

/* Background + text style */
body {
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    font-weight: 400;
    color: rgba(0,0,0,0.7);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    cursor: url(./src/cursor_default.svg), auto;
}

body.modal-open {
    overflow: hidden;
}

.padding20 {
    padding: 20px;
}

.max1280 {
    max-width: 1280px;
    margin: auto;
}

.max768 {
    max-width: 768px;
    margin: auto;
}

.heroSection {
    padding: 240px 20px;
    font-size: 16px;
    text-align: center;
    margin: auto;
    max-width: 500px;
}

.iconButton {
    height: 48px;
    width: 48px;
    margin: 4px;
    align-content: center;
    color: rgba(0,0,0);
    background-color: rgba(255,255,255,0.3);
    transition: background-color 1s ease;
    border: solid;
    border-width: 1.5px;
    border-color: rgba(255,255,255,0.3);
    border-radius: 24px;
    display: inline-block;
}

.iconButton:hover {
    background-color: rgba(255,255,255,0.5);
    transition: background-color 1s ease;
}

#glowWrapper {
    width: 500px;
    height: 500px;
    position: absolute;
    text-align: center;
    top: 100px;
    z-index: -9999;

    /* Start grayscale */
    filter: grayscale(100%);
    transition: filter 3s ease;

    /* Rotation */
    animation: spin 10s linear infinite;
}

.glow {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    mix-blend-mode: hard-light;

    /* Glow */
    filter: blur(120px);
}

.red {
    background: #ff0000;
    left: 180px;
    box-shadow:
        0 0 40px rgba(255,0,0,0.6),
        0 0 80px rgba(255,0,0,0.4),
        0 0 120px rgba(255,0,0,0.2);
    opacity: 0.3;
}

.orange {
    background: #ffa100;
    box-shadow:
        0 0 40px rgba(255,161,0,0.6),
        0 0 80px rgba(255,161,0,0.4),
        0 0 120px rgba(255,161,0,0.2);
    opacity: 0.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.H1 {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-size: 48px;
    color: rgba(0,0,0);
    line-height: 1.25;
}

.H2 {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-size: 32px;
    color: rgba(0,0,0);
    line-height: 1.25;
}

.H3 {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-size: 24px;
    color: rgba(0,0,0);
    line-height: 1.25;
}

.secondaryText {
    font-family: "IBM Plex Mono", sans-serif;
    font-weight: 400;
}

.subheader {
    font-family: "IBM Plex Mono", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0,0,0);
}

.imageContainer {
    background: linear-gradient(#FEFEFE, #F8F8F8);
    border: solid;
    border-radius: 16px;
    border-width: 1.5px;
    border-color: rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    align-content: center;
}

.imageContainer:hover {
    border-color: rgba(0,0,0,0.1);
}

.imageMask {
    border-radius: 16px;
    align-content: center;
}

.imageCard {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.divider {
    height: 1px;
    background-color: rgba(0,0,0,0.05);
    margin: 0;
}

.spacer {
    height: 32px;
}

.upArrow {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 90;
}

.button {
    height: 48px;
    align-content: center;
    text-align: center;
    background-color: #FEFEFE;
    border: solid;
    border-width: 1.5px;
    border-color: rgba(0,0,0,0.05);
    border-radius: 24px;
    display: block;
}

.button:hover {
    border-color: rgba(0,0,0,0.1);
}

/* Back button — mobile-first: always expanded, animates on hover-capable devices */
a.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px 0 12px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #FEFEFE;
    border-style: solid;
    border-width: 1.5px;
    border-color: rgba(0,0,0,0.05);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    cursor: pointer;
}

a.back-button img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

@media (hover: hover) {
    a.back-button {
        width: 48px;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
    }

    a.back-button:hover {
        width: 185px;
        border-color: rgba(0,0,0,0.1);
    }

    a.back-button .back-button-label {
        opacity: 0;
        transition: opacity 0.15s ease 0.2s;
    }

    a.back-button:hover .back-button-label {
        opacity: 1;
    }
}

#modal {
    background-color: rgba(0,0,0,0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    z-index: 99;
    overflow-y: auto
}

@media only screen and (max-width: 1024px){
    .project-strip-title {
        font-size: 38px;
    }
}
