:root {

    --background: #0c1c18;
    --dark-teal: #142a25;

    --card: #203a34;
    --card-hover: #29463f;

    --orange: #ec6637;
    --orange-hover: #f17445;
    --orange-dark: #c85a32;

    --white: #e7e9de;
    --muted: #aebbb4;

    --border: rgba(231, 233, 222, 0.12);
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--background);
    color: var(--white);

    font-family: "Chakra Petch", sans-serif;

    line-height: 1.3;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   HERO
   ========================================= */

.hero {

    min-height: 620px;

    position: relative;

    overflow: hidden;

    padding: 28px 4.5% 45px;

    background:

        radial-gradient(
            ellipse at 70% 45%,
            rgba(236, 102, 55, 0.30),
            transparent 22%
        ),

        radial-gradient(
            ellipse at 15% 80%,
            rgba(49, 91, 81, 0.8),
            transparent 40%
        ),

        linear-gradient(
            125deg,
            #071310,
            #18332d 48%,
            #071310
        );
}


/* Abstract background shapes */

.hero::before,
.hero::after {

    content: "";

    position: absolute;

    pointer-events: none;

    border-radius: 45%;

    transform: rotate(-20deg);
}


.hero::before {

    width: 42vw;
    height: 90vh;

    top: -30%;
    left: 45%;

    background:
        linear-gradient(
            130deg,
            #27453e,
            #0b1c19
        );

    box-shadow:
        -25px 0 40px rgba(236, 102, 55, 0.18);
}


.hero::after {

    width: 45vw;
    height: 60vh;

    bottom: -55%;
    left: -10%;

    background:
        linear-gradient(
            140deg,
            #31534a,
            #0b1c19
        );
}


/* =========================================
   TOP BAR
   ========================================= */

.top-bar {

    position: relative;

    z-index: 10;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.label,
.date {

    font-family: "Space Mono", monospace;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.date {
    color: var(--orange);
}


/* =========================================
   HERO LAYOUT
   ========================================= */

.hero-layout {

    position: relative;

    z-index: 5;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    align-items: center;

    min-height: 520px;
}


/* =========================================
   HERO LEFT
   ========================================= */

.hero-left {
    padding-top: 10px;
}


.hero-text h1 {

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 0.9;

    font-weight: 700;

    letter-spacing: -0.05em;
}


.hero-text p {

    margin-top: 12px;

    color: var(--muted);

    font-family: "Space Mono", monospace;

    font-size: 13px;
}


/* =========================================
   HERO BUTTONS
   ========================================= */

.hero-buttons {

    display: flex;

    gap: 7px;

    margin-top: 25px;

    flex-wrap: wrap;
}


.button {

    display: inline-block;

    padding: 7px 14px;

    border-radius: 20px;

    background: var(--orange);

    color: #17231f;

    font-family: "Space Mono", monospace;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.button:hover {

    transform: translateY(-2px);

    background: var(--white);
}

/* =========================================
   FEATURED TOOLBOX
   ========================================= */

.featured-project {
    display: block;
    color: var(--white);
}

.featured-viewer {
    position: relative;
    height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: transparent;
}

.featured-glow {
    position: absolute;

    width: 75%;
    height: 70%;

    left: 12.5%;
    top: 12%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(236, 102, 55, 0.30) 0%,
            rgba(236, 102, 55, 0.16) 30%,
            rgba(38, 91, 74, 0.16) 55%,
            transparent 75%
        );

    filter: blur(35px);

    pointer-events: none;
    z-index: 0;
}

#homeViewer {
    position: relative;

    width: 88%;
    height: 120%;

    object-fit: contain;

    z-index: 2;

    cursor: grab;

    user-select: none;
    -webkit-user-drag: none;

    filter:
        drop-shadow(
            0 0 16px
            rgba(236, 102, 55, 0.18)
        )
        drop-shadow(
            0 18px 28px
            rgba(0, 0, 0, 0.40)
        );
}

#homeViewer:active {
    cursor: grabbing;
}

.viewer-hint {
    position: absolute;

    bottom: 10px;
    left: 90%;

    transform: translateX(-50%);

    font-family: "Space Mono", monospace;
    font-size: 7px;

    color: var(--muted);

    letter-spacing: 0.12em;

    z-index: 4;

    white-space: nowrap;
}


/* =========================================
   FEATURED TOOLBOX LINK
   ========================================= */

.featured-description {
    position: relative;

    display: block;

    margin-top: 5px;

    padding: 13px 42px 14px 14px;

    border-radius: 7px;

    background: var(--orange);

    color: #17231f;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.featured-description:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.featured-description .featured-meta {
    margin-bottom: 7px;

    color: #71351f;

    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.featured-description h2 {
    font-size: 19px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.featured-description p {
    max-width: 500px;

    margin-top: 7px;

    font-family: "Space Mono", monospace;
    font-size: 12px;
    line-height: 1.5;

    opacity: 0.7;
}

.featured-arrow {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 20px;
}




/* =========================================
   360 VIEWER
   ========================================= */

.featured-viewer {

    position: relative;

    height: 270px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 7px;

    background: transparent;
}



/* faint orange glow behind the toolbox */

.featured-viewer-glow {

    position: absolute;

    width: 65%;
    height: 75%;

    left: 17.5%;
    top: 10%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(236, 102, 55, 0.20),
            rgba(236, 102, 55, 0.06) 45%,
            transparent 72%
        );

    filter: blur(25px);

    pointer-events: none;
}


.viewer-placeholder {

    position: relative;

    z-index: 2;

    font-family: "Space Mono", monospace;

    font-size: 12px;

    color: var(--muted);

    opacity: 0.45;
}


.viewer-hint {

    position: absolute;

    z-index: 3;

    bottom: 10px;

    right: 12px;

    font-family: "Space Mono", monospace;

    font-size: 7px;

    color: var(--muted);

    opacity: 0.6;
}



/* =========================================
   FEATURED DESCRIPTION
   ========================================= */

.featured-description {

    padding: 13px 14px 14px;

    margin-top: 5px;

    border-radius: 7px;

    background: var(--orange);

    color: #17231f;
}


.featured-meta {

    margin-bottom: 7px;

    color: #71351f;

    font-family: "Space Mono", monospace;

    font-size: 12px;

    font-weight: 700;
}


.featured-description h2 {

    font-size: 19px;

    line-height: 1;

    letter-spacing: -0.03em;
}


.featured-description p {

    max-width: 500px;

    margin-top: 7px;

    font-family: "Space Mono", monospace;

    font-size: 12px; /* CHANGES THE DESCRIPTION OF TOOLBOX TEXT SIZE*/

    line-height: 1.5;

    opacity: 0.7;
}

/* =========================================
   PROJECT SECTION
   ========================================= */

.projects-section {

    padding: 45px 4.5% 80px;
}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 9px;
}


.section-heading h2 {

    font-size: 15px;

    font-weight: 700;
}


.section-heading span {

    color: var(--orange);

    font-family: "Space Mono", monospace;

    font-size: 12px;
}


/* =========================================
   PROJECT GRID
   ========================================= */

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


/* =========================================
   PROJECT CARD
   ========================================= */

.project-card {

    display: block;

    min-height: 300px;

    padding: 10px;

    border-radius: 11px;

    background: var(--card);

    border: 1px solid var(--border);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.project-card:hover {

    transform: translateY(-4px);

    background: var(--card-hover);
}


/* ONLY THE TOOLBOX CARD IS ORANGE */

.project-card.featured {

    background: var(--orange);

    color: #17231f;
}


.project-card.featured:hover {

    background: var(--orange-hover);
}


.project-meta {

    margin-bottom: 4px;

    color: var(--orange);

    font-family: "Space Mono", monospace;

    font-size: 12px;

    font-weight: 700;
}


.featured .project-meta {

    color: #71351f;
}


.project-card h3 {

    margin-bottom: 10px;

    font-size: 14px;

    line-height: 1.05;
}


/* =========================================
   PROJECT IMAGES
   ========================================= */

.project-image {

    height: 205px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    border-radius: 6px;

    background: #19332d;

    border: 1px solid
        rgba(255, 255, 255, 0.08);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.featured .project-image {

    background: var(--orange-dark);
}


.project-image span {

    padding: 8px 12px;

    border: 1px solid
        rgba(231, 233, 222, 0.15);

    border-radius: 4px;

    font-family: "Space Mono", monospace;

    font-size: 12px;

    opacity: 0.35;
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {

    padding: 45px 4.5% 90px;

    background: var(--dark-teal);
}


.about-content {

    max-width: 800px;
}


.about-content h2 {

    font-size: clamp(2rem, 5vw, 4rem);

    line-height: 1;

    letter-spacing: -0.04em;
}


.about-content p {

    max-width: 600px;

    margin-top: 25px;

    color: var(--muted);

    font-family: "Space Mono", monospace;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================
   FOOTER
   ========================================= */

footer {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 25px 4.5%;

    color: var(--muted);

    font-family: "Space Mono", monospace;

    font-size: 12px;
}


footer div:last-child {

    display: flex;

    gap: 18px;
}


footer a {

    color: var(--orange);
}


footer a:hover {

    color: var(--white);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .hero {

        min-height: auto;

        padding: 20px 6% 40px;
    }

    #homeViewer {
        width: 94%;
        height: 94%;
    }

    .hero-layout {

        grid-template-columns: 1fr;

        gap: 40px;

        min-height: auto;

        padding-top: 45px;
    }


    .featured-viewer {

        height: 230px;
    }


    .project-grid {

        grid-template-columns: 1fr;
    }


    .project-card {

        min-height: 270px;
    }


    .project-image {

        height: 180px;
    }


    footer {

        flex-direction: column;
    }

}