.downloads-section{
    height: auto;
    overflow-x: hidden;
    z-index: 1;
}

.downloads-landing{
    position: relative;
    height: calc(100vh + 700px);
    width: 100vw;
}

.downloads-landing-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: pointer;
}

.downloads-landing-wrapper img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.left-downloads-container{
    width: 50%;
}

.left-downloads-container img{
    width: 50%;
    object-fit: cover;
}

.right-downloads-container{
    background-color: black;
    height: 100%;
    width: 50%;
}

.first-downloads {
    z-index: 1;
}

.second-downloads {
    z-index: 2;
}

.third-downloads {
    z-index: 3;
}

.third-downloads{
    display: flex;
}

.downloads-text-overlay h1{
    font-weight: 590;
    font-style: semibold;
    font-size: 40px;
    line-height: 47px;
    letter-spacing: 0px;
    color: #999999;
}

.downloads-text-overlay p{
    font-weight: 400;
    font-style: regular;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0px;
    color: #FFFFFF;
}

.first-downloads .downloads-text-overlay{
    position: absolute;
    top: 15%;
    right: 5%;
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-downloads-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-downloads .downloads-text-overlay{
    position: absolute;
    top: 15%;
    left: 5%;
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-downloads-container .downloads-text-overlay{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-downloads-container h1{
    font-weight: 590;
    font-style: semibold;
    font-size: 40px;
    line-height: 47px;
    letter-spacing: 0px;
    color: #999999;
}

.right-downloads-container p{
    font-weight: 400;
    font-style: regular;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0px;
    color: #FFFFFF;
}


.downloads-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.downloads-popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 1200px;
  width: 90%;
  height: 80%;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.downloads-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.downloads-popup-body {
  padding: 10px;
}

.downloads-tab-content {
  display: none;
}

.downloads-tab-content.active {
  display: block;
}

.downloads-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.downloads-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.downloads-gallery img:hover {
  transform: scale(1.05);
}

.downloads-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.downloads-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.downloads-gallery-item:hover img {
  transform: scale(1.05);
}

.downloads-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #007aff;
  font-size: 20px;   
  padding: 6px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.7), 
               0 0 6px rgba(0, 0, 0, 0.5);
}

.downloads-category-container{
    width: 100%;
    display: flex;
    justify-content: center;
}

.download-tabs {
    font-weight: 590;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-style: semibold;
    line-height: 18px;
    letter-spacing: -0.08px;
    padding: 2px 10px;
    border-radius: 34px;
    text-align: center;
}

.downloads-popup-tabs{
    display: flex;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    background-color: rgba(118, 118, 128, 0.12);
    border-radius: 34px;
    width: 70%;
    margin: 0 auto;
}

.download-tabs.active {
    background-color: #FFFFFF; 
    color: #000000; 
}

.download-tabs:hover {
    background-color: #FFFFFF; 
    color: #000000;
}

.downloads-files {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.downloads-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 12px 16px;
  border-radius: 8px;
}

.downloads-file-item .file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.downloads-file-item .file-info i {
  font-size: 22px;
  color: #007aff; 
}

.downloads-file-item span {
  font-size: 16px;
  color: #333;
}

.downloads-file-item .downloads-icon {
  position: static;  
  background: none;   
  color: #007aff;
  font-size: 20px;
  padding: 0;
  border-radius: 0;
  transition: color 0.3s ease;
}

.downloads-file-item .downloads-icon:hover {
  color: #005bb5;
}

.downloads-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.downloads-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.downloads-lightbox-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transform: scale(0.8);
  opacity: 0;
}

.downloads-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8), 
               0 0 12px rgba(0, 0, 0, 0.6);
}


.downloads-lightbox-download {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 28px;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: #007aff;
  transition: color 0.3s ease, transform 0.2s ease;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.7), 
               0 0 6px rgba(0, 0, 0, 0.5);
}



.downloads-popup-body .empty-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  font-size: 18px;
  color: #777;
  font-style: italic;
  text-align: center;
}

.empty-message .char {
  display: inline-block;
  white-space: pre;
}
