/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: url('photo/backg2.png') no-repeat center center fixed;
    background-size: cover; 
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Header */
header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Enhanced Logo Animation */
.logo {
    display: flex;
    align-items: center;
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

#logoImage {
    width: 300px;
    height: auto;
    transition: filter 0.3s ease;
}

/* Enhanced Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}



.hero {
    padding: 180px 20px 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    /* Explicitly set text color */

    /* overflow-x: hidden; */
}
.hero img {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* Adjust the maximum height as needed */
    margin: 20px 0; /* Space around the image */
}


body {
    background-color: #000; /* Black background for the page */
    color: #fff; /* White text */
    font-family: Arial, sans-serif;
}

.coming-soon {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 2rem 0;
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(
        45deg,
        #EDF000,
        #FF7A2C,
        #FFCC3C,
        #ff3366
    );
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: gradient 8s linear infinite;
    text-shadow: 
        0 0 20px rgba(255, 51, 102, 0.5),
        0 0 40px rgba(255, 51, 102, 0.3);
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #EDF000, #FF7A2C, #ff3366);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
    animation: glow 3s ease-in-out infinite;
}

.coming-soon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #EDF000,
        #FF7A2C,
        #ff3366,
        transparent
    );
    animation: scan 2s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes scan {
    0% { transform: translateX(-200%); }
    100% { transform: translateX(150%); }
}

h1, h3 {
    color: white;
}

/* Enhanced Discord Button */
.discord-button {
    margin: 30px 0;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.2s;
}

.discord-button:hover {
    transform: scale(1.05);
}

/* Enhanced Social Icons */
.icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.4s;
}

.icon {
    width: 60px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

/* Enhanced Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.6s;
}

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-item:hover .video-title {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

footer p {
    margin: 10px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.banner {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 12px;
}

.banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0px;
}

.banner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height:40%;
  width:40%;
}

.banner-icon path {
  transition: fill 0.3s ease;
  fill: white;
  filter: drop-shadow(0 0 1px rgba(0,0,0,1));
}

.banner-icon:hover path {
  fill: url(#rainbow);
}

a.banner-icon[href=""] {
    display: none;
}

#rainbow stop {
  animation: rainbow-colors 1.5s linear infinite;
}

@keyframes rainbow-colors {
  0%   { stop-color: #F64E14; }
  20%  { stop-color: #ffe600; }
  40%  { stop-color: #c4005c; }
  60%  { stop-color: #0023FF; }
  80%  { stop-color: #a014a0; }
  100% { stop-color: #F64E14; }
}

.banner-title {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0,0,0,1);
  width: 100%;
}

.film-info {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
    padding: 4px 16px 16px 16px;
    text-align: left;
    min-width: 550px;
}

.film-info span {
    display: block;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: bold;
    line-height: 1;
    margin-top: 10px;
}

.film-info span.film-info-heading {
    font-size: 1rem;
    color: rgb(151, 151, 151);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: bold;
    margin-left: -8px;
    margin-top: 24px;
    margin-bottom: -4px;
}

.film-body {
    text-align: left;
    min-width: 300px;
}

.film-body img.poster-image {
    margin: 32px auto 16px auto;
    display: block;
}

.film-body img.poster-image[src=""] {
    display: none;
}

.film-names {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 8px;
    padding-top: 10px;
}

.film-names span {
    white-space: nowrap;
    margin-top: 0px;
}

.film-tagline {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: Courier New, monospace;
}

.film-synopsis {
    font-size: 1.3rem;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Disable cursor star effect on mobile */
    .star {
        display: none;
    }
    
    /* Simplified header for mobile */
    header {
        padding: 5px 0;
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
    }

    #logoImage {
        width: 180px;
    }

    /* Fixed navigation menu */
    .navbar-toggler {
        display: block;
        background: transparent;
        border: none;
        color: white;
        padding: 10px;
        z-index: 1001;
    }

    #navbarNav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 20px;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }

    #navbarNav.show {
        transform: translateX(0);
        right: 0;
    }

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        color: white !important;
        font-size: 20px;
        padding: 10px 0;
        display: block;
    }

    /* Optimize hero section for mobile */
    .hero {
        padding: 100px 15px 40px;
    }

    .hero h2 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    /* Optimize Discord button for mobile */
    .discord-button img {
        width: 250px;
        height: auto;
    }

    /* Optimize social icons for mobile */
    .icons {
        gap: 20px;
        margin-top: 20px;
    }

    .icon {
        width: 80px;
    }

    /* Simplify animations on mobile */
    .video-item:hover {
        transform: none;
    }

    .video-title {
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px;
    }

    /* Reduce loading animation time */
    #loading {
        transition: opacity 0.3s ease;
    }

    .film-info {
        width: 100%;
        min-width: auto;
    }

    .film-info span {
        font-size: 1.2rem;
    }

    .film-info span.film-info-heading {
        font-size: 0.7rem;
    }

    .banner-title {
        bottom: 4px;
        font-size: 1.5rem;
    }

    .banner {
        margin-bottom: 4px;
    }
}

/* Loading Animation */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

#loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Star Cursor Animation */
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: starMove 0.8s ease-out forwards;
}

@keyframes starMove {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) scale(0);
        opacity: 0;
    }
}

.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    text-shadow: 
      0 0 0 rgb(255 0 0), 
      0 0 0 rgb(0 255 0), 
      0 0 0 rgb(0 0 255);
    font-size: 30px;
    color: white; /* Set font color to white */
    animation: l32 1s infinite cubic-bezier(0.5,-2000,0.5,2000);
}
.loader:before {
    content: "Loading...";
}

@keyframes l32 {
    25%, 100% {
        text-shadow: 
           0.03px -0.01px 0.01px rgb(255 0 0), 
           0.02px  0.02px 0     rgb(0 255 0), 
          -0.02px  0.02px 0     rgb(0 0 255);
    }
}

