* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b0b0b;
    color: white;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #e50914;
}

header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

header nav a:hover {
    color: #e50914;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Video styling */
.hero-video {
    position: absolute;
    top: 70%;
    left: 40%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay for dark effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Hero text styling */
.hero-text {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
}


/* Characters Section */
.characters {
    padding: 60px 20px;
    text-align: center;
    background: #0b0b0b;
}

.characters h2 {
    color: #e50914;
    font-size: 2em;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

/* Card Style */
.character-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    opacity: 0; /* animation start */
    animation: fadeUp 0.8s ease forwards;
}

/* Hover Effect */
.character-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

/* Character Image Swap */
.character-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.character-img img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.character-img .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.character-card:hover .img-default {
    opacity: 0;
    transform: scale(1.05);
}

.character-card:hover .img-hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Card Text */
.character-card h3 {
    margin-top: 15px;
    color: #fff;
    font-size: 1.3em;
}

.character-card p {
    font-size: 0.95em;
    color: #ccc;
    margin-top: 8px;
    line-height: 1.5;
}

/* Load Animation */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.character-card:nth-child(1) { animation-delay: 0.2s; }
.character-card:nth-child(2) { animation-delay: 0.4s; }
.character-card:nth-child(3) { animation-delay: 0.6s; }
.character-card:nth-child(4) { animation-delay: 0.8s; }


/* About Section */
.about {
    padding: 50px;
    text-align: center;
    background: #141414;
}

.about h2 {
    color: #e50914;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: black;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #bbb;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    header nav {
        margin-top: 10px;
    }
}
/* Animation Keyframes */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to character cards */
.character-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0; /* Start hidden */
    animation: fadeUp 0.8s ease forwards;
}

/* Stagger animation for each card */
.character-card:nth-child(1) { animation-delay: 0.2s; }
.character-card:nth-child(2) { animation-delay: 0.4s; }
.character-card:nth-child(3) { animation-delay: 0.6s; }
.character-card:nth-child(4) { animation-delay: 0.8s; }
