body {
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
}
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

.dark-mode .navbar,
.dark-mode .certification-item,
.dark-mode .process-step {
    background-color: #1f1f1f !important;
}

.dark-mode .bg-light,
.dark-mode #image-slider {
    background-color: #2c2c2c !important;
}

.dark-mode .section-title,
.dark-mode .about-text-block h3,
.dark-mode .certification-item h5,
.dark-mode .process-step h5,
.dark-mode .marquee p {
    color: #fff;
}

.dark-mode .certification-item p,
.dark-mode .process-step p {
    color: #ccc;
}

/* Dark mode box shadows for elements */
.dark-mode .certification-item,
.dark-mode .process-step {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.08);
}

.dark-mode .whatsapp-btn {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.dark-mode footer h5 {
    color: #4CAF50;
}

body.dark-mode .contact-main-section {
    background-color: #1a1a1a;
}

body.dark-mode .contact-details-block,
body.dark-mode .contact-form-block {
    background-color: #2c2c2c;
    color: #f1f1f1;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

body.dark-mode .contact-details-block h3,
body.dark-mode .contact-form-block h3 {
    color: #fff;
}

body.dark-mode .form-control {
    background-color: #333;
    color: #fff;
    border-color: #444;
}

body.dark-mode .form-control::placeholder {
    color: #aaa;
}

body.dark-mode .values-section {
    background-color: #1a1a1a;
    color: #f1f1f1;
}

body.dark-mode .values-section .value-card {
    background-color: #2c2c2c;
    border-color: #444;
}

body.dark-mode .values-section .value-card:hover {
    background-color: #333;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

body.dark-mode .blog-content-section {
    background-color: #1a1a1a;
}

body.dark-mode .blog-card {
    background-color: #2c2c2c;
    color: #f1f1f1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .blog-card:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .blog-card .card-text {
    color: #bbb !important;
}

body.dark-mode .sidebar-block {
    background-color: #2c2c2c;
    color: #f1f1f1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .sidebar-block h5 {
    color: #fff;
}

body.dark-mode .sidebar-list a {
    color: #f1f1f1;
}

:root {
    --gold-color: #FFD700;
    --light-gold-color: #f0e68c;
    --dark-color: #121212;
}

.bg-dark-golden {
    background-color: var(--dark-color) !important;
}

.text-gold {
    color: var(--gold-color) !important;
}

.text-light-gold {
    color: var(--light-gold-color) !important;
}

.top-bar .text-gold {
    color: var(--gold-color);
}

.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold-color);
}

/* Dark mode nav link styles */
body.dark-mode .navbar .nav-link {
    color: #f1f1f1;
}

body.dark-mode .navbar .nav-link:hover,
body.dark-mode .navbar .nav-link.active {
    color: var(--gold-color);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; 
}

.navbar {
    position: fixed;
    top: 36px; /* Space below the top bar */
    left: 0;
    width: 100%;
    z-index: 1040;
}

.navbar-brand .logo-img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand .logo-img:hover {
    transform: scale(1.1);
}

#theme-toggle {
    border: none;
    transition: all 0.3s ease;
}

#theme-toggle i {
    font-size: 1rem;
}

body.dark-mode #theme-toggle {
    background-color: #2c2c2c !important;
}

.hero-section {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff; /* Default font color for hero section */
}

body.dark-mode .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: #f1f1f1;
}

.hero-section h1,
.hero-section p {
    color: #fff; /* Ensure text is white in light mode */
}

.hero-section h2 {
    font-size: 1.5rem;
}

body.dark-mode .hero-section h1,
body.dark-mode .hero-section p {
    color: #f1f1f1; /* Ensure text is light in dark mode */
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.marquee {
    white-space: nowrap;
    animation: marquee-animation 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    display: inline-block;
}

#image-slider {
    background-color: #f8f9fa;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(70%);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    bottom: 20%;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #f1f1f1;
}

.carousel-caption .btn {
    font-size: 1rem;
}

.about-image-block img {
    max-height: 800px;
    object-fit: cover;
    position: center;
}

.certification-item,
.process-step {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certification-item:hover,
.process-step:hover {
    transform: translateY(-5px);
}

.contact-hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/img/contact-hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
}

.contact-main-section {
    background-color: #f8f9fa;
}

.contact-details-block,
.contact-form-block {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-details-block:hover,
.contact-form-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-details-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details-block h3 {
    font-weight: 700;
    color: #333;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-list li i {
    min-width: 30px;
    text-align: center;
}

.contact-form-block h3 {
    font-weight: 700;
    color: #333;
}

.form-control {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.about-hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/img/about-hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
}

.company-intro-section img {
    max-height: 400px;
    object-fit: cover;
}

.values-section .value-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.values-section .value-card:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section {
    background: #0d6efd;
    background: linear-gradient(90deg, #0d6efd 0%, #003366 100%);
}

.blog-hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/img/about-hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
}

.blog-content-section {
    background-color: #f8f9fa;
}

.blog-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.read-more-link {
    color: #0d6efd;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0a58ca;
}

.sidebar-block {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-list a:hover {
    color: #0d6efd;
}

.sidebar-list li i {
    color: #0d6efd;
}

footer {
    background-color: #212529 !important;
}

body.dark-mode footer {
    background-color: #1a1a1a !important;
}

footer h5 {
    color: #fff;
}

.list-inline-item a {
    color: #fff;
    transition: color 0.3s ease;
}

.list-inline-item a:hover {
    color: #0d6efd;
}

.col-md-2.col-lg-2.col-xl-2.mx-auto.mt-3 a:hover,
.col-md-3.col-lg-2.col-xl-2.mx-auto.mt-3 a:hover {
    color: #0d6efd !important;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@media (min-width: 992px) {
    body {
        padding-top: 100px; 
    }
    .navbar {
        top: 36px; 
    }
}

@media (max-width: 991.98px) {
    .top-bar {
        display: block !important;
        position: static;
    }
    .navbar {
        position: sticky;
        top: 0;
    }
    body {
        padding-top: 0; 
    }
    .hero-section {
        height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.25rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .carousel-item img {
        height: 300px;
    }
    .carousel-caption {
        bottom: 5%;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
    .certification-item, .process-step {
        margin-bottom: 1.5rem;
    }
    #theme-toggle {
        border: none;
        transition: all 0.3s ease;
    }
    #theme-toggle i {
        font-size: 1rem;
    }
    body.dark-mode #theme-toggle {
        background-color: #2c2c2c !important;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 2rem;
    }
    .carousel-caption {
        padding: 0.5rem;
    }
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100vw;
    min-height: 100vh; 
}

#preloader .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out; /* Increased transition duration */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.testimonial-author h5 {
    font-weight: 700;
    color: #333;
    margin-top: 1rem;
}

.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}

.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}

.timeline > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-panel {
    width: 46%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}

.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #ccc;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}

.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}

.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #999999;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}

.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}

.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline-badge.primary {
    background-color: #2e6da4 !important;
}

.timeline-badge.success {
    background-color: #3f903f !important;
}

.timeline-badge.warning {
    background-color: #f0ad4e !important;
}

.timeline-badge.danger {
    background-color: #d9534f !important;
}

.timeline-badge.info {
    background-color: #5bc0de !important;
}

.timeline-title {
    margin-top: 0;
    color: inherit;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}

.timeline-body > p + p {
    margin-top: 5px;
}

.partners-section img {
    max-height: 80px;
    transition: transform 0.3s ease;
}

.partners-section img:hover {
    transform: scale(1.1);
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6c757d;
    font-style: italic;
}