@charset "UTF-8";

@font-face {
  font-family: Abel;
  src: url("fonts/Abel-Regular.ttf");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}


html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* hide scrollbar */
  font-family: Abel, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background-color: #111; /* Changed from #fff to a pale natural off-white */
}

body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 30% 30%, #2a4444 0%, transparent 90%), 
                radial-gradient(circle at 70% 70%, #442a33 0%, transparent 60%), 
                radial-gradient(circle at 50% 50%, #060606 0%, #060606 100%);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: gradientFlow 120s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    25% {
        background-position: 100% 0%, 0% 100%, 30% 70%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 70% 30%;
    }
    75% {
        background-position: 0% 100%, 100% 0%, 40% 60%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* take up full height of the viewport */
  width: 100vw; /* take up full width of the viewport */
  padding-bottom: 70px; /* Add padding to prevent content from being hidden behind the fixed nav */
  position: relative;
  overflow-x: hidden;
}

.invert-colors {
  filter: invert(1);
}

header {
  color: #8FBFB3;
  /*padding: 10px 0;*/
}

nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  /*padding: 0 20px;*/
}

/* Bottom Navigation Styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
}

.bottom-nav nav {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}



.logo-group,
.download-group {
  display: flex;
  justify-content: space-between;
}

.nav-btn {
  color: #8FBFB3;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 0 10px; /* Reduced margin for bottom nav */
  padding: 8px 15px; /* Slightly smaller padding for bottom nav */
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem; /* Slightly smaller font for bottom nav */
  position: relative;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.svg-center {
  display: block;
  margin: auto;
}



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

  .download-group .nav-btn {
    font-size: 0; /* Hide text on mobile */
    padding: 8px; /* Reduced padding for icon-only display */
    min-width: 40px; /* Ensure minimum touch target */
  }

  .download-group .nav-btn svg {
    margin: 0; /* Remove any margins from icon */
  }
  
  .bottom-nav nav {
    padding: 0 10px;
  }
  
  .nav-btn {
    margin: 0 5px;
    padding: 6px 10px;
  }
  
  .container {
    padding-bottom: 60px; /* Slightly less padding on mobile */
    height: 100vh; /* Ensure full height on mobile */
    width: 100vw; /* Ensure full width on mobile */
  }
  
  body {
    min-height: 100vh;
    min-width: 100vw;
  }
}

/* HERO */
h1 {
  color: #ccc;
  font-variant: small-caps;
}

h1 span {
 color:#8FBFB3;
}

.hero-text {
  font-size: 1.8rem; 
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 20px;
}

@media screen and (min-width: 600px) {
  .hero-text {
    font-size: 2.8rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
  }
}

@media screen and (min-width: 900px) {
  .hero-text {
    font-size: 4rem;
    margin-top: 3.6rem;
    margin-bottom: 2.6rem;
  }
}

.carousel {
  display: flex;
  overflow-x: auto;
  height: calc(100vh - 340px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 20px;
  margin-left: 20px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  border-radius: 8px; /* Match the border-radius of carousel items */
  padding: 10px; /* Add some padding */
}

.carousel:active {
  cursor: grabbing;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  height: 100%;
  min-width: 426px;
  border-radius: 8px;
  position: relative;
  margin-right: 20px;
  scroll-snap-align: start;
  z-index: 2;
  background-color: #222; /* Darker background for carousel items */
}

.carousel-item.wide-boy {
  flex: 0 0 852px;
  max-width: 852px;
  background: #fff;
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 85vw; /* Use viewport width for better mobile sizing */
    max-width: 85vw;
    min-width: 85vw;
  }
  
  .carousel-item.wide-boy {
    flex: 0 0 90vw; /* More responsive width for wide-boy on mobile */
    max-width: 90vw;
    min-width: 90vw;
  }
  
  .carousel {
    margin-left: 10px; /* Less margin on mobile */
    height: calc(100vh - 220px); /* Adjust height for mobile */
  }
  

}

/* Wide Boy Section Layout Improvements */
.wide-boy-main-cta {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wide-boy-p {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.wide-boy-p span {
    font-size: 4.6rem;
    color: #ddd;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wide-boy-description {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 300;
}

.discord-cta-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.discord-cta-section .download-group {
    margin: 0;
}

.discord-button {
    margin: 0 !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.discord-button:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .wide-boy-main-cta {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .wide-boy-p {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .wide-boy-p span {
        font-size: 3.5rem;
    }
    
    .wide-boy-description {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .discord-cta-section {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .discord-button {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
}

.carousel-content {
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.carousel-content .box-btn {
  color: #fff; /* Changed back to white */
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 8px;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.carousel-content .box-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.carousel-content p {
  color: #fff; /* Changed back to white */
  font-weight: 300;
  font-size: 1.2rem;
}

.image-item, .video-item.lazy-video {
  background-image: url("images/faery_full.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.video-item video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.54) contrast(1.1);
}

/* Lazy Videos 
.lazy-video video {
  opacity: 0;
  transition: opacity 0.5s;
}

.lazy-video:not(.lazy) video {
  opacity: 1;
}
*/

/* Footer nav */
.wide-boy-footer-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content:flex-start;
  gap: 20px;
  padding: 1rem; 
}

.wide-boy-footer-nav a {
  text-transform: uppercase;
  text-decoration: underline #999 solid 1px;
  color: #999; 
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wide-boy-footer-nav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #666;
}

/* Devlog Styles */
.devlog-container {
    height: 100%;
    overflow-y: auto;
    padding: 24px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
    max-height: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 12px;
    margin: 8px;
}

.devlog-container::-webkit-scrollbar {
    width: 6px;
}

.devlog-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.devlog-container::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.devlog-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
}

.devlog-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.devlog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.devlog-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.devlog-card:hover::before {
    opacity: 1;
}

.devlog-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    position: relative;
}

.devlog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 100%
    );
}

.devlog-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
    margin-right: 16px;
}

.devlog-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.devlog-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.devlog-version {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    padding: 6px 12px;
    border-radius: 16px;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.devlog-version::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.devlog-card:hover .devlog-version::before {
    left: 100%;
}

.devlog-media {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.devlog-media img, 
.devlog-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.devlog-media:hover img, 
.devlog-media:hover video {
    transform: scale(1.02);
}

.devlog-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 12px;
}

/* Empty State Styling */
.devlog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    height: 100%;
    min-height: 300px;
}

.devlog-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.devlog-empty-state::before {
    content: '📝';
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
    filter: grayscale(1);
}

/* Enhanced devlog container when empty */
.devlog-container:has(.devlog-empty-state) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Devlog Improvements */
@media (max-width: 768px) {
    .devlog-container {
        padding: 16px 12px;
        margin: 4px;
        border-radius: 8px;
    }
    
    .devlog-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .devlog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .devlog-header h3 {
        font-size: 1.1rem;
        margin-right: 0;
    }
    
    .devlog-date {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .devlog-version {
        position: absolute;
        top: 16px;
        right: 16px;
        margin-left: 0;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .devlog-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .devlog-empty-state {
        padding: 40px 20px;
        min-height: 200px;
    }
    
    .devlog-empty-state p {
        font-size: 1rem;
    }
    
    .devlog-empty-state::before {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
}

/* Loading State */
.devlog-container.loading {
    position: relative;
    pointer-events: none;
}

.devlog-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: devlogSpinner 1s linear infinite;
}

@keyframes devlogSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Devlog Fade-in Animation */
.devlog-card {
    animation: devlogFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.devlog-card:nth-child(1) { animation-delay: 0.1s; }
.devlog-card:nth-child(2) { animation-delay: 0.2s; }
.devlog-card:nth-child(3) { animation-delay: 0.3s; }
.devlog-card:nth-child(4) { animation-delay: 0.4s; }
.devlog-card:nth-child(5) { animation-delay: 0.5s; }

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

/* Enhanced scrollbar for smaller screens */
@media (max-width: 768px) {
    .devlog-container::-webkit-scrollbar {
        width: 4px;
    }
    
    .devlog-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Devlog Carousel Item Specific Styles */
.carousel-item:has(.devlog-container) {
    overflow: hidden;
}

.carousel-item:has(.devlog-container) .carousel-content {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 0;
}

/* Override devlog container when inside carousel */
.carousel-item .devlog-container {
    border-radius: 0;
    margin: 0;
    padding: 24px 0;
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure scrollbar is positioned correctly within carousel devlog container */
.carousel-item .devlog-container::-webkit-scrollbar {
    width: 8px;
    position: absolute;
    right: 0;
}

.carousel-item .devlog-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.carousel-item .devlog-container::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-item .devlog-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

/* Ensure devlog cards have proper horizontal padding inside carousel */
.carousel-item .devlog-card {
    margin-left: 20px;
    margin-right: 20px;
}

/* Import admin styles for any admin functionality */
@import url('adminstyles.css');

/* Prevent text selection during carousel dragging */
.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome and Opera */
}

/* Moon Phase Indicator */
.moon-phase-indicator {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.moon-phase {
    font-size: 2rem;
    display: inline-block;
    animation: moonGlow 3s ease-in-out infinite alternate;
    cursor: help;
}

@keyframes moonGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* Enhanced Video Item Responsive Behavior */
@media (max-width: 768px) {
  .video-item video {
    border-radius: 6px; /* Slightly smaller radius on mobile */
  }
}

/* Enhanced scroll snap behavior for mobile */
@media (max-width: 768px) {
  .carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-item {
    scroll-snap-align: center; /* Center alignment on mobile for better UX */
  }
}



/* Improved Video Performance */
.video-item video {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Accessibility */
.carousel:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.nav-btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth Transitions */
.carousel-item {
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-2px);
}

/* Better Typography */
.hero-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

/* Performance Optimizations */
.carousel-item * {
    will-change: auto;
}

.carousel-item.active * {
    will-change: transform;
}

/* Print Styles */
@media print {
    .carousel,
    .bottom-nav {
        display: none !important;
    }
    
    .hero-text {
        color: #000 !important;
    }
    
    body {
        background: #fff !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel {
        scroll-behavior: auto;
    }
}
