/* Custom CSS for MapMovies OTT Landing Page */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #1a1a1a;
    --dark-bg: #0d0d0d;
    --darker-bg: #000000;
    --accent-color: #0056b3;
    --text-light: #ffffff;
    --text-muted: #808080;
    --text-gray: #666666;
    --border-color: #333333;
    --hover-color: #0056b3;

    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    --gradient-dark: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #000000 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 50%, rgba(0, 0, 0, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-silver: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);

    /* Advanced Shadows */
    --shadow-dark: 0 25px 50px rgba(0, 0, 0, 0.7);
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 123, 255, 0.3);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6);

    /* Animation Variables */
    --animation-speed: 0.4s;
    --bounce-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.01em;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030;
}

.navbar.scrolled {
    background: var(--darker-bg) !important;
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 1rem 2rem;
    transition: all var(--animation-speed) var(--bounce-easing);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    border-radius: 30px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    height: 100vh;
    padding-top: 80px;
    background: var(--gradient-dark);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%),
        url('../assets/BG-POSTER.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
    max-height: 100vh;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 86, 179, 0.08) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23e50914" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ff6b35" opacity="0.02"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    animation: grain 8s linear infinite;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, transparent 60%);
    opacity: 1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: heroTitleReveal 1.2s var(--bounce-easing);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-title .text-primary {
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-item {
    padding: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item h6 {
    color: var(--text-gray);
    font-weight: 600;
}

.hero-image {
    text-align: center;
    animation: fadeInRight 1s ease-out 0.3s both;
    /* No longer needed for video preview */
    min-height: 200px;
}

/* Video preview styles removed - no longer needed */

/* Section Positioning */
section:not(.hero-section) {
    scroll-margin-top: 100px;
    position: relative;
    z-index: 10;
}

/* Signup Section */
#signup {
   
    padding-top: 12rem;
    padding-bottom: 12rem;
    background-color: var(--dark-bg);
}

.signup-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(30px);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    z-index: 0;
}

.signup-card > * {
    position: relative;
    z-index: 1;
}

.signup-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-control {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-gray);
}

/* Trending Section */
#trending {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--dark-bg);
}

/* Content Cards */
.content-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--animation-speed) var(--smooth-easing);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: var(--shadow-card);
    animation: cardReveal 0.6s var(--smooth-easing);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
    z-index: 0;
}

.content-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.content-card:hover::before {
    opacity: 0.05;
}

.content-card:nth-child(even) {
    animation-delay: 0.1s;
}

.content-card:nth-child(3n) {
    animation-delay: 0.2s;
}

.content-card:nth-child(4n) {
    animation-delay: 0.3s;
}

.content-image {
    height: 250px;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--animation-speed) ease;
    padding: 8px;
    box-sizing: border-box;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background:
        radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(0, 86, 179, 0.2) 0%, transparent 70%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%); */
    transition: all var(--animation-speed) ease;
    z-index: 1;
}

/* .content-card:hover .content-image::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.5) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(0, 86, 179, 0.3) 0%, transparent 70%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
} */

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.content-card:hover .content-overlay {
    opacity: 1;
}

.play-btn {
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.content-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-info h6 {
    margin: 0;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FFD700;
    font-weight: 600;
}

/* About Section */
#about {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.stat-card {
    background: var(--secondary-color);
    padding: 2rem 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 600;
    margin: 0;
}

/* Contact Section */
#contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--dark-bg);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--text-gray);
}

/* Footer */
footer {
    background: var(--darker-bg) !important;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-links .social-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.newsletter-form .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border-right: none;
    border-radius: 0;
}

.newsletter-form .btn {
    border-left: none;
    border-radius: 0;
}

/* Advanced Animations */
@keyframes backgroundFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -10px) rotate(1deg); }
    100% { transform: translate(10px, -5px) rotate(-0.5deg); }
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(-15%, 10%); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0%); }
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(5px);
    }
    70% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes underlineReveal {
    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(15deg);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--shadow-card); }
    50% { box-shadow: var(--shadow-glow); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section {
        height: calc(100vh - 60px);
        min-height: 500px;
        padding-top: 60px;
        background-size: cover, cover;
        background-position: center, center;
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%),
            url('../assets/BG-POSTER.jpg');
    }

    .content-image {
        height: 200px;
    }

    .signup-card {
        padding: 2rem 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: calc(100vh - 60px);
        min-height: 450px;
        padding-top: 60px;
        padding-bottom: 2rem;
        background-size: cover, cover;
        background-position: center top, center;
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%),
            url('../assets/BG-POSTER.jpg');
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .content-image {
        height: 180px;
    }

    .play-btn {
        font-size: 2rem;
    }

    /* Video preview styles removed */
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-section {
        height: calc(100vh - 60px);
        min-height: 400px;
        max-height: 600px;
        padding-top: 60px;
        padding-bottom: 1.5rem;
        background-attachment: scroll;
        background-size: cover, cover;
        background-position: center 20%, center;
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.4) 100%),
            url('../assets/BG-POSTER.jpg');
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn.loading {
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}