/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLING - PT. HUTAMA MAJU MANDIRI
   ========================================================================== */

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700;800&display=swap");

/* Color Variables & Custom Tokens */
:root {
  --bg-dark: #070b13;
  --bg-darker: #04070c;
  --card-bg: rgba(13, 20, 35, 0.6);
  --card-border: rgba(43, 94, 167, 0.25);

  --primary-blue: #0a1f3f;
  --primary-blue-medium: #15305b;
  --primary-blue-light: #2563eb;

  --primary-red: #d42027;
  --primary-red-hover: #b01820;
  --primary-red-glow: rgba(212, 32, 39, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-yellow: #f59e0b;
  --accent-emerald: #10b981;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Theme variables defaults */
  --grid-color: rgba(255, 255, 255, 0.01);
  --radial-blue: rgba(37, 99, 235, 0.08);
  --radial-red: rgba(212, 32, 39, 0.05);
  --dropdown-bg: rgba(7, 11, 19, 0.96);
  --dropdown-border: rgba(43, 94, 167, 0.35);
  --dropdown-mobile-bg: rgba(4, 7, 12, 0.4);
  --dropdown-mobile-border: rgba(43, 94, 167, 0.4);
  --input-bg: rgba(4, 7, 12, 0.5);
  --navbar-bg: rgba(4, 7, 12, 0.95);
  --shadow-scrolled: 0 10px 30px rgba(0, 0, 0, 0.3);
  --facility-icon-bg: rgba(37, 99, 235, 0.1);
  --facility-icon-border: rgba(37, 99, 235, 0.2);

  /* Navbar variables - always light on top, changes on scroll in light mode */
  --nav-text-primary: #ffffff;
  --nav-text-secondary: #94a3b8;
  --nav-logo-title: #ffffff;
  --nav-hamburger-color: #ffffff;
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(37, 99, 235, 0.15);

  --primary-blue: #eff6ff;
  --primary-blue-medium: #dbeafe;
  --primary-blue-light: #1d4ed8;

  --primary-red: #d42027;
  --primary-red-hover: #b01820;
  --primary-red-glow: rgba(212, 32, 39, 0.15);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --grid-color: rgba(0, 0, 0, 0.03);
  --radial-blue: rgba(37, 99, 235, 0.04);
  --radial-red: rgba(212, 32, 39, 0.03);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --dropdown-border: rgba(37, 99, 235, 0.2);
  --dropdown-mobile-bg: rgba(255, 255, 255, 0.85);
  --dropdown-mobile-border: rgba(37, 99, 235, 0.2);
  --input-bg: rgba(255, 255, 255, 0.9);
  --navbar-bg: rgba(248, 250, 252, 0.96);
  --shadow-scrolled: 0 10px 30px rgba(0, 0, 0, 0.05);
  --facility-icon-bg: rgba(29, 78, 216, 0.08);
  --facility-icon-border: rgba(29, 78, 216, 0.15);
}

/* Light Theme scrolled navbar variables overrides */
[data-theme="light"] .navbar.scrolled {
  --nav-text-primary: #0f172a;
  --nav-text-secondary: #334155;
  --nav-logo-title: #0f172a;
  --nav-hamburger-color: #0f172a;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue-medium);
  border: 2px solid var(--bg-darker);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue-light);
}

body {
  line-height: 1.6;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 20% 10%, var(--radial-blue) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, var(--radial-red) 0%, transparent 50%),
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    60px 60px,
    60px 60px;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Section Header */
.section-header {
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.section-tag {
  color: var(--primary-red);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--primary-red);
  vertical-align: middle;
  margin: 0 10px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-line {
  width: 80px;
  height: 3px;
  background: var(--primary-red);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.section-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-yellow);
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

/* Glassmorphism Card styling */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 35px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 32, 39, 0.45);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.4),
    0 0 25px var(--primary-red-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #a81318 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 32, 39, 0.3);
}

/* Ensure Contact Us button style is locked and unaffected by theme/navbar changes */
a.nav-link.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    #a81318 100%
  ) !important;
}

a.nav-link.btn-primary:hover {
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #e62a31 0%,
    var(--primary-red) 100%
  ) !important;
  transform: translateY(-2px);
}

a.nav-link.btn-primary::after {
  display: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e62a31 0%, var(--primary-red) 100%);
  box-shadow: 0 6px 20px rgba(212, 32, 39, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-blue-light);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Ensure Get In Touch on hero remains white */
.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Sticky Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-scrolled);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img-wrapper {
  background: #ffffff;
  padding: 5px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--nav-logo-title);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--primary-red);
  letter-spacing: 2px;
  font-weight: 700;
  font-family: var(--font-body);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
  color: var(--nav-text-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--nav-text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Submenu Styling */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--dropdown-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--dropdown-border);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 235px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  z-index: 1001;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  width: 100%;
}

.nav-dropdown-item a {
  display: block;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  text-align: left;
}

.nav-dropdown-item a:hover {
  background: rgba(212, 32, 39, 0.08);
  color: var(--text-primary);
  border-left: 3px solid var(--primary-red);
  padding-left: 21px;
}

/* Projects Grid Submenu */
.projects-dropdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 180px;
  padding: 10px;
  gap: 4px;
}

.projects-dropdown .nav-dropdown-item a {
  padding: 8px 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.projects-dropdown .nav-dropdown-item a:hover {
  border-left: none;
  background: var(--primary-red);
  color: #ffffff;
  border-radius: 4px;
  padding-left: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--nav-hamburger-color);
  transition: var(--transition-smooth);
}

.nav-right-elements {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Industrial Theme Toggle Switch */
.industrial-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.toggle-label {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  user-select: none;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.toggle-label-dark {
  color: var(--nav-text-secondary);
  opacity: 0.5;
}

.toggle-label-light {
  color: var(--nav-text-secondary);
  opacity: 0.5;
}

/* Active state labels — dark mode = NIGHT active */
.toggle-label-dark {
  opacity: 1;
  color: var(--nav-text-primary);
}

[data-theme="light"] .toggle-label-dark {
  opacity: 0.4;
  color: var(--nav-text-secondary);
}

[data-theme="light"] .toggle-label-light {
  opacity: 1;
  color: var(--nav-text-primary);
}

/* Track */
.toggle-track {
  position: relative;
  width: 44px;
  height: 22px;
  background: linear-gradient(180deg, #1a1f2e 0%, #0d1117 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .navbar.scrolled .toggle-track {
  background: linear-gradient(180deg, #d4d8e0 0%, #bfc5cf 100%);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Knob */
.toggle-knob {
  position: relative;
  width: 18px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(0);

  /* Metallic brushed-steel gradient */
  background: linear-gradient(
    180deg,
    #6b7280 0%,
    #9ca3af 30%,
    #e5e7eb 50%,
    #9ca3af 70%,
    #6b7280 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Knob slides right in light mode */
[data-theme="light"] .toggle-knob {
  transform: translateX(20px);
  background: linear-gradient(
    180deg,
    #f59e0b 0%,
    #fbbf24 30%,
    #fde68a 50%,
    #fbbf24 70%,
    #f59e0b 100%
  );
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow:
    0 2px 6px rgba(245, 158, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 12px rgba(245, 158, 11, 0.25);
}

/* Power icon inside knob */
.toggle-power-icon {
  color: #1a1f2e;
  transition:
    color 0.35s ease,
    filter 0.35s ease;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

[data-theme="light"] .toggle-power-icon {
  color: #78350f;
  filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
}

/* Hazard accent stripe — thin bar under the track */
.toggle-hazard {
  display: none;
}

/* Hover effects */
.industrial-toggle:hover .toggle-track {
  border-color: rgba(212, 32, 39, 0.5);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(212, 32, 39, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.industrial-toggle:hover .toggle-knob {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 8px rgba(212, 32, 39, 0.2);
}

[data-theme="light"] .industrial-toggle:hover .toggle-knob {
  box-shadow:
    0 2px 8px rgba(245, 158, 11, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 14px rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .navbar.scrolled .industrial-toggle:hover .toggle-track {
  border-color: rgba(212, 32, 39, 0.4);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.15),
    0 0 10px rgba(212, 32, 39, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Active press effect */
.industrial-toggle:active .toggle-knob {
  transform: translateX(0) scale(0.92);
}

[data-theme="light"] .industrial-toggle:active .toggle-knob {
  transform: translateX(20px) scale(0.92);
}

/* Scrolled light mode label colors */
[data-theme="light"] .navbar.scrolled .toggle-label-dark {
  color: #94a3b8;
}

[data-theme="light"] .navbar.scrolled .toggle-label-light {
  color: #0f172a;
}

/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease-in-out,
    visibility 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 7, 12, 0.7) 0%,
    rgba(10, 31, 63, 0.55) 50%,
    rgba(4, 7, 12, 0.65) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding-top: 80px;
}

.hero-tagline-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(214, 32, 39, 0.1);
  border: 1px solid rgba(214, 32, 39, 0.3);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-dot-indicator {
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: #ffffff;
}

.hero-title span {
  color: var(--primary-red);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 600px;
  color: #e2e8f0;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

.hero-controls {
  position: absolute;
  bottom: 50px;
  right: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.05);
}

/* About Intro split */
.about-intro-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 60px;
  align-items: center;
}

.about-intro-text .section-header {
  text-align: left;
}

.about-intro-text .section-line {
  margin: 0;
}

.about-intro-desc {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

.about-highlight-box {
  background: rgba(212, 32, 39, 0.05);
  border-left: 4px solid var(--primary-red);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 30px;
}

.about-highlight-box p {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/5;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-image-frame:hover img {
  transform: scale(1.05);
}

.about-image-decorator {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue-light);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

/* Board of Directors */
.directors-section {
  padding-top: 60px;
}

.director-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.director-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid var(--primary-blue-light);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  object-fit: cover;
}

.director-card:hover .director-avatar {
  border-color: var(--primary-red);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(212, 32, 39, 0.4);
}

.director-name {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.director-role {
  font-size: 12px;
  color: var(--primary-red);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.director-bio {
  font-size: 13px;
  line-height: 1.7;
}

/* Tools & Facilities */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.facility-card {
  display: flex;
  gap: 20px;
  padding: 30px;
}

.facility-icon {
  font-size: 32px;
  flex-shrink: 0;
  background: var(--facility-icon-bg);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--facility-icon-border);
}

.facility-card:hover .facility-icon {
  background: rgba(214, 32, 39, 0.1);
  border-color: rgba(214, 32, 39, 0.3);
  color: var(--primary-red);
}

.facility-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.facility-desc {
  font-size: 13px;
}

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.cert-card {
  aspect-ratio: 3/4;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.cert-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-red);
}

.cert-card:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-img {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--card-border);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.service-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-expand-btn {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-expand-btn::after {
  content: "→";
  transition: transform 0.3s ease;
}

.service-expand-btn:hover {
  color: var(--primary-red);
}

.service-expand-btn:hover::after {
  transform: translateX(5px);
}

/* Service Detail Modal */
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.service-modal.active {
  display: flex;
}

.service-modal-box {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  max-width: 800px;
  width: 100%;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.service-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

.service-modal-close:hover {
  color: var(--primary-red);
}

.service-modal-img {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 30px;
}

.service-modal-title {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-modal-desc {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-img {
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.product-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.product-standards-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.product-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.standard-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: 3px;
}

/* Projects portfolio timeline filter style */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-red-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  min-height: 300px;
}

.project-card {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease forwards;
}

.project-img-wrapper {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  position: relative;
  /* background: var(--bg-darker); */
  background: #ffffff;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.02);
}

.project-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  gap: 10px;
}

.project-no-img-icon {
  font-size: 32px;
}

.project-year {
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.project-detail-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.project-detail-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-red-glow);
}

/* Project Detail Page */
.project-detail {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 100vh;
}

.project-detail-header {
  margin-bottom: 50px;
}

.project-detail-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 15px 0 10px;
  color: var(--text-primary);
}

.detail-year-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: start;
}

.project-detail-info p {
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.project-detail-img-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.project-detail-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.project-detail-caption {
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

.detail-back-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-text-primary, var(--text-primary));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.detail-back-link:hover {
  color: var(--primary-red);
}

@media (max-width: 991px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-detail-title {
    font-size: 32px;
  }
}

/* Support section */
.support-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.support-card {
  text-align: center;
  padding: 30px 20px;
}

.support-icon {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.support-title {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.support-desc {
  font-size: 12.5px;
  line-height: 1.6;
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 50px;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue-light);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  font-size: 24px;
  color: var(--primary-red);
  flex-shrink: 0;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.contact-info-detail {
  font-size: 14px;
}

.contact-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-wa-link:hover {
  text-decoration: underline;
}

.contact-wa-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  height: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2);
  transition: var(--transition-smooth);
}

[data-theme="light"] .map-iframe {
  filter: grayscale(0.2) contrast(1.1);
}

/* Footer styling */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(43, 94, 167, 0.2);
  padding: 60px 0 30px;
}

.footer .logo-title {
  color: var(--text-primary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--primary-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-compliance {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 32, 39, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(212, 32, 39, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 32, 39, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN - BREAKPOINTS */
@media (max-width: 1200px) {
  .section-title {
    font-size: 36px;
  }
  .hero-title {
    font-size: 44px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .about-intro-text .section-header {
    text-align: center;
  }
  .about-intro-text .section-line {
    margin: 0 auto;
  }
  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  .about-image-decorator {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card:last-child {
    grid-column: span 2;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
  .section-title {
    font-size: 30px;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--card-border);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow-y: auto;
    gap: 20px;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Ensure mobile nav links adapt to the dark/light background drawer on mobile */
  .nav-link {
    color: var(--text-secondary) !important;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary) !important;
  }

  /* Mobile Dropdown styles */
  .nav-item-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-item-dropdown > a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: var(--dropdown-mobile-bg);
    border: none;
    border-left: 2px solid var(--dropdown-mobile-border);
    box-shadow: none;
    padding: 0;
    margin-top: 5px;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-item-dropdown.active .nav-dropdown {
    max-height: 550px;
    padding: 10px 0;
  }

  .projects-dropdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 20px;
  }

  .projects-dropdown .nav-dropdown-item a {
    text-align: center;
    padding: 8px 0;
  }

  .nav-dropdown-item a {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .nav-dropdown-item a:hover {
    border-left: none;
    color: var(--primary-red);
    padding-left: 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card:last-child {
    grid-column: auto;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Hide toggle labels on mobile for space */
  .toggle-label {
    display: none;
  }
}
