/* Global Styles */
:root {
    --primary-color: #e50914;
    --secondary-color: #222;
    --text-color: #f5f5f5;
    --dark-bg: #141414;
    --light-bg: #1f1f1f;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b2070c;
    color: white;
}

/* Header */
header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1536440136628-6b40024c6b4a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero .container {
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Movies Section */
.movies {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.movies h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile pe 1 column */
    gap: 1.5rem;
    padding: 0 15px;
}

/* Tablet pe 2 column */
.movie-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;

}

/* Desktop pe 3 column */
@media screen and (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.movie-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
}

.movie-card img {
    width: 100%;
    height: 900px;
    object-fit: cover;
    display : block;
}
@media screen and (max-width: 768px) {

    .movie-card img {

        height: 260px;

    }

}
.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.movie-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.movie-info .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Trending Section */
.trending {
    padding: 8rem 0;
    background-color: var(--dark-bg);
}

.trending h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.trending-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.trending-slider::-webkit-scrollbar {
    height: 8px;
}

.trending-slider::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.trending-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.trending-card {
    min-width: calc(25% - 8px);
    flex: 0 0 calc(25% - 8px);
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.trending-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.trending-info {
    padding: 1rem;
}

.trending-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.trending-info p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contactForm input,
#contactForm textarea {
    margin-bottom: 1rem;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: inherit;
}

#contactForm textarea {
    height: 150px;
    resize: vertical;
}

#contactForm button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contactForm button:hover {
    background-color: #b2070c;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul li {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }

    .trending-slider {
        flex-direction: column;
    }

    .trending-card {
        min-width: auto;
    }
}
.footer {
    background-color: var(--secondary-color); /* Jo color header ka hai */
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff0000; /* Hover karne par red color */
}

.footer p {
    color: #888;
    font-size: 0.8rem;
}
.page-content {
    padding-top: 120px; /* Header se niche lane ke liye */
    padding-bottom: 50px;
    min-height: 80vh; /* Taake footer bilkul nichay rahe */
    color: white;
    text-align: center;
}

.page-content h2 {
    color: #ff0000; /* Heading ko red karein */
    margin-bottom: 20px;
    font-size: 2rem;
}

.page-content p {
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto; /* Content ko center karne ke liye */
}
.search-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: #ff0000; /* Hover karne par red ho jayega */
}

/* Nav links ke darmiyan gap maintain karne ke liye */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
}
.search-container {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 20px;
    padding: 2px 10px;
}

#searchInput {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 5px;
    width: 100px; /* Mobile ke liye chota width */
}
/* =========================
   VIDEO MODAL FIX
========================= */

.modal{
    display:none;
    position:fixed;
    z-index:99999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    overflow:auto;
    background:rgba(0,0,0,0.92);
    padding-top:40px;
}

.modal-content{
    background:#111;
    margin:auto;
    width:90%;
    max-width:900px;
    border-radius:12px;
    overflow:hidden;
    position:relative;
    animation:modalOpen 0.3s ease;
}

@keyframes modalOpen{

    from{
        transform:scale(0.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

.close-btn{
    position:absolute;
    right:15px;
    top:10px;
    color:white;
    font-size:35px;
    font-weight:bold;
    cursor:pointer;
    z-index:1000;
}

.close-btn:hover{
    color:#ff0000;
}

#trailerFrame{
    width:100%;
    height:450px;
    border:none;
    background:black;
}

.movie-story-box{
    padding:20px;
    background:#1b1b1b;
}

#storyTitle{

    color:#ff0000;

    margin-bottom:18px;

    font-size:33px;

    font-weight:bold;

}

#movieStoryText{

    color:#ccc;

    line-height:1.8;

    font-size:16px;

    font-weight:400;
    text-align: justify;
}

/* Mobile Responsive */

@media(max-width:768px){

    #trailerFrame{
        height:250px;
    }

    .modal-content{
        width:95%;
    }

}
/* =========================
   MOBILE ONE COLUMN FIX
========================= */

@media screen and (max-width: 768px) {

    .movie-grid {

        display: grid;

        grid-template-columns: 1fr !important;

        gap: 20px;

    }

    .movie-card {

        width: 100%;

    }

    .trending-slider {

        display: flex;

        flex-direction: column;

    }

    .trending-card {

        width: 100%;

    }

}
.netflix-btn{

    display:inline-block;
    margin-top:10px;
    background:#000;
    color:white;
    padding:10px 18px;
    border-radius:5px;
    font-weight:bold;
    border:2px solid #e50914;
    transition:0.3s;
}

.netflix-btn:hover{

    background:#e50914;
    color:white;
}
/* =========================
   CONTACT PAGE DESIGN
========================= */

.about-box{

    background:#111;

    max-width:800px;

    margin:140px auto 50px;

    padding:40px;

    border-radius:20px;

    box-shadow:0 0 20px rgba(0,0,0,0.5);

}

.about-box h2{

    color:#ff0000;

    text-align:center;

    font-size:55px;

    margin-bottom:40px;

}

.about-box p{

    color:#ddd;

    font-size:20px;

    line-height:2;

    margin-bottom:25px;

}

.about-box span{

    color:#ff0000;

    font-weight:bold;

}

.email{

    color:#ff0000 !important;

    font-weight:bold;

}

/* MOBILE */

@media(max-width:768px){

    .about-box{

        width:90%;

        padding:25px;

    }

    .about-box h2{

        font-size:40px;

    }

    .about-box p{

        font-size:18px;

    }

}


.scroll-buttons{
    position:fixed;
    right:20px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:9999;
}

.scroll-buttons button{
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#e50914;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,.4);
}

.scroll-buttons button:hover{
    background:#b20710;
}
.scroll-buttons{
    position:fixed;
    right:15px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:99999;
}



@media (max-width:768px){
    .trending-card{
        min-width:25%;
        flex:0 0 25%;
    }

    .trending-card img{
        height:90px;
    }

    .trending-info{
        padding:6px;
    }

    .trending-info h3{
        font-size:12px;
    }

    .trending-info p{
        font-size:10px;
    }
}



.trending-slider{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}

.trending-card{
    min-width:0;
    width:100%;
}