@font-face {
  font-family: "Optimistic";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/OptimisticAI_VF_Optimized.woff2") format("woff2");
}

@font-face {
  font-family: "Optimistic Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/OptimisticMono_W_TextRegular.woff2") format("woff2");
}

/* Base Settings */
:where(html) {
  font-family: "Optimistic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}

:where(code, pre, kbd, samp) {
  font-family: "Optimistic Mono", ui-monospace, monospace;
}

/* Custom Gold Gradients */
.gold-text {
  background: linear-gradient(135deg, #f3e5ab, #c49a3c, #a67c2a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gold-gradient {
  background: linear-gradient(135deg, #d4af37, #b89228);
  transition: opacity 0.2s ease-in-out, transform 0.1s ease;
}

.btn-gold-gradient:hover {
  opacity: 0.95;
}

.btn-gold-gradient:active {
  transform: scale(0.99);
}

/* Form Error Highlighting */
.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c49a3c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a67c2a;
}

/* Custom Scrollbar specifically for Dropdown List */
#countryList::-webkit-scrollbar {
  width: 6px;
}

/* ==========================================================
   OUR PRODUCTS: Rainbow Glowing Border Effect (Images Untouched)
   ========================================================== */

.glow-card-wrapper {
  position: relative;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Vibrant Rainbow Conic Gradient Border */
.glow-card-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%, 
    #d4af37 0deg, 
    #d4af37 51deg, 
    #d4af37 102deg, 
    #ffffff 153deg, 
    #ffffff 204deg, 
    #ffffff 255deg, 
    #0A2240 306deg, 
    #0A2240 360deg
  );
  z-index: -1;
  animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.glow-card-wrapper article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100% - 4px);
  margin: 2px;
  background: #ffffff;
  border-radius: calc(0.75rem - 2px);
  overflow: visible !important;
  z-index: 1;
}

.glow-card-wrapper:hover {
  box-shadow: 0 0 25px rgba(255, 127, 0, 0.6);
}

/* ==========================================================
   Product Cards Equal Height & Icon Overlap Alignment Fix
   ========================================================== */

.glow-card-wrapper article > div:first-child {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
}

.glow-card-wrapper article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glow-card-wrapper article > div:last-child {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  padding: 1.25rem 1rem 1rem 1rem;
  text-align: center;
}

.glow-card-wrapper article .w-8.h-8,
.glow-card-wrapper article div.-mt-4 {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin-top: 0 !important;
  z-index: 30;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.glow-card-wrapper h3 {
  margin-top: 0.75rem;
}

.glow-card-wrapper p {
  flex-grow: 1;
}

/* ==========================================================
   Right to Left Slide Animation for Product Sliders
   ========================================================== */

@keyframes slideRightToLeft {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.slide-rtl {
  animation: slideRightToLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================
   Gallery Modal & Product Cards: Original Dimension Fix (No Crop)
   ========================================================== */

#modalGalleryGrid img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background-color: #f8fafc;
}

#modalGalleryGrid > div {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8fafc;
  border-radius: 0.5rem;
}

/* Contact Section Golden Glow Effect */
.contact-glow-box {
  box-shadow: 0 0 25px rgba(196, 154, 60, 0.2);
  border: 1px solid rgba(196, 154, 60, 0.4) !important;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
}

.contact-glow-box:hover {
  box-shadow: 0 0 35px rgba(196, 154, 60, 0.4);
  transform: translateY(-2px);
}

