/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; line-height: 1.6; background: #f9fafb; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-50 { color: #eff6ff; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }
.text-green-600 { color: #16a34a; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.container-xl { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== SPACING ===== */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.-mt-4 { margin-top: -1rem; }

/* ===== SIZING ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ===== BORDERS ===== */
.border-0 { border: none; }
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-blue-600 { border-color: #2563eb; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ===== SHADOWS ===== */
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ===== BACKGROUNDS ===== */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff;; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-blue-800 { background-color: #1e3a8a; }
.bg-blue-900 { background-color: #172554; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-gradient-to-r { background: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/70 { --tw-gradient-from: rgba(0,0,0,0.7); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-black\/60 { --tw-gradient-from: rgba(0,0,0,0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-blue-900\/90 { --tw-gradient-from: rgba(30,58,138,0.9); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-900\/70 { --tw-gradient-from: rgba(30,58,138,0.7); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-800\/80 { --tw-gradient-from: rgba(30,64,175,0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-black\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,0.2), var(--tw-gradient-to, transparent); }
.to-black\/60 { --tw-gradient-to: rgba(0,0,0,0.6); }
.to-transparent { --tw-gradient-to: transparent; }
.to-blue-900\/70 { --tw-gradient-to: rgba(30,58,138,0.7); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,0.05); }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-900:hover { background-color: #172554; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-green-600:hover { background-color: #16a34a; }

/* ===== TEXT ALIGNMENT ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== INTERACTIVITY ===== */
.hover\:text-white:hover { color: #fff; }
.hover\:text-blue-200:hover { color: #bfdbfe; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-gray-400:hover { color: #9ca3af; }
.hover\:text-gray-600:hover { color: #4b5563; }
.group:hover .group-hover\:text-blue-600 { color: #2563eb; }
.group:hover .group-hover\:text-blue-700 { color: #1d4ed8; }

/* ===== TRANSITIONS ===== */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-shadow { transition: box-shadow 0.3s ease; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:scale-110:hover { transform: scale(1.1); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* ===== TRANSFORM ===== */
.scale-105 { transform: scale(1.05); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ===== POSITIONING ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.bottom-4 { bottom: 1rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* ===== DISPLAY ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* ===== OBJECTS ===== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; font-weight: 600; font-size: 0.875rem; border-radius: 0.5rem; cursor: pointer; transition: all 0.2s; border: none; text-align: center; gap: 0.5rem; white-space: nowrap; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #fff; color: #2563eb; border: 2px solid #2563eb; }
.btn-secondary:hover { background: #eff6ff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== CARDS ===== */
.card { background: #fff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.card-body { padding: 1.25rem; }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: #374151; }
.form-label-required::after { content: ' *'; color: #ef4444; }
.form-input { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.875rem; transition: border-color 0.2s, box-shadow 0.2s; background: #fff; color: #111827; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: #9ca3af; }
.form-select { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.875rem; background: #fff; cursor: pointer; appearance: none; }
.form-textarea { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.875rem; resize: vertical; min-height: 100px; font-family: inherit; }

/* ===== SECTION BACKGROUNDS ===== */
.bg-gradient-blue { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%); }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }

/* ===== SPEC TABLE ===== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { background: #f3f4f6; padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: #374151; font-size: 0.875rem; border-bottom: 2px solid #e5e7eb; }
.spec-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem; color: #4b5563; }
.spec-table tr:hover td { background: #f9fafb; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #9ca3af; }
.breadcrumb a { color: inherit; transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }

/* ===== HERO ===== */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.85) 50%, rgba(30,58,138,0.75) 100%); }
.hero-content { position: relative; z-index: 10; }

/* ===== SECTION DIVIDER ===== */
.pt-divider { border-top: 1px solid rgba(255,255,255,0.2); }

/* ===== PRODUCT GRID ===== */
.product-card { background: #fff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all 0.3s; cursor: pointer; }
.product-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); transform: translateY(-4px); }
.product-card-img { position: relative; height: 200px; overflow: hidden; background: #f3f4f6; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-card-img img { transform: scale(1.1); }
.product-card-body { padding: 1.25rem; position: relative; }
.product-category-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.product-name { font-size: 1rem; font-weight: 600; color: #111827; line-height: 1.4; transition: color 0.2s; }
.product-card:hover .product-name { color: #2563eb; }
.product-desc { font-size: 0.8rem; color: #6b7280; line-height: 1.5; }
.product-id-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; color: #9ca3af; background: #f9fafb; border: 1px solid #e5e7eb; padding: 0.125rem 0.5rem; border-radius: 0.375rem; margin-top: 0.5rem; letter-spacing: 0.05em; font-family: 'Courier New', Courier, monospace; }

/* ===== CATEGORY CARD ===== */
.category-card { background: #fff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all 0.3s; }
.category-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2); transform: translateY(-4px); }
.category-card-img { position: relative; height: 220px; overflow: hidden; }
.category-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover .category-card-img img { transform: scale(1.1); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.category-card-body { padding: 1.5rem; }

/* ===== FEATURE CARD ===== */
.feature-card { background: #fff; border-radius: 0.75rem; padding: 2rem; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all 0.3s; }
.feature-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.feature-icon { width: 64px; height: 64px; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.feature-icon svg { width: 32px; height: 32px; color: #2563eb; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background: #fff; border-radius: 1rem; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-header { padding: 1.5rem 2rem 0; }
.modal-body { padding: 1.5rem 2rem; }
.modal-footer { padding: 0 2rem 1.5rem; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background 0.3s, box-shadow 0.3s; }
/* Pages with blue page-header (Resource/About/Contact): navbar always shows blue background */
.navbar.hero-nav { background: #1e3a8a; }
.navbar.hero-nav.scrolled { background: #ffffff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.navbar.hero-nav.scrolled .topbar { display: none; }
/* Pages with transparent-to-white hero (Home/Products/Applications): transparent initially */
.navbar:not(.hero-nav) { background: transparent; box-shadow: none; }
.navbar:not(.hero-nav).scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.navbar-top { background: #1d4ed8; color: #fff; padding: 0.375rem 0; font-size: 0.8rem; transition: all 0.3s; }
.navbar.scrolled .navbar-top { display: none; }
.navbar-main { padding: 1rem 0; background: transparent; }
.navbar.hero-nav .navbar-main { background: transparent; }
.navbar.hero-nav.scrolled .navbar-main { background: #ffffff; }
.navbar.scrolled .navbar-main { padding: 0.75rem 0; }

/* ===== NAVBAR LOGO (CSS Image) ===== */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
  background: transparent;
}
.navbar.hero-nav:not(.scrolled) .navbar-logo { background: transparent; }
.navbar.hero-nav.scrolled .navbar-logo { background: #ffffff; }
.navbar-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s;
}
.navbar.scrolled .navbar-logo { color: #111827; }
.navbar-logo-sub { font-size: 0.6rem; letter-spacing: 0.15em; font-weight: 600; }
.navbar:not(.scrolled) .navbar-logo-sub { color: #93c5fd; }
.navbar.scrolled .navbar-logo-sub { color: #2563eb; }

/* ===== NAVBAR LINKS ===== */
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }

/* ===== NAVBAR DROPDOWN (Products submenu) ===== */
.navbar-dropdown { position: relative; }
.navbar-dropdown > .navbar-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}
.navbar-dropdown > .navbar-link .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.navbar-dropdown:hover > .navbar-link .chevron,
.navbar-dropdown.open > .navbar-link .chevron {
  transform: rotate(180deg);
}
.navbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-8px);
  z-index: 100;
  pointer-events: none;
}
.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown.open .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.navbar-dropdown-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem 0.25rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.25rem;
}
.navbar-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #374151;
  border-radius: 0.4rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.navbar-dropdown-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.navbar-dropdown-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 0.25rem 0;
}

/* ===== NAVBAR SEARCH ===== */
.navbar-search { position: relative; display: flex; align-items: center; }
.navbar-search-input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.4rem 2.5rem 0.4rem 2rem;
  font-size: 0.8rem;
  color: #fff;
  width: 200px;
  transition: all 0.3s;
  outline: none;
}
.navbar-search-input::placeholder { color: rgba(255,255,255,0.6); }
.navbar-search-input:focus {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.5);
  color: #111827;
  width: 240px;
}
.navbar:not(.scrolled) .navbar-search-input:focus { color: #111827; }
.navbar.scrolled .navbar-search-input {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}
.navbar.scrolled .navbar-search-input::placeholder { color: #9ca3af; }
.navbar-search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}
.navbar:not(.scrolled) .navbar-search-icon { color: rgba(255,255,255,0.6); }
.navbar.scrolled .navbar-search-icon { color: #9ca3af; }
.navbar-search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: #2563eb;
  border: none;
  border-radius: 9999px;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.navbar-search-btn:hover { background: #1d4ed8; }
.navbar-search-btn svg { width: 0.85rem; height: 0.85rem; }
.navbar-link { font-weight: 500; font-size: 0.9rem; transition: color 0.2s; cursor: pointer; }
.navbar:not(.scrolled) .navbar-link { color: #fff; }
.navbar.scrolled .navbar-link { color: #374151; }
.navbar-link:hover { color: #3b82f6; }
.navbar-link.active { color: #3b82f6; }
.navbar-cta { }
.navbar.scrolled .navbar-cta .btn-primary { background: #2563eb; color: #fff; }
.navbar:not(.scrolled) .navbar-cta .btn { background: #fff; color: #1d4ed8; }
.navbar:not(.scrolled) .navbar-cta .btn:hover { background: #eff6ff; }

/* Mobile Menu */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.navbar:not(.scrolled) .mobile-menu-toggle { color: #fff; }
.navbar.scrolled .mobile-menu-toggle { color: #374151; }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); padding: 1rem; z-index: 40; margin: 0.5rem 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav-link { display: block; padding: 0.75rem 1rem; color: #374151; border-radius: 0.5rem; font-weight: 500; transition: all 0.2s; }
.mobile-nav-link:hover { background: #eff6ff; color: #2563eb; }
.mobile-nav-divider { border-top: 1px solid #e5e7eb; margin: 0.5rem 0; }

/* ===== FOOTER ===== */
.footer { background: #111827; color: #9ca3af; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.footer-brand-name { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 1.5rem 0; }
.social-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #1f2937; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; }
.social-icon:hover { background: #2563eb; }
.social-icon svg { width: 1.25rem; height: 1.25rem; }

/* ===== STAT COUNTER ===== */
.stat-item { }
.stat-value { font-size: 2.5rem; font-weight: 700; color: #fff; }
.stat-label { color: #bfdbfe; font-size: 0.875rem; }

/* ===== INDUSTRY BADGE ===== */
.industry-badge { background: #fff; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); text-align: center; transition: all 0.3s; }
.industry-badge:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-4px); }
.industry-badge-icon { width: 3rem; height: 3rem; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.industry-badge-icon svg { width: 1.5rem; height: 1.5rem; color: #2563eb; }

/* ===== APPLICATION HOME CARDS ===== */
.app-home-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.app-home-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
.app-home-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.app-home-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.app-home-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.app-home-link {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== ALERT ===== */
.alert { padding: 1rem 1.25rem; border-radius: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }

/* ===== SEARCH BAR ===== */
.search-bar { position: relative; }
.search-bar svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; color: #9ca3af; }
.search-bar input { padding-left: 2.5rem; }

/* ===== FILTER BAR ===== */
.filter-bar { background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); position: sticky; top: 70px; z-index: 30; padding: 1rem 0; }

/* ===== GALLERY ===== */
.gallery-thumb { height: 80px; overflow: hidden; border-radius: 0.5rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.gallery-thumb.active { border-color: #2563eb; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== PRODUCT DETAIL — Two-column layout ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.detail-gallery-col { }
.detail-info-col { }

/* md+: side-by-side on tablet and up */
@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== RESPONSIVE ===== */
/* sm breakpoint — 640px+ */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
}

/* md breakpoint — 768px+ */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:flex-wrap { flex-wrap: wrap; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-center { justify-content: center; }
}

/* lg breakpoint — 1024px+ */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:flex-wrap { flex-wrap: wrap; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:justify-center { justify-content: center; }
}

/* xl breakpoint — 1280px+ */
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===== MAX-WIDTH RESPONSIVE OVERRIDES ===== */
@media (max-width: 1024px) {
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) { display: block; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .text-5xl { font-size: 2.5rem; }
  .text-4xl { font-size: 1.875rem; }
  .text-3xl { font-size: 1.5rem; }
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .pt-32 { padding-top: 6rem; }
  .pb-20 { padding-bottom: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-section { min-height: auto; }
  .modal-content { margin: 1rem; }
  .text-center { text-align: left; }
  .flex-wrap { flex-wrap: wrap; }
}

/* ===== MISC UTILITIES ===== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }
.object-center { object-position: center; }

/* ===== SKELETON LOADING ===== */
.skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ===== PAGE TRANSITIONS ===== */
.page-content { animation: fadeIn 0.4s ease; }

/* ===== SPEC SECTION ===== */
.spec-section { background: #fff; border-radius: 0.75rem; overflow: hidden; }
.spec-section-title { font-size: 1.125rem; font-weight: 600; color: #111827; padding: 1rem 1.5rem; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: #e5e7eb; margin: 1.5rem 0; }

/* ===== INFO BOX ===== */
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0.75rem; padding: 1.5rem; }
.info-box-title { font-weight: 600; color: #1d4ed8; margin-bottom: 0.75rem; }
.info-box-items { display: flex; flex-direction: column; gap: 0.5rem; }
.info-box-item { display: flex; align-items: center; gap: 0.5rem; color: #1e40af; font-size: 0.875rem; }
.info-box-item svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { width: 5rem; height: 5rem; background: #f3f4f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.empty-state-icon svg { width: 2.5rem; height: 2.5rem; color: #9ca3af; }

/* ===== WIDTH UTILITIES ===== */
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }

/* ===== APPLICATION INQUIRY FORM ===== */
.app-inquiry-form {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}
.app-inquiry-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}
.app-inquiry-form .form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #111827;
}
.app-inquiry-form .form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.app-inquiry-form .form-input::placeholder { color: #9ca3af; }
.app-inquiry-form select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.h-96 { height: 24rem; }
.h-\[500px\] { height: 500px; }

/* ===== TOP BAR ===== */
.topbar { background: #1d4ed8; color: #fff; padding: 0.375rem 0; font-size: 0.8rem; }
.topbar-link { display: flex; align-items: center; gap: 0.375rem; transition: color 0.2s; }
.topbar-link:hover { color: #bfdbfe; }
.topbar-divider { width: 1px; height: 1rem; background: rgba(255,255,255,0.3); }

/* ===== MAIN LAYOUT ===== */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-top: 80px; }

/* ===== RESOURCE CARDS ===== */
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #d1d5db; }

/* Sidebar resource items */
.sidebar-res-item:hover { background: #f9fafb; border-color: #9ca3af; }

/* Article page */
.app-hero { background: linear-gradient(135deg,#1e3a8a 0%,#1d4ed8 100%); padding: 5rem 0; position: relative; overflow: hidden; }
.app-hero::before { content:''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.3) 0%, transparent 50%); }
