/* ===========================================
   MAG KERAMIK - Hoved Stylesheet
   
   Farvepalette (beige/keramik stil):
   - Baggrund: #f5f0eb (varm beige)
   - Tekst: #2c2c2c (mørk grå/sort)
   - Accent: #8b7355 (varm brun/ler farve)
   - Lys accent: #d4c5b2 (lys beige)
   - Hvid: #ffffff
   
   Font: 'Source Code Pro' for navigation (monospace som Florian)
         'Inter' eller system font for brødtekst
   =========================================== */

/* ----- RESET & BASIS STYLES ----- */
/* Fjerner standard browser styles for ensartet look */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Varm beige baggrund - ændr til #ffffff for hvid baggrund */
    background-color: #f5f0eb;
    /* Mørk grå tekst */
    color: #2c2c2c;
    /* System font stack med Inter som primær */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    /* Gør at siden fylder hele skærmen i højden */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- LINKS ----- */
a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8b7355;
}

/* ----- HEADER / NAVIGATION ----- */
header {
    background-color: #f5f0eb;
    padding: 2rem 0;
    /* Sætter headeren fast øverst */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8e0d8;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo sektion */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.site-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    font-weight: 400;
}

/* Navigation links - monospace font som Florian Gadsby */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    /* Monospace font for minimalistisk look */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    padding: 0.25rem 0;
    position: relative;
}

/* Understregning ved hover - som Florian */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #8b7355;
    transition: width 0.3s ease;
}

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

/* ----- HOVEDINDHOLD ----- */
main {
    flex: 1;
}

/* ----- FORSIDE / HERO SEKTION ----- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6b6b6b;
    max-width: 400px;
}

/* ----- KNAPPER ----- */
/* Outline knap - som Florian Gadsby */
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid #2c2c2c;
    background: transparent;
    color: #2c2c2c;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-outline:hover {
    background-color: #2c2c2c;
    color: #f5f0eb;
}

/* Tekst knap med pil */
.btn-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ----- HERO BILLEDE ----- */
.hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- SIDE INDHOLD (galleri, blog, kontakt, om) ----- */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b6b6b;
    margin-bottom: 3rem;
}

/* ----- OM MIG SIDE ----- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

/* ----- GALLERI SIDE ----- */
/* 2-kolonne grid som Florian Gadsby */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ----- LIGHTBOX (popup billede visning) ----- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #8b7355;
}

/* ----- BLOG SIDE ----- */
.blog-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e8e0d8;
    align-items: start;
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.02);
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.blog-date {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #8b7355;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.blog-excerpt {
    color: #4a4a4a;
    line-height: 1.7;
}

/* ----- BLOG INDLÆG SIDE ----- */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 2rem;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 2rem 0 1rem 0;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

/* ----- KONTAKT SIDE ----- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #6b6b6b;
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail strong {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b7355;
    margin-bottom: 0.25rem;
}

.contact-detail a,
.contact-detail p {
    color: #2c2c2c;
}

/* KONTAKT FORMULAR */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b7355;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #d4c5b2;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ----- FOOTER ----- */
footer {
    background-color: #e8e0d8;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Sociale medier ikoner */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #2c2c2c;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: #8b7355;
}

.copyright {
    font-size: 0.75rem;
    color: #6b6b6b;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
}

/* ----- RESPONSIVT DESIGN (mobil) ----- */
/* Skærme mindre end 768px (tablets og mobiler) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .page-content {
        padding: 2rem;
    }
    
    .blog-featured-image {
        height: 250px;
    }
}

/* Skærme mindre end 480px (små mobiler) */
@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.7rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* ===========================================
   ANIMATIONER
   Simple og elegante fade-in effekter
   =========================================== */

/* Grundlæggende animation klasser */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forsinkede animationer (stagger) */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

.fade-in-delay-6 {
    transition-delay: 0.6s;
}

/* Slide fra venstre */
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide fra højre */
.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animation */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header fade-in ved load */
header {
    animation: headerFadeIn 0.6s ease forwards;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero tekst animation */
.hero-content > * {
    opacity: 0;
    animation: heroTextIn 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* Hero billede animation */
.hero-image {
    opacity: 0;
    animation: heroImageIn 1s ease 0.3s forwards;
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Galleri item animation */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Blog post animation */
.blog-post {
    opacity: 0;
    transform: translateY(30px);
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Kontakt sektion animation */
.contact-info {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form {
    opacity: 0;
    transform: translateX(30px);
}

.contact-form.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Om mig sektion animation */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text {
    opacity: 0;
    transform: translateX(30px);
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Side titel animation */
.page-title {
    opacity: 0;
    transform: translateY(20px);
    animation: pageTitleIn 0.8s ease forwards;
}

@keyframes pageTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-subtitle {
    opacity: 0;
    transform: translateY(15px);
    animation: pageSubtitleIn 0.8s ease 0.2s forwards;
}

@keyframes pageSubtitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social links hover animation */
.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Button hover animation */
.btn-outline {
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #2c2c2c;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: #f5f0eb;
}

/* Form input focus animation */
.form-group input,
.form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

/* Reducer animationer for brugere der foretrækker mindre bevægelse */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-left,
    .slide-right,
    .scale-in,
    .gallery-item,
    .blog-post,
    .contact-info,
    .contact-form,
    .about-image,
    .about-text {
        opacity: 1;
        transform: none;
    }
}
