@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: url("../Img/baggrund.jpg") no-repeat center / cover;
    padding: 50px 5%;
}

.container {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    transform: scale(0);
    animation: zoom-in 1.5s ease forwards;
}

@keyframes zoom-in { to { transform: scale(1); } }

header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}


.animated {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-in 1s ease forwards 1s;
}

@keyframes slide-in { to { opacity: 1; transform: translateY(0); } }

.logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    &>img{
        width: 50px;
        height: 50px;
        object-fit: cover;
        margin-right: 8px;
    }
}

.navbar-desktop a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    margin-left: 35px;
    border-bottom: 2px solid transparent;
    transition: .5s;
}

.navbar-desktop a:hover,
.navbar-desktop a.active { border-color: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
    transition: opacity .25s;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.menu-toggle.active { opacity: 0; pointer-events: none; }

.mobile-menu { display: none; }

.home {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 100px);
    gap: 50px;
    padding: 100px 5% 50px;
    color: #fff;
    animation-delay: 1.5s;
}

.home-detail h1 { font-size: 55px; line-height: 1; }
.home-detail h2 { font-size: 32px; }
.home-detail p  { margin: 10px 0 20px; }

.home-detail .download-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 40px;
    box-shadow: 0 0 10px #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: .5s;
}

.btn:hover { background: transparent; box-shadow: none; color: #fff; }

.social-icons { display: flex; gap: 8px; }

.social-icons a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: .5s;
}

.social-icons a:hover { background: #fff; box-shadow: 0 0 10px #fff; color: #333; }

.home-img { flex-shrink: 0; }

.home-img .img-box {
    position: relative;
    width: 28vw;
    height: 28vw;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff;
    overflow: hidden;
}

.home-img .img-box img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 1024px) {
    body { padding: 30px 4%; }
    .home-detail h1 { font-size: 42px; }
    .home-detail h2 { font-size: 26px; }
    .home-img .img-box { width: 36vw; height: 36vw; }
    .navbar-desktop a { font-size: 16px; margin-left: 22px; }
}

@media (max-width: 768px) {
    body { padding: 20px 4%; }
    .container { min-height: calc(100svh - 40px); border-radius: 20px; }
    .navbar-desktop { display: none; }
    .menu-toggle { display: flex; }

    .mobile-menu {
        display: flex;
        position: absolute;
        inset: 0;
        border-radius: 20px;
        background: rgba(0, 0, 0, .65);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 250;
        opacity: 0;
        transform: scale(.96);
        pointer-events: none;
        transition: opacity .35s ease, transform .35s ease;
    }

    .mobile-menu.open { opacity: 1; transform: scale(1); pointer-events: all; }

    .close-btn {
        position: absolute;
        top: 22px; right: 22px;
        width: 42px; height: 42px;
        background: rgba(255,255,255,.15);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;
        font-size: 22px;
        transition: background .25s, transform .25s;
    }

    .close-btn:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }

    .mobile-menu nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 40px;
    }

    .mobile-menu nav a {
        font-size: 26px;
        font-weight: 600;
        color: rgba(255,255,255,.9);
        text-decoration: none;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.12);
        transition: color .25s, letter-spacing .25s;
    }

    .mobile-menu nav a:last-child { border-bottom: none; }
    .mobile-menu nav a:hover { color: #fff; letter-spacing: 2px; }

    .home {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 80px 5% 20px;
        gap: 20px;
        text-align: center;
        min-height: calc(100svh - 40px);
    }

    .home-detail h1 { font-size: 36px; }
    .home-detail h2 { font-size: 22px; }
    .home-detail p  { font-size: 14px; }
    .home-detail .download-social { justify-content: center; }
    .home-img .img-box { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
    .home-detail h1 { font-size: 28px; }
    .home-detail h2 { font-size: 18px; }
    .home-detail p  { font-size: 13px; }
    .btn { padding: 9px 22px; font-size: 14px; }
    .home-img .img-box { width: 150px; height: 150px; }
    .mobile-menu nav a { font-size: 22px; }
}