/* ═══════════════════════════════════════════
   TRPL WEBSITE — GLOBAL STYLES (Restored Core)
═══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg:           #0a0f2c; /* Dark navy */
  --bg-2:         #0f1f4b; /* Deep blue */
  --bg-3:         #050a1d; /* Deepest blue */
  --bg-card:      rgba(255, 255, 255, 0.03);
  --bg-card-h:    rgba(30, 144, 255, 0.08); /* Neon blue hover */
  --blue:         #1e90ff; /* Neon blue */
  --cyan:         #00d4ff;
  --border:       rgba(30, 144, 255, 0.15);
  --text:         #f0f4f8; /* Light gray text for contrast */
  --text-soft:    rgba(240, 244, 248, 0.75);
  --text-muted:   #8ba3c7;
  --grad-main:    linear-gradient(135deg, #1e90ff, #00d4ff);
  --radius:       24px;
  --radius-sm:    10px;
  --nav-h:        70px;
  
  /* Mobile-first Font Sizes */
  --fs-base:      16px;
  --fs-h1:        clamp(2.2rem, 8vw, 3.5rem);
  --fs-h2:        clamp(1.8rem, 6vw, 2.5rem);
  --fs-h3:        clamp(1.4rem, 5vw, 1.8rem);
  --fs-body:      clamp(0.9rem, 2vw, 1rem);
}

/* ─── RESET / BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  font-size: var(--fs-base);
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Digital Grid Background Layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

/* Network Lines & Glow Layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(30, 144, 255, var(--glow-a, 0.12)) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.1s ease;
}

/* Floating Particles (CSS Only) */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  background: rgba(30, 144, 255, 0.4);
  border-radius: 50%;
  filter: blur(1px);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from { transform: translateY(100vh) scale(0); opacity: 0; }
  50% { opacity: 0.8; }
  to { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

@keyframes networkMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

img { 
  max-width: 100%; 
  height: auto; /* Responsive image best practice */
  display: block; 
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* Mobile Spacing for Container */
@media (max-width: 576px) {
  .container { padding: 0 16px; }
}

.section { width: 100%; padding: clamp(50px, 10vw, 90px) 0; position: relative; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -1000px;
  left: 0;
  background: #0a66ff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 2000;
}
.skip-link:focus {
  top: 10px;
  left: 10px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
:where(a, button, .btn, .mobile-nav-link, .mobile-dropdown a):focus-visible {
  outline: 2px solid rgba(0,212,255,0.7);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Reduced Motion */
.no-animations * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@keyframes pageFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
body {
  /* animation: pageFadeInUp 0.4s ease-in-out both; - Disabled to prevent stacking context issues for fixed elements */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.page-exiting body {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
  html.page-exiting body { transition: none !important; }
}

/* ─── BUTTONS (MINIMAL) ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; min-height: 48px; border-radius: 12px;
  font-weight: 600; font-size: 14px; transition: .3s ease;
}
.btn-primary { background: var(--grad-main); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(0,212,255,0.6); outline-offset: 2px; }

.scroll-top-btn,
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A66FF 0%, #3B82F6 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px rgba(10, 102, 255, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}
.scroll-top-btn i,
.back-top i {
  font-size: 18px;
  line-height: 1;
}
.scroll-top-btn.show,
.back-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top-btn.show:hover,
.back-top.show:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 36px rgba(10, 102, 255, 0.36);
  transform: translateY(-1px) scale(1.1);
}
.scroll-top-btn:active,
.back-top:active {
  transform: translateY(0) scale(0.98);
}
.scroll-top-btn:focus-visible,
.back-top:focus-visible {
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}
@media (max-width: 576px) {
  .scroll-top-btn,
  .back-top {
    width: 55px;
    height: 55px;
  }
  .scroll-top-btn i,
  .back-top i {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn,
  .back-top {
    transition: none !important;
  }
}

/* ════════════════════════════
   NAVBAR (Fixed & Reliable)
════════════════════════════ */
.navbar {
  position: fixed !important;
  top: 0 !important; left: 0; right: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 9999 !important; /* Extremely high to prevent overlap */
  display: flex; align-items: center;
  background: rgba(10, 25, 47, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  transform: none !important; /* Ensure no script or keyframe hides it */
  will-change: transform;
}

.navbar.nav-hidden,
.navbar.hide,
.navbar.navbar-hide {
  transform: none !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.navbar::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 92, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(26, 92, 255, 0.08), transparent 60%);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.navbar-container { position: relative; z-index: 1; }
.navbar-container {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav-login-mytrpl{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  min-height:44px;
  border-radius:10px;
  color:#fff;
  font-weight:700;
  font-size:13.5px;
  line-height:1;
  background:linear-gradient(90deg,#0A66FF,#3B82F6);
  box-shadow:0 10px 24px rgba(10,102,255,0.22);
  border:1px solid rgba(255,255,255,0.12);
  transition:transform .3s ease, filter .3s ease, box-shadow .3s ease;
  white-space:nowrap;
}
.nav-login-mytrpl i{font-size:14px;opacity:.95}
.nav-login-mytrpl:hover{
  transform:scale(1.05);
  filter:brightness(1.08);
  box-shadow:0 14px 30px rgba(10,102,255,0.32);
}
.nav-login-mytrpl:active{transform:scale(1.02)}
.nav-login-mytrpl:focus-visible{outline:2px solid rgba(59,130,246,0.75);outline-offset:3px}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.nav-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: none;
  pointer-events: none;
}
.nav-logo img { width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; object-position: center; display: block; margin: 0; pointer-events: none; border-radius: 50%; }
.nav-brand-text .brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: #ffffff;
    -webkit-text-fill-color: initial;
    background: none;
    text-transform: none;
  }

@media (max-width: 768px) {
  .navbar {
    height: 64px; /* Slightly smaller on mobile */
    background: rgba(10, 25, 47, 0.95); /* More solid background for contrast */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  body {
    padding-top: 64px !important; /* Force correct padding for fixed nav on mobile */
  }
  .navbar .navbar-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
  }
  .navbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .navbar .nav-brand .nav-logo img { width: 38px; height: 38px; }
  .navbar .nav-links { display: none !important; }
  .navbar .hamburger { margin-left: auto; flex-shrink: 0; }
  .nav-login-mytrpl{display:none}
  .navbar .nav-brand-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
    white-space: nowrap;
    max-width: 65vw;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }
  .navbar .brand-title { 
    font-size: 11px;
    letter-spacing: 0.2px;
    -webkit-text-fill-color: #fff; /* Solid white on mobile for better contrast */
  }
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 600; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #fff; }
.nav-links > li > a:hover { background: rgba(0,212,255,0.08); border-radius: 8px; }
 .nav-links > li > a:focus-visible { outline: 2px solid rgba(0,212,255,0.6); outline-offset: 2px; border-radius: 8px; }

/* Navbar scrolled effect - global */
.navbar.scrolled{
  background: #0A192F; /* Solid color matching --bg */
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.navbar.navbar-scrolled{
  background: #0A192F;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.navbar.scrolled::after{ opacity: 0.32; }
/* Dropdown */
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  background: rgba(10, 25, 47, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s ease;
}
.has-drop:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; color: rgba(255,255,255,.8); border-radius: 8px;
}
.dropdown-panel li a:hover { background: rgba(0,212,255,0.08); color: var(--cyan); }

/* Hamburger */
.hamburger {
  width: 38px; height: 38px; border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: linear-gradient(135deg, rgba(26, 92, 255, 0.2), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 30px rgba(10, 15, 44, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 3101; /* Above mobile nav content */
  flex-shrink: 0;
  min-width: 38px; min-height: 38px; /* Touch target */
  touch-action: manipulation;
  padding: 5px;
}
.hamburger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 6px 16px rgba(10, 15, 44, 0.5);
  pointer-events: none;
}
.hamburger span {
  width: 20px; height: 3px; background: #fff; display: block;
  margin: 0; border-radius: 3px;
  box-shadow: 0 0 1px rgba(10, 15, 44, 0.35);
  transition: transform .28s ease, opacity .28s ease, background-color .28s ease;
  transform-origin: center;
  will-change: transform, opacity;
}
.hamburger:hover { background: linear-gradient(135deg, rgba(26, 92, 255, 0.3), rgba(0, 212, 255, 0.2)); }
.hamburger:hover span { background: var(--cyan); }
.hamburger:focus-visible { outline: 2px solid rgba(0,212,255,0.6); outline-offset: 2px; }
.hamburger:active { transform: scale(0.98); }
.hamburger.open span { background: var(--cyan); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .hamburger span {
    transition: none;
  }
}

/* Mobile Nav - Side Drawer */
.mobile-nav {
  position: fixed; inset: 0; background: rgba(10,25,47,0.24);
  z-index: 3000; /* Higher than fixed navbar */
  opacity: 0; visibility: hidden; 
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block;
}
.mobile-nav.open { 
  opacity: 1; visibility: visible; 
}
.mobile-nav-content {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 80%;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 20px 20px 0;
  padding: 80px 20px 30px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 12px 0 30px rgba(10, 15, 44, 0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open .mobile-nav-content { 
  transform: translateX(0); 
}
.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; color: rgba(255,255,255,0.9); border-radius: 14px;
  min-height: 48px; font-weight: 500; font-size: 15.5px;
  line-height: 1.5;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.mobile-nav-link:hover { 
  background: rgba(26, 92, 255, 0.15); 
  color: #fff;
  transform: translateX(4px);
  border-color: rgba(0, 212, 255, 0.3);
}
.mobile-nav-link:active {
  transform: translateX(2px);
  background: rgba(26, 92, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.4);
}
.mobile-nav-link.active {
  background: rgba(26, 92, 255, 0.25);
  color: #fff;
  border-color: rgba(0, 212, 255, 0.5);
  font-weight: 600;
}
.mobile-nav-link i {
  font-size: 11.5px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  color: rgba(255,255,255,0.75);
}
.mobile-nav-link:hover i { opacity: 1; color: var(--cyan); }

/* Mobile CTA Button */
.mobile-nav-cta, .mobile-cta {
  /* Ensure base styles if class is missing */
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  min-height: 48px; font-weight: 600; font-size: 14px;
  transition: all 0.2s ease;
  
  /* CTA specific */
  background: var(--grad-main);
  color: #fff !important;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(10, 102, 255, 0.3);
  border: none;
}
.mobile-login-mytrpl{
  width:100%;
  min-height:44px;
  background:linear-gradient(90deg,#0A66FF,#3B82F6);
  box-shadow:0 10px 24px rgba(10,102,255,0.22);
  border:1px solid rgba(255,255,255,0.12);
}
.mobile-login-mytrpl:hover{
  transform:translateY(-2px) scale(1.02);
  filter:brightness(1.08);
  box-shadow:0 14px 30px rgba(10,102,255,0.32);
}
.mobile-nav-cta:hover, .mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 255, 0.4);
}

/* Mobile accordion panels */
.mobile-dropdown {
  list-style: none;
  overflow: hidden;
  height: auto;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 0 4px 12px;
  border-left: 2px solid rgba(0,212,255,0.35);
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-dropdown.active {
  margin-bottom: 12px;
  max-height: 500px;
  overflow: visible;
}
.mobile-dropdown a {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.mobile-dropdown a:active {
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}
.mobile-dropdown a i { width: 18px; text-align: center; color: var(--cyan); opacity: 0.95; }
.mobile-dropdown a:hover { 
  background: rgba(255,255,255,0.06); 
  color: #fff;
  transform: translateX(4px);
}
.has-accordion.active-drop {
  color: #fff;
}
.has-accordion.active-drop i { transform: rotate(180deg); color: var(--cyan); }

/* Mobile Base Spacing */
@media (max-width: 768px) {
  body { animation: none !important; transform: none !important; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
}
@media (max-width: 576px) {
  .container { padding: 0 14px; }
  .section { padding: 52px 0; }
  .hamburger { border-radius: 50%; }
  .hamburger::before { border-radius: 50%; }
}


@media (max-width: 992px) {
  .navbar {
    transform: none !important; /* Force navbar to always be visible on mobile */
    pointer-events: auto !important; /* Ensure navbar remains interactive */
    background: rgba(10, 25, 47, 0.95); /* More solid background for mobile visibility */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .navbar-container { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { 
    display: inline-flex; 
    visibility: visible !important;
    opacity: 1 !important;
  }
  .nav-logo { width: 48px; height: 48px; border-radius: 50%; }
}

/* ════════════════════════════
   HERO & BREADCRUMB (Global)
════════════════════════════ */
.page-hero {
  padding: clamp(120px, 15vw, 160px) 0 clamp(60px, 10vw, 80px);
  background: var(--bg-2);
  background-image: 
    radial-gradient(circle at 20% 0%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid rgba(30, 144, 255, 0.1);
}
.page-hero-content { position: relative; z-index: 10; }
.page-hero h1 { 
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-hero p {
  font-size: var(--fs-body);
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb i { font-size: 10px; opacity: 0.5; }

/* ════════════════════════════
   COMMON GRID SYSTEMS
════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 4vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 24px); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 0 50px; }
}

/* ════════════════════════════
   GALLERY (Modern Responsive)
════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(10, 15, 44, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(10, 15, 44, 0.4);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,25,47,0.85) 0%, rgba(10,25,47,0) 100%);
  color: white; padding: 32px 20px 20px; transition: opacity 0.3s ease;
}
.gallery-overlay h5 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }
.gallery-overlay span { font-size: 0.9rem; opacity: 0.8; }

/* Generic card text safety */
.svc-card h4,
.svc-card p,
.info-card h4,
.info-card p,
.keg-card h4,
.keg-card p,
.modul-card h4,
.modul-card p,
.dl-card h4,
.dl-card p,
.peng-card h3,
.peng-card p,
.nilai-card h4,
.nilai-card p,
.vm-card h3,
.vm-card p,
.testi-card p,
.direktur-card p,
.form-card h2,
.form-card p {
  overflow-wrap: anywhere;
}

/* Filter Bar */
.filter-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.gf-btn {
  padding: 10px 20px; border: 1px solid var(--border);
  background-color: transparent; color: var(--text);
  border-radius: 99px; font-weight: 600;
}
.gf-btn.active { background: var(--grad-main); color: #fff; border-color: transparent; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(10,25,47,0.85);
  z-index: 2000;
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90%; max-height: 85%; border-radius: 12px; box-shadow: 0 0 50px rgba(10, 15, 44, 0.7); }
#lightbox .close-btn {
  position: absolute; top: 20px; right: 30px; font-size: 2.2rem; color: #fff; cursor: pointer;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
  margin-top: clamp(40px, 8vw, 80px);
  padding: clamp(40px, 6vw, 60px) 0 28px;
  background: radial-gradient(circle at top left, rgba(10,102,255,0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0,212,255,0.08), transparent 55%),
              #050a16;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(26,92,255,0.08), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: flex-start;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  margin-top: 14px;
  max-width: 100%;
  font-size: 14px;
  color: var(--text-soft);
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: var(--grad-main);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,102,255,0.45);
}
.footer-col h6 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.footer-contact-row i {
  margin-top: 3px;
  width: 18px;
  text-align: center;
  color: var(--cyan);
}
.footer-newsletter p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,25,47,0.35);
  color: #fff;
  font-size: 13px;
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.45);
}
.newsletter-form button {
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: var(--grad-main);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(10,102,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10,102,255,0.55);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-bottom-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .footer {
    margin-top: 60px;
    padding-top: 50px;
  }
}
@media (max-width: 640px) {
  .footer-brand,
  .footer-col,
  .footer-newsletter {
    text-align: left;
  }
  .footer-socials {
    justify-content: flex-start;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form button {
    width: 100%;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
body.scroll-locked {
  touch-action: none;
  animation: none !important;
  transform: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10,25,47,.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.modal-backdrop.show {
  display: flex;
  animation: modalFadeIn 0.18s ease-out both;
}
.modal-card {
  width: min(520px, 92vw);
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(10, 15, 44, 0.7);
  transform: translateY(10px) scale(0.98);
}
.modal-backdrop.show .modal-card {
  animation: modalPop 0.2s ease-out both;
}
.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #ffc107;
  font-size: 28px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}
.modal-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.modal-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  min-width: 120px;
  transition: transform .2s ease, filter .2s ease;
}
.modal-btn:active {
  transform: translateY(0);
}
.modal-btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 26px rgba(10,102,255,0.35);
}
.modal-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
