/* Reset and Base Styles */
@font-face {
    font-family: "Barlow-ExtraLight";
    src:
        url(/static/fonts/Barlow-ExtraLight.ttf);
}

@font-face {
    font-family: "Barlow-Light";
    src:
        url(/static/fonts/Barlow-Light.ttf);
}

@font-face {
    font-family: "Barlow-Regular";
    src:
        url(/static/fonts/Barlow-Regular.ttf);
}

@font-face {
    font-family: "Barlow-SemiBold";
    src:
        url(/static/fonts/Barlow-SemiBold.ttf);
}

@font-face {
    font-family: "Barlow-ExtraBold";
    src:
        url(/static/fonts/Barlow-ExtraBold.ttf);
}

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

body {
    font-family: "Barlow-Regular";
    line-height: 1.2rem;
    color: #ffffff;
    background-color: #0a0f1a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    /* Change from rgba or solid color */
    backdrop-filter: none;
    /* Remove blur if present */
    box-shadow: none;
    /* Remove any shadow that looks like a rectangle */
    padding: 1rem 0;
    z-index: 1000;
    transition: background 0.3s ease;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #ff4444;
    font-size: 1.5rem;
}

.logo-text {
    font-family: 'Barlow-Light';
    display: flex;
    margin-right: 10px;
    align-items: center;
    color: #929393;
    font-size: 0.9rem;
}

.logo-img {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn {
    display: block;
    width: 120px;
    font-family: 'Barlow-ExtraBold';
    text-align: center;
    background: transparent;
    color: #78BE20;
    border: 2px solid #F0F0F0;
    padding: 8px 0 10px;
    border-radius: 14px;
    border-color: #78BE20;
    cursor: pointer;
    transition: all 0.3s ease;
}

.get-started-btn {
    width: 120px;
    height: 40px;
    font-family: 'Barlow-ExtraBold';
    background: #78BE20;
    text-transform: uppercase;
    color: #F0F0F0;
    border: none;
    padding: 8px 0 10px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.get-started-btn:hover {
    background: #144B3B;
}

/* summary Section */
section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0;
}

#contact {
    padding-top: var(--nav-height);
}

.summary {
    height: 100vh;
    background: url('/static/images/forest-bg.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 19, 0.75);
    mix-blend-mode: multiply;
    z-index: 0;
}

.header-overlay {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    z-index: 0;
    display: none;
    background: rgba(0, 7, 5, 0.9);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.16),
        0 8px 8px rgba(0, 0, 0, 0.20);
    display: none;
}

.summary-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem;
    margin-top: 160px;
    margin-bottom: 80px;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.pt-100 {
    padding-top: 100px;
}

.summary-content .title {
    font-family: 'Barlow-ExtraBold';
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.m-title {
    font-family: 'Barlow-ExtraBold';
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.8rem;
}

.summary-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.learn-more-btn {
    width: 160px;
    font-family: 'Barlow-ExtraBold';
    font-size: 1.1rem;
    color: #F0F0F0;
    text-transform: uppercase;
    height: 44px;
    background: #144B3B;
    border: none;
    padding: 10px 0 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: #78BE20;
}

.get-started-summary-btn {
    width: 160px;
    font-family: 'Barlow-ExtraBold';
    font-size: 1.1rem;
    color: #F0F0F0;
    text-transform: uppercase;
    height: 44px;
    background: #78BE20;
    border: none;
    padding: 10px 0 24px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.get-started-summary-btn:hover {
    background: #144B3B;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}


@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hvorfor Section */
.hvorfor-section {
    height: 100vh;
    background: url('/static/images/water-bg.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hvorfor-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
}

.section-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

.features-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.feature-item {
    font-family: 'Barlow-SemiBold';
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-icon {
    background: transparent;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Features Section */
.features-section {
    min-height: 100vh;
    box-sizing: border-box;
    background: url('/static/images/water-bg.png') center/cover;
    padding-bottom: 100px;
    /* space for arrow */
    position: relative;
    padding: 80px;
    /* use flex layout with this */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* no vertical centering */
    align-items: center;
    text-align: center;
    z-index: 1;
}


.features-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 4rem;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-card {
    width: 500px;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-icon-large {
    display: block;
    margin: 0 auto 1.5rem auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
}


.feature-card h3 {
    font-family: 'Barlow-SemiBold';
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 1.1rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

/* general Section */
.general-section {
    position: relative;
    /* Keep relative so arrow can be absolutely positioned */
    height: 100vh;
    display: flex;
    background: url('/static/images/water-bg.png') center/cover;
    padding-bottom: 80px;
    /* Space for the arrow */
    justify-content: center;
    /* Vertically center content */
    align-items: center;
    text-align: center;
    justify-content: center;
    z-index: 1;
}


.arrow-next {
    background-image: url(/static/images/arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 20px;
}

.arrow-next:hover {
    background-image: url(/static/images/arrow-hover.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 20px;
}

.general-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
}

.general-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #cccccc;
}

.cta-section {
    margin-top: 3rem;
}

.cta-link {
    display: inline-block;
    color: #144B3B;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    border: 2px solid #4a9eff;
    border-radius: 25px;
    border-color: transparent;
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: #78BE20;
}

.contact-section {
    margin-bottom: 0;
    background: url('/static/images/water-bg.png') center/cover;
    /* no extra margin */
    height: calc(100vh - 60px);
    /* let height be content-based */
    min-height: auto;
    justify-content: center;
    /* Vertically center content */
    align-items: center;
    text-align: center;
    padding: 80px;
    /* avoid forced large height */
    z-index: 1;
}


.contact-form {
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
}

.contact-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 2px;
    border: 1px solid #F0F0F0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.contact-form input::placeholder {
    font-family: "Barlow-ExtraLight";
    color: #C6C6C6;
}

.contact-form input:focus-visible {
    border: 2px solid #78BE20;
    outline: none;
}

.contact-form button {
    width: 160px;
    font-family: 'Barlow-ExtraBold';
    font-size: 1.1rem;
    color: #F0F0F0;
    text-transform: uppercase;
    background: #144B3B;
    height: 44px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {

    background: #78BE20;
}

.reach-text {
    margin: 0.3em 0;
}

.d-block {
    display: block;
}

.scroll-to-top {
    background-image: url('/static/images/scroll-to-top-icon.svg');
    background-repeat: no-repeat;
    background-size: 60px 60px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    border: none;
    outline: none;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-to-top:hover {
    background-image: url('/static/images/scroll-to-top-icon_hover.svg');
}


/* Responsive Design */
@media (max-width: 768px) {
    .summary-content h1 {
        font-size: 1.8rem;
    }

    .summary-buttons {
        flex-direction: column;
        align-items: center;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hvorfor-section h2,
    .features-section h2,
    .general-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
        margin: 3px 0;
    }
}

footer {
    width: 100%;
    background: transparent;
    padding: 0 0 20px 0;
    position: relative;
    color: #838f89;
    background: url('/static/images/water-bg.png') center/cover;
    font-size: 1.1rem;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1 1 0;
    text-align: center;
    font-size: 0.9rem;
    color: #F0F0F0;
    opacity: 0.3;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.login-container {
    position: relative;
    display: inline-block;
}

#login-toggle {
    display: none;
}

.login-refs {
    font-family: 'Barlow-Light';
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: multiply;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s ease;
}

.login-refs a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.login-refs a:hover {
    color: #78BE20;
    transition: .3s ease-in-out;
}

#login-toggle:checked+.login-btn {
    width: 200px;
    height: 120px;
}

#login-toggle:checked~.login-refs {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
    margin-top: 40px;
}

@media (max-width: 480px) {
    .summary-content h1 {
        font-size: 1.4rem;
    }

    .section-description,
    .general-description {
        font-size: 1rem;
    }

    .feature-item {
        font-size: 1rem;
    }
}

@media only screen and (min-width: 1920px) {

    .container,
    .footer-container {
        max-width: 2200px;
    }
}

@media
only screen and (-webkit-min-device-pixel-ratio: 2)      and (min-width: 1900px),
only screen and (   min--moz-device-pixel-ratio: 2)      and (min-width: 1900px),
only screen and (     -o-min-device-pixel-ratio: 2/1)    and (min-width: 1900px),
only screen and (        min-device-pixel-ratio: 2)      and (min-width: 1900px),
only screen and (                min-resolution: 192dpi) and (min-width: 1900px),
only screen and (                min-resolution: 2dppx)  and (min-width: 1900px) { 

  .container, .footer-container {
    max-width: 2200px;
  }
}

