/* Bakgrundsbild  */
html {
    height: 100vh;
    width: 100vw;
    background-color: #090B0C; /* fallback to avoid white bars on mobile */
}

/* background image as actual <img> tag for better iOS compatibility */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 0;
}

/* Dark gradient overlay on top of background image */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #090B0C; /* ensure body also uses dark fallback */
    background: transparent; /* ensure body is transparent to show .site-bg */
}

/* Centrera logotypen */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3; /* above fog and gradient overlay */
    overflow: hidden; /* clip area if needed */
}

/* Logotypens storlek */
.logo-container img {
    width: 750px;      /* justera om du vill */
    max-width: 80vw;   /* responsivt på mobiler */
    height: auto;
    position: relative;
    z-index: 2;
}

/* Subtle moving fog overlay using blurred radial gradients */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* above background gradient, below logo */
    mix-blend-mode: screen; /* brighten and make fog more visible */
    opacity: 0.75; /* stronger fog for larger puffs */
    filter: blur(36px); /* increased blur to suit doubled size */
    will-change: transform, opacity; /* hint to browser to optimize animation */
}

body::before {
    background: radial-gradient(closest-side at 8% 18%, rgba(255,255,255,0.42), rgba(255,255,255,0) 36%),
                radial-gradient(closest-side at 82% 38%, rgba(255,255,255,0.36), rgba(255,255,255,0) 34%),
                radial-gradient(closest-side at 50% 72%, rgba(255,255,255,0.30), rgba(255,255,255,0) 38%);
    transform: translate(-15%, -2%) scale(2); /* scale puffs to double size */
    animation: fogMove1 36s ease-in-out infinite alternate;
}

body::after {
    background: radial-gradient(closest-side at 18% 62%, rgba(255,255,255,0.34), transparent 36%),
                radial-gradient(closest-side at 72% 18%, rgba(255,255,255,0.28), transparent 36%);
    transform: translate(15%, 1.5%) scale(2); /* scale puffs to double size */
    animation: fogMove2 54s ease-in-out infinite alternate;
    opacity: 0.75;
    filter: blur(44px);
}

@keyframes fogMove1 {
    0%   { transform: translate(-40%, -6%) scale(2); opacity: 0.52; }
    50%  { transform: translate(18%, 6%) scale(2.06); opacity: 0.88; }
    100% { transform: translate(-40%, -6%) scale(2); opacity: 0.52; }
}

@keyframes fogMove2 {
    0%   { transform: translate(40%, 6%) scale(2); opacity: 0.50; }
    50%  { transform: translate(-18%, -6%) scale(2.04); opacity: 0.86; }
    100% { transform: translate(40%, 6%) scale(2); opacity: 0.50; }
}
/* End of fog styles */