body {
    font-family:"Lato", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigasjonsmeny */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    padding: 20px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-family: syne;
    font-weight: bold;
    margin-top: 10px;
}

#menu-toggle {
    display: none;
}

.menu-icon i {
    display: none;
}

.nav-links {
    list-style-type: none;
    display: flex;
    padding: 0;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links li a,
.footer-container ul li a {
    text-decoration: none;
    color: #fff;
    position: relative;
}

.nav-links li a::after,
.footer-container ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.footer-container ul li a:hover::after {
    width: 100%;
}

.active {
    font-weight: bold;
}

/* Wrapper for intro-boks og image-boks */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 30px;
}

.cta-button {
    padding: 10px 28px 10px 28px;
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-left: 40px;
    margin-top: 10px;
    align-self: start;
    font-weight: bold;
}

.cta-contact-bottom:hover,
.cta-button:hover,
.project-links a:hover,
.cta-button-about:hover {
    color: rgba(45, 45, 45, 0.5);
    border-color: rgba(45, 45, 45, 0.5);
}

/* Informasjonsboks */
.intro-box {
    flex: 1;
    padding: 20px;
    background-color: #EFECE3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 500px;
    overflow: auto;
}

.highlight {
    color: #000;
    font-weight: bold;
}

.intro-box h1 {
    margin-left: 40px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 48px;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: lighter;
}

.intro-box p {
    margin-left: 40px;
    margin-right: 40px;
    font-size: 20px;
}

/* Bildeboks */
.image-box {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
    background-color: #EFECE3;
}

.image-box img {
    max-width: 100%;
    object-fit: cover;
}

/*SKILLS*/
.skills-container {
    width: 100%;
    margin: 0 auto;
    margin-top: 30px;
    padding: 70px 0;
    background-color: #f0f0f0;
}

.skills-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section title */
.skills-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.skills-heading h2 {
    margin: 0;
    color: #000000;
    font-size: 43px;
    font-family: syne;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
    justify-items: center;
}

/* Each column */
.skills-group {
    width: 100%;
    max-width: 260px;
    text-align: left;
}

.skills-group h3 {
    font-family: lato;
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #000000;
}

.skills-group ul {
    list-style-type: disc;
    padding-left: 18px;
    margin: 0;
    color: #000000;
}

.skills-group li {
    margin-bottom: 8px;
    font-size: 18px;
}

/*Contact-container-home*/
.contact-container-home {
    max-width: 100%;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
    background-color: #EFECE3;
}

.contact-flexbox-home {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 100px;
    align-items: center;
}

.contact-image-home {
    object-fit: cover;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-position: bottom;
}

.contact-large-text {
    color: #000000;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: lighter;
    font-size: 48px;
    text-align: center;
    margin-bottom: 0;
}

.contact-small-text {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-item-bottom {
    text-align: center;
}

.cta-contact-bottom {
    padding: 10px 28px 10px 28px;
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

/*Projects page*/
.projects-heading {
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.projects-heading h1 {
    font-family: syne;
    font-size: 36px;
    margin: 0;
}

.projects-section {
    width: 100%;
    background-color: #EFECE3;
    margin: 60px 0;
    padding: 60px 0;
}

/* Grid inside – 3 cards per row */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.project-links {
    margin-top: auto;
    padding-top: 16px;
}

.project-card .project-title,
.project-card h1,
.project-card h2 {
    margin-top: 0;
    font-family: lato;
    font-size: 27px;
}

.project-card p {
    font-size: 16px;
    font-family: lato;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.tech-label, .demo-label  {
  font-weight: 600;
  color: #000;
}

/* PROJECT BUTTONS */
.project-links {
    display: flex;
    gap: 12px;
}

.project-links a,
.project-links .btn-disabled {
    min-width: 100px;
    text-align: center;
}

.project-links a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    transition: all 0.25s ease;
}

.project-links a:first-child {
    background-color: transparent;
    color: #000;
}

.project-links a:last-child {
    background-color: #000;
    color: #fff;
}

.project-links a:hover {
    opacity: 0.8;
}

.btn-disabled {
    display: inline-block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    opacity: 0.35;
    cursor: not-allowed;
}

/*Contact me, About me*/
.contact-container,
.about-container {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #EFECE3;
    max-width: 1300px;
    min-height: 700px;
}

.contact-container,
.about-container {
    margin: 0 auto;
    margin-top: 40px;
}

.contact-info,
.about-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    font-size: 18px;
}

.contact-info h1,
.about-info h1 {
    margin-top: 0;
    font-family: syne;
    font-size: 36px;
}

.contact-image,
.about-image {
    flex: 1;
    padding: 20px;
}

.contact-image img,
.about-image img {
    height: 600px;
    width: 600px;
    object-fit: cover;
}

.cta-button-about {
    padding: 10px 28px 10px 28px;
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
    align-self: start;
    font-weight: bold;
}

/*Footer*/
.footer-container {
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 10em;
    background-color: #333;
    color: #fff;
    padding-bottom: 40px;
    padding-top: 20px;
    margin-top: 40px;
}

.footer-container ul {
    list-style-type: none;
}

.footer-heading {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.help > ul,
.explore > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.li-footer > a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

.help,
.explore {
    color: #fff;
    flex: 1;
    line-height: 1.6;
}

.line-footer {
    width: 90%;
    display: block;
    border-top: 1px solid;
    color: #fff;
    margin-top: -20px;
}

.copy-rights {
    background-color: #333;
    padding-left: 5%;
    padding-bottom: 60px;
    color: #fff;
}

/*@media*/
@media (max-width: 1000px) {
    .projects-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* SKILLS – 2 columns */
    .skills-list {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        max-width: 750px;
        gap: 40px;
    }
}

/* SKILLS – 1 columns */
@media (max-width: 600px) {
    .skills-list {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 28px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1248px) {
    .contact-container,
    .about-container {
        flex-direction: column;
        height: auto;
        align-items: unset;
    }

    .contact-image img,
    .about-image img {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1000px) {
    .contact-flexbox-home {
        gap: 0;
    }
}

@media (max-width: 861px) {
    .content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 831px) {
    .navbar {
        flex-direction: column;
        display: block;
        line-height: 30px;
        padding-left: 15px;
    }
}

@media (max-width: 751px) {
    .contact-flexbox-home {
        flex-direction: column;
        margin-bottom: 10px;
    }
}

@media (max-width: 500px) {
    .navbar {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
    }

    .navbar .nav-links {
        display: none;
    }

    .menu-icon i {
        display: block;
    }

    #menu-toggle:checked ~ .nav-links {
        display: block;
    }

    #menu-toggle:checked + .menu-icon i {
        display: inline;
    }

    .logo {
        margin-bottom: 12px;
        display: block;
    }

    .intro-box p {
        font-size: 17px;
    }

    .intro-box h1,
    .contact-large-text {
        font-size: 36px;
    }

    .contact-small-text,
    .project-card p,
    .contact-text {
        font-size: 17px;
    }

    .contact-info h1,
    .about-info h1 {
        font-size: 27px;
    }

    .contact-image img,
    .about-image img {
        height: 500px;
    }

    .contact-info,
    .about-info {
        font-size: 17px;
    }

    .footer-container {
        gap: 7em;
    }

    .help > ul,
    .explore > ul {
        font-size: 16px;
    }

    .footer-heading {
        font-size: 18px;
    }

    .copy-rights {
        font-size: 13px;
    }
}
