.background
{
    position: fixed; 
    top: 0;                  
    left: 0;                  
    width: 100vw;             
    height: 100vh;            
    background: hsl(0, 0%, 28%);
    z-index: -1; /* Put background behind all content */
}

/* --------CONTENT-------- */
.content
{
    /* margin: 0px 18% 0px 18%; */
    position: relative;
    background-color: black;
    padding-bottom: 1vh;
    margin-top: 6.6vh; /* Add space for fixed header */
}

/* --------COMMON-------- */
.column
{
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content:space-evenly;
}

/* --------DIV REEL-------- */
.div-reel
{
    /* background-color: red;  */

    display: flex; /* CONSTANT */
    position: fixed; /* CONSTANT */
    bottom: 0vh; /* CONSTANT */
    right: 0; /* CONSTANT */
    aspect-ratio: 1 / 1;/* CONSTANT */
    z-index: 100; /* CONSTANT */
}

.div-reel a 
{
    /* background-color: blue; */

    display: flex;
    flex-direction: column;
    margin-left: auto; 
    height: 100%;
    width: 100%;
    justify-content: flex-end;
}

.reel 
{
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
    margin-left: auto; 
    z-index: 103;
}

.div-reel h2
{
    margin: 0;
    font-family: Secular One, Roboto, Helvetica, sans-serif;
    white-space: nowrap; 
    font-size: 3vw;
    border: 2px solid goldenrod;
    padding: 0.2vh 1.5vh 0.2vh 1.5vh;
    
    text-transform:uppercase;
    color: #fff;

    background-color: rgba(0,0,0,0.6);
    border: 2px solid goldenrod;
    border-radius: 45px;
}

.gamedev-reel:hover
{
    background-color: goldenrod;
    border: 4px solid white;
    color: #000;
    width: 500px;
}

/* --------DIV UNITY-------- */
.div-unity
{
    display: flex;
}

.unity-image
{
    margin: 4vh 1vh 0vh 1vh; /* Increased top margin to avoid header overlap */
    height: 20vh;
}

.div-unity p
{
    margin: 3.5vh 1vh 0vh 1vh;
    text-align: justify;
}

.highlight
{
    font-family: Secular One, Roboto, Helvetica, sans-serif;
    font-weight: bold;
    font-size: clamp(0.5rem, min(2.5vw, 2.5vi), 1.875rem);
    color: gold;
}

/* --------DIV EXPERIENCE 1-------- */
.div-experience1
{
    display: flex;
    justify-content: flex-end;
}

.bg1-image
{
    margin: -3vh 1vh 0vh 1vh;
    height: 25vh;
}

.div-experience1 p
{
    position: absolute;
    margin: 2vh 20vh 0vh 1vh;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.5);
}

/* --------DIV EXPERIENCE 2-------- */
.div-experience2
{
    display: flex;
}

.bg2-image
{
    margin: -3vh 17vh 0vh 1vh;
    height: 40vh;
}

.div-experience2 p
{
    position: absolute;
    margin: 10vh 1vh 0vh 20vh;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.5);
}

/* --------DIV TITLE-------- */

.div-title
{
    margin-top: -2vh;
    height: 4vh;
    display: flex;              
    justify-content: center;   
    align-items: center;       
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.line
{
    height: .3vh;
    width: 100%;
    background: linear-gradient(to right,goldenrod, rgb(255, 225, 58), #ffffff, rgb(255, 225, 58), goldenrod, rgb(255, 225, 58), #ffffff, rgb(255, 225, 58),  goldenrod);
}

.title
{
    position: absolute;
    text-align: center;
    overflow-x: hidden;
    z-index: 1;
    white-space: nowrap;
    height: 3.3vh;
    max-width: 60%;
}

.div-title h2
{
    position: absolute;
    text-align: center;
    overflow-x: hidden;
    z-index: 2;
    white-space: nowrap; 
}

.div-keystrengths
{
    position: relative;
}

.strength
{
    margin-top: 3vh;
    margin-bottom: 1vh;
    display: flex;  
    justify-content: center;   
}

.ribbon-left,
.ribbon-right {
    margin-top: 0;
    height: 5vh;
    width: auto;
}

.ribbon-mid1 
{
    margin-top: 0;
    flex-grow: .3;
    height: 5vh;
    background-image: url('ribbon-center.png');
    background-repeat: repeat-x; /* or background-size: cover; for stretch */
    background-position: center;
}

.ribbon-mid1a
{
    margin-top: 0;
    flex-grow: .4;
    height: 5vh;
    background-image: url('ribbon-center.png');
    background-repeat: repeat-x; /* or background-size: cover; for stretch */
    background-position: center;
}

.ribbon-mid2
{
    margin-top: 0;
    flex-grow: .6;
    height: 5vh;
    background-image: url('ribbon-center.png');
    background-repeat: repeat-x; /* or background-size: cover; for stretch */
    background-position: center;
}

.ribbon-mid3
{
    margin-top: 0;
    flex-grow: .8;
    height: 5vh;
    background-image: url('ribbon-center.png');
    background-repeat: repeat-x; /* or background-size: cover; for stretch */
    background-position: center;
}

.div-strength h2
{
    position: absolute;
    margin-top: 0.8vh;
    padding: 0px;
    text-align: center;
}

.div-strength p
{
    margin: 1vh 2vh 0vh 1vh;
    padding: 0px;
}

.footer,
special-footer,
.spacer-footer
{
    position: relative;
    z-index: 1; /* Ensure footer appears above background */
}

@media (min-aspect-ratio: 1001/1000)
{
    .content
    {
        margin: 6.6vh 15% 0px 15%;
        position: relative;
        background-color: black;
    }

   .div-reel
    {
        height: 20vh;
        margin-bottom: 1%;
        margin-right: 1%;
    }
    
    .div-reel h2
    {
        font-size: 1vw;
        border: 2px solid goldenrod;
        padding: 0.3vh 0vh 0.2vh 0vh;
        border-radius: 45px;
    }

    .unity-image
    {
        margin: 4vh 1vh 0vh 1vh; /* Increased top margin to avoid header overlap */
        height: 35vh;
    }

   .div-unity p
    {
        margin: 10vh 10vh 0vh 1vh;
    }

    .bg1-image
    {
        margin: -3vh 1vh 0vh 1vh;
        height: 45vh;
    }

    .div-experience1 p
    {
        margin: 10vh 45vh 0vh 10vh;
    }

    .bg2-image
    {
        margin: -3vh 17vh 0vh 1vh;
        height: 65vh;
    }

    .div-experience2 p
    {
        margin: 10vh 10vh 0vh 45vh;
    }
 

    .div-title
    {
        height: 5vh;
    }

    .title
    {
        height: 5vh;
        max-width: 60%;
    }

    .div-strength h2
    {
        margin-top: 3.5vh;
        padding: 0px;
    }

    .div-strength p
    {
        margin: 3vh 10vh 0vh 10vh;
    }

    .ribbon-left,
    .ribbon-right 
    {
        margin-top: 2vh;
        height: 8vh;
    }

    .ribbon-mid1 
    {
        margin-top: 2vh;
        flex-grow: .2;
        height: 8vh;
    }

    .ribbon-mid1a
    {
        margin-top: 2vh;
        flex-grow: .2;
        height: 8vh;
    }

    .ribbon-mid2
    {
        margin-top: 2vh;
        flex-grow: .3;
        height: 8vh;
    }

    .ribbon-mid3
    {
        margin-top: 2vh;
        flex-grow: .4;
        height: 8vh;
    }
}

@media (max-aspect-ratio: 999/1000)
{
    .div-reel
    {
        width: 25vw;
        margin-bottom: 3%;
        margin-right: 2.5%;
    }
}