/* =========================
   CINEX MAGAZINE STYLE
========================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

:root{
    --ink:#0F0F0F;
    --cream:#FAFAF7;
    --newsprint:#F0EBE0;
    --red:#E63329;
    --rule:#C8C2B8;
    --muted:#7A7570;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--cream);
    color:var(--ink);
    font-family:'Space Mono', monospace;
}

/* NAVBAR */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 4%;
    border-bottom:2px solid var(--ink);
    background:white;
}

.logo{
    font-family:'Playfair Display', serif;
    font-size:3rem;
    font-weight:900;
}

.navbar ul{
    display:flex;
    list-style:none;
    gap:25px;
}

.navbar ul li a{
    text-decoration:none;
    color:var(--ink);
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.75rem;
}

.navbar ul li a:hover{
    color:var(--red);
}

.nav-btn a{
    text-decoration:none;
    background:var(--ink);
    color:white;
    padding:10px 20px;
    text-transform:uppercase;
    letter-spacing:2px;
}

.nav-btn a:hover{
    background:var(--red);
}

/* TITLE */

h1{
    text-align:center;
    font-family:'Playfair Display', serif;
    font-size:4rem;
    margin:50px 0;
    font-weight:900;
    border-bottom:2px solid var(--ink);
    padding-bottom:20px;
}

/* MOVIE GRID */

.movies{
    width:92%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:0;
    border-left:1px solid var(--rule);
    border-top:1px solid var(--rule);
}

/* MOVIE CARD */

.movie{
    background:white;
    border-right:1px solid var(--rule);
    border-bottom:1px solid var(--rule);
    padding:20px;
    transition:.3s;
}

.movie:hover{
    background:var(--newsprint);
}

.movie img{
    width:100%;
    height:450px;
    object-fit:cover;
    display:block;
    margin-bottom:15px;
    transition:.4s;
}

.movie:hover img{
    transform:scale(1.03);
}

/* MOVIE TITLE */

.movie h4{
    font-family:'Playfair Display', serif;
    font-size:1.6rem;
    margin-bottom:10px;
}

/* MOVIE TEXT */

.movie p{
    font-size:.75rem;
    line-height:1.8;
    color:var(--muted);
}

/* FOOTER */

.footer{
    margin-top:80px;
    background:var(--ink);
    color:white;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:50px;
    padding:50px 5%;
}

.footer h2{
    font-family:'Playfair Display', serif;
    margin-bottom:15px;
}

.footer p,
.footer a{
    color:rgba(255,255,255,.7);
    text-decoration:none;
    line-height:1.8;
}

.footer a:hover{
    color:var(--red);
}

.footer-copy{
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    padding:15px;
    font-size:.7rem;
    letter-spacing:2px;
}

/* RESPONSIVE */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:15px;
    }

    .navbar ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    h1{
        font-size:2.5rem;
    }

    .movie img{
        height:350px;
    }
}

/* CONTACT SECTION */
.contact {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}

.info-box p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--rule);
    border-radius: 5px;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.contact-form button {
    padding: 12px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: darkred;
}

/* RESPONSIVE CONTACT */
@media(max-width: 768px){
    .contact {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 50px auto;
    }

    .contact-info h1 {
        font-size: 2rem;
    }
}

/* ABOUT HERO SECTION */
.about-hero-section {
    width: 100%;
    padding: 100px 5%;
    background: var(--newsprint);
    text-align: center;
}

.about-hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--muted);
}

/* ABOUT CARDS */
.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    border: 1px solid var(--rule);
    padding: 30px;
    border-radius: 8px;
    transition: 0.3s;
}

.about-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media(max-width:768px){
    .about-hero-section h1 {
        font-size: 2.2rem;
    }

    .about-hero-section p {
        font-size: 1rem;
    }
}

/* LOGIN PAGE */
.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--newsprint);
    font-family: 'Playfair Display', serif;
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: 0.3s;
}

.login-box h1 {
    margin-bottom: 25px;
    font-size: 2rem;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    padding: 12px 15px;
    border: 1px solid var(--rule);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: var(--red);
}

.login-box button {
    padding: 12px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: darkred;
}

.login-box h6 {
    margin-top: 20px;
    font-size: 0.85rem;
}

.login-box h6 a {
    color: var(--red);
    text-decoration: none;
}

.login-box h6 a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media(max-width:480px){
    .login-box {
        padding: 30px 20px;
    }

    .login-box h1 {
        font-size: 1.8rem;
    }
}