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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #441b00 0%, #ff0000e0 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

nav a:hover,
nav a:focus {
    color: hsl(0, 100%, 43%);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

h1 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.trilogy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.movie-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.movie-card:hover,
.movie-card:focus-within {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.movie-poster {
    width: 100%;
    height: 450px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid #000000;
    position: relative;
    overflow: hidden;
}

.movie-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.imgcars1 {
    scale: 55%;
}

.imgcars2 {
    scale: 50%
}

.imgcars3 {
    scale: 90%;
}

.movie-info {
    padding: 2rem;
}

.movie-info h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.movie-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #808080 0%, #2c2c2c 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

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

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .trilogy-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .movie-info h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }
}