:root {
  --default-font: "Roboto", system-ui, -apple-system, sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --background-color: #fcfdfc;
  --default-color: #52575c;
  --heading-color: #1e2229;
  --accent-color: #009961; 
  --accent-gradient: linear-gradient(135deg, #009961, #00b875);
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.03), 0 4px 15px rgba(0, 0, 0, 0.02);
  --shadow-strong: 0 20px 40px rgba(0, 153, 97, 0.12), 0 8px 20px rgba(0, 0, 0, 0.04);
  --radius-md: 16px;
  --radius-sm: 12px;
}

.light-background {
  --background-color: #f4f7f5;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #090a0f;
  --default-color: #dddddd;
  --heading-color: #ffffff;
  --surface-color: #141824;
  --contrast-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #007a4e;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 997;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

body.home-page .header {
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scrolled .header, body:not(.home-page) .header {
  background-color: rgba(20, 24, 36, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.home-page) {
  padding-top: 85px !important;
}

@media (min-width: 1200px) {
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li { position: relative; padding: 10px 18px; }
  .navmenu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 500;
    transition: 0.3s;
  }
  .navmenu a:hover, .navmenu .active {
    color: var(--accent-color) !important;
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
  }
}

.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.02);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.85) 0%, rgba(10,14,23,0.5) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  font-size: 52px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

.btn-get-started {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 14px 38px;
  border-radius: 50px !important;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 153, 97, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 153, 97, 0.5);
}

section, .section {
  padding: 90px 0;
  position: relative;
}

.section h3 {
  font-size: 32px;
  font-weight: 800;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.section h3::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

/* Styling Tambahan untuk Card Produk & Blog */
.products .card, .card {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background: var(--surface-color);
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.products .card-img-top {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.products .card:hover, .card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-strong) !important;
}

.products .card:hover .card-img-top {
  transform: scale(1.08);
}

.products .card-body {
  padding: 24px;
}

.products .card-title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 12px;
}

.products .badge.bg-primary {
  background-color: rgba(0, 153, 97, 0.08) !important;
  color: var(--accent-color) !important;
  font-weight: 600;
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid rgba(0, 153, 97, 0.15);
}

.products .btn-success {
  background: var(--accent-gradient) !important;
  border: none !important;
  padding: 10px;
  border-radius: 8px !important;
  font-weight: 600;
  transition: 0.3s ease;
}

.products .btn-success:hover {
  box-shadow: 0 6px 15px rgba(0, 153, 97, 0.3);
  transform: translateY(-2px);
}

/* Sembunyikan Notif Peringatan Merah CKEditor */
.cke_notifications_area {
  display: none !important;
}

.feature-box {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  padding: 35px 30px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gradient);
  transition: height 0.35s ease;
}

.feature-box:hover::before { height: 100%; }
.feature-box:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-strong) !important;
  border-color: rgba(0, 153, 97, 0.15) !important;
}

.feature-box h4 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-box p {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 22px;
}

.feature-box .read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
}

.feature-box .read-more i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.feature-box .read-more:hover i {
  transform: translateX(6px);
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: -60px;
  bottom: 25px;
  z-index: 99999;
  background: var(--accent-gradient);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.scroll-top i {
  font-size: 22px;
  color: #fff;
  line-height: 0;
}
.scroll-top.active { visibility: visible; opacity: 1; right: 25px; }

.contact .info-wrap {
  background: var(--surface-color);
  padding: 20px 10px;
}

.contact .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: rgba(0, 153, 97, 0.08);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 153, 97, 0.15);
}

.contact .info-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.contact .info-item p {
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: #6c757d;
}

.contact .php-email-form {
  background: var(--surface-color);
  padding: 10px;
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  border-radius: var(--radius-sm) !important;
  box-shadow: none;
  font-size: 14px;
  padding: 14px 15px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--default-color);
  transition: 0.3s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 4px rgba(0, 153, 97, 0.12) !important;
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  display: none; 
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.contact .php-email-form .loading {
  background: rgba(0, 0, 0, 0.04);
}

.contact .php-email-form .sent-message {
  background: rgba(0, 153, 97, 0.08);
  color: #007a4e;
  border: 1px solid rgba(0, 153, 97, 0.15);
}

.contact .php-email-form .error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact .php-email-form button[type="submit"],
.contact .php-email-form .btn-submit {
  background: var(--accent-gradient) !important;
  border: 0 !important;
  padding: 12px 34px !important;
  color: #fff !important;
  transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 153, 97, 0.25) !important;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 153, 97, 0.45) !important;
}

.footer {
  background: #0d0f14;
  color: #a0a5b1;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.header .sitename,
.hero .container h2 {
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
}

.hero .container {
    position: relative !important;
    z-index: 10 !important;
}