/*
  This file will be used by Tailwind CSS.
  If not using Tailwind, initial global styles can go here.
  For a "modern slick 2025" feel, we'd typically include:
  - A CSS reset or normalize.css (Tailwind includes its own preflight).
  - Font imports (e.g., Google Fonts).
  - Basic body styling (background, text color, default font).
*/

/* Example of a font import if we weren't using Tailwind and wanted to load one manually */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* Tailwind directives will be added here during setup */ 

/*
  This is a basic CSS file that emulates some of Tailwind's utility classes.
  In a production environment, we would use Tailwind CSS properly configured.
*/

/* Base Styles */
:root {
    --primary-color: #2c3e50; /* Dark Slate Blue */
    --secondary-color: #34495e; /* Wet Asphalt */
    --accent-color: #e67e22; /* Carrot Orange */
    --text-color: #34495e; /* Wet Asphalt */
    --light-text: #ecf0f1; /* Clouds - Very Light Grey */
    --background-color: #ffffff; /* White */
    --container-width: 1200px;
    --section-bg-light: #f8f9fa; /* Very light grey for section backgrounds */
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    clear: both;
}

/* New Side-View Train Loader Styles */
.side-train-loader-container {
    width: 280px;
    height: 100px; 
    position: relative;
    overflow: hidden; 
    background-color: var(--light-text); 
    border-radius: 8px;
    padding: 10px 0;
}

.side-train {
    position: absolute;
    height: 40px;
    bottom: 16px;
    left: 0;
    display: flex;
    align-items: flex-end; 
    animation: side-train-move 4s infinite linear;
    z-index: 10; /* Position train above bottom rail but below top rail */
}

.train-car {
    height: 100%; 
    background-color: var(--primary-color); 
    border-radius: 3px; 
    position: relative;
    margin-right: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    overflow: visible; /* Ensure child elements can overflow */
}

.locomotive-side {
    width: 70px;
    height: 100%;
    border-radius: 5px 3px 3px 3px;
    position: relative;
    background-color: #15233a;
    border: none;
}

/* CRITICAL: Create the rod first, before any possible covering elements */
.locomotive-rod, .carriage-rod {
    display: none; /* Hide the coupling rods */
}

/* Now all other styling */
.locomotive-side:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 8px;
    background-color: #333;
    border-radius: 3px;
    bottom: 0;
    left: -8px;
    z-index: 1;
}

.carriage-side {
    width: 85px;
    height: 90%;
    margin-top: auto;
    border-radius: 3px;
    background-color: #15233a;
    border: none;
}

/* Remove all :after pseudo-elements to prevent conflicts */
.locomotive-side:after, .carriage-side:after {
    display: none;
}

.carriage-side:before {
    display: none;
}

.chimney-side {
    width: 12px;
    height: 16px;
    background-color: #333;
    position: absolute;
    bottom: 100%;
    left: 10px;
    border-radius: 3px 3px 0 0;
}

.chimney-side:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 5px;
    background-color: #222;
    top: -3px;
    left: -2px;
    border-radius: 2px;
}

.cabin-side {
    width: 30px;
    height: 15px;
    background-color: var(--primary-color); 
    position: absolute;
    bottom: 100%;
    right: 5px;
    border-radius: 4px 4px 0 0;
    border-top: 2px solid #1a2a3a;
}

.cabin-side:before { 
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    background: #aebfc9; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1px;
    border: 1px solid #333;
}

.window-carriage {
    width: 18px;
    height: 12px;
    background-color: #aebfc9; 
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    border-radius: 2px;
    border: 1px solid #333;
}

.carriage-side .window-carriage:nth-child(1) {
    left: 10px;
}

.carriage-side .window-carriage:nth-child(2) {
    right: 10px;
}

.wheel-side {
    width: 12px;
    height: 12px;
    background-color: #1A1A1A;
    border: 2px solid #555;
    border-radius: 50%;
    position: absolute;
    bottom: -3px;
    animation: side-wheel-rotate 0.8s infinite linear;
    z-index: 8; /* Make sure wheels are below the coupling rods */
}

.wheel-side:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #555;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.locomotive-side .w1 { left: 12px; }
.locomotive-side .w2 { left: 48px; }
.carriage-side .w3 { left: 15px; }
.carriage-side .w4 { left: 60px; }

.track-side {
    width: 100%;
    height: 6px;
    background-color: #555;
    position: absolute;
    bottom: 12px;
    left: 0;
    border-radius: 0;
    z-index: 5; /* Base track is below everything */
}

/* Bottom rail - displays below train */
.track-side:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #777;
    bottom: -4px;
    z-index: 5; /* Below train */
}

/* Top rail - MUST display ABOVE train */
.track-side:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #777;
    top: -4px;
    z-index: 50; /* ABOVE train and coupling rods */
}

/* Track ties/sleepers */
.track-side .tie {
    width: 10px;
    height: 14px;
    background-color: #8B4513;
    position: absolute;
    bottom: -4px;
    z-index: 1;
}

@keyframes side-train-move {
    0% {
        transform: translateX(280px); 
    }
    100% {
        transform: translateX(-170px);
    }
}

@keyframes side-wheel-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes side-rod-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navigation */
.main-nav {
    background-color: var(--secondary-color);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-logo {
    margin-right: 30px;
    flex-shrink: 0;
}

.nav-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    transform: none;
    padding: 0;
    margin: 0;
}

.nav-logo .logo-svg {
    width: 60px;
    height: 40px;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-logo:hover .logo-svg {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transform: translateY(-2px);
}

.nav-logo .logo-bg {
    fill: url(#logo-gradient);
}

.nav-logo .logo-text {
    fill: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    dominant-baseline: central;
}

.nav-logo .logo-line {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-logo .logo-suffix {
    color: var(--light-text);
    display: inline-block;
    transition: opacity 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 20px;
    margin: 0;
    padding: 0;
    line-height: 60px;
    vertical-align: middle;
}

.nav-logo:hover .logo-suffix {
    opacity: 0.9;
}

.nav-items {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    gap: 20px;
    justify-content: flex-end;
}

.nav-item {
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 60px;
    padding: 0 10px;
    white-space: nowrap;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover:after {
    width: 80%;
}

.nav-item:hover {
    color: #fff;
}

/* Dynamic breakpoint - show hamburger when text gets squeezed */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex !important; /* Force display */
    }
    
    .nav-items {
        display: flex !important; /* Always display */
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #34495e;
        flex-direction: column;
        z-index: 100;
    }
    
    .nav-items.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .store-info {
        padding: 15px;
    }
    
    .logo-image {
        max-width: 250px;
    }
    
    .store-name {
        font-size: 20px;
    }
    
    .opening-title {
        font-size: 18px;
    }
    
    .weekdays, .saturday {
        font-size: 16px;
    }
    
    .discount-list li {
        padding: 10px;
        font-size: 14px;
    }
    
    .brand-logos {
        gap: 15px;
    }
    
    .brand-logo {
        height: 40px;
    }
}

/* Hero Section */
.hero-section {
    background-repeat: repeat;
    padding: 60px 0;
    position: relative;
    background-attachment: fixed;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 67, 122, 0.8), rgba(79, 129, 189, 0.8));
    opacity: 0.6;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo-image {
    max-width: 343px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: translateY(-5px);
}

.store-info {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.store-name {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 28px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.store-name:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.opening-hours {
    margin: 30px 0;
    padding: 25px;
    background-color: var(--section-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.496);
    border-left: 4px solid var(--accent-color);
}

.opening-title {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.weekdays, .saturday {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.hours {
    color: #2a9d8f;
    font-weight: bold;
    background-color: rgba(42, 157, 143, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.product-categories {
    font-size: 18px;
    font-style: italic;
    margin: 25px 0;
    line-height: 1.6;
    color: #555;
}

.contact-info {
    margin-top: 25px;
    line-height: 2;
    background-color: var(--section-bg-light);
    padding: 20px;
    border-radius: 10px;
}

.contact-info .email a {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 22px;
    transition: all 0.3s ease;
}

.contact-info .email a:hover {
    color: #d45c00;
    text-decoration: underline;
}

/* Map Styles */
.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-link {
    margin-top: 10px;
    text-align: right;
}

.map-link a {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(230, 126, 34, 0.1);
    transition: all 0.3s ease;
}

.map-link a:hover {
    background-color: rgba(230, 126, 34, 0.2);
    transform: translateY(-2px);
}

/* Discount Section */
.discount-section {
    background-color: var(--section-bg-light);
    padding: 60px 0;
    text-align: center;
}

.discount-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.discount-section h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.discount-list {
    list-style-type: none;
    max-width: 800px;
    margin: 30px auto;
}

.discount-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background-color: white;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    text-align: center;
    background-color: white;
}

.brands-section h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.brands-section h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.brand-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--secondary-color); /* Match header's dark color */
    color: var(--light-text); /* Consistent light text */
    padding: 30px 0 70px; /* Adjusted padding, bottom still accounts for ticker */
    text-align: center;
    border-top: 1px solid var(--primary-color); /* Subtle top border */
}

/* Ticker Tape */
.ticker-tape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 90; /* Reduced from 100 to be below the menu */
}

.ticker-tape p {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    display: inline-block;
    padding-left: 100%;
    font-size: 16px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Utility Classes (Mimicking Tailwind) */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.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; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.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); }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-800 { background-color: #1e40af; }
.text-white { color: white; }
.text-gray-700 { color: #374151; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-red-500 { color: #ef4444; }
.text-green-600 { color: #059669; }
.transition { transition: all 0.3s ease; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-75:hover { opacity: 0.75; }
.hidden { display: none; }
.grid { display: grid; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.border-t { border-top-width: 1px; }
.border-gray-700 { border-color: #374151; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-h-full { max-height: 100%; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-12 { height: 3rem; }
.h-64 { height: 16rem; }
.w-full { width: 100%; }
.object-contain { object-fit: contain; }
.focus\:outline-none:focus { outline: none; }
.inline-block { display: inline-block; }
.mr-2 { margin-right: 0.5rem; }

/* Header & Navigation */
header {
  /* border-bottom: 1px solid #e5e7eb; */ /* Ensure this is removed or commented out if it exists */
  border-bottom: none; /* Explicitly remove if it was here */
}

header a {
  text-decoration: none;
}

/* Hero Section with Gradient */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
  --tw-gradient-stops: #2563eb, #1e40af;
}

.to-blue-800 {
  --tw-gradient-stops: var(--tw-gradient-stops, transparent), #1e40af;
}

/* Loading Animation */
#loading-overlay {
  transition: opacity 0.5s ease;
}

.loading-animation {
  width: 200px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Media Queries */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; }
}

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

@media (max-width: 767px) {
  .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile menu fixes */
body.menu-open .ticker-tape {
    display: none;
}

/* Navigation Item fixes */
@media (max-width: 992px) {
    /* Other existing styles */
    
    .nav-item {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.3rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        color: var(--light-text);
        padding: 12px 0;
        text-align: center;
        width: auto;
        max-width: 80%;
        display: inline-block;
        position: relative;
        line-height: normal;
        height: auto;
        transition: color 0.3s ease;
    }

    .nav-item:after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 2px !important;
        width: 0;
        max-width: 100%;
        background-color: var(--accent-color);
        transition: width 0.3s ease;
        opacity: 1;
        transform: none;
    }
    
    .nav-item[href*="Konference"]:after,
    .nav-item[href*="5phobby"]:after,
    .nav-item[href*="eshop"]:after {
        height: 2px !important;
        transform: none;
        opacity: 1;
    }
    
    .nav-item:hover:after, 
    .nav-item:focus:after {
        width: 100%;
    }
} 

/* Make sure the mobile menu has higher z-index */
@media (max-width: 992px) {
    .nav-items {
        z-index: 100;
    }
} 

/* Hamburger menu - only visible on mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 150;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Navigation Logo */
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-text);
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin-right: 20px;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    /* Fix excessive spacing between navigation items */
    .nav-items {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 80%;
        max-width: 800px;
        margin-left: auto;
        margin-right: 0;
    }
    
    .nav-item {
        padding: 0;
        flex: 1;
        text-align: center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 15px !important;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
    }
    
    .nav-item:hover {
        color: #fff;
    }
    
    /* Fixed width underlines */
    .nav-item:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 15px;
        left: 0;
        right: 0;
        margin: 0 auto;
        background-color: var(--accent-color);
        transition: width 0.3s ease;
    }
    
    .nav-item:hover:after {
        width: 80%;
    }
} 

/* Fix for text size consistency across all screen widths */
.nav-item {
    font-size: 15px !important; /* Force consistent font size */
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

/* Make sure font sizes don't increase on narrower screens */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-item {
        font-size: 15px !important;
        padding: 0 10px;
    }
    
    .nav-items {
        gap: 0;
    }
}

/* Prevent browser auto text sizing on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Only allow font size changes at the mobile breakpoint */
@media (max-width: 768px) {
    .nav-item {
        font-size: 1.3rem !important; /* Only change size on true mobile */
    }
} 

/* Ensure fixed widths for consistent text appearance */
@media (min-width: 993px) {
    .nav-items {
        width: 70%;
        min-width: 600px;
    }
    
    .nav-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
} 

/* Fix for stable navigation at all window widths */
@media (min-width: 769px) {
    /* Lock navigation item width for stability */
    .nav-items {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 30px;
    }
    
    /* Remove fixed width constraints */
    .nav-item {
        width: auto;
        max-width: none;
        flex: none;
        font-size: 15px !important;
        padding: 0 10px;
        white-space: nowrap;
    }
    
    /* Ensure text doesn't wrap */
    .nav-item span {
        white-space: nowrap;
    }
}

/* Fine-tune font sizes at specific breakpoints to prevent auto-resizing */
@media (max-width: 1200px) and (min-width: 993px) {
    .nav-item {
        font-size: 15px !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .nav-item {
        font-size: 15px !important;
    }
} 

/* Hamburger menu - ensure it shows on mobile only */
.hamburger-menu {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
} 

/* Fix navigation visibility issues */

/* Default navigation styles - always show nav items by default */
.nav-items {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* Hamburger menu - hidden by default */
.hamburger-menu {
    display: none;
}

/* Ensure consistent visibility at all window widths */
@media (max-width: 992px) {
    /* Show hamburger at 992px */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide nav items initially, but they'll be shown in the mobile menu */
    .nav-items {
        position: fixed;
        top: 0;
        left: -100%; /* Off-screen initially */
        width: 100%;
        height: 100vh;
        background-color: #34495e;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
        transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        gap: 25px;
        z-index: 100;
        overflow-y: hidden;
        display: flex; /* Always keep flex display */
    }
    
    /* When active, bring back into view */
    .nav-items.active {
        left: 0;
    }
}

/* Add explicit visibility for widths between 769px and 992px */
@media (min-width: 769px) and (max-width: 992px) {
    /* Ensure the navigation items are always in some state of visibility */
    .nav-items {
        display: flex;
    }
    
    .hamburger-menu {
        display: flex;
    }
}

/* Explicit visibility for regular desktop */
@media (min-width: 993px) {
    .nav-items {
        display: flex;
    }
    
    .hamburger-menu {
        display: none;
    }
} 

/* Reset to fix navigation issues */
.nav-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
}

/* Clean up responsive styles - remove conflicting media queries */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex !important; /* Force display */
    }
    
    .nav-items {
        display: flex !important; /* Always display */
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #34495e;
        flex-direction: column;
        z-index: 100;
    }
    
    .nav-items.active {
        left: 0;
    }
}

@media (min-width: 993px) {
    .hamburger-menu {
        display: none !important; /* Ensure hidden */
    }
    
    .nav-items {
        display: flex !important; /* Ensure visible */
        position: relative;
        flex-direction: row;
        width: auto;
        height: 100%;
    }
} 

/* Complete navigation fix */

/* Base styles - ensure they're applied to correct elements */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-items {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    gap: 20px;
    justify-content: flex-end;
}

.nav-item {
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 60px;
    padding: 0 10px;
    white-space: nowrap;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover:after {
    width: 80%;
}

.nav-item:hover {
    color: #fff;
}

/* Hamburger menu styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 150;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile styles - clear breakpoint */
@media (max-width: 992px) {
    /* Show hamburger */
    .hamburger-menu {
        display: flex !important;
    }
    
    /* Hamburger animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Body styles when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .ticker-tape {
        display: none;
    }
    
    /* Mobile menu styling */
    .nav-items {
        display: flex !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #34495e;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
        transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        gap: 25px;
        z-index: 100;
        overflow-y: hidden;
    }
    
    .nav-items.active {
        left: 0;
    }
    
    /* Mobile menu items */
    .nav-item {
        font-size: 1.3rem !important;
        padding: 12px 0;
        margin: 5px 0;
        text-align: center;
        width: auto;
        max-width: 80%;
        display: inline-block;
        line-height: normal;
        height: auto;
    }
    
    .nav-item:after {
        content: '';
        display: block;
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s ease;
        margin: 0 auto;
    }
    
    .nav-item:hover:after,
    .nav-item:focus:after {
        width: 100%;
    }
}

/* Desktop styles - clear breakpoint */
@media (min-width: 993px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .nav-items {
        display: flex !important;
        position: relative;
        flex-direction: row;
        width: auto;
        height: 100%;
    }
} 

/* Yellow light on locomotive */
.locomotive-side .locomotive-light {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #f1c40f;
    border-radius: 50%;
    bottom: 15px;
    right: 5px;
    box-shadow: 0 0 3px 1px rgba(241, 196, 15, 0.5);
    z-index: 25;
} 