* {
    margin: 0;
    padding: 0;
    font-family: "altivo", sans-serif;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
}

body {
    background: 
    /* linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), */
    url("/Elements/hero-img.png") no-repeat center center / cover;
    min-height: 100vh;
}

header {
    background: linear-gradient(to right, #8F269D, #0f53bf);
}

img {
    width: 100%;
}

/* NAVBAR */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    /*background: linear-gradient(to right, #8F269D, #0f53bf);*/
}

.navbarLinks {
    display: flex;
    flex-direction: row;
    /*gap: 40px;*/
    font-size: 1.125rem;
    list-style: none;
    text-decoration: none;
    color: #fff;
    /*height: 100%;*/
}

.navbarLinks li a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    font-style: normal;
    position: relative;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: background 0.3s ease;
}

.navbarLinks li a:hover {
    background: rgba(0, 0, 0, 0.2); /* dark overlay on hover */
    font-weight: 500; /* makes it bold like your screenshot */
}

.navbarLinks li a.active {
    /*background: rgba(0, 0, 0, 0.2); /* dark overlay on hover */
    font-weight: 500; /* makes it bold like your screenshot */
}

/*.navbarLinks li {
    min-height: 100px;
}*/

.logo {
    padding: 0px 0px 0px 30px;
    font-weight: 300;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.logo a span {
    font-weight: 500;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding-right: 30px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}


/* HERO */
.hero {
    display: block;
    max-width: 65%;
    justify-content: center;
    margin: 7.5em auto;             /* centers hero box in page despite sizing changes */
    scale: (1.0);
    background-color: rgba(240, 240, 240, 0.8); /* add and change bg color opacity */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.name {
    font-size: clamp(1rem, 2vw + 3rem, 6rem); /* (min, preferred, max) */
    margin: 0 auto;
    line-height: 0.75;
    font-weight: 500;
    color: #1a1a1a;
}

.roles {
    font-size: clamp(2rem, 2vw + 0.8rem, 3rem);
    margin: 10px 0 10px 0;
    font-weight: 500;
    background: linear-gradient(to right, #8F269D, #0f53bf);
    -webkit-background-clip: text;  /* clip gradient to text shape */
    -webkit-text-fill-color: transparent; /* make text transparent */
    background-clip: text; /* modern browsers */
    letter-spacing: 1px;
    line-height: 2rem;
}

.description {
    margin-top: 1rem;
}

.mainbuttons {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 30px;
}

.mywork, .contact {
    border: 0;
    outline: 0;
    background: linear-gradient(to right, #1a1a1a, #1a1a1a); /* solid, but still a gradient. prevents weird button flash */
    color: #fff;
    border-radius: 8px;
    padding: 10px 25px;
    scale: 1.1;
    transition: all 0.3s ease;
}

.mywork:hover, .contact:hover {
    transform: scale(1.08);
    background: linear-gradient(to right, #8F269D, #0f53bf);
    cursor: pointer;
}

@media (max-width: 768px){
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbarLinks {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background: linear-gradient(to right, #8F269D, #0f53bf);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
    }

    .navbarLinks li a {
        padding: 20px;
    }

    .navbarLinks.active {
        left: 0;
    }

    .hero {
        min-width: 70%;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 3rem;
    }
}



