:root {
  --bg-red-dark: #2a0004;
  --bg-red: #7a0013;
  --bg-bright: #d1002f;
  --accent: #ff3b3b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text: #ececf2;
  --muted: #c7c7d0;
  --card-radius: 18px;
  --transition: 280ms cubic-bezier(.2, .9, .2, 1);
  --shuffle-transition: 600ms cubic-bezier(.4, 0, .2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
  touch-action: manipulation;
}

html.no-js .reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
}

.light-trail {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 81, 0.4), transparent);
  animation: moveTrail 10s linear infinite;
}

.trail-1 {
  width: 100%;
  height: 2px;
  top: 20%;
}

.trail-2 {
  width: 100%;
  height: 2px;
  top: 50%;
  animation-delay: 2s;
}

.trail-3 {
  width: 100%;
  height: 2px;
  top: 80%;
  animation-delay: 4s;
}

.spiral-trail {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spiral-inner {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 42, 81, 0.3);
  border-radius: 50%;
  animation: spinSpiral 15s linear infinite;
}

.lens-flare {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 42, 81, 0.2), transparent);
  top: 30%;
  left: 70%;
  animation: flarePulse 5s ease-in-out infinite;
}

@keyframes moveTrail {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spinSpiral {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flarePulse {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.2; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.16));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 0;
}

.navbar:after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.10), rgba(255, 255, 255, 0.04));
  animation: glowSlow 6s ease-in-out infinite;
}

@keyframes glowSlow {
  0% { transform: scale(0.995); opacity: 0.55; }
  50% { transform: scale(1.01); opacity: 0.8; }
  100% { transform: scale(0.995); opacity: 0.55; }
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  z-index: 1003;
}

.brand .logo {
  width: 90px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

/* Updated Navbar Styles - Fixed for Mobile */
header { position: sticky; top: 0; z-index: 1000; }
.navbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.16));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 0;
}
.navbar:after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.10), rgba(255, 255, 255, 0.04));
  animation: glowSlow 6s ease-in-out infinite;
}
@keyframes glowSlow {
  0% { transform: scale(0.995); opacity: 0.55; }
  50% { transform: scale(1.01); opacity: 0.8; }
  100% { transform: scale(0.995); opacity: 0.55; }
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  z-index: 1003;
}
.brand .logo {
  width: 106px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}
.brand .title { font-weight: 800; font-size: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  justify-content: center;
}
.nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.nav-links li:hover .dropdown-content { display: flex; }
.nav-links .dropdown-content a {
  padding: 10px 15px;
  color: var(--muted);
  display: block;
}
.nav-links .dropdown-content a:hover {
  color: var(--text);
  background: rgba(255, 42, 81, 0.1);
}

/* Auth Buttons - Always Visible */
.auth-buttons {
  display: flex !important;
  gap: 12px;
  align-items: center;
  z-index: 1003;
  flex-shrink: 0;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1003;
  background: none;
  border: none;
  padding: 5px;
  margin-left: 10px;
}
.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 3px 0;
  transition: 0.4s;
  border-radius: 2px;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.auth-btn {
  display: inline-block !important;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), #b3002a);
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 42, 81, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: Poppins, sans-serif;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.auth-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(45deg, #ff6a6a, var(--accent));
}
.auth-btn:before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.12), rgba(255, 255, 255, 0.06));
  filter: blur(10px);
  opacity: 0.85;
  transition: opacity .25s ease, transform .25s ease;
}
.auth-btn:hover:before {
  transform: scale(1.04);
  opacity: 1;
}

/* Mobile Styles - FIXED */
@media (max-width: 980px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    gap: 10px;
  }
  .brand {
    flex: 0 0 auto;
    order: 1;
  }
  .brand .logo { 
    width: 80px; 
    height: 42px; 
  }
  .brand .title { 
    font-size: 16px; 
  }
  .auth-buttons {
    display: flex !important;
    gap: 8px;
    align-items: center;
    z-index: 1003;
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
  }
  .auth-btn { 
    padding: 8px 12px !important; 
    font-size: 13px !important;
    min-width: 60px;
  }
  .menu-toggle { 
    display: flex !important;
    flex: 0 0 auto;
    order: 3;
  }
  .menu-toggle .bar { 
    width: 22px; 
    height: 2px; 
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    order: 4;
    flex-basis: 100%;
    justify-content: center;
    gap: 0;
  }
  .nav-links.active { 
    display: flex !important; 
  }
  .nav-links ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .nav-links .dropdown-content {
    position: static;
    background: rgba(255, 42, 81, 0.1);
    border-radius: 0;
    box-shadow: none;
    display: none;
    margin: 0;
    padding: 0;
  }
  .nav-links .dropdown.active .dropdown-content {
    display: flex;
  }
  .nav-links .dropdown-content a {
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .auth-buttons { 
    gap: 6px;
  }
  .auth-btn { 
    padding: 6px 10px !important; 
    font-size: 12px !important;
    min-width: 55px;
  }
  .brand .logo { 
    width: 70px; 
    height: 36px; 
  }
}

@media (max-width: 480px) {
  .navbar .container {
    padding: 0 8px;
    gap: 8px;
  }
  .auth-buttons { 
    gap: 4px;
  }
  .auth-btn { 
    padding: 5px 8px !important; 
    font-size: 11px !important;
    min-width: 50px;
  }
  .brand .logo { 
    width: 60px; 
    height: 32px; 
  }
}

section.gallery {
  padding: 60px 0;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  position: relative;
}

.poster {
  background: var(--glass-strong);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.poster:hover {
  box-shadow: 0 12px 30px rgba(255, 42, 81, 0.6);
  transform: scale(1.1);
  z-index: 10;
}

.poster img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.poster::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--card-radius);
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.06), rgba(255, 255, 255, 0.02));
  filter: blur(8px);
  opacity: 0.8;
  z-index: -1;
  transition: opacity var(--transition), transform var(--transition);
}

.poster:hover::before {
  transform: scale(1.06);
  opacity: 0.9;
}

.poster.shuffling {
  position: absolute;
  transition: transform var(--shuffle-transition);
  z-index: 5;
}

.reveal {
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition: opacity 500ms cubic-bezier(.2, .9, .2, 1), transform 500ms cubic-bezier(.2, .9, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#sentinel {
  height: 80px;
  width: 100%;
}

/* Floating WhatsApp Button - Matching Auth Page Style */
.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 16px;
  right: 16px;
  background: linear-gradient(180deg, var(--accent), #b3002a);
  color: var(--text);
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(255, 42, 81, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2.2s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(255, 42, 81, 0.3);
}

.whatsapp-float i { 
  line-height: 56px; 
}

.whatsapp-float:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.12), rgba(255, 255, 255, 0.06));
  filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: -1;
}

.whatsapp-float:hover:before {
  transform: scale(1.04);
  opacity: 0.85;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.16));
  backdrop-filter: blur(8px);
  padding: 60px 0 120px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.footer:after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
  background: linear-gradient(90deg, rgba(255, 42, 81, 0.10), rgba(255, 255, 255, 0.04));
  animation: glowSlow 6s ease-in-out infinite;
}

.footer-header {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  font-size: 24px;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.social-links a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 300px;
}

.newsletter input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}

.newsletter input::placeholder {
  color: var(--muted);
}

.newsletter button {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(180deg, var(--accent), #b3002a);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.newsletter button:hover {
  transform: translateY(-3px);
  background: linear-gradient(45deg, #ff6a6a, var(--accent));
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .auth-buttons {
    display: flex !important;
  }
  
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    gap: 10px;
    padding: 0 15px;
  }
  
  .brand {
    flex: 0 0 auto;
    order: 1;
    z-index: 1003;
  }
  
  .brand .logo {
    width: 80px;
    height: 42px;
  }
  
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    z-index: 1003;
    background: none;
    border: none;
    padding: 10px;
    flex: 0 0 auto;
    order: 3;
    position: relative;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 2px;
    display: block;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    width: 100vw;
    height: calc(100vh - 70px);
    padding: 30px 20px;
    z-index: 1002;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-links.active {
    display: flex !important;
  }
  
  .nav-links ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a {
    display: block;
    padding: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 42, 81, 0.2);
  }
  
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 42, 81, 0.1);
    color: var(--accent);
  }

  .nav-links .dropdown-content {
    position: static;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .nav-links .dropdown.active .dropdown-content {
    display: flex;
  }

  .nav-links .dropdown-content a {
    padding: 10px 15px;
    font-size: 14px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  .newsletter form {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .newsletter input {
    width: 100%;
    max-width: 250px;
  }

  .newsletter button {
    width: 100%;
    max-width: 150px;
  }

  .footer-header {
    padding: 0 20px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-header p {
    font-size: 14px;
  }

  .social-links a {
    font-size: 20px;
  }

  .poster:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 768px) {
  .poster-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .poster img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .whatsapp-float { 
    width: 50px; 
    height: 50px; 
    font-size: 24px; 
    bottom: 15px; 
    right: 15px; 
  }
  .whatsapp-float i { 
    line-height: 50px; 
  }
}

@media (max-width: 480px) {
  .whatsapp-float { 
    width: 60px; 
    height: 60px; 
    font-size: 30px; 
    bottom: 10px; 
    right: 10px; 
  }
  .whatsapp-float i { 
    line-height: 40px; 
  }
}

.nav-links .dropdown-content a {
  pointer-events: auto !important;
  position: relative;
  z-index: 9999;
}