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

:root {
    --bg-dark: #0a0a0a; 
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --purple-primary: #8b5cf6;
    --purple-secondary: #a78bfa;
    --purple-glow: #7c3aed;
    --accent-orange: #f50bce;
    --accent-orange-hover: #4824fb;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #2d2d3a;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}


.navbar {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #880c69;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}


.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(136, 12, 105, 0.5);
}

.logo img {
    width: 35px;
    height: auto;
    
}



.logo-icon {
    font-size: 32px;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    list-style: none;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #880c69;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.location-selector:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.city-dropdown {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    background-color: #141414;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.city-dropdown:hover {
    background-color: #1f1f1f;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.city-dropdown option {
    background-color: #141414;
    color: #ffffff;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.profile-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #240930, #270238);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.profile-avatar:hover::before {
    animation: shimmer 0.6s ease-in-out;
    opacity: 1;
}

.profile-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #111;
    padding: 14px;
    border-radius: 10px;
    min-width: 190px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.profile-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.3s ease;
}

.profile-dropdown p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 12px;
    word-break: break-all;
}

#logoutBtn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #5e0993;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#logoutBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#logoutBtn:hover::before {
    width: 300px;
    height: 300px;
}

#logoutBtn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #111;
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.sign-in-btn {
    background: var(--gradient-purple);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sign-in-btn::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;
}

.sign-in-btn:hover::before {
    left: 100%;
}

.sign-in-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-secondary);
}


.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background:#880c69;;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}



.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}



@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.movie-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #880c69;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-purple);
    border-radius: 2px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,  #880c69 0%, transparent 100%);
}


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


.movie-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    animation: fadeInUp 0.8s ease-out backwards;
}

.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 16px;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color:  #880c69;;
    box-shadow: 0 20px 40px rgba(152, 25, 231, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
}

.movie-card:hover::before {
    opacity: 0.05;
}


.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #240930, #270238);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #111;
    padding: 14px;
    border-radius: 10px;
    min-width: 190px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    display: none;
}

.profile-dropdown p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 12px;
    word-break: break-all;
}

#logoutBtn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #5e0993;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

#logoutBtn:hover {
    background: #7c3aed;
}

.sign-in-btn {
    background: linear-gradient(135deg, #762987, #47294b);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}


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


.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.watch-btn {
    background: #880c69;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.watch-btn::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 ease;
}

.watch-btn:hover {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 8px 25px rgba(238, 92, 246, 0.6);
}

.watch-btn:hover::before {
    left: 100%;
}

.movie-card:hover .watch-btn {
    transform: translateY(0);
}


.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.movie-card:hover .rating-badge {
    background: rgba(139, 92, 246, 0.9);
    transform: scale(1.1);
}

.star {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.rating {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}


.movie-info {
    padding: 1.2rem;
    position: relative;
    z-index: 1;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.movie-card:hover .movie-title {
    color: var(--purple-secondary);
}

.movie-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.movie-lang {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.footer-logo img{
    width:35px;
    height: auto;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 80px;
    text-align: left;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #880c69;
}

.footertext{
    margin-right:2px;
    color: #880c69;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    width: 100%;
    text-align: center;
    margin-top: 30px;

}


@media (max-width: 768px) {
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .movie-title {
        font-size: 1rem;
    }
    
    .watch-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}


@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}


.movie-section:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    margin-top: 4rem;
}
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .quick-links {
        display: none;
    }
    
    .slide-info h2 {
        font-size: 36px;
    }
    
    .movie-card {
        width: 180px;
    }
    
    .movie-poster {
        height: 270px;
    }
}
