/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header */
header {
    background-color: #e8e8e8;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ccc;
}

.logo h1 {
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    margin-top: 0.2rem;
}

.contact-info {
    font-size: 1.2rem;
    color: #0077b6;
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: center;
    background-color: #0077b6;
    padding: 1rem;
}

.nav-bar a {
    color: #fff;
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline Animation */
.nav-bar a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-bar a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-bar a:hover {
    color: #ffffffda;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('/assets/media/IMG_1927.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #ccc;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #f9f9f9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    color: #f2f2f2;
    position: relative;
    z-index: 2;
}

.hero .cta-button {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #0077b6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero .cta-button:hover {
    background-color: #005f8c;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: #ffffff;
}

.service-card {
    width: 30%;
    background-color: #f5f5f5;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.gallery h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gallery-images img {
    width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #2f2f2f;
    color: #dcdcdc;
    padding: 4rem 2rem;
    border-top: 2px solid #4a4a4a;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section p, .footer-section a {
    font-size: 1rem;
    color: #dcdcdc;
    line-height: 1.5;
}

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

.footer-section a:hover {
    color: #80b3ff; /* Blødt blåligt hover */
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-icons a {
    margin-right: 0.5rem;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.social-icons img:hover {
    filter: grayscale(0%);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #b0b0b0;
    padding-top: 1rem;
}

.contact-person {
    margin-bottom: 15px;
}

.contact-person p {
    margin: 2px 0;
}

.contact-person a {
    text-decoration: none;
}

.contact-person a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    .services {
        flex-direction: column;
    }
    .service-card, .gallery-images img {
        width: 90%;
    }
}