/* Fonts */
body {
    font-family: 'Manrope', sans-serif;
    color: #5A7184;
}

.heading-font,
.navbar-brand,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: #001546;
}


.card-body p {
    color: #79839A;
}

/* Navbar */
.nav-link {
    color: #000;
}

.nav-link.active {
    color: #0F38A1 !important;
}

/* Contact Button */
.btn-contact {
    background-color: #FB6000;
    color: #ffffff;
}

.btn-contact:hover {
    background-color: #e55600;
    color: #ffffff;
}

/* Keep navbar above hero visually */
.hero-section {
    top: -74px;
    display: block;
}


/* Navbar overlay */
.hero-navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

/* Hero Image */
.hero-image-wrapper img {
    height: 80vh;
    object-fit: cover;
}

.hero-content {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center on desktop */
    align-items: center;
    /* horizontal center on desktop */
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Tablets & Mobile: align left and add top spacing */
@media (max-width: 991.98px) {
    .hero-content {
        justify-content: flex-start;
        /* shift from top */
        align-items: flex-start;
        /* align left */
        text-align: left;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 5%;
        /* small top spacing */
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding-top: 10%;
        /* more top spacing for mobile */
    }
}


/* Cards overlapping hero */
.hero-cards {
    position: relative;
    z-index: 3;
    margin-top: -8rem;
    padding-bottom: 3rem;
}

.card-desc {
    min-height: 3rem;
    /* ~2 lines depending on font-size */
    line-height: 1.5;
}

.hero-card {
    max-width: 415px;
}

/* Default (desktop / very large screens) */
.hero-heading {
    font-size: 4rem;
}

.hero-subtext {
    font-size: 1.25rem;
}

/* Laptop (992px – 1199px) */
@media (max-width: 1199.98px) {
    .hero-heading {
        font-size: 3.2rem;
    }

    .hero-subtext {
        font-size: 1.2rem;
    }
}

/* Tablets (768px – 991.98px) */
@media (max-width: 991.98px) {
    .hero-heading {
        font-size: 2.8rem;
    }

    .hero-subtext {
        font-size: 1.125rem;
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .hero-heading {
        font-size: 1.9rem;
    }

    .hero-subtext {
        font-size: 0.7rem;
    }
}


/* Responsive rounding */
@media (max-width: 991.98px) {
    .rounded-pill {
        border-radius: 25px !important;
    }
}

/* Base: Default positioning for large screens */
.about-card {
    width: 450px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(40%);
    border-radius: 0.75rem;
}

/* Large laptops */
@media (max-width: 1199.98px) {
    .about-card {
        width: 400px;
        bottom: 10px;
        transform: translateX(-50%) translateY(25%);
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .about-card {
        width: 90%;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%) translateY(25%);
    }

    .col-lg-6 .position-relative img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .about-card {
        width: 95%;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .about-card {
        width: 95%;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Square Background for Product Images */
.bg-light {
    background-color: #E8E8E8 !important;
}

/* Make overlapping cards responsive */
@media (max-width: 991.98px) {
    .position-relative>.card {
        width: 80% !important;
        bottom: -30px !important;
    }
}

@media (max-width: 575.98px) {
    .position-relative>.card {
        width: 90% !important;
        bottom: -25px !important;
    }
}

/* Hover bottom border effect */
.value-card {
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-bottom: 4px solid #0F38A1;
    transform: translateY(-3px);
}
.value-card p {
    color: #79839A;
}


.product-image-box {
    height: 250px;
    background-color: #f8f9fa; /* same as bg-light */
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* IMPORTANT: prevents image overflow */
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* keeps image inside without cropping */
}

/* =============================
   Loader Wrapper
============================= */
#page-loader {
  position: fixed;
  inset: 0;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* =============================
   Body Blur Overlay (NO WRAPPER REQUIRED)
============================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(163, 163, 163, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9998;
}

body.loading::before {
  opacity: 1;
  pointer-events: auto;
}

/* Disable scrolling during loading */
body.loading {
  overflow: hidden;
}

/* =============================
   Loader Animation
============================= */
.react-star {
  position: relative;
  width: 15rem;
  height: 15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotate 6s infinite linear;
}

.nucleus {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FB6000, #0F38A1);
  animation: rotate 3s linear infinite;
}


.electron {
  position: absolute;
  width: 15rem;
  height: 6rem;
  border-radius: 50%;
  border: 0.3rem solid #0F38A1;
  animation: revolve 2.5s linear infinite;
}

.electron::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  background-color: #FB6000;
  border-radius: 50%;
  animation: moveElectron 2.5s linear infinite;
}


.electron2 {
  transform: rotate(60deg);
  animation-delay: -0.66s;
}

.electron2::before {
  animation-delay: -0.66s;
}

.electron3 {
  transform: rotate(-60deg);
}

/* =============================
   Animations
============================= */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg) scale(1.1); }
}

@keyframes revolve {
  0%   { border-right-color: transparent; }
  25%  { border-bottom-color: transparent; }
  50%  { border-left-color: transparent; }
  75%  { border-top-color: transparent; }
  100% { border-right-color: transparent; }
}

@keyframes moveElectron {
  0%   { top: 60%; left: 100%; }
  25%  { top: 100%; left: 60%; }
  50%  { top: 60%; left: 0%; }
  75%  { top: 0%;   left: 60%; }
  100% { top: 60%; left: 100%; }
}
