/* Base styles */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 35 100% 55%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 210 100% 50%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 35 100% 55%;
  --radius: 0.5rem;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 35 100% 55%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 210 100% 50%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 84.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 35 100% 55%;
}

/* Global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans',sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
html.dark body {
  background-color: #121212;
  color: #fff;
}

html:not(.dark) body {
  background-color: #fff;
  color: #000;
}


html.dark main {
  background: radial-gradient(at 0% 0%, #201a23 0%, #2c2a3d45 30%, #1d182096 70%);
    background-color: #000000;
}



img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-8 {
  padding-top: 1rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.m-1 {
  margin: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-4 {
  margin: 1rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
  padding-right: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-8 {
  margin-left: 2rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-4 {
  margin-right: 1rem;
}

/* Typography */
.text-xs {
  font-size: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  list-style-type: none;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-white {
  color: white;
}

.text-primary {
  color: #ff9800;
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

/* Backgrounds */
.bg-background {
  background-color: #000;
}

html.dark .bg-background {
  background-color: #121212;
}

html:not(.dark) .bg-background {
  background-color: #fff;
}

.bg-card {
  background-color: hsl(var(--card));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-black {
  background-color: black;
}

html.dark .bg-black {
  background-color: #121212;
}

html:not(.dark) .bg-black {
  background-color: #000;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-green-600 {
  background-color: #16a34a;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.bg-amber-600 {
  background-color: #d97706;
}

.bg-red-600 {
  background-color: #dc2626;
}

.bg-teal-600 {
  background-color: #0d9488;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:bg-green-700:hover {
  background-color: #15803d;
}

.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}

.hover\:bg-amber-700:hover {
  background-color: #b45309;
}

.hover\:bg-red-700:hover {
  background-color: #b91c1c;
}

.hover\:bg-teal-700:hover {
  background-color: #0f766e;
}

.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}

.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}

.bg-black\/70 {
  background-color: rgba(0, 0, 0, 0.7);
}

.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-black\/95 {
  background-color: rgba(0, 0, 0, 0.95);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/70 {
  --tw-gradient-from: rgba(0, 0, 0, 0.7);
  --tw-gradient-stops: var(--tw-gradient-from), transparent;
}

.from-primary\/20 {
  --tw-gradient-from: hsl(var(--primary) / 0.2);
  --tw-gradient-stops: var(--tw-gradient-from), transparent;
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.to-secondary {
  --tw-gradient-to: hsl(var(--secondary));
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: hsl(var(--border));
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: hsl(var(--border));
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: hsl(var(--border));
}

.border-r {
  border-right-width: 1px;
  border-right-style: solid;
  border-right-color: hsl(var(--border));
}

.border-l {
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: hsl(var(--border));
}

.border-gray-700 {
  border-color: #374151;
}

.border-border {
  border-color: hsl(var(--border));
}

/* Rounded corners */
.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.top-0 {
  top: 0;
}

.top-2 {
  top: 0.5rem;
}

.top-2\.5 {
  top: 0.625rem;
}

.top-3 {
  top: 0.75rem;
}

.top-4 {
  top: 1rem;
}

.top-6 {
  top: 1.5rem;
}

.right-4 {
  right: 1rem;
}

.right-6 {
  right: 1.5rem;
}

.bottom-0 {
  bottom: 0;
}

.bottom-6 {
  bottom: 1.5rem;
}

.left-0 {
  left: 0;
}

.left-2 {
  left: 0.5rem;
}

.left-3 {
  left: 0.75rem;
}

.left-\[0\] {
  left: 0;
}

.z-50 {
  z-index: 50;
}

.z-\[60\] {
  z-index: 60;
}

.z-\[9999\] {
  z-index: 9999;
}

/* Display */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.hidden {
  display: none !important;
}

/* Width & Height */
.w-full {
  width: 100%;
}

.w-\[90\%\] {
  width: 90%;
}

.w-\[250px\] {
  width: 250px;
}

.w-\[280px\] {
  width: 280px;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-9 {
  height: 2.25rem;
}

.h-14 {
  height: 3.5rem;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-full {
  max-width: 100%;
}

/* Aspect ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-\[2\/3\] {
  aspect-ratio: 2 / 3;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Transforms */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.hover\:opacity-100:hover {
  opacity: 1;
}

/* Pointer events */
.pointer-events-none {
  pointer-events: none;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

/* Backdrop filter */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  max-width: 1400px;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:text-base {
    font-size: 1rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex {
    display: flex;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:py-12 {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:text-5xl {
    font-size: 3rem;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Components */

/* Header */
.header {
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 80px;
  display: flex;
  align-items: center;
  width: 100%;
  transition: background-color 0.3s ease;
}

html.dark .header {
  background-color: rgba(8,8,8,.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  
}

html:not(.dark) .header {
  background-color: #fff;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.logo {
  color: #ff9800;
  font-weight: 800;
  font-size: 2rem;
  font-family: 'Trebuchet Ms';
}

/* Menu toggle button */
.menu-toggle {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

html:not(.dark) .menu-toggle {
  color: black;
}

/* Search toggle button */
.search-toggle {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

html:not(.dark) .search-toggle {
  color: black;
}

/* Theme toggle button */
.theme-toggle {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

html:not(.dark) .theme-toggle {
  color: black;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

html:not(.dark) .theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Main navigation - SINGLE MENU STRUCTURE */
.main-nav {
  /* Default state for mobile - hidden and positioned for sidebar */
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  z-index: 55;
  padding: 4rem 1rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

html:not(.dark) .main-nav {
  background-color: #fff;
}

/* When menu is open on mobile */
.main-nav.open {
  transform: translateX(0);
  backdrop-filter: blur(16px);
  
}

.dropdown-menu {
  list-style-type: none; /* Remove bullets */
}

.dropdown-menu li {
  list-style: none; /* Ensure no bullets on list items */
}
/* Remove focus outline and box-shadow for all elements */
*:focus {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent; /* For mobile Safari */
}

/* Optional: Provide custom focus styles for accessibility if desired */
a:focus,
button:focus,
input:focus {
  outline: none;
  box-shadow: none;
  /* Example custom focus styles (optional) */
  /* border: 2px solid #4CAF50; */
}

/* Desktop styles for the same menu */
@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
  .main-nav {
    /* Reset mobile styles */
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    transform: none;
    box-shadow: none;
    overflow-y: visible;
    display: flex;
    flex: 1;
    margin-left: 2rem;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Mobile-specific nav list styling */
@media (max-width: 767px) {
  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Desktop-specific nav list styling */
@media (min-width: 768px) {
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}

.nav-item {
  position: relative;
}

/* Mobile-specific nav item styling */
@media (max-width: 767px) {
  .nav-item {
    margin-bottom: 0.25rem;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  font-weight: 700;
}

html:not(.dark) .nav-link {
  color: black;
}

/* Mobile-specific nav link styling */
@media (max-width: 767px) {
  .nav-link {
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    justify-content: space-between;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  html:not(.dark) .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* Desktop-specific nav link styling */
@media (min-width: 768px) {
  .nav-link {
    padding: 0 0.75rem;
    height: 56px;
  }
}

.nav-link:hover {
  color: #ff9800;
}

.dropdown-indicator {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

/* Mobile-specific dropdown styling */
@media (max-width: 767px) {
  .dropdown-menu {
    display: none;
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter : blur(16px);
    
  }
  
  html:not(.dark) .dropdown-menu {
    border-left-color: rgba(0, 0, 0, 0.1);
  }
  
  .dropdown-menu.open {
    display: block;
  }
}

/* Desktop-specific dropdown styling */
@media (min-width: 768px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
  }
  
  html:not(.dark) .dropdown-menu {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

html:not(.dark) .dropdown-item {
  color: rgba(0, 0, 0, 0.8);
}

.dropdown-item:hover {
  color: #ff9800;
}

/* Mobile-specific dropdown item styling */
@media (max-width: 767px) {
  .dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  html:not(.dark) .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* Desktop-specific dropdown item styling */
@media (min-width: 768px) {
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  html:not(.dark) .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* Search container */
.search-container {
  position: relative;
  margin-left: auto;
  margin-right: 0.5rem;
  display: none;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
    align-items: center;
  }
}

.search-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.375rem;
  color: white;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  width: 250px;
  font-size: 0.875rem;
}

html:not(.dark) .search-input {
  background-color: rgba(0, 0, 0, 0.1);
  color: black;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

html:not(.dark) .search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

html:not(.dark) .search-icon {
  color: rgba(0, 0, 0, 0.7);
}

/* Search overlay */
#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

html.dark #search-overlay {
    backdrop-filter: blur(10px);
    background-color: rgb(0 0 0 / 46%);
}

html:not(.dark) #search-overlay {
  background-color: rgba(255, 255, 255, 0.95);
}

.search-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.search-icon-overlay {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  height: 1rem;
  width: 1rem;
}

html:not(.dark) .search-icon-overlay {
  color: rgba(0, 0, 0, 0.7);
}

.search-input-overlay {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  color: white;
  font-size: 1rem;
}

html:not(.dark) .search-input-overlay {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #333;
}

.search-input-overlay::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

html:not(.dark) .search-input-overlay::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.search-submit {
  width: 100%;
  background-color: #ff9800;
  color: black;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Latest releases section */
.latest-releases {
  padding: 0;
  margin-top: 2rem;
}

.latest-releases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.latest-releases-title {
  font-size: 1.4rem;
  font-weight: 700;
}

html:not(.dark) .latest-releases-title {
  color: #000;
}

.latest-releases-links {
  display: flex;
  gap: 1rem;
}

.latest-releases-link {
  color: #fff;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

html:not(.dark) .latest-releases-link {
  color: #000;
}

.latest-releases-link:hover {
  color: #ff9800;
}

/* Card grid */
.card-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 5px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .card-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 25px;
      justify-content: center;
      flex-wrap: wrap;
      grid-auto-rows: 1fr;
  }
}

/* Movie cards */
.movie-card {
  position: relative;
  border-radius: calc(0.5rem - 2px);
  overflow: hidden;
  background-color: #1a1a1a40;
  transition: transform 0.2s ease;
  display: block;
}


html:not(.dark) .movie-card {
  background-color: #f5f5f5;
}

.movie-card:hover {
  transform: translateY(-5px);
}

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

.movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.movie-card-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.movie-card-format {
    transition: backdrop-filter 0.3s ease-in-out;
    transform: translateZ(0);
    backdrop-filter: blur(5px);
    background-color: rgb(241 199 199 / 35%);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.movie-card-content {
  padding: 0.7rem;
  padding-top: 0.5rem;
}

/* Fix movie card title to wrap instead of truncate */
.movie-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  word-break: break-word;
  /* min-height: 2.6em; */
  font-size: 1.095rem;
  text-align: left;
}

html:not(.dark) .movie-card-title {
  color: #333;
}

.movie-card-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: .4rem;
}

html:not(.dark) .movie-card-meta {
  color: rgba(0, 0, 0, 0.7);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: transparent;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-item:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.pagination-item.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.pagination-next,
.pagination-prev {
  padding: 0;
  width: 2.5rem;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  background-color: #ff9800;
  color: black;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.material-symbols-outlined {
  font-size: 2rem !important;
  vertical-align: sub !important;
}
.search-form {
  margin-bottom: 20rem;
}
.navbar-brand>img {
    display: block;
    position: relative;
    bottom: -5px;
    height: 70px;
    width: auto;
    margin-top: -6px;
}