
/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Dark Theme */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation - Dark Theme */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

nav ul li a:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #4ecdc4;
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Section Styling - NO SPACING BETWEEN SECTIONS */
section {
    padding: 0;
    margin: 0;
    background: transparent;
}

.section-title {
    color: #2c3e50;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: bold;
    padding-top: 2rem;
}

/* Now Showing Section */
#now-showing {
    margin-top: 70px;
    padding: 2rem 0;
    min-height: 70vh;
    margin-bottom: 2rem;
}

/* Movies Grid - 4 cards in a row with equal height - ALWAYS 4 COLUMNS */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    align-items: stretch;
}

/* Movie Card with Flexbox for equal height content */
.movie-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Movie Poster - INCREASED HEIGHT */
.movie-poster {
    position: relative;
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-img {
    transform: scale(1.05);
}

/* New Release Badge */
.new-release {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Movie Info - REDUCED PADDING AND SPACING */
.movie-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.movie-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
    min-height: 2.4em;
}

/* Movie Details - REDUCED SPACING */
.movie-details {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    min-height: 1.8rem;
}

.language, .genre {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #666;
}

/* Showtimes - REDUCED SPACING */
.showtimes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    flex-grow: 1;
    align-content: flex-start;
}

.showtime {
    background: #e8f4fd;
    color: #1976d2;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Book Now Button - REDUCED PADDING */
.book-now {
    width: 100%;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.book-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.book-now:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.book-now:hover::before {
    left: 100%;
}

/* Offers Section - NO TOP PADDING */
#offers {
    padding: 0;
    margin: 0;
}

#offers .section-title {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 2rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.offer-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    max-width: 600px;
    margin: 0 auto;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offer-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section - NO TOP PADDING */
.testimonials {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
}

.testimonials .section-title {
    padding-top: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.testimonial-video {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-video-element {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-video-element:hover {
    transform: scale(1.02);
}

/* Footer - NO TOP MARGIN */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin: 0;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design - SCALED FOR 1366x768 TO MAINTAIN 4 COLUMNS */

/* Special scaling for 1366x768 resolution */
@media screen and (max-width: 1366px) and (min-width: 1201px) {
    .container {
        max-width: 98%;
        padding: 0 10px;
    }

    .movies-grid {
        gap: 5px;
        margin: 25px 0;
        justify-items: center;
    }

    .movie-card {
        max-width: 210px;
        width: 100%;
    }

    /* INCREASED IMAGE HEIGHT FOR 1366x768 */
    .movie-poster {
        height: 260px;
    }

    /* REDUCED CONTENT HEIGHT FOR 1366x768 */
    .movie-info {
        padding: 8px;
    }

    .movie-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
        min-height: 1.8em;
    }

    .movie-details {
        margin-bottom: 6px;
        min-height: 1.5rem;
        gap: 6px;
    }

    .language, .genre {
        padding: 1px 4px;
        font-size: 0.6rem;
    }

    .showtimes {
        gap: 3px;
        margin-bottom: 6px;
    }

    .showtime {
        padding: 2px 4px;
        font-size: 0.55rem;
    }

    .book-now {
        padding: 5px;
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .offer-image {
        height: 280px;
    }
}

/* For resolutions between 1200px and 1366px */
@media (max-width: 1200px) and (min-width: 901px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .movie-card {
        max-width: 220px;
    }

    .movie-poster {
        height: 320px;
    }
}

/* Only break to 3 columns below 900px */
@media (max-width: 900px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .movie-card {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .movie-card {
        max-width: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .offer-image {
        height: 400px;
    }

    .video-container {
        max-width: 250px;
    }

    nav {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    #now-showing {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-container {
        max-width: 200px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animated Horizontal Line After Now Showing Section */
#now-showing::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #1976d2 25%,
        #42a5f5 50%,
        #1976d2 75%,
        transparent 100%
    );
    margin: 0;
    position: relative;
    overflow: hidden;
    animation: moveGradient 4s ease-in-out infinite;
}

#now-showing::after {
    animation: shimmer 3s infinite;
}

/* Alternative animated line with moving gradient */
.animated-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #1976d2 20%,
        #42a5f5 40%,
        #4ecdc4 60%,
        #1976d2 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: moveGradient 4s ease-in-out infinite;
    margin: 0 auto 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.3);
}

/* Keyframe animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes moveGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Pulsing animated line option */
.pulse-divider {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #1976d2);
    margin: 2rem auto;
    border-radius: 2px;
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Growing line animation */
.grow-divider {
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    margin: 2rem auto;
    border-radius: 2px;
    animation: growLine 2s ease-out forwards;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

@keyframes growLine {
    0% {
        width: 0;
    }
    100% {
        width: 60%;
    }
}

/* Focus states for accessibility */
button:focus,
.cta-button:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}