h1{
  font-family: 'Bungee', cursive;
  color: #E58C16;
}

/* Container for the seamless pattern image */
.fullscreen-image-container {
  position: relative;
  z-index: 1;
}

/* Seamless pattern image */
.fullscreen-image-second {
  width: 100%;
  height: 1300px;
  object-fit: cover;

}

/* Adjusted positioning for Mig-Klatter GIF */
.mig-klatter-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mig-klatter-image {
  width: 675px; /* 50% larger than original 450px */
  height: auto;
  border-radius: 15px;
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure all elements stay within the viewport */
* {
  box-sizing: border-box;
}

/* Make the "anarkist case" section smaller */
.anarkist-case {
  max-width: 900px; /* Adjust this value as needed */
  margin: 0 auto;   /* Centers the container */
}

/* Text circle (text box) styling */
.text-circle-anarkist {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 36px auto;
  color: #222121; /* Text color remains dark */
  text-align: center;
  border-radius: 10px;
}



.text-circle-anarkist p {
  margin: 1;
  padding: 0;
  font-size: 17px;
  font-family: dosis;
}

/* Text circles */
.text-circle {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background-color: orange;
  color: #222121;
  text-align: center;
  margin: -6px 0;
  border-radius: 10px;
}

.text-circle p {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* Button container and button styles */
.button-container {
  text-align: center; /* Center the button */
  margin-top: 20px; /* Add space between text and button */
}

.btn.custom-btn {
  background-color: #F09B1E;
  color: #FFFBFB;
  font-family: kenia;
  font-size: 24px;

  padding: 10px 40px;
  border-radius: 30px;
  transition: transform 0.3s ease;
}

.btn.custom-btn:hover {
  transform: scale(1.14);
  background-color: #E58C16;
  color: rgb(255, 255, 255);
  outline: solid 2px #207D73;
}


/* Responsive Adjustments */

/* For phones and small devices */
@media (max-width: 576px) {
  .fullscreen-image-second {
    /* Limit the height on smaller screens */
    max-height: 80vh;
  }
  .mig-klatter-image {
    width: 650px;
    transform: translate(0%, 0%); /* Position for phones */
  }

  .mig-klatter-container{  
    width: -20px;
    object-fit: cover;
  }
}

/* For tablets and medium devices */
@media (min-width: 577px) and (max-width: 991.98px) {
  .fullscreen-image-second {
    max-height: 150vh;
  }
  .mig-klatter-image {
    width: 550px; /* Adjust size for tablets */
    transform: translate(0%, 20%); /* Position for tablets */
    position: relative;
  }
}

/* For large screens */
@media (min-width: 992px) {
  .fullscreen-image-second {
    max-height: 150vh;
  }
  .mig-klatter-image {
    width: 1050px; /* Adjust size for large screens */
    transform: translate(0%, 0%); /* Position for large screens */
    position: relative;
  }


}

/* Reduce space between sections on smaller devices */
@media (max-width: 767.98px) {
  .my-5 {
    margin-top: 2rem !important; /* Reduced from default 3rem */
    margin-bottom: 2rem !important; /* Reduced from default 3rem */
  }

  .text-circle-anarkist {
    margin: 20px auto; /* Reduce margin for smaller devices */
    padding: 15px; /* Reduce padding for smaller devices */
  }

  .btn.custom-btn {
    display: none; /* Hide the button */
  }
}
/* Fade-in effect for the anarkist section */
.fade-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Styles */
.navbar {
  background-color: #000000;
  font-family: 'bungee', sans-serif;
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar-brand {
  color: #ffffff !important;
  font-family: 'Kenia', sans-serif;
  transition: color 0.3s ease;
  font-size: 28px;
}

.navbar-brand:hover {
  color: #E58C16 !important;
}

.navbar a.nav-link {
  color: #fff !important;
  transition: color 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 6px 18px !important;
  font-size: 16px;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #000 !important;
  background-color: #E58C16;
  border-color: #E58C16;
}
.navbar-toggler {
  border-color: #fff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Footer Styles */
.custom-footer {
  font-family: 'Kenia', sans-serif;
  padding: 1rem 0;
  position: sticky;
  margin-bottom: 40px;
}

.custom-footer .footer-icon {
  vertical-align: middle;
  position: sticky;
  height: 20px; 
  margin-right: 8px;
}

.custom-footer .footer-text {
  vertical-align: middle;
  font-size: 18px;
}




@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    background-color: transparent;
  }
  
  .navbar-toggler-icon {
    background-image: none; /* Remove default SVG */
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: relative;
  }
  
  /* Create top and bottom lines using pseudo-elements */
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #fff;
    left: 0;
  }
  
  .navbar-toggler-icon::before {
    top: -8px;
  }
  
  .navbar-toggler-icon::after {
    top: 8px;
  }
}


/* Updated Card Styling */
.custom-card {
  text-decoration: none;
}


/* Make card container full width */
.card-container {
  background-color: #e29c00; /* Maintain background color */
  max-width: 100%;
  /* Center the entire video section while keeping spacing */
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  height: 30vh; /* Makes sure it's centered on the screen */
}

@media (max-width: 991.98px) {
  .card-container {
    height: 50vh; /* Full height on smaller screens */
  }
}

.custom-card .card {
  width: 100%;
  height: 100px; /* Adjust height for bigger cards */
  align-items: center;
  border: none; /* Remove background */
  background: none; /* Fully transparent */
  position: relative;
}

.card-container {
  background-color: #e29c00; /* Replace with any color you'd like */
  max-width: 100%
}

.custom-card .card-body {
  font-family: 'Bungee', cursive;
  font-size: 22px; /* Larger default text */
  color: rgb(242, 242, 242);
  text-align: center;
  position: relative;
}

/* Default text always visible */
.default-text {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Hover text starts hidden */
.hover-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  color: #181717;; /* Orange text */
}





.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


.portfolio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}
.portfolio-item {
  width: 50%; /* Reduce size to 50% of the original */
  margin-bottom: 20px; /* Space between images */
  border-radius: 10px;
  overflow: hidden;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Image sizing for different screen sizes */
@media (max-width: 576px) {
  .portfolio-item {
    width: 90%; /* Full width on small screens */
  }
}


.video-wrapper {
  position: relative;
  max-width: 1290px; /* Half of 1860px */
  margin: 0 auto;
  height: 575px; /* Half of 750px */
}



@media (max-width:576px) {
.video-wrapper {
  height: 300px; /* Half of 600px */  
}
}






.anarkist-card {
  background-color: #f4f4f4; /* Light grey background */
  border: 1px solid #ddd;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.anarkist-card .card-body {
  text-align: left;
  padding: 15px;
}

.anarkist-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}


/* ── Gallery Grid ── */
.gallery-section {
  padding: 100px 16px 60px;
  max-width: 80%;
  margin: 0 auto;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.gallery-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(229, 140, 22, 0);
  border-radius: 8px;
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(229, 140, 22, 0.12);
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: #E58C16;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: #c7740e;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(229, 140, 22, 0.85);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 64px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover { background: #c7740e; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-section {
    padding: 90px 16px 40px;
  }
}

@media (max-width: 480px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
}




body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/PaperBG.png');
  background-repeat: repeat;
  background-size: 50%;
  background-position: top left;
  opacity: 0.15;
  z-index: -1;
}

/* ── Page Transition Overlay ── */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: #1a1a1a;
  z-index: 99999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.s ease;
}

#page-transition-overlay.fade-out {
  opacity: 0;
}

#page-transition-overlay.fade-in {
  opacity: 1;
  pointer-events: all;
}


/* Card entrance animation */
.card-container .col-md-6 {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-container .col-md-6.card-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Navbar nav wrapper needs to be relative for the slider */
.navbar-nav {
  position: relative;
}

/* Remove the old active/hover background from individual links */
.navbar a.nav-link {
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 6px 18px !important;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #000 !important;
  background: none;
}

.navbar a.nav-link.active {
  color: #000 !important;
}

/* The sliding pill */
.nav-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #E58C16;
  border-radius: 30px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.navbar a.nav-link.active {
  color: #000 !important;
}

.navbar-nav:hover .nav-link.active:not(:hover) {
  color: #fff !important;
}