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

/*hoved*/
body, html {
    height: auto;
    scroll-behavior: smooth;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color:#f5f5f5;
    margin: 0;
}

.forside {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background: linear-gradient(
        to right,
        #3D52A0 0%,               
        #3D52A0 calc(350px),      
        #7091e6 100%              
    );
}

.forside-innhold {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 20px;
}

.uia-logo {
    position: absolute;
    z-index: 10; 
    height: 60px; 
    width: auto;
    object-fit: contain;
    margin-top: 15px;
}

 .forside-profilbilde {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.forside-profilbilde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forside-tekst {
    text-align: left;
    margin-bottom: 50px;
}

.forside h1 {
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.forside .undertekst {
    font-size: 1.5rem;
    opacity: 0.9;
}

.scroll-indikator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    border-radius: 30px;
    width: 75px;
    height: 50px;
}

.scroll-indikator:hover{
    transition: 0.2s;
    background-color: #3D52A0;;
}


.scroll-pil {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin: auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
         transform: translateX(-50%) translateY(-5px);
    }
}

.profile-box {
    width: 350px;
    background-color: #3D52A0;
    color: white;
    padding: 0 20px 30px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-box h1 {
    margin-bottom: 10px; 
}

.profile-bilde {
    width: 225px;
    height: 225px;
    background-color: #3D52A0;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-bilde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


.profil-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.om-meg {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    font-size: 16px;
    overflow: auto;
    max-height: 275px;
}

.om-meg h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    border-bottom: 2px solid #3D52A0;
    padding-bottom: 8px;
}

.om-meg p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 10px;
    margin-top: 0;
}

.about-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.about-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e0;
}


.hoved-innhold {
    flex: 1;                 
    display: flex;
    flex-direction: column;
    background-color: white;
    margin: 0;
    min-height: 0; 
    height: 100%;
}

#panel{
        border-radius: 25px;
}

header {
    width: 100%;
    color: white;
    padding: 40px 0;
    text-align: left;


    background: linear-gradient(
        to right,
        #3D52A0 0%,               
        #3D52A0 calc(350px),      
        #7091e6 100%              
    );
}

header.fade {
    background: linear-gradient(to right, #3D52A0 30%, #7091e6 10%);
}


.innhold-container {
    flex: 1;
    display: flex;
    min-height: 0;
    border-radius: 25px;
}

header h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-left: 100px;
}


main {
    flex: 1;     
    width: 100%;           
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


main section {
    width: 100%;
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

main section h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    border-bottom: 2px solid #3D52A0;
    padding-bottom: 8px;
}

main section p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 10px;
    margin-top: 0;
}

.profile-box p {
    margin-top: 0;
    margin-bottom: 10px; 
}

.boks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    width: 100%;
    height: auto;
}

.boks-grid section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-color: #3D52A0; 
    
}

.boks-grid section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(61, 82, 160, 0.15); 
    border-color: #3D52A0; 
}
.ferdigheter {
    grid-column: 2;
    grid-row: 1/3;
    overflow: auto;
    max-height: 580px;
}

.prosjekt-liste {
    list-style: none;
    padding: 0;
}

.tidlinje-boks {
    grid-column: 1 / 3; 
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 40px 0;
    padding: 0 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 40px;  /* ← Linje posisjon */
    left: 20px;
    right: 20px;
    height: 4px;
    background: #3D52A0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: #3D52A0;
    border: 3px solid white; 
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-item.small::before {
    width: 12px;
    margin-top: 3px;
    height: 12px;
    background: #7091e6;
    border: 2px solid white;
}

.timeline-item.small .year {
    font-size: 0.9rem;
    color: #7091e6; /* matcher prikken */
    margin-bottom: 25px;
}


.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.2);
    background-color: #7091e6;
}

.timeline-item::after {
    content: attr(data-text);
    position: absolute;
    bottom: 55px;   /* <- hvor høyt over hover boksen vises */
    left: 50%;
    transform: translateX(-50%);
    background: #3D52A0;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item::before,
.timeline-item::after {
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.timeline-item .year {
    display: block;
    font-weight: bold;
    font-size: 1.3rem;
    color: #3D52A0;
    margin-bottom: 30px;
}

.prosjekt-liste li {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.prosjekt-liste li:hover {
    transform: translateY(-2px);
}

.kontakt-info {
    background: #fff;      
    color: #000;           
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;  
    height: 200px; 
    box-sizing: border-box;
}

.kontakt-info p {
    margin-bottom: 10px;
    text-align: left;
    margin-top: 10px;
}

.kontakt-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;

}

.kontakt-info strong {
    display: block;
    min-width: 80px;
     color: #3D52A0;
}

/* Footer */
footer {
    background-color: #3D52A0;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto;
    background: linear-gradient(
        to right,
        #3D52A0 0%,            
        #3D52A0 calc(350px),   
        #7091e6 100%           
    );
}
.skill {
    margin-bottom: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 82, 160, 0.1);
}

.skill-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.prosjekt {
    margin-bottom: 20px;
}
.prosjekter-innhold {
    grid-column: 1;
    grid-row: 2;
    overflow: auto;
    max-height: 275px;
}

.prosjekt-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prosjekt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 82, 160, 0.1);
}

.prosjekt-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prosjekt-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.prosjekt-content h3 {
    font-size: 1.2rem;
    color: #3D52A0;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.prosjekt-content a {
    color: #3D52A0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}


.prosjekt-content p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.github-btn {
    width: 100px;
    height: 45px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    gap: 30px;
}

.github-btn img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.github-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.linkedin-btn {
    width: 110px;
    height: 45px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.linkedin-btn img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.linkedin-btn:hover {

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



 @media (min-width: 480px) and (max-width: 767px) {

    

    .forside-innhold {
        flex-direction: column;
        gap: 25px;
    }
    
    .forside-profilbilde {
        width: 220px;
        height: 220px;
    }
    
    .forside h1 {
        font-size: 2.5rem;
    }
    

    .innhold-container {
        flex-direction: column;
        gap: 0px;
        padding: 0;
        margin: 0;
    }
    
    .profile-box {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 20px;
    }
    
    main {
        padding: 30px 20px;
    }
    

    .boks-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

    .skill-item {
        flex-direction: row;
        gap: 20px;
        text-align: left;
        padding: 15px;
    }
    
    .skill-logo {
        width: 50px;
        height: 50px;
    }
    
    .skill-logo img {
        width: 35px;
        height: 35px;
    }
    

    .timeline {
        flex-direction: column;
        padding-left: 35px;
    }
    
    .timeline::before {
        left: 20px;
        width: 4px;
    }
    
    .timeline-item {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        text-align: left;
    }
    
    .timeline-item::before {
        left: -25px;
        top: 25px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-item::after {
        position: static;
        opacity: 1;
        background: none;
        color: #4a5568;
        margin-top: 10px;
    }
    

    .social-icons {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .github-btn, .linkedin-btn {
        width: 90px;
        height: 40px;
    }
}

@media (max-width: 479px) {

    .forside {
        background: #3D52A0;
    }

    header {
        background: #3D52A0;
    }

    .forside {
        padding: 15px;
        min-height: 100vh;
    }
    
    .forside-innhold {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
    
    .forside-profilbilde {
        width: 180px;
        height: 180px;
    }
    
    .forside h1 {
        font-size: 2rem;
    }
    
    .forside .undertekst {
        font-size: 1.2rem;
    }
    

    header h1 {
        margin-left: 20px;
        font-size: 1.5rem;
    }
    

    .innhold-container {
        flex-direction: column;
        gap: 0px;
        padding: 0;
        margin: 0;
    }
    
    .profile-box {
    width: 100vw;
    max-width: none;
    padding: 15px;
    margin: 0;
    box-sizing: border-box;
    }
    
    .profile-bilde {
        width: 150px;
        height: 150px;
    }
    
    .kontakt-info {
    height: auto;  
    padding: 16px 0;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .social-icons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .github-btn, .linkedin-btn {
        width: 80px;
        height: 35px;
    }

    .github-btn img, .linkedin-btn img {
        width: 60px;
        height: 60px;
    }


    main {
        padding: 20px 15px;
    }
    

    .boks-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .boks-grid section {
        padding: 20px 15px;
        min-height: auto;
    }
    

    .skill-item {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
        text-align: left;
    }
    
    .skill-logo {
        width: 40px;
        height: 40px;
    }
    
    .skill-logo img {
        width: 30px;
        height: 30px;
    }
    
 
    .social-icons {
        flex-direction: column;
        gap: 10px;
    }
    
    .github-btn, .linkedin-btn {
        width: 80px;
        height: 35px;
    }
    
    .github-btn img, .linkedin-btn img {
        width: 60px;
        height: 60px;
    }
    

    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
        gap: 15px;
    }
    

    .timeline::before {
        left: 15px;
        width: 3px;
        height: 100%;
        top: 0;
    }
    

    .timeline-item {
        position: relative;
        width: 100%;
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
        text-align: left;
    }
    

    .timeline-item::before {
        left: -22px;
        top: 20px;
        width: 12px;
        height: 12px;
        transform: none;
    }
    

    .timeline-item::after {
        position: static;
        opacity: 1;
        transform: none;
        background: none;
        color: #4a5568;
        padding: 0;
        margin-top: 8px;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .timeline-item .year {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    .footer{
        background-color: #3D52A0;

    }

}
footer p {
    font-size: 0.9rem;
    color: #cbd5e0;
}
