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

body, html {
    width: 100%;
    height: 100%;
    background-color: #05080a;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 110%; /* Extra size for panning */
    height: 110%;
    position: absolute;
    top: -5%;
    left: -5%;
    background-image: url('viking_background.png');
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.6) contrast(1.1);
    animation: panBackground 25s ease-in-out infinite alternate;
    transition: margin 0.2s ease-out; /* Match with JS parallax */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 20, 25, 0.2) 0%, rgba(5, 8, 10, 0.85) 100%);
    z-index: 2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
}

@keyframes panBackground {
    0% {
        transform: scale(1) translate(-2%, -2%);
    }
    50% {
        transform: scale(1.05) translate(2%, 1%);
    }
    100% {
        transform: scale(1) translate(-1%, 2%);
    }
}

@keyframes drift {
    0% {
        transform: translateY(10px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) translateX(20px);
        opacity: 0;
    }
}

.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.brand {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f0f0f0;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(184, 134, 11, 0.4);
    opacity: 0;
    animation: fadeInDown 2s forwards 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.separator {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(193, 154, 91, 0.8), transparent);
    margin: 24px 0;
    opacity: 0;
    animation: expandLine 1.5s forwards 1.8s ease-in-out;
}

.slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 0.25em;
    color: #d1d9e0;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 2s forwards 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

@keyframes expandLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 65%;
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .brand { font-size: 3.5rem; }
    .slogan { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    .brand { font-size: 2.5rem; letter-spacing: 0.1em; }
    .slogan { font-size: 0.9rem; letter-spacing: 0.15em; }
    .separator { width: 80% !important; }
}