/* ================================================
   DUNIA POLYMER — Shared Stylesheet
   Based on Megakit template
   ================================================ */
@import url("https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary: rgb(247, 87, 87);
  --primary-dark: #f52626;
  --dark: #242424;
  --gray-bg: #f5f8f9;
  --text: rgba(0,0,0,0.65);
}

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  line-height: 1.5;
  font-family: "Hind", serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  color: var(--text);
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--dark);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; line-height: 42px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; line-height: 30px; }
p  { line-height: 30px; }

/* ---- Buttons ---- */
.btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 1rem 2.5rem 0.8rem;
  text-transform: uppercase;
  border-radius: 0;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}
.btn-main  { background: var(--primary); color: #fff; }
.btn-main:hover { background: var(--primary-dark); color: #fff; }
.btn-small { background: var(--primary); color: #fff; padding: 10px 22px; font-size: 12px; }
.btn-small:hover { background: var(--primary-dark); color: #fff; }
.btn-solid-border { border: 2px solid var(--primary); background: transparent; color: var(--dark); }
.btn-solid-border:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-round-full { border-radius: 50px; }

/* ---- Utility ---- */
.text-color  { color: var(--primary); }
.bg-gray     { background: var(--gray-bg); }
.bg-dark-2   { background: var(--dark); }
.section     { padding: 100px 0; }
.section-sm  { padding: 70px 0; }
.section-title      { margin-bottom: 60px; }
.section-title p    { font-size: 1rem; max-width: 580px; }
.content-title      { line-height: 1.4; }

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus { border-color: var(--primary) !important; box-shadow: none !important; outline: none; }

/* ================================================
   HEADER / NAV
   ================================================ */
.navigation {
  position: fixed;
  top: 0; width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.header-top {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
}
.header-top-socials a { color: rgba(255,255,255,.7); margin-right: 12px; transition: color .2s; }
.header-top-socials a:hover { color: var(--primary); }
.header-top-info a  { color: rgba(255,255,255,.7); margin-left: 20px; }
.header-top-info a span { color: #fff; font-weight: 600; }
.header-top-info a:hover { color: var(--primary); text-decoration: none; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img { height: 42px; width: auto; }
.navbar-brand-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.navbar-brand-text span { color: var(--primary); }
.nav-link {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark) !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .5rem 1rem !important;
  transition: color .2s;
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--primary) !important; }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.1); border-radius: 4px; }
.dropdown-item { font-size: 13px; font-family: "Poppins", sans-serif; font-weight: 500; padding: 8px 20px; }
.dropdown-item:hover, .dropdown-item.active { background: var(--primary); color: #fff; }

/* ================================================
   PAGE TITLE BANNER
   ================================================ */
.page-title {
  padding: 160px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-title::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,20,30,.9) 0%, rgba(247,87,87,.2) 100%);
}
.page-title .container { position: relative; z-index: 2; }
.page-title h1 { color: #fff; font-size: 2.8rem; margin-bottom: 15px; }
.page-title .breadcrumb { background: transparent; padding: 0; margin: 0; justify-content: center; }
.page-title .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: 14px; }
.page-title .breadcrumb-item.active { color: var(--primary); font-size: 14px; }
.page-title .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ================================================
   HERO SLIDER (index only)
   ================================================ */
.slider {
  padding: 180px 0 120px;
  background: url('https://duniapolymer.com.my/img/parallax/a.png') center/cover no-repeat, var(--dark);
  background-blend-mode: multiply;
  position: relative;
  overflow: hidden;
}
.slider::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,15,25,.88) 0%, rgba(40,40,60,.7) 100%);
}
.slider .block    { position: relative; z-index: 2; }
.slider h1        { color: #fff; font-size: 3rem; font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; }
.slider .badge-tag {
  display: inline-block;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
}

/* ================================================
   INTRO
   ================================================ */
.intro-item i { font-size: 40px; color: var(--primary); }

/* ================================================
   ABOUT (split bg)
   ================================================ */
.about { padding: 100px 0; }
.bg-about {
  background: url('co.png') center/cover no-repeat;
  position: absolute; left: 0; top: 0; width: 55%; height: 100%;
}
.about-item { background: #fff; padding: 50px 40px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.about-item ul li { font-size: 15px; color: var(--text); }

/* ================================================
   COUNTER
   ================================================ */
.counter {
  background: url('https://duniapolymer.com.my/img/parallax/b.png') center/cover fixed no-repeat;
  position: relative; padding: 100px 0;
}
.counter::before { content: ''; position: absolute; inset: 0; background: rgba(15,15,25,.87); }
.counter .container { position: relative; z-index: 2; }
.counter-item h3, .counter-item p { color: #fff; }
.counter-stat { font-size: 3rem; color: var(--primary); font-family: "Poppins", sans-serif; }

/* ================================================
   SERVICES
   ================================================ */
.service-item {
  padding: 35px 25px; border: 1px solid #eee;
  border-radius: 4px; transition: all .3s ease;
}
.service-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-4px); border-color: var(--primary);
}
.service-item i { font-size: 38px; color: var(--primary); display: block; margin-bottom: 15px; }

/* ================================================
   IOT SECTION
   ================================================ */
.iot-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 100px 0; position: relative; overflow: hidden;
}
.iot-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(247,87,87,.15) 0%, transparent 70%);
}
.iot-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 30px 25px; text-align: center;
  transition: all .3s ease; backdrop-filter: blur(10px);
}
.iot-card:hover { background: rgba(247,87,87,.1); border-color: var(--primary); transform: translateY(-5px); }
.iot-card i { font-size: 40px; color: var(--primary); display: block; margin-bottom: 15px; }
.iot-card h5 { color: #fff; }
.iot-card p  { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; margin: 0; }
.iot-badge {
  display: inline-block;
  background: rgba(247,87,87,.2); color: var(--primary);
  border: 1px solid var(--primary); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 18px;
}

/* ================================================
   CERTIFICATIONS
   ================================================ */
.cert-card {
  background: #fff; border-radius: 8px; padding: 40px 30px;
  text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,.06);
  height: 100%; transition: transform .3s ease;
}
.cert-card:hover { transform: translateY(-4px); }
.cert-card i { font-size: 50px; color: var(--primary); display: block; margin-bottom: 20px; }
.cert-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 50px; margin-top: 10px;
}

/* ================================================
   PORTFOLIO / PRODUCTS
   ================================================ */
.portfolio-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 50px;
}
.filter-btn {
  background: transparent; border: 2px solid #ddd; color: var(--dark);
  padding: 8px 22px; font-size: 13px; font-weight: 600; border-radius: 50px;
  cursor: pointer; transition: all .2s; font-family: "Poppins", sans-serif;
  text-transform: uppercase; letter-spacing: .5px;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 30px; }
.portfolio-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(247,87,87,.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h5 { color: #fff; margin: 0; }
.portfolio-overlay p  { color: rgba(255,255,255,.85); font-size: 13px; margin: 5px 0 0; }

/* ================================================
   CTA BAND
   ================================================ */
.cta {
  background: url('https://duniapolymer.com.my/img/parallax/c.png') center/cover fixed no-repeat;
  position: relative; padding: 100px 0;
}
.cta::before { content: ''; position: absolute; inset: 0; background: rgba(15,15,25,.82); }
.cta .container { position: relative; z-index: 2; }
.cta-item { background: #fff; padding: 50px 40px; border-radius: 4px; }

/* bottom CTA gray block */
.cta-block-2 { background: var(--gray-bg); padding: 50px; border-radius: 4px; border: 1px solid #e8e8e8; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.contact-info-icon {
  width: 50px; height: 50px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-info-icon i { color: #fff; font-size: 20px; }
.contact-form .form-control {
  border: 1px solid #e0e0e0; border-radius: 0;
  padding: 14px 18px; height: auto; font-size: 15px;
}
.contact-form select.form-control { color: #999; }

/* ================================================
   FOOTER
   ================================================ */
footer { background: var(--dark); padding: 80px 0 30px; }
footer h4 { color: #fff; margin-bottom: 20px; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
footer p, footer a { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.9; }
footer a:hover { color: var(--primary); text-decoration: none; }
.footer-menu { list-style: none; padding: 0; }
.footer-menu li a { color: rgba(255,255,255,.6); display: block; padding: 3px 0; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: rgba(255,255,255,.6); margin-right: 8px; transition: all .2s;
}
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-btm { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 25px; }
.footer-btm p { margin: 0; }

/* ================================================
   SCROLL TO TOP
   ================================================ */
#scroll-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 42px; height: 42px; background: var(--primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: all .3s; z-index: 9000;
}
#scroll-to-top.show { opacity: 1; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  .slider { padding: 140px 0 80px; }
  .slider h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .slider h1 { font-size: 1.8rem; }
  .bg-about { display: none; }
  .about-item { box-shadow: none; padding: 20px 0; }
  .cta-item { padding: 30px 20px; }
  .page-title h1 { font-size: 2rem; }
}
