/* Custom styles for your website */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #011826;
  color: white !important;
  /* Add padding to prevent content from hiding under fixed header */
  /* padding-top: 70px; */
}

.text-muted {
    color: rgba(255, 255, 255, 0.65) !important;

}

/* Header styles */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
}

/* Fixed header - Light text on dark/transparent background (for pages with dark hero) */
#mainNav.navbar-dark {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: none;
}

#mainNav.navbar-dark .navbar-brand,
#mainNav.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
}

#mainNav.navbar-dark .nav-link:hover {
  color: rgba(255, 255, 255, 1) !important;
}

#mainNav.navbar-dark .nav-link.active {
  color: rgba(255, 255, 255, 1) !important;
}

/* Fixed header - Dark text on light/transparent background (for pages with light backgrounds) */
#mainNav.navbar-light {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: none;
}

#mainNav.navbar-light .navbar-brand,
#mainNav.navbar-light .nav-link {
  color: rgba(0, 0, 0, 0.65) !important;
}

#mainNav.navbar-light .nav-link:hover {
  color: rgba(0, 0, 0, 0.9) !important;
}

#mainNav.navbar-light .nav-link.active {
  color: rgba(0, 0, 0, 0.9) !important;
}

/* Header when scrolled - always switches to solid white with dark text */
#mainNav.scrolled {
  background-color: rgba(0, 0, 0, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

#mainNav.scrolled .nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

#mainNav.scrolled .nav-link.active {
  color: white !important;
}

/* Optional: Make navbar items change on scroll too */
#mainNav.scrolled .navbar-brand {
  color: white;
}

/* Navbar toggler icon - make sure it's visible */
#mainNav.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* #mainNav .nav-link.active {
  position: relative;
}

#mainNav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: currentColor;
} */

/* Footer styles */
footer a {
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white !important;
}

/* Utility classes */
.section-padding {
  padding: 60px 0;
}

/* Hero section */
.hero {
  /* Note: background-image and min-height are set via inline styles in component */
  /* This allows each hero to have different images and heights */
  background-size: cover;
  background-position: center 0px; /* Initialize to match JavaScript starting position */
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  /* Note: background-attachment removed for JS-controlled parallax */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Default opacity */
  z-index: 0;
  transition: transform 0.1s ease-out; /* Smooth transform for parallax */
}

/* Overlay variations based on data-overlay attribute */
.hero[data-overlay="0"]::before,
.hero[data-overlay="none"]::before {
  display: none; /* No overlay */
}

.hero[data-overlay="light"]::before {
  background: rgba(0, 0, 0, 0.2); /* 20% opacity */
}

.hero[data-overlay="medium"]::before {
  background: rgba(0, 0, 0, 0.45); /* 45% opacity (default) */
}

.hero[data-overlay="dark"]::before {
  background: rgba(0, 0, 0, 0.7); /* 70% opacity */
}

/* Support custom numeric values (0.0 to 1.0) */
.hero[data-overlay]::before {
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.45));
}


.hero > .container {
  position: relative;
  z-index: 1;
  transform: translateY(40px);
  transition: transform 0.1s ease-out;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e07a1f;
}

/* FAQ Component Styles */
.faq-section {
  background-color: #091d2a;
}

.faq-icon {
  color: #667eea;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Products Component Styles */
.products-section {
  /* background-color:  rgba(33,37,41,1); */
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #013440;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-image-container .carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-image-container .carousel-inner,
.product-image-container .carousel-item {
  height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Carousel controls for product cards */
.product-card .carousel-control-prev,
.product-card .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 40px;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
  opacity: 1;
}

.product-card .carousel-control-prev-icon,
.product-card .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
  width: 30px;
  height: 30px;
}

.product-card .carousel-indicators {
  margin-bottom: 10px;
}

.product-card .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.product-card .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 1);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.95rem;
  color: #999999;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin: 0;
}

.product-footer {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Product Detail Page Styles */
.product-detail-images {
  position: sticky;
  top: 100px;
}

.product-detail-images .carousel {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-detail-images .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-images .carousel-control-prev-icon,
.product-detail-images .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 15px;
  width: 40px;
  height: 40px;
}

.product-detail-images .carousel-indicators {
  margin-bottom: 10px;
}

.product-detail-images .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.product-detail-images .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 1);
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-image:hover {
  border-color: #667eea;
  transform: scale(1.05);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 1.5rem;
}

.product-detail-description {
  color: #999;
  line-height: 1.8;
}

.product-actions .btn {
  font-size: 1.1rem;
  padding: 12px;
}

.nav-tabs .nav-link {
  color: #999;
}

.nav-tabs .nav-link.active {
  color: #667eea;
  font-weight: 600;
}

.accordion-button {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  background-color: #013146;
  color: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
  background-color: #013146;
  color: #667eea;
  box-shadow: none;
}

.accordion-button:not(.collapsed) .faq-icon {
  transform: rotate(180deg);
  color: #4f62c1;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #999;
  background-color: #012436;
}

.faq-section .display-5 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-section .lead {
  font-size: 1.15rem;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/CinzelDecorative-Regular.ttf') format('woff2'),
         url('../fonts/CinzelDecorative-Bold.ttf') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 66px;
  }
  
  .hero {
    padding: 60px 0;
    background-position: center center; /* or adjust based on your image */
    min-height: 100vh; /* Ensure full height on mobile */
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}