* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100vh;
    overflow: scroll;
    background-color: #3a505a;
    font-family: 'Oswald', sans-serif;
}

/* Header Styling */
.main-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    background: rgb(17, 23, 26);
}

/* Navigation Links (Left) */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.desktop-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: #a0a0a0;
    text-decoration: underline;
}

/* Header Right Section (Icons & Burger) */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a img:hover {
    opacity: 1;
}

/* Burger Button */
.burger {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.burger .line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.burger.active .line-1 {
    transform: translateY(7px) rotate(45deg);
}

.burger.active .line-2 {
    opacity: 0;
}

.burger.active .line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Full-Screen Overlay Nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-nav-overlay nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.mobile-nav-overlay .some {
    display: flex;
    gap: 20px;
}

.mobile-nav-overlay .some img {
    width: 22px;
    filter: brightness(0) invert(1);
}


/* Cast Grid Layout */
.cast-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 25px 40px 25px;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
    

    background-color: #3a505a;

    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('img gallery/img bagrund.jpeg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cast-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    color: #ffffff;
}

.cast-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
}

.cast-info {
    width: 100%;
    text-align: left;
    color: #ffffff;
}

.actor-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #ffffff;
}

.character-name {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.95;
    color: #ffffff;
}

.actor-bio {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.85;
    color: #ffffff;
}


.mobil-footer {
    width: 100%;
    background-color: rgb(17, 23, 26);
    padding: 20px 0 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 304px;
}

.footer-logo {
    height: auto;
    max-height: 20px;
    object-fit: contain;


}

/* Desktop */
@media screen and (min-width: 1200px) {
    body {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .mobil-index {
        width: 100%;
        height: 100vh;
    }

    .cast-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Tablet */
@media screen and (min-width: 600px) and (max-width: 1199px) {
    body {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .mobil-index {
        width: 100%;
        height: 100vh;
    }

    .cast-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}