/*
	Theme Name: Nilab Faravar Asia
	Theme URI: https://nilabfaravarasia.com
	Author: Nilab Faravar Asia Co
	Author URI: https://nilabfaravarasia.com
	Description: قالب اختصاصی شرکت نیلاب فرآور آسیا
	Version: 1.0.2
	Text Domain: nfaco
*/

/* 
 * Any of your own custom CSS styles go here.
 * Do NOT put PHP code or @import for Bootstrap here.
 */

/* Import and define iransans font */
@font-face {
  font-family: 'poppins';
  src: url('assets/fonts/poppinsMedium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

body {
  direction: ltr;
	font-family: poppins;
}

:root {
  --primary: #0c1f3f;
  --secondary: #4db7ff;
}

a {
  text-decoration: none !important;
}

a:hover {
  color: #42c3ef !important;
}

i.fa:hover {
  color: #42c3ef !important;
}

a.social-icon-link:hover {
  background: rgba(13, 110, 253, 0.25);
}

ul {
  padding: 0 !important;
  margin: 0 !important;
}

ul li, li {
  list-style: none;
}

.top-bar ul li:not(:last-child),
footer ul li:not(:last-child) {
  padding-right: 16px;
}

.top-bar {
  background-color: #000;
  color: #fff;
  font-size: 14px;
  line-height: 28px;
}

.top-bar a .fa {
  color: #fff !important;
}

.navbar-toggler {
  border: none !important;
}
.navbar-toggler:hover {
  box-shadow: none;
}

.contact-box a {
  color: #000000;
}

.top-bar a {
  color: #ffffff;
}

.top-bar .text-right {
    text-align: right;
}

.navbar .custom-logo {
  width: 100px;
  height: 40px;
}

.navbar-brand img {
  width: 100px;
}

.navbar ul.navbar-nav > li:not(:last-child) {
  padding-right: 16px;
}

.dropdown-menu li a {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.section {
  padding: 80px 0;
}

.hero-company {
  overflow: hidden;
  background: linear-gradient(135deg, #0a2b3e 60%, #134b6b 100%);
}

.head {
  font-weight: 700;
  color: rgb(30, 70, 99);
}

.tender-img img {
  width: 100%;
  min-height: 248px;
  background: #e2e2e2;
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.hero-company::before {
  content: "⚙️";
  font-size: 10rem;
  opacity: 0.08;
  position: absolute;
  right: 60px;
  bottom: 40px;
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  pointer-events: none;
  animation: loader 10s infinite;
}

@keyframes loader {
  0% {
      rotate: 0deg;
  }

  100% {
      rotate: 180deg;
  }
}

.info-card {
  background: #f9fafc;
  border-radius: 6px;
  padding: 2rem 1.8rem;
  height: 100%;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.info-card:hover,
.news-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: rgb(230, 126, 34);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.project-stats {
  background: #f8fafc;
  border-radius: 28px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #e67e22;
  line-height: 1.2;
}

.consumer-card {
  background: white;
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  transition: transform 0.2s;
  border-left: 4px solid #e67e22;
}

.consumer-card:hover {
  transform: translateX(5px);
}

.timeline-badge {
  background: #e67e22;
  color: white;
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.info-box {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.info-box i {
  color: #e67e22;
  font-size: 1.4rem;
  width: 2rem;
}

.btn-main {
  background: var(--secondary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
}

.btn-darkblue {
  background: var(--primary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
}

.btn-darkblue.btn-sm.mt-3 a {
    color: #fff;
}

.btn-darkblue.btn-sm.mt-3 {
    display: inline-block;
}

.hero {
  background: #f6f8fb;
  padding: 120px 0;
  text-align: center;
}

.hero {
  overflow: hidden;
}

/* لایه تیره رو دوباره روی انیمیشن قرار میدیم */
.hero > .position-absolute {
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero h1 {
  font-size: 38px;
}

.about-icons i {
  font-size: 26px !important;
}

.bg-soft-light {
  background-color: #f8f9fc;
}

.bg-light {
    background: url(assets/images/bg.png) no-repeat right top;
}

.rounded-circle {
  width: 58px;
  height: 58px;
} 

.rounded-circle .fa {
  font-size: 28px !important;
}

.project-card {
  border: 1px solid #eee;
  margin-bottom: 20px;
  border-radius: 6px;
  background: #fff;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.project-card img, .service-card img, .news-card img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
}

.project-card .col-md-8 {
  padding: 16px !important;
}

.project-card .fade-in-item.is-visible {
  padding-left: 0;
}

.news-card.fade-in-item.is-visible {
  padding: 0 !important;
}

.service-card {
  padding: 30px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.service-card img {
  margin-bottom: 20px;
}

.service-category-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eef2f6;
}
.service-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.08);
}
.service-icon {
  font-size: 2.8rem;
  color: #e67e22;
  margin-bottom: 1rem;
}
.service-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1e4663;
  border-left: 4px solid #e67e22;
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}
.sub-service-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c5a7a;
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
}
.task-list {
  list-style: none;
  padding-left: 0;
}
.task-list li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.task-list li i {
  color: #e67e22;
  font-size: 1rem;
  margin-top: 0.2rem;
}
.badge-service {
  background-color: #fef3e8;
  color: #e67e22;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.8rem;
}
.section-title h2 {
  font-weight: 800;
  color: #0a2b3e;
  font-size: 2.2rem;
}
.section-title p {
  color: #4a627a;
  max-width: 700px;
  margin: 0 auto;
}
.divider {
  width: 80px;
  height: 3px;
  background-color: #e67e22;
  opacity: 1;
  margin: 0.5rem auto;
}

.news-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 6px;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  background-color: #fff;
}

.news-card .info {
  font-size: 12px;
  margin-bottom: 20px;
  color: #4d4d4d;
}

.news-card .description {
  margin-bottom: 30px;
}

.partner-logo {
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.partner-logo img {
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Custom carousel control buttons */
.carousel-inner {
  padding-top: 30px;
  padding-bottom: 30px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #1a1a1a;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-size: 50%;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.7;
  transition: opacity 0.3s;
}

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

/* Carousel indicators styling */
.carousel-indicators {
  margin-bottom: 0rem !important;
}
.carousel-indicators button {
  background-color: #1a1a1a;
  width: 40px;
  height: 4px;
  border-radius: 4px;
}

.carousel-indicators button.active {
  background-color: #0d6efd;
}

.carousel-indicators [data-bs-target] {
  background-color: #6c757d !important;
}

.project-featured-image {
  position: relative;
}

.project-featured-image img {
  height: 300px;
}

.project-featured-image::before,
.project-featured-image::after {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  top: 0;
  right: 0;
  background: rgba(73, 195, 241, 0.4);
  border-radius: 20px;
  z-index: -1;
  transform: rotate(10deg);
  transform-origin: center;
}

.project-featured-image::before {
  transform: rotate(10deg);
}

.project-featured-image::after {
  transform: rotate(5deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partner-logo {
    min-height: 90px;
  }
  .partner-logo img {
    max-height: 50px !important;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }
  .project-card h5 {
    margin-top: 10px;
  }

  footer {
    padding-top: 300px;
  }
  footer .row div {
    margin-bottom: 20px;
  }
}

@media (min-width: 769px) {
  .socials {
    text-align: right;
  }

  footer {
    padding-top: 180px;
  }
}

.contact-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: absolute;
  left: 5%;
  right: 5%;
}

.contact-box .social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #f1f5f9;
  border-radius: 50%;
  transition: all 0.25s ease-in-out;
  color: #1e293b;
  text-decoration: none;
  font-size: 1.35rem;
}

footer {
  background: #1a1a1a;
  color: #ccc;
}

footer p {
  font-size: 14px;
}

footer .copyright {
  font-size: 12px
}

footer .copyright ul#menu-legal {
  text-align: right;
}

.top-bar ul li, footer .copyright ul li {
  display: inline;
}

footer a {
  color: #aaa;
}

footer .logo {
  width: 200px;
}


/* Projects Parallax Section */
.parallax {
  position: relative;
  background-image: url('assets/images/paralax.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0;
  color: #ffffff;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.parallax .container {
  position: relative;
  z-index: 2;
}

.parallax h2 {
  color: white !important;
}


@keyframes slowZoom {
    0% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}


/* ---------- Scroll Animations ---------- */
.fade-in-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  visibility: hidden;
}

.fade-in-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0turn;
}

.scroll-animate-section .service-card {
  --border-angle: 0turn;
  --main-bg: conic-gradient(
    from var(--border-angle),
    #fff,
    #fff 5%,
    #fff 60%,
    #fff 95%
  );
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #19A8EA,
    #072b79 99%,
    transparent
  );
  border: 3px solid transparent;
  background:
    var(--main-bg) padding-box,
    var(--gradient-border) border-box;
  animation: bg-spin 6s linear infinite;
  color: #212529;
  cursor: pointer;
}

@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}