/* style.css */
body {
    background-color: #141414; /* Dark Netflix background */
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 80px;
}

.container2{
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 10px;
}
.custom-underline {
  text-decoration: underline;
  text-decoration-color: #E50914; /* You can change the color */
  text-decoration-thickness: 1.5px;  /* Control the thickness */
  text-underline-offset: 6px;     /* Moves the line down */
}
.category-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px; /* Increased gap slightly for cleaner scaling */
    padding: 10px;
}

.desc{
       font-size: 20px; font-weight: 750; line-height: 1.1;
    margin-bottom: 10px; letter-spacing: -0.5px;
}

.movie-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    
    /* 1. The "Little Border" - subtle and dark */
    border: 3px solid rgba(255, 255, 255, 0.1); 
    
    /* Ensures the border is inside the card's dimensions */
    box-sizing: border-box; 
    
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.movie-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}



/* Enhanced Hover Effect */
.movie-card:hover {
    transform: scale(1.1); /* Zoom in */
    z-index: 10; /* Bring to front so it doesn't overlap behind neighbors */
    
    /* Red glow shadow matching your custom-underline color */
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4); 
    
    border-color: rgba(255, 255, 255, 0.5); 
    filter: brightness(1.1); /* Slight brighten effect */
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .movie-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); }
}