/**
* Template Name: Logis
* Updated for: INDUSTRIAL ALTERNATIVE ENERGY (M) SDN. BHD.
* Theme: Corporate Navy & Energy Red
* Fixes: Header Visibility & Font Weights
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Poppins",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors */
:root { 
  --background-color: #ffffff; 
  --default-color: #444444; 
  --heading-color: #0e214b; /* DEEP NAVY BLUE */
  --accent-color: #e63946; /* ENERGY RED */
  --surface-color: #ffffff; 
  --contrast-color: #ffffff; 
}

/* Nav Menu Colors - DIKEMASKINI: Tukar ke PUTIH untuk kontras */
:root {
  --nav-color: #ffffff;  /* TEXT PUTIH (Wajib untuk background gelap) */
  --nav-hover-color: #e63946; /* Merah bila mouse hover */
  --nav-mobile-background-color: #ffffff; 
  --nav-dropdown-background-color: #ffffff; 
  --nav-dropdown-color: #212529; 
  --nav-dropdown-hover-color: #e63946; 
}

/* Color Presets */
.light-background {
  --background-color: #f4f6f9; 
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0a1930; /* Navy yang sangat gelap */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #112240;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header - DIKEMASKINI UNTUK VISIBILITI
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --heading-color: #ffffff;
  color: #ffffff; /* Paksa teks jadi Putih */
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 50px; 
  margin-right: 8px;
  border-radius: 8px; /* Bucu bulat */
  padding: 4px;       /* Jarak sikit antara logo dan tepi kotak */
  background-color: #ffffff; /* Pastikan putih */
  /* Optional: Tambah bayang sikit supaya timbul */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .logo h1 {
  font-size: 16px; /* Saiz dikecilkan supaya muat satu baris */
  margin: 0;
  font-weight: 700; /* Tebal */
  line-height: 1.2; /* Jarak antara baris jika terpaksa ke bawah */
  color: #ffffff;   /* Warna Putih */
  letter-spacing: 0.5px; /* Jarak antara huruf sikit */
  text-transform: uppercase; /* Pastikan semua huruf besar */
  max-width: 400px; /* Hadkan lebar supaya tak tolak menu */
}

/* Butang 'Contact Us' di Header */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: #ffffff;
  background: var(--accent-color);
  font-size: 15px;
  font-weight: 600; /* Tebalkan font butang */
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 4px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo { order: 1; }
  .header .btn-getstarted { order: 2; margin: 0 15px 0 0; padding: 6px 15px; }
  .header .navmenu { order: 3; }
}

/* Header bila di-Scroll ke bawah */
.scrolled .header {
  padding: 10px 0;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
  --background-color: rgba(14, 33, 75, 0.98); /* Navy Blue Solid bila scroll */
}

/*--------------------------------------------------------------
# Navigation Menu - DIKEMASKINI FON & WARNA
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  
  .navmenu a, .navmenu a:focus {
    color: #ffffff; /* PASTI PUTIH */
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 500; /* TEBALKAN SEDIKIT (Regular -> Medium) */
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.3); /* Tambah bayang sikit supaya jelas */
  }

  .navmenu a i, .navmenu a:focus i { font-size: 12px; line-height: 0; margin-left: 5px; transition: 0.3s; }
  .navmenu li:last-child a { padding-right: 0; }
  
  .navmenu li:hover>a, .navmenu .active, .navmenu .active:focus { 
    color: var(--nav-hover-color); /* Merah bila hover */
  }

  /* Dropdown Menu Styles */
  .navmenu .dropdown ul {
    margin: 0; padding: 10px 0; background: #ffffff; /* Dropdown background putih */
    display: block; position: absolute; visibility: hidden;
    left: 14px; top: 130%; opacity: 0; transition: 0.3s;
    border-radius: 4px; z-index: 99; box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a { 
    padding: 10px 20px; 
    font-size: 15px; 
    text-transform: none; 
    color: #333333; /* Teks dropdown hitam/gelap */
    text-shadow: none;
    font-weight: 400;
  }
  .navmenu .dropdown ul a i { font-size: 12px; }
  .navmenu .dropdown ul a:hover, .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul li:hover>a { color: var(--nav-dropdown-hover-color); }
  .navmenu .dropdown:hover>ul { opacity: 1; top: 100%; visibility: visible; }
  .navmenu .dropdown .dropdown ul { top: 0; left: -90%; visibility: hidden; }
  .navmenu .dropdown .dropdown:hover>ul { opacity: 1; top: 0; left: -100%; visibility: visible; }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle { color: #ffffff; font-size: 28px; line-height: 0; margin-right: 10px; cursor: pointer; transition: color 0.3s; }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul { display: none; list-style: none; position: absolute; inset: 60px 20px 20px 20px; padding: 10px 0; margin: 0; border-radius: 6px; background-color: #ffffff; overflow-y: auto; transition: 0.3s; z-index: 9998; box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1); }
  .navmenu a, .navmenu a:focus { color: #333333; padding: 10px 20px; font-family: var(--nav-font); font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; transition: 0.3s; }
  .navmenu a i, .navmenu a:focus i { font-size: 12px; line-height: 0; margin-left: 5px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; background-color: color-mix(in srgb, var(--accent-color), transparent 90%); }
  .navmenu a i:hover, .navmenu a:focus i:hover { background-color: var(--accent-color); color: var(--contrast-color); }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus { color: var(--nav-dropdown-hover-color); }
  .navmenu .active i, .navmenu .active:focus i { background-color: var(--accent-color); color: var(--contrast-color); transform: rotate(180deg); }
  .navmenu .dropdown ul { position: static; display: none; z-index: 99; padding: 10px 0; margin: 10px 20px; background-color: #f9f9f9; border: 1px solid #eeeeee; box-shadow: none; transition: all 0.5s ease-in-out; }
  .navmenu .dropdown ul ul { background-color: rgba(33, 37, 41, 0.1); }
  .navmenu .dropdown>.dropdown-active { display: block; background-color: rgba(33, 37, 41, 0.03); }
  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .mobile-nav-toggle { color: #fff; position: absolute; font-size: 32px; top: 15px; right: 15px; margin-right: 0; z-index: 9999; }
  .mobile-nav-active .navmenu { position: fixed; overflow: hidden; inset: 0; background: rgba(33, 37, 41, 0.8); transition: 0.3s; }
  .mobile-nav-active .navmenu>ul { display: block; }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer { color: var(--default-color); background-color: var(--background-color); font-size: 14px; position: relative; }
.footer .footer-top { padding-top: 50px; border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); }
.footer .footer-about .logo { line-height: 1; margin-bottom: 25px; }
.footer .footer-about .logo img { max-height: 40px; margin-right: 6px; }
.footer .footer-about .logo span { color: var(--heading-color); font-size: 30px; font-weight: 700; letter-spacing: 1px; font-family: var(--heading-font); }
.footer .footer-about p { font-size: 14px; font-family: var(--heading-font); }
.footer .social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%); font-size: 16px; color: color-mix(in srgb, var(--default-color), transparent 50%); margin-right: 10px; transition: 0.3s; }
.footer .social-links a:hover { color: var(--default-color); border-color: var(--default-color); }
.footer h4 { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }
.footer .footer-links { margin-bottom: 30px; }
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links ul i { padding-right: 2px; font-size: 12px; line-height: 0; }
.footer .footer-links ul li { padding: 10px 0; display: flex; align-items: center; }
.footer .footer-links ul li:first-child { padding-top: 0; }
.footer .footer-links ul a { color: color-mix(in srgb, var(--default-color), transparent 40%); display: inline-block; line-height: 1; }
.footer .footer-links ul a:hover { color: var(--default-color); }
.footer .footer-contact p { margin-bottom: 5px; }
.footer .copyright { padding-top: 30px; padding-bottom: 30px; border-top: 1px solid color-mix(in srgb, var(--heading-color), transparent 90%); }
.footer .copyright p { margin-bottom: 0; }
.footer .credits { margin-top: 4px; font-size: 13px; }
.footer .credits a { color: var(--default-color); }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background-color: var(--background-color); transition: all 0.6s ease-out; width: 100%; height: 100vh; }
#preloader:before, #preloader:after { content: ""; position: absolute; border: 4px solid var(--accent-color); border-radius: 50%; animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite; }
#preloader:after { animation-delay: -0.5s; }
@keyframes animate-preloader { 0% { width: 10px; height: 10px; top: calc(50% - 5px); left: calc(50% - 5px); opacity: 1; } 100% { width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); opacity: 0; } }

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top { position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px; z-index: 99999; background-color: var(--accent-color); width: 40px; height: 40px; border-radius: 4px; transition: all 0.4s; }
.scroll-top i { font-size: 24px; color: var(--contrast-color); line-height: 0; }
.scroll-top:hover { background-color: color-mix(in srgb, var(--accent-color), transparent 20%); color: var(--contrast-color); }
.scroll-top.active { visibility: visible; opacity: 1; }

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) { [data-aos-delay] { transition-delay: 0 !important; } }

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title { color: var(--default-color); background-color: var(--background-color); background-size: cover; background-position: center; background-repeat: no-repeat; padding: 160px 0 80px 0; text-align: center; position: relative; }
.page-title:before { content: ""; background-color: color-mix(in srgb, var(--background-color), transparent 30%); position: absolute; inset: 0; }
.page-title h1 { font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.page-title .breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; justify-content: center; padding: 0; margin: 0; font-size: 16px; font-weight: 400; }
.page-title .breadcrumbs ol a { color: color-mix(in srgb, var(--default-color), transparent 50%); }
.page-title .breadcrumbs ol a:hover { color: var(--contrast-color); }
.page-title .breadcrumbs ol li+li { padding-left: 10px; }
.page-title .breadcrumbs ol li+li::before { content: "/"; display: inline-block; padding-right: 10px; color: color-mix(in srgb, var(--default-color), transparent 50%); }

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section, .section { color: var(--default-color); background-color: var(--background-color); padding: 60px 0; scroll-margin-top: 100px; overflow: clip; }
@media (max-width: 1199px) { section, .section { scroll-margin-top: 66px; } }

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title { text-align: center; padding: 30px 0; margin-bottom: 30px; position: relative; }
.section-title h2 { font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 0; position: relative; z-index: 2; }
.section-title span { position: absolute; top: 4px; color: color-mix(in srgb, var(--heading-color), transparent 95%); left: 0; right: 0; z-index: 1; font-weight: 700; font-size: 52px; text-transform: uppercase; line-height: 1; }
.section-title p { margin-bottom: 0; position: relative; z-index: 2; }
@media (max-width: 575px) { .section-title h2 { font-size: 28px; margin-bottom: 15px; } .section-title span { font-size: 38px; } }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero { width: 100%; min-height: 50vh; position: relative; padding: 120px 0 60px 0; }



.hero .hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; 
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Gelapkan gambar 60% */
  z-index: 2;
}

.hero .container { position: relative; z-index: 3; }
.hero h2 { margin-bottom: 20px; padding: 0; font-size: 40px; font-weight: 700; color: #ffffff; /* Ensure text is white */ }
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;     /* Jangan paksa tinggi separuh skrin */
    padding-bottom: 40px !important; /* Kurangkan jarak bawah (asalnya 60px/120px) */
    padding-top: 100px !important;   /* Jarak atas (elak kena header) */
  } }
.hero p { font-size: 15px; font-weight: 400; margin-bottom: 40px; }
.hero form { background: color-mix(in srgb, var(--default-color) 5%, white 90%); padding: 10px; border-radius: 10px; }
.hero form .form-control { padding-top: 18px; padding-bottom: 18px; padding-left: 20px; padding-right: 20px; border: none; margin-right: 10px; border: none !important; background: none !important; }
.hero form .form-control:hover, .hero form .form-control:focus { outline: none; box-shadow: none; }
.hero form .btn-primary { color: var(--contrast-color); background-color: var(--accent-color); flex-shrink: 0; padding: 0 25px; }
.hero form .btn-primary:hover { background-color: color-mix(in srgb, var(--accent-color), transparent 15%); }
.hero .stats-item { padding: 30px; width: 100%; }
.hero .stats-item span { font-size: 32px; display: block; font-weight: 700; margin-bottom: 15px; padding-bottom: 15px; position: relative; }
.hero .stats-item span:after { content: ""; position: absolute; display: block; width: 20px; height: 3px; background: var(--accent-color); left: 0; right: 0; bottom: 0; margin: auto; }
.hero .stats-item p { padding: 0; margin: 0; font-family: var(--heading-font); font-size: 15px; font-weight: 600; }

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services .service-item { position: relative; height: 100%; margin-bottom: 30px; }
.featured-services .service-item .icon { margin-right: 20px; }
.featured-services .service-item .icon i { color: var(--accent-color); font-size: 40px; transition: 0.3s; }
.featured-services .service-item:hover .icon i { color: var(--accent-color); }
.featured-services .service-item .title { color: var(--heading-color); font-weight: 700; margin-bottom: 10px; font-size: 20px; transition: 0.3s; }
.featured-services .service-item .description { font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 30%); margin-bottom: 10px; }
.featured-services .service-item .readmore { display: flex; align-items: center; color: color-mix(in srgb, var(--default-color), transparent 30%); transition: 0.3s; font-weight: 700; font-size: 14px; }
.featured-services .service-item .readmore i { margin-left: 8px; }
.featured-services .service-item:hover .title, .featured-services .service-item:hover .readmore, .featured-services .service-item:hover .icon i { color: var(--accent-color); }

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 { font-size: 2rem; font-weight: 700; }
.about .content ul { list-style: none; padding: 0; }
.about .content ul li { display: flex; align-items: flex-start; margin-top: 40px; }
.about .content ul i { flex-shrink: 0; font-size: 48px; color: var(--accent-color); margin-right: 20px; line-height: 0; }
.about .content ul h5 { font-size: 18px; font-weight: 700; }
.about .content ul p { font-size: 15px; }
.about .content p:last-child { margin-bottom: 0; }
.about .pulsating-play-btn { position: absolute; left: calc(50% - 47px); top: calc(50% - 47px); }

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .card { background-color: var(--surface-color); color: var(--default-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); position: relative; border-radius: 0; height: 100%; }
.services .card .card-img { overflow: hidden; margin-bottom: 15px; border-radius: 0; }
.services .card .card-img img { transition: 0.3s ease-in-out; }
.services .card h3 { font-weight: 700; font-size: 18px; margin-bottom: 5px; padding: 10px 30px; text-transform: uppercase; }
.services .card a { color: var(--heading-color); transition: 0.3; }
.services .card a:hover { color: var(--accent-color); }
.services .card p { padding: 0 30px; margin-bottom: 30px; color: color-mix(in srgb, var(--default-color), transparent 40%); font-size: 15px; }
.services .card:hover .card-img img { transform: scale(1.1); }

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action { padding: 80px 0; position: relative; clip-path: inset(0); }
.call-to-action img { position: fixed; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.call-to-action:before { content: ""; background: color-mix(in srgb, var(--background-color), transparent 20%); position: absolute; inset: 0; z-index: 2; }
.call-to-action .container { position: relative; z-index: 3; }
.call-to-action h3 { font-size: 28px; font-weight: 700; color: var(--default-color); }
.call-to-action p { color: var(--default-color); }
.call-to-action .cta-btn { font-family: var(--heading-font); font-weight: 500; font-size: 16px; letter-spacing: 1px; display: inline-block; padding: 12px 40px; border-radius: 5px; transition: 0.5s; margin: 10px; border: 2px solid var(--contrast-color); color: var(--contrast-color); }
.call-to-action .cta-btn:hover { background: var(--accent-color); border: 2px solid var(--accent-color); }

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-item { color: color-mix(in srgb, var(--default-color), transparent 20%); }
.features .features-item+.features-item { margin-top: 100px; }
@media (max-width: 640px) { .features .features-item+.features-item { margin-top: 40px; } }
.features .features-item h3 { font-weight: 700; font-size: 26px; }
.features .features-item ul { list-style: none; padding: 0; }
.features .features-item ul li { padding-bottom: 10px; display: flex; align-items: center; }
.features .features-item ul li:last-child { padding-bottom: 0; }
.features .features-item ul i { font-size: 20px; padding-right: 4px; color: var(--accent-color); }
.features .features-item p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item { margin-top: 40px; }
.contact .info-item i { color: var(--contrast-color); background: var(--accent-color); font-size: 20px; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; border-radius: 4px; transition: all 0.3s ease-in-out; margin-right: 15px; }
.contact .info-item h3 { font-size: 20px; padding: 0; font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.contact .info-item p { padding: 0; margin-bottom: 0; font-size: 14px; }
.contact .php-email-form { height: 100%; }
.contact .php-email-form input[type=text], .contact .php-email-form input[type=email], .contact .php-email-form textarea { font-size: 14px; padding: 10px 15px; box-shadow: none; border-radius: 0; color: var(--default-color); background-color: color-mix(in srgb, var(--background-color), transparent 50%); border-color: color-mix(in srgb, var(--default-color), transparent 80%); }
.contact .php-email-form input[type=text]:focus, .contact .php-email-form input[type=email]:focus, .contact .php-email-form textarea:focus { border-color: var(--accent-color); }
.contact .php-email-form input[type=text]::placeholder, .contact .php-email-form input[type=email]::placeholder, .contact .php-email-form textarea::placeholder { color: color-mix(in srgb, var(--default-color), transparent 70%); }
.contact .php-email-form button[type=submit] { color: var(--contrast-color); background: var(--accent-color); border: 0; padding: 10px 30px; transition: 0.4s; border-radius: 4px; }
.contact .php-email-form button[type=submit]:hover { background: color-mix(in srgb, var(--accent-color), transparent 20%); }