body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1500px;
  margin: auto;
  padding: 0 15px;
}

/* Navbar */
.navbar {
  background-color: #002a33;
  padding: 1rem 0;
}

.navbar-nav {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 15px;
}

.navbar .nav-link {
  font-family: 'Arial', sans-serif;
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #007bff;
  text-decoration: underline;
}

.navbar-toggler {
  border: none;
}

.navbar-collapse {
  justify-content: center;
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .navbar-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

/* Ensure images are fully visible in cards */
.card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f8f8f8;
}

/* Carousel */
.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Product Image */
.product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
  display: block;
  margin: auto;
}
.product-container {
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: hidden;
  text-align: center;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-inner img {
    height: auto;
  }
}

/* Card Body */
.card-body {
  padding: 15px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

.card-text {
  font-size: 1rem;
  color: #666;
}

/* Modal Styling */
.modal-content {
  background-color: #f8f9fa;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.modal-body {
  padding: 0;
}

.modal-footer {
  border-top: none;
  padding: 15px;
  justify-content: space-between;
}

/* 3D Effect for Modal Image */
.modal-3d-image {
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  max-height: 90vh;
  display: block;
  margin: auto;
}

.animate-image {
  animation: zoomFadeRotate 0.6s ease;
}

@keyframes zoomFadeRotate {
  0% {
    transform: scale(0.9) rotateY(-10deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-3d-image {
    max-height: 70vh;
  }
}

/* Buttons */
.btn-secondary {
  background-color: #005769;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
  background-color: #00455a;
  transform: scale(1.05) rotateX(5deg);
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gallery-img {
  width: 30%;
  margin: 10px 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Modal for Full-Screen View */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 700px;
  position: relative;
  z-index: 1001;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1002;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  cursor: pointer;
  color: white;
  padding: 16px;
  font-size: 30px;
  transition: 0.3s;
  z-index: 1002;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-backdrop {
  z-index: 999;
}

/* Navbar Dropdown */
.navbar-nav .dropdown-menu {
  background-color: #002a33;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.navbar-nav .dropdown-item {
  color: white;
  padding: 0.5rem 1rem;
  background-color: transparent;
}

.navbar-nav .dropdown-item:hover {
  color: #007bff;
  background-color: transparent;
  text-decoration: underline;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: 0.255em;
}

.navbar-nav .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
