/*This is a comment
COLOR PALETTE

Dark green #3c8453
Sandy beige #bcaa96
Dark gray #222222
Light gray # d3d4d6
*/

/*
Global styles
*/

/*These are the DIVS*/
body {

    background: #ffffff;
}

/*This is the menu bar*/

.navbar {
    display: flex;
    justify-content: space-evenly;
    font-weight: bold;
    padding: 10px 20px;
    /*smaller vertical padding*/
    display: flex;
    height: 60px;
    background-color: #cc6600;
    /*#d3680b;*/
    align-items: center;
    border-bottom: 2px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-logo {
    height: 90px;
    padding: 5px 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.navbar-logo:hover {
    transform: rotate(20deg);
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #3a0505;
    font-size: 1.1rem;
    padding: 5px 0;
    transition: color 0.3s ease;

}

.navbar a:hover {
    background-color: rgb(71, 71, 128);
    color: #ffff;
}

.navbar a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/*resume info*/

.resume-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    place-items: center;
    gap: .5rem;
    display: grid;
}

/*    IMPORTANT NOTE: ADD EFFECT ON HOVER*/

.header-logo {
    height: 120px;
    margin-bottom: 10px;
}

.resume-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0c3e1c;
}

.resume-header h2 {
    font-style: italic;
    font-size: 1.1rem;
    color: #b45e08;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-h2 {
    display: inline-block;
    border-bottom: 2px solid #ad8045;
    border-style: dashed;
    padding-bottom: 0.2rem;
    margin-top: 1.5rem;
}

.header-separator {
    width: 60px;
    height: 2px;
    background-color: #3c8453;
    margin: 10px auto;
    border: none;
}

/*Visit counter*/

.visit-count {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    color: #5f5a5a;
    border-style: dashed;
}

/*HOME*/

/*.home{
        background: url(../images-videos/Index-images/Dunes.jpeg) no-repeat;
        background-size: contain;
    }*/

.home .split-layout {
    display: flex;
    height: 100vh;
    /*full screen height*/
}

.home .left-side {
    flex: 0.20;
    /*takes 50% */
    background-image: url('images-videos/Index-images/Dunes.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.masked-text-vertical{
    font-size: 5.25rem;
    /*adjust as needed*/
    font-weight: bold;
    text-transform: uppercase;
    background: url('images-videos/Index-images/Dunes.jpeg');
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /*Vertical text*/
    writing-mode: vertical-rl;
    text-orientation: upright;
}



.content-box {
    max-width: 31.25rem;
    /*controls width of the content*/
    text-align: left;
    display: flex;
    /*this is key*/
    align-items: flex-start;
    /*align at top*/
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.profile-photo-box {
    flex: 0 0 auto;
    /*DO NOT STRETCH*/
}

.profile-photo {
    width: 250px;
    height: auto;
    border: 5px solid #333;
    /*frame*/
    border-radius: 10px;
    /*rounded corners*/
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    justify-self: left;
}

.profile-text-box {
    flex: 1;
}

.home .right-side {
    flex: 1;
    padding: 2rem;
    background-color: rgb(255, 255, 255);
    font-size: 1.2rem;
    margin-bottom: 0rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.home .right-side h1 {
    font-size: 2rem;
    line-height: 1.5;
}

.home .right-side h2 {
    font-size: 1.2rem;
    line-height: 0.5;
}

.home .info-om-meg {
    flex: 1;
    font-size: 1rem;
    font-style: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    justify-content: left;
    text-align: left;
    text-decoration: double;
    padding: 20px;
}

.about-me-par {
    font-style: oblique;
    font-weight: 50;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    padding: 1px;
}

/*Designer quote*/

.designer-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cta-quote {
    font-style: italic;
    font-size: 0.98rem;
    color: #555;
    border-left: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*What I design coding*/

.what-I-design {
    margin-top: 30px;
}

.design-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.design-tags li {
    background-color: #3c8453;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/*Resume Typography*/

body.resume {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
    background-color: #ffffff;
    padding: 2rem;
}

h1 {
    color: #603b19;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.55rem;
    padding: 1px;
    text-align: center;
}



h2 {
    border-bottom: 2.5px solid #c59118;
    padding-bottom: 0.25rem;
    margin-top: 1rem;
    width: fit-content;
    font-size: 1.75rem;
    color: #a36a20;
}

h3 {
    font-weight: 600;
    font-size: 1.35rem;
    border-bottom: 0.75px solid #dfce79;
    padding-bottom: 0.1rem;
    margin-top: 3.5rem;
    width: fit-content;
    color: #d54613e2;

}

h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: #276073;
}

/*Tidslinje*/

.timeline {
    border-left: 2.5px solid #27607369;
    padding-left: 1.2rem;
    margin: 2rem 0;
}

.timeline-item {
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '●';
    color: #1e39736f;
    position: absolute;
    left: -0.9rem;
    top: 0;
    font-size: 0.7rem;
}

.timeline-year {
    font-weight: bold;
    color: #958347;
}

.timeline-content {
    margin-left: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

/*links*/

a {
    color: darkblue;
    text-decoration: none;
    transition: color .3s ease;
}

a:hover {
    color: #206139;
    text-decoration: underline;
}

/*Tools Used to Create the portfolio*/

.tools-used {
    margin-top: 30px;
}

.tools-used p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tools-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.tools-icons img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: default;
}

.tools-icons img:hover {
    transform: scale(1.1);
}

/*FOOTER INFO*/

.footer {
    background-color: #333;
    /*dark background*/
    color: #ffff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FDF5E6;
}

.footer-index {
    list-style: none;
}

/*Section spacing*/
section {
    margin-bottom: 2rem;
}

section {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/*Video framing*/

.video-container {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    /*Allows responsiveness*/
    margin-top: 2em;
}

.video-block {
    flex: 1 1 45%;
    max-width: 500px;
}

/*Arbeidslivs prosjekter*/

.video-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.video-container figure {
    text-align: center;
    margin: 0;
}

.video-container figcaption {
    margin-top: 8px;
    color: #555;
    font-style: italic;
}


/*Scroll container for images*/


.scroll-container {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 1rem;
    /*Optional space btwn images*/
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container figure {
    flex: 0 0 auto;
    width: 300px;
}


.scroll-container img {
    flex: 0 0 auto;
    /*prevents shrinking and keeps images in one line*/
    width: 300px;
    /*Can be adjusted, as needed*/
    height: auto;
    border-radius: 8px;
    /*Optional*/
    transition: all 0.3s ease;
}

/*IMG hover*/

.scroll-container img:hover {
    transform: scale(1.05);
    /*Slight zoom effect*/
    cursor: pointer;
}

.scroll-container img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/*Scroll-arrow*/

.scroll-wrapper {
    position: relative;
}

.scroll-btwn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    background: #fff;
    color: rgba(60, 132, 83, 0.85);
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.scroll-btwn:hover {
    background: #dc450f;
    color: #fff;
}

.scroll-btwn.left {
    left: 10px;
}

.scroll-btwn.right {
    right: 10px;
}

/* disabled state when you can't scroll that way */
.scroll-btwn[disabled] {
    opacity: .3;
    pointer-events: none;
}

.scroll-btwn[disabled] {
    opacity: .3;
    visibility: hidden;
}


/*Smooth scrolling*/

html {
    scroll-behavior: smooth;
}

/*Back to top button*/

:root {
    --btt-size: 56px;
    /* change 48|56|64 to taste */
    --btt-bg: #dc450f;
    --btt-bg-hover: #b33a0a;
    --btt-fg: #fff;
    --btt-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--btt-size);
    /* space for the button */
}

.back-to-top {
    position: fixed;
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--btt-bg);
    color: black;
    line-height: 1;
    box-shadow: var(--btt-shadow);
    cursor: pointer;
    opacity: 0;
    /* hidden by default */
    pointer-events: none;
    /* not clickable while hidden */
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
    z-index: 999;
    /* above content */
    width: 56px;
    /* or 64px for big thumbs */
    height: 2rem;
    font-size: 15px;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--btt-bg-hover);
}

/* Keyboard focus ring */
.back-to-top:focus-visible {
    outline: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), inset 0 0 0 2px #fff;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .back-to-top {
        transition: none;
    }
}



/*FOOTER*/