@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html{
    scroll-behavior: smooth;
}
*{
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
:root{
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --card-bg: #1f1f23;
    --border-color: #27272a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body{
    background: var(--primary-color);
    background-image: 
        radial-gradient(at 40% 20%, hsla(228,100%,74%,0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189,100%,56%,0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355,100%,93%,0.1) 0px, transparent 50%);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
}


header{
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(10, 10, 10, 0.9);
}

header .logo{
    height: 60px;
    width: 180px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

.logo p{
    margin-left: 15px;
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img{
    width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo img:hover {
    box-shadow: var(--shadow-lg);
}

.search{
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 400;
    width: 300px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search:focus{
    outline: 0;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.search::placeholder{
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

main{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.movie {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.movie:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.movie img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.movie:hover img {
    transform: scale(1.05);
}

.movie-info{
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.movie-info h3{
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.movie-info span{
    background: var(--card-bg);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    min-width: 45px;
    text-align: center;
}

.green{
    color: var(--success-color);
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.orange{
    color: var(--warning-color);
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.red{
    color: var(--error-color);
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.overview{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 30%);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid var(--border-color);
}

.movie:hover .overview{
    transform: translateY(0);
}

.overview h3{
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Tags Section */
#tags {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    gap: 0.75rem;
}

.tag {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: capitalize;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.tag:hover::before,
.tag.highlight::before {
    left: 0;
}

.tag:hover,
.tag.highlight {
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}


.know-more{
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.know-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.know-more:hover::before {
    left: 100%;
}

.know-more:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

.know-more:active {
    transform: translateY(0) scale(0.98);
}
/* Modern Modal Overlay */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    width: 100%;
}

/* Modal Content Container */
.overlay-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.2s;
}

.overlay.active .overlay-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.des{
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.des h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.des h2 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.des h4 {
    color: var(--warning-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
  
/* Close Button */
.overlay .closebtn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.overlay .closebtn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

/* Video Embeds */
.embed {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

.embed.hide {
    display: none;
}

.embed.show {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation Arrows */
.arrow {
    position: absolute;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.arrow:hover {
    color: var(--text-primary);
    background: var(--accent-color);
    transform: scale(1.1);
}

.arrow.left-arrow {
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
}

.arrow.right-arrow {
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
}

/* Dots Navigation */
.dots {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dots .dot {
    padding: 0.75rem 1rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dots .dot:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: scale(1.1);
}

.dots .dot.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--text-primary);
    transform: scale(1.1);
}

.fa-star {
    color: var(--warning-color);
}

.no-results {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.page {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.current {
    padding: 1rem 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }
    
    .search {
        width: 100%;
        max-width: 300px;
    }
    
    main {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .movie {
        border-radius: 15px;
    }
    
    .movie img {
        height: 350px;
    }
    
    .des {
        padding: 1.5rem;
    }
    
    .des h1 {
        font-size: 2rem;
    }
    
    .overlay .closebtn {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .arrow {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .arrow.left-arrow {
        left: 1rem;
    }
    
    .arrow.right-arrow {
        right: 1rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo p {
        display: none;
    }
    
    main {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .movie img {
        height: 300px;
    }
    
    .des h1 {
        font-size: 1.5rem;
    }
    
    .des h2 {
        font-size: 1rem;
    }
    
    .embed {
        margin: 0.5rem 0;
    }
}