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

:root {
    --bg-primary: #000;
    --bg-secondary: #161616;
    --text-primary: #f8fafc;
    --text-secondary: #fff;
    --accent: #A6292F;
    --card-bg:   #161616;
    --border:  #A6292F;
    --text-secondary2: #fff;
}

.light-mode {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --text-primary: #fff;
    --text-secondary: #fff;
    --text-secondary2: #000;
    --accent: #A6292F;
    --card-bg: #ffffff;
    --border:  #A6292F;
}

body {
    font-family: "Manrope";
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

header {
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;

}

.light-mode header {
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}



.theme-toggle {
    background-color: transparent;
border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    height: 45px;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(15deg);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: slideRotate 10s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

@keyframes slideRotate {
    0% {
        opacity: 0;
        z-index: 1;
    }
    4% {
        opacity: 1;
        z-index: 2;
    }
    45% {
        opacity: 1;
        z-index: 2;
    }
    50% {
        opacity: 0;
        z-index: 1;
    }
    100% {
        opacity: 0;
        z-index: 1;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.hero-slide:hover .hero-background img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5), transparent);
}



.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    max-width: 700px;
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);

}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.movies-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-secondary2);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary2);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.movie-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;

    transition: all 0.3s;

    cursor: pointer;
}

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

}

.movie-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.movie-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover .movie-card-image img {
    transform: scale(1.1);
}

.movie-card-content {
    padding: 1.5rem;
}

.movie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.movie-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary2);
}

.movie-card-badge {
    background-color: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.movie-card-cast {
    font-size: 0.875rem;
    color: var(--text-secondary2);
    margin-bottom: 1rem;
}

.movie-card-cast strong {
    color: var(--text-secondary2);
}

.movie-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary2);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    overflow: hidden;
}

.movie-card-buttons {
    display: flex;
    gap: 0.5rem;
}

.card-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.card-btn-primary {
    background-color: var(--accent);
    color: white;
}

.card-btn-primary:hover {
    background-color: #000;
}

.card-btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.card-btn-secondary:hover {
    background-color: #fff;
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary2);
}

.footer-section p,
.footer-section li {
    font-size: 0.875rem;
    color: var(--text-secondary2);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}