/* Fonts */
body {
    font-family: 'Manrope', sans-serif;
    color: #5A7184;
}
/* Hide scrollbar for Chrome, Safari, and Edge */
body::-webkit-scrollbar {
  display: none;
}

/* Ensure scrolling still works */
body {
  overflow: auto;
}


.heading-font,
.navbar-brand,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: #001546;
}


.card-body p {
    color: #79839A;
}



/* 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;
    }
}


.product-image-box {
    height: 250px;
    background-color: #E8E8E8; /* 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%; }
}

.products-section-bg {
  position: relative;
  background: linear-gradient(
    135deg,
    #F4F7FF 0%,
    #FFEEE4 100%
  );
  overflow: hidden;
}
.products-section-bg::before,
.products-section-bg::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* Top-left vector */
.products-section-bg::before {
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background-image: url("/assets/images/home/molecule.png");
  opacity: 0.15;
}

/* Bottom-right vector */
.products-section-bg::after {
  bottom: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background-image: url("/assets/images/home/molecule.png");
  opacity: 0.18;
}
.products-section-bg > .container {
  position: relative;
  z-index: 1;
}
.about-section-bg {
  position: relative;
  min-height: 600px; /* Ensures space for the image */
  background-image:
    linear-gradient(
      rgba(250, 252, 255, 0.85),
      rgba(250, 252, 255, 0.85)
    ),
    url("/assets/images/about/oilnew.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.about-section-bg .container {
  position: relative;
  z-index: 2;
}

.values-section-bg {
  position: relative;
  background-color: #FAFCFF;
  overflow: hidden;
}
.values-section-bg::before,
.values-section-bg::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* Top-left image */
.values-section-bg::before {
  top: -40px;
  left: -40px;
  width: 300px;
  height: 300px;
  background-image: url("/assets/images/home/chemicalformula.png");
  opacity: 0.15;
}

/* Bottom-right image */
.values-section-bg::after {
  bottom: -50px;
  right: -50px;
  width: 360px;
  height: 360px;
  background-image: url("/assets/images/home/beaker.png");
 
}
.values-section-bg .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .values-section-bg::before,
  .values-section-bg::after {
    width: 200px;
    height: 200px;
    opacity: 0.08;
  }
}



/* Floating + shiny animation */
.moving-word {
    display: inline-block;
    position: relative;
    color: #FB6000;
    font-weight: bold;
    animation: floatWord 2s ease-in-out infinite alternate;
    background: linear-gradient(120deg, #FB6000 30%, #fff 50%, #FB6000 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatWord 2s ease-in-out infinite alternate, shine 3s linear infinite;
}

/* Floating animation */
@keyframes floatWord {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Shining/glint animation */
@keyframes shine {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Glass pill */
.glass-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Nav links */
.nav-link {
  color: #a19595;
  font-family: 'Inter', sans-serif;
  transition: 0.3s;
}

.nav-link:hover {
  color: #ff6b0f;
}

/* Active tab */
.active-tab {
  color: #ff6b0f;
  font-weight: 600;
}

/* Contact button */
.btn-contact {
  background-color: #FB6000;
  color: #fff;
  border: none;
  transition: 0.3s;
}

.btn-contact:hover {
  background-color: #ff6b0f;
  color: #fff;
}


/* Icon box */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: #0F38A1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}


/* Custom 5-column layout */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Card */
.value-vertical-card {
    height: 210px; /* DECREASED */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.value-vertical-card:hover {
    transform: translateY(-3px);
}

/* Image */
.value-img-wrapper {
    height: 95px; /* DECREASED */
    position: relative;
    flex-shrink: 0;
}

.value-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image stroke */
.value-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* SMALLER */
    background: #FB6000;
}

/* Content */
.value-content {
    flex: 1;
    padding: 12px 10px; /* DECREASED */
    text-align: center;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: background 0.3s ease;
}

.value-content h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #001546;
    transition: color 0.3s ease;
}

.value-content p {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    line-height: 1.25;
    transition: color 0.3s ease;
}

/* Hover fill */
.value-vertical-card:hover .value-content {
    background: #001546;
}

.value-vertical-card:hover .value-content h5,
.value-vertical-card:hover .value-content p {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .value-vertical-card {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .value-vertical-card {
        height: 225px;
    }
}


/* ===============================
   RJ HERO – UPDATED VERSION
================================ */

.rj-hero-wrapper {
    position: relative;
    overflow: hidden;
}

/* BACKGROUND */
.rj-hero-bg {
    position: relative;
    height: 80vh;
    min-height: 640px;
}

.rj-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* OVERLAY (STRONG BOTTOM, LESS BLACK) */
.rj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 30%,   /* was 0.95 */
        rgba(0,0,0,0.50) 60%,   /* was 0.65 */
        rgba(0,0,0,0.15) 100%   /* was 0.2 */
    );
}


/* INNER LAYOUT */
.rj-hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
    color: #ffffff;
}


.rj-hero-heading {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
}

.rj-hero-subtext {
    font-size: 1.1rem;
    margin: 16px 0 22px;
}



/* LABEL + LONG LINE */
.rj-hero-label-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 18px;
}

.rj-hero-label-text {
    font-size: 0.75rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
}

.rj-hero-long-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255,255,255,0.5);
}

/* VALUES */
.rj-hero-values {
    padding-top: 18px;
}


/* MOBILE */
@media (max-width: 768px) {
    .rj-hero-heading {
        font-size: 2.2rem;
        margin-top: 50px;
    }

    .rj-value-item {
        text-align: left;
        margin-bottom: 20px;
    }
}
/* Initial navbar: transparent over hero */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Navbar after scroll */
.navbar.scrolled {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Navbar underline */
.navbar-underline {
    border: 0;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
}

/* Nav-link styling */
.nav-link {
    color: white; /* visible over hero */
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.navbar.scrolled .nav-link {
    color: black; /* after scroll */
}

/* Active tab */
.nav-link.active-tab {
    font-weight: 600;
    color: #FB6000  !important;
}
.nav-link.active-tab::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FB6000;
    border-radius: 2px;
}

/* Hover effect */
.nav-link:hover {
    color: #FB6000;
}

/* Contact button */
.btn-contact {
    background-color: #FB6000;
    color: #fff;
    transition: all 0.3s ease;
}
.navbar.scrolled .btn-contact {
    background-color: #FB6000;
    color: #fff;
}

/* Mobile hamburger icon */
.navbar-toggler {
    color: white;
}
.navbar.scrolled .navbar-toggler {
    color: black;
}
.navbar-toggler-icon {
    filter: invert(1); /* white over hero */
}
.navbar.scrolled .navbar-toggler-icon {
    filter: invert(0); /* black when scrolled */
}

/* Mobile menu */
.mobile-menu {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
}
.mobile-menu .nav-link {
    color: black;
}
.mobile-menu .nav-link.active-tab {
    font-weight: 600;
    color: #FB6000;
}
.mobile-menu .btn-contact {
    background-color: black;
    color: white;
}
/* Mobile and tablet: make navbar sticky with white background */
@media (max-width: 991px) {
    .navbar {
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 10;
    }
    
    /* Hamburger icon visible */
    .navbar-toggler-icon {
        filter: invert(0); /* black icon */
    }
}

/* Product card hover effect */
.products-section-bg .position-relative {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-section-bg .position-relative:hover {
    transform: translateY(-8px);
}

/* Optional: slightly stronger card shadow on hover */
.products-section-bg .position-relative:hover .card {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
