/* Base Body Styling */
body {
  overflow-y: auto !important;
  background-color: #1e1e1e;
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

/* Gallery Styling */
.gallery {
  background: transparent;
  margin-top: 20px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Cells */
.gallery-cell {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.gallery-cell img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: 5px;
}

.gallery-cell h3 {
  margin-top: 10px;
  color: white;
  font-size: 18px;
}

/* Responsive for Gallery */
@media (max-width: 768px) {
  .gallery-cell {
      aspect-ratio: 4 / 3;
  }
  .gallery-cell h3 {
      font-size: 16px;
  }
}
@media (max-width: 480px) {
  .gallery {
      max-width: 100%;
      padding: 0 10px;
  }
  .gallery-cell {
      aspect-ratio: 1 / 1;
  }
  .gallery-cell h3 {
      font-size: 14px;
  }
}

/* Enhanced Modal Styling */
.content-modal {
  display: none;
  padding-top: 20px;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.modal-container {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  background: #141b41;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 30px;
}

.modal-header {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: white;
}

.modal-title h2 {
  margin: 0;
  font-size: 2rem;
}

.modal-body {
  padding: 30px;
}

/* Feature Sections (Inside Modal) */
.feature-section {
  margin-bottom: 40px;
}

.feature-section h3 {
  color: #4a90e2;
  margin-bottom: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

/* Call-to-Action Section */
.cta-section {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.cta-button {
  background: linear-gradient(135deg, #4a90e2, #0A0A41);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Close Button for Modal */
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

/* Navigation Buttons for Modal */
.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Slider Modal Styling (Fullscreen) */
.slider-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  justify-content: center;
  align-items: center;
}

.slider-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.slider-modal .slider-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

#sliderImage {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 80vh;
}

/* Slider Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
}

.slider-nav.left {
  left: -60px;
}

.slider-nav.right {
  right: -60px;
}

@media (max-width: 768px) {
  .slider-nav.left {
      left: 10px;
  }
  .slider-nav.right {
      right: 10px;
  }
}

/* Flickity Carousel Mobile Adjustments */
@media (max-width: 768px) {
  .flickity-button {
      background: none !important;
      box-shadow: none !important;
      width: auto !important;
      height: auto !important;
  }
  .flickity-button-icon {
      fill: white !important;
      width: 24px !important;
      height: 24px !important;
  }
  .flickity-prev-next-button.previous {
      left: 5px !important;
  }
  .flickity-prev-next-button.next {
      right: 5px !important;
  }
}

/* Sidebar & Redirect Button */
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.redirect-button {
  text-align: center;
  padding: 10px;
  position: sticky;
  bottom: 0;
  background-color: var(--nav-bg);
}

.back-to-contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a4a4a;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color var(--transition-speed) ease;
}

.back-to-contact-btn:hover {
  background-color: #5a5a5a;
}

/* Other Capabilities (Mobile Only) */
@media (min-width: 769px) {
  .other-capabilities-section {
      display: none !important;
  }
}

@media (max-width: 992px) {
  .capability-card {
      min-height: 180px;
  }
}

@media (max-width: 768px) {
  .capability-card {
      min-height: 150px;
  }
  .other-capabilities-section {
      padding: 50px 20px;
      background: linear-gradient(135deg, #0A0A41, #10106E);
      color: white;
      text-align: center;
  }
  .other-capabilities-heading {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 30px;
      text-transform: uppercase;
      letter-spacing: 1px;
  }
  .other-capabilities-carousel {
      max-width: 1200px;
      margin: 0 auto;
  }
  .capability-card {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 15px;
      padding: 30px 20px;
      margin: 0 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      min-height: 200px;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  .capability-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  }
  .capability-card h3 {
      margin-bottom: 10px;
      font-size: 1.2rem;
      font-weight: 600;
  }
  .capability-card p {
      font-size: 0.95rem;
      color: #ccc;
  }
}

.read-more-container {
    text-align: center;
    margin-top: 30px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 16px;
    color: #fff;
    background-color: #5a4bda;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #4336c2;
}
