/* Basic reset and styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #111;
  color: #fff;
}

/* Background container and overlay */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(25, 0, 58, 0.8) 0%, rgba(0, 20, 50, 0.8) 100%);
}

/* Content container styling */
.content-container {
  position: relative;
  padding: 3rem 1rem;
  min-height: calc(100vh - 60px); /* Account for footer */
}

/* Main title animation and style */
.main-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ff5e62, #ff9966);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 2rem;
}

.main-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: 0;
  left: 25%;
  background: linear-gradient(90deg, transparent, #ff9966, transparent);
}

/* Scroll navigation buttons */
.scroll-nav {
  margin-bottom: 1.5rem;
}

.btn-navigation {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-navigation:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Horizontal scrolling container */
.scroll-container-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.scroll-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

/* Certificate items */
.pdf-item {
  min-width: 250px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.pdf-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pdf-preview {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pdf-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pdf-item:hover .pdf-thumbnail {
  transform: scale(1.05);
}

.view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-overlay i {
  font-size: 2rem;
  color: white;
}

.pdf-item:hover .view-overlay {
  opacity: 1;
}

.certificate-title {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: white;
}

/* Certificate Modal */
.modal-content {
  background-color: #1a1a2e;
  color: white;
}

.modal-header {
  border-bottom: 1px solid #333;
}

.modal-footer {
  border-top: 1px solid #333;
}

.certificate-frame-container {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.certificate-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.animated-footer {
  position: relative;
  padding: 1rem 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  height: 60px;
}

.footer-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(0, 0, 0, 0) 100%);
  transform: translateX(-100%);
  animation: footerGlow 5s infinite;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .main-title {
    font-size: 2rem;
  }
  
  .pdf-item {
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 2rem 0.5rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .pdf-item {
    min-width: 170px;
  }
  
  .pdf-preview {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 1.5rem;
  }
  
  .pdf-item {
    min-width: 150px;
  }
  
  .certificate-frame-container {
    height: 50vh;
  }
  
  .btn-navigation {
    width: 40px;
    height: 40px;
  }
}
