/* Cinema Website - Main Stylesheet with Responsive Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@media screen and (max-width: 375px) {

* {
    /* overflow-x: hidden; */
}
}
:root {
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --black: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray-800: #2a2a2a;
    --gray-400: #9ca3af;
    --orange: #FF7F50;
    --orange-light: #FF8C69;
    overflow-x: hidden;


    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */
    --spacing-2xl: 4rem;
    /* 64px */
    --spacing-3xl: 5rem;
    /* 80px */

    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--black);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 4rem;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-800);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 var(--spacing-2xl);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    background: var(--gold);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

.nav-menu {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    font-size: 1.1rem;
}

.nav-menu a {
    padding: 0.5rem 0.75rem;
    /* border-radius: 6px; */
}

.nav-menu a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.02);
}

/* show inset underline on hover/focus for top-level tabs */
.nav-menu a:hover,
.nav-menu a:focus {
    box-shadow: inset 0 -3px 0 0 var(--gold);
    color: var(--gold);
}

.nav-menu a.active {
    color: var(--gold);
    /* inset underline using box-shadow to avoid layout shift */
    box-shadow: inset 0 -3px 0 0 var(--gold);
}

/* Show inset underline for the Pages toggle when its dropdown is active/hovered */
.dropdown.active>.dropdown-toggle,
.dropdown:hover>.dropdown-toggle,
.dropdown:focus-within>.dropdown-toggle {
    color: var(--gold);
    box-shadow: inset 0 -3px 0 0 var(--gold);
}

/* Keep Pages underline visible when hovering any child in the dropdown */
.dropdown:hover>.dropdown-toggle,
.dropdown:focus-within>.dropdown-toggle,
.dropdown .dropdown-menu:hover~.dropdown-toggle {
    box-shadow: inset 0 -3px 0 0 var(--gold);
}

/* Keep dropdown toggle positioned normally (no extra padding required) */
.dropdown>.dropdown-toggle {
    position: relative;
}

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

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: var(--gold);
}

.dropdown-toggle svg {
    transition: transform 0.3s;
}

.dropdown.active .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Show dropdown on hover or when focused for keyboard accessibility
   Use opacity + transform so the menu can be hovered during transition
   and avoid a gap that makes the menu hide when moving the cursor */

   
.dropdown-menu {
    top: 100%;
     position: absolute;
    left: 0;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: var(--gray-dark);
    border: 1px solid var(--gray-800);
    width: 14rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    /* disabled when hidden */
    transition: opacity 160ms ease, transform 160ms ease;
    overflow: hidden;
    z-index: 40;
}

@media screen and (min-width: 1024px) {
   .dropdown-menu {
    margin-top: 20px;

    position: absolute;
    top: 100%;
    /* sit directly below the toggle */
    left: 0;
    width: 14rem;
    background: var(--gray-dark);
    border: 1px solid var(--gray-800);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    /* disabled when hidden */
    transition: opacity 160ms ease, transform 160ms ease;
    overflow: hidden;
    z-index: 40;
}
}

/* When open (hover/focus/active) make it visible */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}



/* Make other dropdown items use a subtler accent and hover state */
.dropdown-menu a:not(:first-child) {
    background: transparent;
    color: white;
}

.dropdown-menu a:not(:first-child):hover,
.dropdown-menu a:not(:first-child):focus {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
}

/* When dropdown is open, color the toggle to gold for visual connection */
.dropdown:hover>.dropdown-toggle,
.dropdown:focus-within>.dropdown-toggle,
.dropdown.active>.dropdown-toggle {
    color: var(--gold);
    padding-bottom: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--gold);
}

.btn-primary {
    background: var(--gold);
    color: black;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Ensure hamburger is visible on very small screens */
@media (max-width: 479px) {
    .mobile-menu-toggle {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    /* Hide GET TICKETS button on very small screens to save space */
    .btn-primary {
        display: none;
    }
}

/* Mobile menu: side-drawer with backdrop and proper scrolling */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        /* sit below the nav bar */
        left: 0;
        width: min(280px, 85vw);
        /* drawer width responsive */
        height: calc(100vh - 80px);
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
        transform: translateX(-100%);
        transition: transform 220ms ease;
        display: flex;
        flex-direction: column;
        padding: 1rem 0.5rem;
        gap: 0.5rem;
        z-index: 1100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Backdrop element that covers the page when drawer is open */
    .mobile-backdrop {
        inset: 80px 0 0 0;
        /* cover area below the nav */
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        z-index: 1090;
    }

    /* When open, slide drawer in and show backdrop */
    .nav-menu.mobile-open {
        transform: translateX(0);
    }

    .mobile-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Ensure the menu items sit above the backdrop */
    .nav-menu>* {
        position: relative;
        /* z-index: 1110; */
    }

    /* Close button inside the drawer - hidden by default, shown when drawer is open */
    .mobile-close-btn {
        display: none;
        /* hidden until drawer opens */
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: right;
        cursor: pointer;
        position: sticky;
        /* keep visible at top while scrolling */
        top: 0;
        z-index: 1120;
        /* above drawer content */
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent);
    }

    /* Show close button when drawer is open */
    .nav-menu.mobile-open .mobile-close-btn {
        display: block;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a,
    .dropdown-toggle {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 80px;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 800px;
    }
}

.mobile-close-btn {
    display: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .slide-content {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .slide-content {
        padding: 0 var(--spacing-2xl);
    }
}

.slide-content-inner {
    max-width: 700px;
    padding: 0 50px;
}

.slide-subtitle {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .slide-subtitle {
        font-size: 0.875rem;
    }
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    animation: slideUp 0.8s ease-out;
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .slide-title {
        font-size: 4rem;
    }
}

.slide-description {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .slide-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .slide-description {
        font-size: 1.25rem;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .slider-nav {
        padding: 1rem;
    }
}

.slider-nav:hover {
    background: var(--gold);
    color: black;
}

.slider-nav.prev {
    left: 0.5rem;
}

.slider-nav.next {
    right: 0.5rem;
}

@media (min-width: 768px) {
    .slider-nav.prev {
        left: 1rem;
    }

    .slider-nav.next {
        right: 1rem;
    }
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .slider-dots {
        bottom: 2rem;
    }
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--gold);
    width: 2rem;
}

/* Sections */
section {
    padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--spacing-3xl) 0;
    }
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: var(--spacing-3xl);
    }
}

.section-subtitle {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-xs);
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .grid {
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: var(--spacing-xl);
    }
}

.grid-2 {
    grid-template-columns: 1fr;
}

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

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

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

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

@media (min-width: 768px) {
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
    border: 1px solid var(--gray-800);
    padding: var(--spacing-md);
    transition: all 0.3s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .card {
        padding: var(--spacing-lg);
    }
}

.card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.card-icon {
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
}

.card:hover .card-title {
    color: var(--gold);
}

.card-description {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Movie Card */
.movie-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.movie-card-image {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--gray-dark);
}

.movie-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.movie-card-info {
    padding: var(--spacing-sm) 0;
}

.movie-category {
    color: var(--gold);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.movie-title {
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .movie-title {
        font-size: 1.125rem;
    }
}

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

/* Movie Slider */
.movie-slider {
    position: relative;
}

.movie-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .movie-track {
        gap: var(--spacing-lg);
    }
}

.movie-track::-webkit-scrollbar {
    display: none;
}

.movie-track .movie-card {
    min-width: 200px;
}

@media (min-width: 768px) {
    .movie-track .movie-card {
        min-width: 250px;
    }
}

@media (min-width: 1024px) {
    .movie-track .movie-card {
        min-width: 280px;
    }
}

/* Footer */
footer {
    background: linear-gradient(to bottom, var(--gray-dark) 0%, black 100%);
    border-top: 1px solid var(--gray-800);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-col h3 {
        font-size: 1.25rem;
    }
}

.footer-col p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    background: var(--gray-dark);
    border: 1px solid var(--gray-800);
    color: var(--gray-400);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: black;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.p-1 {
    padding: var(--spacing-sm);
}

.p-2 {
    padding: var(--spacing-md);
}

.p-3 {
    padding: var(--spacing-lg);
}

@media (max-width: 1023px) {
   .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu{
    opacity: 0;

    }
     .dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

}

/* Stack the contact info + form on small screens */
@media (max-width: 768px) {
  /* Targets the parent grid that uses inline `grid-template-columns: 2fr 3fr` */
  div[style*="grid-template-columns: 2fr 3fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Make sure the inner two-column form fields stack too */
  #contactForm > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Full width for the form card and padding adjustments */
  #contactForm,
  #contactForm input,
  #contactForm select,
  #contactForm textarea,
  #contactForm .btn-primary {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Reduce hero/top margin so stacked layout looks better on small screens */
  section[style*="margin-top: 80px"] { margin-top: 56px !important; }

  /* Optional: slightly reduce hero title size on small devices */
  section h1 { font-size: clamp(2rem, 6vw, 3rem); }
}

