body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden
}

.background
{
    /* background-image: url('../website_media/other/motion_graphics.gif'); */
    background-size: cover;
}

#preloader /* makes it so that there is the webist preloads before showing anything */
{
    background: #000000 url(../website_media/other/loading-animation.gif) no-repeat center center;
    background-size: 30%;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000;
}

.experience {
    position: fixed;
    top: 0%;
    height: 100%;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}
.experience-canvas {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: -1;
    overflow: hidden;
}

/* keep the canvas filling its fixed container regardless of renderer inline styles */
#experience-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.project_des
{
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;

    width: 100%;

    margin-top: 1vh;

    /* pervents flicker */
    justify-content: flex-start;
    gap: 9vw;
    padding-right: 4.1vw;
    padding-left: 4.1vw;

    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}
.project_des::-webkit-scrollbar /* removes scroll bar */
{ 
    display: none;
}
.project_des div /* gives projects slides margins, snapping, formating, and styling */
{
    position: relative;
    z-index: 101;
    scroll-snap-align: center; /* gives scrolling snapping feature */

    backdrop-filter: blur(6px);
    border: 1px solid #1d1c1c;

    font-family: 'Space Mono';

    /* dimensions */
    border-radius: 12px;
    height: auto;
    width: 24.5vmax;

    /* margins */
    margin-top: 8vh;
}
.project_des div:hover
{
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.437);
}
.project_des div img /* image margins inside project box */
{
    width: 21.5vw;
    height: 30vh;
    margin: 1.5vmax;
    margin-bottom: 1vmin;
    border-radius: 1vmin;
    object-fit: cover;
    display: block;

    color: white;
    font-size: 1.3vmin;
}
.project_des div video /* image margins inside project box */
{
    width: 21.5vw;
    height: 30vh;
    margin: 1.5vmax;
    margin-bottom: 1vmin;
    border-radius: 1vmin;
    object-fit: cover;
    display: block;

    color: white;
    font-size: 1.3vmin;
}

.project_des div h3 /* heading details inside project box */
{
    margin-right: 1.5vmax;
    margin-left: 1.5vmax;
    margin-bottom: 0.5vmin;
    margin-top: 0.5vmin;
    padding-top: 0.5vmin;
    padding-bottom: 0.5vmin;
    width: 21.5vw;
    text-align: center;

    overflow-x: auto;
    scrollbar-color: gray rgba(0, 0, 0, 0.437);
    scrollbar-width: thin;

    font-size: 1.8vmin;
    color: #ffffff;
    background-color: rgba(108, 108, 108, 0.204);
    border-radius: 15px;
}
.project_des div p /* text details inside project box */
{
    height: 12.7vh;
    width: 19.5vw;
    margin: 1.5vmax;
    margin-top: 1vmin;
    padding: 1vw;

    font-size: 1.2vmin;
    color: #ffffff;
    background-color: rgba(108, 108, 108, 0.204);
    border-radius: 15px;

    overflow-y: auto;
    scrollbar-color: gray rgba(0, 0, 0, 0.437);
    scrollbar-width: thin;
}
.project_des div p .stack /* tech-stack tag row that breaks up the description */
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vmin;
    margin-top: 0.8vmin;
    margin-bottom: 0.4vmin;
}
.project_des div p .stack span /* individual tech pill */
{
    background-color: rgba(108, 108, 108, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0.2vmin 0.8vmin;
    font-size: 1.05vmin;
    white-space: nowrap;
}

#buttonLeft /* slide button back */
{ 
    left: -23%;
}
#buttonRight /* slide button forward */
{
    left: 23%;
}
.buttons /* general button details */
{
    /* Margins and postionting */
    right: 0;
    bottom: 35%;
    position: absolute;
    z-index: 105;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100vw;
    pointer-events: none;

    background-color: transparent;

    button { /* button attributes */
        pointer-events: auto;
        font-size: 55px; /* button size */
        width: fit-content;
        color: white;
        background-color: transparent;
        border-color: transparent;
    }
}
.buttons button:hover /* action that occurs upon hover on either of the buttons */
{
    color: rgb(108, 108, 108);
    cursor: pointer;
}

header /* header margins and postiting */
{
    text-align: center;
    position: relative;
    z-index: 100;

    width: 100%;
    margin-top: 1vh;
    margin-bottom: 1vh;
    height: 5vh;
}
header span span /* deals with acctual text in header */
{
    display: inline;
    list-style-type: none;
    margin: 20px;
    padding-left: 20px;

    a { /* formats header text with a link */
        text-decoration: none;
        color: white; /* header text color */
    }
}
header div /* deals with header shape and such */
{
    /* header color and styling */
    backdrop-filter: blur(10px);
    /* box-shadow: 4px 4px 4px #1d1c1c; */

    /* header margins and postining */
    border-radius: 30px;
    border: 1px solid #9b9595;
    width: 600px;
    margin: auto;
    margin-top: 20px;

    span { /* overarching bullet point margin */
        margin: auto;
    }
}
#logo-hd
{
    box-sizing: border-box;
    position: relative;
    height: 18px;
    width: 18px;
    translate: 0px 3.2px;
}

h1 /* title postining and margins */
{
    /* margins and postining of header */
    height: 13vh;
    margin-top: 5vh;
    margin-bottom: 0vh;
    padding: 0;
    text-align: center;
    padding-left: 1vw;
    position: relative;
    z-index: 99;

    /* Heading color */
    color: transparent;
    text-shadow: 1.1px 1.1px 2px rgb(0, 0, 0), .3px .3px 0 #ffffff;
}
h2
{
  font-family: 'Space Mono';
  font-size: 1.7vh;
}

#background-circle
{
    position: absolute;
    overflow-x: hidden;
    height: 200vh;
    width: 200vw;
    left: -50vw;
    right: 0;
    top: -170vh;
    margin-inline: auto;
    
    div{
        overflow-x: hidden;
        backdrop-filter: blur(8px);
        border: 1px solid #1d1c1c;
        width: 100%;
        height: 99%;
        border-bottom-left-radius: 150vw;
        border-bottom-right-radius: 150vw;
    }
}

#about-section
{
    width: 100vw;
    height: 70vh;
    overflow: hidden;
}
#about-section div
{
    backdrop-filter: blur(6px);
    border: 1px solid #1d1c1c;
    border-radius: 50px;
    width: 70vw;
    height: 50vh;
    margin: auto;
    margin-top: 11vh;
    padding: 3vh;

    img {
        float: left;
        object-fit: cover;
        border-radius: 25px;
        height: 50vh;
        width: 22vw;
        margin-right: 0.5vw;
    }
    span {
        float: right;
        font-family: 'Space Mono';
        font-size: 1.2vmin;
        color: white;

        background-color: rgba(108, 108, 108, 0.204);
        border-radius: 25px;

        box-sizing: border-box;
        padding: 10px;
        text-align: left;
        width: 32.5vw;
        height: 40vh;
        margin-bottom: 2vh;
        margin-left: 1vw;

        overflow-y: auto;
        scrollbar-color: gray rgba(0, 0, 0, 0.437);
        scrollbar-width: thin;
    }
    footer {
        float: right;
        background-color: rgba(108, 108, 108, 0.204);
        border-radius: 25px;
        box-sizing: border-box;
        height: 8vh;
        width: 45.5vw;
        padding-left: 1.2vw;
        padding-right: 1.2vw;

        /* single row, vertically centred, spread to fill the width */
        display: flex;
        align-items: center;
        justify-content: space-between;

        overflow: hidden;
        scrollbar-color: gray rgba(0, 0, 0, 0.437);
        scrollbar-width: thin;
    }
}
#about-section div footer img {
    object-fit: contain;
    height: 4.5vh;
    width: 2.1vw;
    margin: 0 0.25vw;
    border-radius: 0;
    vertical-align: middle;
}
#about-section div:hover
{
    background-color: rgba(0, 0, 0, 0.874);
}
.timeline /* vertical journey timeline in the about section */
{
    list-style: none;
    padding: 0;
    margin: 1.5vh 0 0 0.4vw;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.timeline li /* one milestone on the line */
{
    position: relative;
    padding: 0 0 1.4vh 1.2vw;
    line-height: 1.35;
}
.timeline li::before /* the glowing dot marking each milestone */
{
    content: "";
    position: absolute;
    left: -0.55vmin;
    top: 0.4vh;
    width: 0.9vmin;
    height: 0.9vmin;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}
.timeline li:last-child { padding-bottom: 0; }
.contact_button:link, .contact_button:visited {
  background-color: rgba(0, 0, 0, 0.641);
  border-radius: 1vw;
  color: white;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  margin: 1.5vh;
  display: block;
}
.contact_button:hover, .contact_button:active {
  background-color: rgba(0, 0, 0, 0.809);
}


.baumans-regular {
    font-family: "Baumans", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 8vh;
    letter-spacing: 15px;
}
.wire-one-regular { /* currently not in use however I may use for a heading or my name on the homepage */
    font-family: "Wire One", sans-serif;
    font-weight: 800;
    font-style: normal;

    font-size: 8vh;
    letter-spacing: 15px;
}  
.koulen-regular { /* Google imported font */
    font-family: "Koulen", sans-serif;
    font-weight: 400;
    font-style: normal;

    font-size: 14px;
    letter-spacing: 10px;
}
.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}


.displaySlide /* is the temporary class that affects the project boxes */
{
    scale: .9;
}


/* ===== Mobile overrides (phones / small screens) — desktop styles untouched ===== */
@media (max-width: 768px)
{
    /* Header: fit narrow screens instead of the fixed 600px bar */
    header { height: auto; }
    header div { width: 94%; }
    header span span { margin: 6px; padding-left: 6px; }
    .koulen-regular { font-size: 11px; letter-spacing: 2px; }

    /* Page title: smaller so the wide letter-spacing stops overflowing */
    h1 { font-size: 5vh !important; letter-spacing: 10px !important; }

    /* Carousel: one card fills the screen, sized off width (not vmax) */
    .project_des { gap: 13vw; padding-left: 13vw; padding-right: 13vw; }
    .project_des div { width: 74vw; }
    .project_des div img,
    .project_des div video { width: 64vw; height: 26vh; }
    .project_des div h3 { width: 64vw; font-size: 4.2vw; }
    .project_des div p { width: 60vw; height: auto; font-size: 3.2vw; }
    .project_des div p .stack span { font-size: 3vw; }

    /* Nav buttons: send them into the side margins so they clear the card */
    .buttons { justify-content: space-between; bottom: 42%; padding: 0 1.5vw; }
    .buttons button { font-size: 40px; }

    /* About page: stack the image, text, and logos into one column */
    #about-section { height: auto; }
    #about-section div { width: 92vw; height: auto; overflow: visible; }
    #about-section div img { float: none; width: 100%; height: auto; margin: 2vh 0; }
    #about-section div span { float: none !important; width: 100% !important; font-size: 3.2vw; margin-bottom: 2vh; }
    #about-section div footer { float: none; flex-wrap: wrap; justify-content: center; width: 100%; height: auto; padding: 1.5vh; }
    #about-section div footer img { width: 9vw; height: 5vh; margin: 1vh; }
}


/* ===== Landscape phones: lock to one screen so the fixed background never scrolls away ===== */
@media (orientation: landscape) and (max-height: 500px)
{
    html, body { overflow: hidden; height: 100%; }
}


/* ===== Portrait phones: this layout needs landscape, so prompt a rotate instead ===== */
#rotate-notice { display: none; }
@media (orientation: portrait) and (max-width: 900px)
{
    /* lock the page so nothing scrolls behind the prompt */
    html, body { overflow: hidden; height: 100%; }

    /* cover the page and ask the user to turn the device sideways */
    #rotate-notice {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 2000;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #000000;
        color: #ffffff;
        font-family: 'Space Mono';
        padding: 10vw;
    }
    #rotate-notice p { font-size: 4vw; line-height: 1.6; }
}
