.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    height: 50px;
    transform: scale(2);
    transform: scale(2) translateY(5px);
    transform-origin: left center;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    transform: scale(1.8);
}

.navbar.scrolled .logo {
    height: 40px;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--green);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--green);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url('/billeder/DSCN3227.JPG') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gif {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 80%;
    width: auto;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
}

.hero-content {
    max-width: 800px;
    width: 90%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    margin-top: 15vh;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.about-teaser {
    padding: 5rem 10%;
    display: flex;
    align-items: center;
    background-color: var(--blue);
}

.about-text {
    flex: 1;
    padding-right: 3rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-link {
    color: black;
    font-size: large;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.about-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.about-link:hover i {
    transform: translateX(5px);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.gallery-preview {
    padding: 5rem 10%;
    background-color: white;
    text-align: center;
}

.gallery-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

footer {
    background-color: var(--green);
    color: var(--light-text);
    padding: 3rem 10%;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--lavender);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--lavender);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .about-teaser {
        flex-direction: column;
        padding: 4rem 5%;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .about-image {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-image {
        width: 100%;
    }

    .hero-gif {
        max-width: 70%;
        top: 3%;
        max-height: 20vh;
    }

    .hero-content {
        margin-top: 18vh;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
    }

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

    .hero-gif {
        max-width: 85%;
        top: 2%;
        max-height: 15vh;
    }

    .hero-content {
        margin-top: 20vh;
        padding: 1.2rem;
    }
}