/* styles.css */

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

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* Undgå underlinjer på knapper og links, selv ved hover */
.btn-primary,
.btn-secondary,
.app-link {
    text-decoration: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.app-link:hover {
    text-decoration: none;
}

.btn-primary:focus,
.btn-secondary:focus,
.app-link:focus {
    text-decoration: none;
    outline: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}

/* ****** NAVBAR ****** */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff; /* Lys baggrund */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

/* Menuen på desktop */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-decoration: none;

    /* Underline ved hover (slider effekt) */
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #007BFF;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #007BFF;
}

/* Specielt link til Log ind (CTA) */
.app-link {
    background-color: #007BFF;
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-link:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Hamburger (skjules på desktop, vises på mobil) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ****** HERO SECTION ****** */
.hero-section {
    height: 100vh;
    background: url('../assets/images/slider.jpg') top center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* Mørk overlay oven på baggrundsbilledet */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.btn-primary {
    background-color: #007BFF;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* ****** ABOUT SECTION ****** */
.about-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007BFF;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1;
    padding: 1rem;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ****** FEATURES SECTION ****** */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #007BFF;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #007BFF;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: #007BFF;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
}

/* ****** CTA SECTION ****** */
.cta-section {
    padding: 4rem 0;
    background: #007BFF;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: #fff;
    color: #007BFF;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f1f1f1;
    transform: scale(1.05);
}

/* ****** FOOTER SECTION ****** */
.footer-section {
    padding: 2rem 0;
    background: #333;
    color: #fff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

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

.footer-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007BFF;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007BFF;
}

/* ****** RESPONSIVE STYLING ****** */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-top: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Mobilmenu */
    .hamburger {
        display: flex; /* Vises på mobil */
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* juster afhængigt af navbar-højden */
        right: 0;
        background: #fff;
        width: 200px;
        height: calc(100% - 70px);
        box-shadow: -2px 0 6px rgba(0,0,0,0.08);
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-left: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0;
    }

    /* Hamburger-ikonets kryds-animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ****** ANIMATIONER ****** */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
