/* Custom CSS for Tanhaji Game Website */

body {
  background-color: #0f172a;
  color: #ffffff;
  font-family: 'Sirin Stencil', cursive;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

/* Shining Effects */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

.shine-text {
  position: relative;
  display: inline-block;
}

.shine-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.shine-text:hover::after {
  left: 100%;
}

.shine-card {
  position: relative;
  overflow: hidden;
}

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

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

@keyframes shine {
  0% {
    transform: rotate(30deg) translate(-10%, -10%);
  }
  100% {
    transform: rotate(30deg) translate(20%, 20%);
  }
}

/* Animations */

/* Website Max Width Constraint */
.container {
  max-width: 1200px;
}

/* Hero Background */
.bg-hero-pattern {
  background-color: #0f172a;
  background-image: linear-gradient(rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.2)), url('../images/steam1.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .bg-hero-pattern {
    background-image: linear-gradient(rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.2)), url('../images/hero2.png');
    background-attachment: scroll;
  }
}

.hero-image {
  max-height: 40vh;
  width: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-image {
    max-height: 40vh;
  }
}

/* Hero Carousel */
#hero-carousel {
  height: 80vh;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide.hidden {
  display: none;
}

/* Header Styles */
#header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 165, 0, 0.1);
  z-index: 999;
  height: 70px;
  min-height: 70px;
}

/* Adjust header content alignment */
#header .container {
  height: 100%;
  align-items: center;
}



/* Adjust navigation link padding */
#header nav a {
  padding: 0.30rem 0;
}

#header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
}

/* Logo */
.logo h1 {
  font-family: 'Sirin Stencil', cursive;
  letter-spacing: 1px;
}

/* Navigation */
nav a {
  font-family: 'Sirin Stencil', cursive;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff8c00, #ff4500);
  border-radius: 1px;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

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

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

/* Map Card Animations */
.fort-kondhana-image{
  width: auto;
  height: 450px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0.75rem;
  border-top: 4px solid #f6da3b;
  border-bottom: 6px solid #f6da3b;
}
.fort-kondhana-image:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
  transition: transform 0.3s ease, filter 0.5s ease-in, box-shadow 0.4s ease-in;
}

.map-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMap 0.6s ease-out forwards;
  border-left: 2px solid #f6da3b; 
  border-right: 2px solid #f67d3b; 
  border-radius: 0.75rem; /* consistent with rounded-xl */
}

/* Map Card Content Area */
.map-card .md\:w-3\/5 {
  background-color: rgba(31, 41, 55, 0.7); /* Reduced opacity from default */
}

/* Enhanced Explore Map Button */
.map-card button.self-start {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 2px solid #ff8c00;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  color: #ff8c00;
  font-size: 0.875rem; /* 14px */
}

.map-card button.self-start:hover {
  background: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
  color: #ffffff;
}

.map-card button.self-start:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.map-card button.self-start:hover:before {
  left: 100%;
}

.map-card button.self-start:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.map-card button.self-start:hover:after {
  opacity: 0.2;
}

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

/* Staggered animation delays for map cards */
.map-card:nth-child(1) { animation-delay: 0.1s; }
.map-card:nth-child(2) { animation-delay: 0.2s; }
.map-card:nth-child(3) { animation-delay: 0.3s; }
.map-card:nth-child(4) { animation-delay: 0.4s; }
.map-card:nth-child(5) { animation-delay: 0.5s; }

/* Map Modal Styles */
#map-modal {
  backdrop-filter: blur(5px);
  z-index: 1000 !important;
}

#map-modal .bg-gray-800 {
  background-color: rgba(30, 41, 59, 0.95);
}

#modal-map-image {
  max-height: 70vh;
  object-fit: contain;
}

/* Cursor for clickable map cards */
.cursor-pointer {
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

.animate-fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fadeIn.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.animate-fadeIn.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }

  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}

@keyframes ping-slow {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

.animate-ping-slow {
  animation: ping-slow 4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 5s ease-in-out infinite;
}

/* Hero Section */
#home h1 {
  font-family: 'Sirin Stencil', cursive;
  text-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

#home p {
  font-family: 'Sirin Stencil', cursive;
  letter-spacing: 0.5px;
}

/* Buttons */
button {
  font-family: 'Sirin Stencil', cursive;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Shining Effect for Platform Buttons */
.platform-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.platform-button:hover::before {
  left: 100%;
}

/* Section Headers */
section h2 {
  font-family: 'Sirin Stencil', cursive;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
  line-height: 2;
  padding-bottom: 10px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff8c00, #ff4500, transparent);
  border-radius: 2px;
}

section h3 {
  font-family: 'Sirin Stencil', cursive;
  letter-spacing: 0.5px;
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
  line-height: 2;
  padding-bottom: 10px;
}

/* section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff8c00, #ff4500, transparent);
  border-radius: 2px;
} */

section h4 {
  font-family: 'Sirin Stencil', cursive;
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
  line-height: 2;
  padding-bottom: 10px;
}

/* section h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff8c00, #ff4500, transparent);
  border-radius: 1px;
} */

/* Gallery Section */
#gallery-container {
  display: flex;
  width: max-content;
  animation: none;
  /* Remove any existing animation */
}

#gallery-container.carousel-paused .gallery-item {
  /* Add a subtle effect to indicate pause */
  filter: brightness(1.1);
}

/* Gallery Item */
.gallery-item {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  transition: filter 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Gallery Label */
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-family: 'Sirin Stencil', cursive;
  font-size: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
}

/* Gradient Border for Gallery Items */
.gallery-border {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  padding: 3px;
  border-radius: 12px;
  margin-right: 24px;
}

/* News Video Section */
#news-video-container {
  display: flex;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.news-video-item {
  flex: 0 0 auto;
  width: 350px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  margin-right: 24px;
  background: #1a2a3a;
  /* Lighter bluish background */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #3a5a7a;
  /* Decreased border thickness to 1px */
}

.news-video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
  border: 1px solid transparent;
  background: linear-gradient(45deg, #1a2a3a, #1a2a3a) padding-box,
    linear-gradient(45deg, #ff8c00, #ff4500) border-box;
}

.news-video-embed {
  height: 200px;
  background: #000;
}

.news-video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px 10px 0 0;
}

.news-video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-family: 'Sirin Stencil', cursive;
  font-size: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.news-video-item:hover .news-video-label {
  transform: translateY(0);
}

/* Navigation Arrows */
#news-video-prev,
#news-video-next {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 10;
}

#news-video-prev:hover,
#news-video-next:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Hide Scrollbar */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* Gallery Modal */
#gallery-modal {
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

#gallery-modal.hidden {
  display: none;
}

#modal-image {
  max-height: 80vh;
  object-fit: contain;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Gradient Border for Modal */
.modal-border {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  padding: 2px;
  border-radius: 10px;
}

#modal-image {
  transition: opacity 0.2s ease-in-out;
}

#prev-gallery-item, #next-gallery-item {
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

#prev-gallery-item:hover, #next-gallery-item:hover {
    background: rgba(255, 140, 0, 0.8);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

#mobile-prev-gallery-item, #mobile-next-gallery-item {
    cursor: pointer;
    z-index: 10;
}

#mobile-prev-gallery-item:active, #mobile-next-gallery-item:active {
    background: rgba(255, 140, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff8c00, #ff4500);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#ff4500, #ff8c00);
}

/* Steam Button */
.steam-button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

.steam-button:hover::before {
  left: 100%;
}

/* Blog Full Content Styles */
.blog-full-content {
  overflow-y: visible;
  padding: 15px;
  /* background-color: #1e293b; */
  border-radius: 8px;
  margin-top: 15px;
  line-height: 1.6;
  text-align: justify;
}

.blog-full-content h1,
.blog-full-content h2,
.blog-full-content h3 {
  color: #ffa500;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.blog-full-content p {
  margin-bottom: 15px;
  color: #cbd5e1;
}

.blog-full-content ul,
.blog-full-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
  text-align: left;
}

.blog-full-content li {
  margin-bottom: 8px;
  color: #cbd5e1;
}

.blog-full-content strong {
  color: #ffffff;
}

/* Blog Card Styles */
.blog-card {
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

/* Blog Image Container */
.blog-card .image-container {
  position: relative;
  padding: 4px;
  height: 300px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card img {
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgb(246, 90, 6);
}

.blog-card:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Contact Section */
/* Button base */
.shiny-btn {
  background: linear-gradient(45deg, #ff8c00, #ff4500); 
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* Border and shadow effect on hover */
.shiny-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Shine effect */
.shiny-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  transform: skewX(-20deg);
  transition: left 1.2s ease-in-out;
}

.shiny-btn:hover::before {
  left: 150%;
}

/* Footer Section */
.gradient-text {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  font-family: 'Sirin Stencil', cursive;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.footer a:hover {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(-5px) scale(1.05);
}

/* Responsive Adjustments for Back to Top Button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}