/* 1-comon style ////////////////////////////////////////////////////////// */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.hover-opacity {
  transition: opacity 0.5;
}

.hover-opacity:hover {
  opacity: 0.7;
}

.ltr {
  position: relative;
}

.ltr:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
  background-color: #e56a48;
  opacity: 0.2;
}

.ltr:hover::after {
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: -1;
}

/*  2-general style //////////////////////////////////////////////////////////////////////////////////////////// */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

img {
  max-width: 100%;
}

.container {
  width: 80%;
  margin: auto;
}

a {
  text-decoration: none;
}

.section-header {
  text-align: center;
}

.section-header .section-title {
  font-size: 35px;
  text-transform: capitalize;
  margin-bottom: 9px;
  margin-top: 6px;
}

.section-header .line {
  display: block;
  width: 62px;
  height: 4px;
  background-color: #e56a48;
  margin: 0 auto 70px auto;
}

/* 3.0 header //////////////////////////////////////////////////////////////////////////////////////// */
.header {
  position: fixed;
  width: 100%;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.85);
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header .header-content {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .logo {
  width: auto;
  flex: 0 0 auto;
  float: none;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  left: -12px;
}

.header .logo img {
  display: block;
}

.logo-name {
  color: #e56a48;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  width: auto;
  flex: 1;
  float: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  text-align: right;
}

.clear {
  clear: both;
}

.header .container .header-content .nav > li {
  list-style: none;
  display: block;
  position: relative;
}

.header .container .header-content .nav > li > a {
  color: rgb(252, 252, 252);
  padding: 12px;
  display: block;
}

.header .container .header-content .nav > li > a:after {
  content: "";
  width: 0;
  height: 3px;
  display: block;
  background-color: #e56a48;
  margin-top: 2px;
  transition: 0.5s;
}

.header .container .header-content .nav > li > a:hover:after {
  width: 100%;
}

.header .container .header-content .nav > li.active > a:after {
  width: 100%;
}

.header .container .header-content .nav > li.active > a {
  color: #e56a48;
}

/* 3.1 home section /////////////////////////////////////////////////////////////////////////////////////////// */
.home {
  height: 100vh;
  background-image: url(../images/home.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-content {
  position: absolute;
  text-align: center;
  width: 65%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-content .home-content-title {
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.12;
  text-transform: uppercase;
}

.home .overlay .home-content span {
  color: #ff714a;
}

.home-content-para {
  max-width: 620px;
  margin: 18px auto 24px;
  color: white;
  letter-spacing: 1.5px;
  line-height: 1.6;
}

.home-content .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  padding: 15px 18px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.btn-start {
  margin-right: 10px;
  background-color: #fff;
  color: #333;
}

.btn-learn {
  background-color: #e56a48;
  color: cornsilk;
}

/* 3.2 about section //////////////////////////////////////////////////////////////////////// */
.od-y {
  padding: 120px 0;
}

.about-content {
  text-align: center;
  height: auto;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 5%;
}

.about-item {
  width: 100%;
  height: 100%;
  float: none;
  text-align: center;
  border: 1px solid gray;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
}

.about-item.mg {
  margin: 0;
}

.about-content > .clear {
  display: none;
}

.icon {
  color: #e56a48;
  margin-bottom: 10px;
}

.about-item-title {
  text-transform: capitalize;
  margin-bottom: 15px;
  transition: color 0.5s;
}

.about-content p {
  letter-spacing: 2px;
  line-height: 22px;
  margin-bottom: 15px;
  color: #575757;
}

.about-item-link {
  color: #e56a48;
  text-transform: capitalize;
  margin-top: auto;
}

.about-item:hover .about-item-title {
  color: white;
  transition: color 1s;
}

/* 3.3 SERVICE SECTION /////////////////////////////////////////////////////////////////////////////////////////// */
.service {
  background-color: #f9f9f9;
  margin-top: 0;
}

.service-item {
  width: 50%;
  float: left;
}

.service-item .section-header {
  text-align: left;
}

.service-item .section-header .line {
  margin: 0 0 45px 0;
}

.service-item-desc {
  padding-right: 20px;
  color: #999;
  line-height: 1.4;
  font-size: 18px;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
}

.service-list li i {
  border: 1px solid #e56a48;
  color: #e56a48;
  padding: 3px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.service-list li {
  margin-bottom: 13px;
  color: #999;
}

/* Carousel styles */
#serviceCarousel img {
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

#serviceCarousel {
  border-radius: 8px;
  overflow: hidden;
}

/* 3.4 NUMBERS SECTION //////////////////////////////////////////////////////////////////////////// */
.numbers {
  position: relative;
  background-image: url(../images/table-710040_960_720.jpg);
  height: 350px;
  background-size: cover;
  background-attachment: fixed;
}

.numbers-items {
  overflow: hidden;
  padding-top: 130px;
}

.number-item {
  width: 25%;
  float: left;
  text-align: center;
}

.number-item .icon {
  color: #e56a48;
  margin-bottom: 15px;
}

.number-item-title {
  font-weight: bold;
  font-size: 30px;
  color: #fff;
}

.number-item-text {
  color: #fff;
}

/* 3.5 PRODUCTS SECTION//////////////////////////////////////////////////////////////////////////////////// */
.products {
  background-color: #f8f8f8;
}

.products-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background-color: #fff;
  border: 1px solid #eeeeee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.product-card-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background-color: #e56a48;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  border-radius: 4px;
}

.product-card-info {
  padding: 20px;
}

.product-card-info h3 {
  margin-bottom: 10px;
  font-size: 20px;
  text-transform: capitalize;
}

.product-card-info p {
  min-height: 66px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-link {
  color: #e56a48;
  font-weight: 600;
  text-transform: capitalize;
}

.product-link i {
  margin-left: 5px;
  font-size: 12px;
  transition: margin-left 0.3s ease;
}

.product-link:hover i {
  margin-left: 9px;
}

/* 3.6 BLOG SECTION//////////////////////////////////////////////////////////////////////////////////////// */
.bd-y {
  padding-top: 60px;
}

.blog-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-item {
  width: 100%;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(39, 30, 25, 0.16);
}

.blog-item-img {
  width: 100%;
  margin-left: 0;
  overflow: hidden;
}

.blog-item-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.blog-item:hover .blog-item-img img {
  transform: scale(1.08);
}

.blog-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  list-style: none;
  margin: 10px 0;
  white-space: nowrap;
}

.blog-list li {
  display: block;
  margin: 0;
  font-size: 11px;
}

.blog-list li i {
  color: #e56a48;
}

.blog-info {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blog-title {
  min-height: 48px;
  font-weight: bold;
  margin: 16px 0 14px;
}

.blog-desc {
  color: #999;
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.5;
}

.blog-link {
  color: #e56a48;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.blog-link::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.blog-link:hover {
  color: #bd4d30;
  gap: 10px;
}

.blog-link:hover::after {
  transform: translateX(2px);
}

.blog-item.mg {
  margin: 0;
}

.blog-item:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  right: 0%;
  bottom: 0;
  transition: opacity 0.35s ease;
  opacity: 0;
  background: linear-gradient(135deg, rgba(229, 106, 72, 0.08), rgba(229, 106, 72, 0.28));
  pointer-events: none;
}

.blog-item:hover:after {
  width: 100%;
  height: 100%;
  opacity: 1;
}

/* 3.7 CONTACT SECTION /////////////////////////////////////////////////////////////////////////////////// */
.contact {
  background-color: #f8f8f8;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-item {
  padding: 28px 20px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #eeeeee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.contact-item i {
  margin-bottom: 14px;
  color: #e56a48;
  font-size: 24px;
}

.contact-item h3 {
  margin-bottom: 10px;
  text-transform: capitalize;
}

.contact-item p,
.contact-item a {
  color: #777;
  line-height: 1.5;
}

.contact-item a:hover {
  color: #e56a48;
}

/* 3.8 FOOTER SECTION //////////////////////////////////////////////////////////////////////////////////// */
.footer {
  background: #24292d;
  color: #fff;
  padding: 70px 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand,
.footer-column { min-width: 0; }

.footer-photo {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.footer-brand p,
.footer-contact p,
.footer-contact a {
  color: #bfc3c5;
  line-height: 1.7;
  font-size: 14px;
}

.footer-column h4 {
  margin: 8px 0 18px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav { list-style: none; }

.footer-nav li { margin-bottom: 10px; }

.footer-nav a {
  color: #bfc3c5;
  font-size: 14px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-nav a:hover {
  color: #e56a48;
  padding-left: 5px;
}

.footer-contact a,
.footer-contact p {
  display: block;
  margin-bottom: 10px;
}

.footer-contact i {
  width: 20px;
  color: #e56a48;
  margin-right: 5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
}

.footer-link {
  list-style: none;
  display: flex;
  gap: 10px;
}

.footer-link li {
  display: inline-block;
  background-color: #e56a48;
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

.footer-link li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #e56a48;
  color: #fff;
  padding: 0;
  font-size: 23px;
  margin: 0;
}

.footer-link li:after {
  position: absolute;
  content: "";
  opacity: 0;
  transition: 0.5s;
  background-color: #e56a48;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0%;
  bottom: 0;
}

.footer-link li:hover:after {
  opacity: 0.7;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 50%;
}

.footer p {
  color: #9da3a6;
  font-size: 12px;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE STYLES
   Breakpoints: Navigation <= 1200px | Tablet <= 900px | Mobile <= 600px
   ============================================================ */

@media (max-width: 1200px) {
  /* Keep all navigation links visible and wrap them when space is tight. */
  .header .header-content {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .header .logo {
    width: auto;
    float: none;
  }

  .header .logo img {
    display: block;
  }

  .nav {
    width: auto;
    flex: 1;
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    text-align: right;
  }

  .header .container .header-content .nav > li {
    display: block;
    position: relative;
  }

  .header .container .header-content .nav > li > a {
    padding: 12px 9px;
    font-size: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .container {
    width: 90%;
  }

  .home-content {
    width: 86%;
  }

  .home-content .home-content-title {
    font-size: clamp(44px, 5vw, 54px);
  }

  .about-content,
  .products-content,
  .blog-content,
  .contact-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    height: auto;
    overflow: visible;
    padding-left: 0;
  }

  .about-content {
    grid-auto-rows: 1fr;
  }

  .about-item,
  .blog-item {
    width: 100%;
    float: none;
    margin: 0 !important;
  }

  .about-content > .clear {
    display: none;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(90%, 720px);
  }

  .header .container {
    max-width: none;
  }

  .header .header-content {
    min-height: 0;
    width: 100%;
    padding: 7px 0 8px;
    flex-direction: column;
    gap: 2px;
  }

  .header .logo {
    left: 0;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
    text-align: center;
  }

  .header .container .header-content .nav > li > a {
    padding: 8px 5px;
    font-size: 13px;
  }

  .home-content {
    width: min(86%, 650px);
  }

  .home-content .home-content-title {
    font-size: clamp(36px, 7vw, 50px);
  }

  .od-y {
    padding: 80px 0;
  }

  .bd-y {
    padding: 80px 0;
  }

  .section-header .line {
    margin-bottom: 48px;
  }

  .about-content,
  .products-content,
  .blog-content,
  .contact-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    height: auto;
    overflow: visible;
    padding-left: 0;
  }

  .about-content {
    grid-auto-rows: 1fr;
  }

  .about-item,
  .blog-item {
    width: 100%;
    float: none;
    margin: 0 !important;
  }

  .about-content > .clear {
    display: none;
  }

  .service .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .service-item {
    width: 100%;
    float: none;
  }

  .service .clear {
    display: none;
  }

  .service-item .section-header {
    text-align: center;
  }

  .service-item .section-header .line {
    margin: 0 auto 45px;
  }

  .service-item-img {
    display: flex;
    justify-content: center;
  }

  .numbers {
    height: auto;
    min-height: 350px;
    background-attachment: scroll;
  }

  .numbers-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 20px;
    padding: 70px 0;
    overflow: visible;
  }

  .number-item {
    width: 100%;
    float: none;
  }

  .blog-item:last-of-type {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }

  .footer-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-link li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(90%, 420px);
  }

  .od-y {
    padding: 58px 0;
  }

  .bd-y {
    padding: 58px 0;
  }

  .section-header .section-title {
    padding: 0 16px;
    font-size: 25px;
  }

  .section-header .line {
    margin-bottom: 38px;
  }

  .header .header-content {
    min-height: 0;
    padding: 7px 0 8px;
    flex-direction: column;
    gap: 2px;
  }

  .header .logo img {
    width: 52px;
    height: auto;
  }

  .logo-name {
    font-size: 16px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
    text-align: center;
  }

  .header .container .header-content .nav > li > a {
    padding: 7px 2px;
    font-size: 12px;
  }

  .header .container .header-content .nav > li > a:after {
    height: 2px;
    margin-top: 1px;
  }

  .home {
    min-height: 620px;
  }

  .home-content {
    width: 90%;
  }

  .home-content .home-content-title {
    font-size: clamp(29px, 10vw, 38px);
  }

  .home-content-para {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .home-content .hero-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  .about-content,
  .products-content,
  .blog-content,
  .contact-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .product-card-info p {
    min-height: 0;
  }

  .service-item-desc {
    padding-right: 0;
    font-size: 16px;
  }

  .service-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .service-list li i {
    flex: 0 0 20px;
  }

  #serviceCarousel img {
    height: 240px;
  }

  .numbers-items {
    padding: 54px 0;
    gap: 34px 12px;
  }

  .number-item-title {
    font-size: 24px;
  }

  .number-item-text {
    font-size: 13px;
  }

  .blog-item:last-of-type {
    grid-column: auto;
    width: 100%;
  }

  .blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .blog-list li {
    margin: 0;
  }

  .footer {
    height: auto;
    padding: 40px 18px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-brand { grid-column: auto; }

  .footer-photo {
    width: 130px;
    height: auto;
  }

  .footer-link li {
    width: 44px;
    height: 44px;
  }

  .footer-link li a {
    font-size: 19px;
  }

  .footer p {
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .home-content .hero-btn {
    display: block;
    width: min(210px, 100%);
    margin: 10px auto 0;
  }
}
