/* Generelle styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fdff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00a8b5;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00a8b5;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00a8b5;
    transition: width 0.3s ease;
}

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

a {
    color: #006a74;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00a8b5;
}

a::after {
    background-color: #00a8b5;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Sektioner */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(248, 253, 255, 1) 0%, rgba(248, 253, 255, 0) 100%);
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #006a74;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, #00a8b5, #87ceeb);
    bottom: -10px;
    left: 0;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Hero sektion */
#hero {
    align-items: flex-end; /* Sørger for at indholdet er nederst */
    justify-content: flex-start; /* Tekst til venstre */
    height: 90vh;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to right, #e0f7fa, #b2ebf2);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;

    height: 100vh;
    text-align: center;
    padding: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 120px auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #006a74;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #006a74;
}

.hero-text {
  max-width: 600px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: #004d5b;
  margin-bottom: 1rem;
}

.hero img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(300px, 25vw + 100px, 400px);
    /* max-width: 35%; */
    height: auto;
    box-shadow: -10px 10px 30px rgba(0, 100, 150, 0.3); /* Blålig skygge */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        width 0.6s ease;
}

.hero img:hover {
    transform: scale(1.03);
    box-shadow: -15px 15px 40px rgba(0, 100, 150, 0.4);
}

.hero-image {
    position: absolute;
    z-index: 2;
    width: 300px;
    margin-top: 80px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    filter: drop-shadow(0 15px 25px rgba(0, 160, 180, 0.35));
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00a8b5;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #00a8b5;
}

.btn:hover {
    background-color: transparent;
    color: #00a8b5;
}

/* Baggrundsbilleder for sektioner */

/* Fallback hvis billeder ikke loades */
#hvorfor .section-bg {
    background: linear-gradient(135deg, #b2ebf2 0%, #80deea 100%);
}

#baggrund .section-bg {
    background: linear-gradient(135deg, #80deea 0%, #4dd0e1 100%);
}

#interesser .section-bg {
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%);
}

#kontakt .section-bg {
    background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
}

/* CV sektion */
#cv {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(248, 253, 255, 1) 0%, 
        rgba(248, 253, 255, 0.8) 20%,
        rgba(248, 253, 255, 0.4) 50%,
        rgba(248, 253, 255, 0) 100%);
}

#hvorfor .section-bg {
    background-image: url('images/hvorfor-baggrund.jpg');
    background-size: cover;
    background-position: center;
}

#baggrund .section-bg {
    background-image: url('images/baggrund-erfaring.jpg');
    background-size: cover;
    background-position: center;
}

#interesser .section-bg {
    background-image: url('images/interesser-baggrund.jpg');
    background-size: cover;
    background-position: center;
}

#kontakt .section-bg {
    background-image: url('images/kontakt-baggrund.jpg');
    background-size: cover;
    background-position: center;
}

#leder .section-bg {
    background-image: url('images/leder-baggrund.jpg');
    background-size: cover;
    background-position: center;
}

.download-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: white;
    border-radius: 10px;
    text-decoration: none;
    color: #006a74;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: #00a8b5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.tag {
  opacity: 0;
  transform: translate(0, 10vh);
  transition: all 1s;
}

.tag.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Footer */
footer {
    background-color: #006a74;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsiv design */
@media (max-width: 992px) {
    .section-content {
        max-width: 70%;
    }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20vh);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

@media (max-width: 768px) {
    .section-bg {
        width: 100%;
        opacity: 0.4; /* Gør billedet mere gennemsigtigt på mobile */
    }
    
    .section-bg::before {
        background: linear-gradient(to right, 
            rgba(248, 253, 255, 1) 0%, 
            rgba(248, 253, 255, 0.9) 30%,
            rgba(248, 253, 255, 0.7) 60%,
            rgba(248, 253, 255, 0.4) 100%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .section-content {
        max-width: 100%;
    }
    
    .section-bg {
        width: 100%;
    }
    
    .download-links {
        flex-direction: column;
    }

    .hero-content {
        opacity: 0.6;
        z-index: 2;
    }

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

    .hero {
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem 6rem;
    }

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

    .hero-image {
        position: absolute;
        /* hide image on mobile */
        z-index: -1;
        opacity: 0.3;
    }

    .hero img {
        /* max-width: 60%; */
        width: 300px;
        right: -10px; /* Giver lidt "luft" i små vinduer */
    }
}

@media (min-width: 1024) {
    .hero img {
        width: 400px;
    }
}

/* ------------ kontakt-knap ------------ */

#kontakt h2 {
  color: #0b607a;
  margin-bottom: 20px;
}

#kontakt-knap {
  background-color: #1da1b9;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#kontakt-knap:hover {
  background-color: #17889c;
  transform: scale(1.05);
}

#kontakt-knap:active {
  transform: scale(0.98);
}

