/* Elevate custom styles to complement Bootstrap
  Note: This file may define small custom utilities that mimic Bootstrap naming
  for convenience. These are NOT part of Bootstrap itself. Example:
  - .min-vh-75 (custom viewport-height helper)
  Rationale: Bootstrap 5.3.8 ships .vh-100 and .min-vh-100, but not 75 variants.
  We also include modern viewport units (svh/lvh/dvh) for better mobile behavior. */

/* Hero section base */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  position: relative;
}

/* Subtle overlay blur to match reference look */
.hero-overlay {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Utility: stronger text shadow for white headings on gradient */
.text-shadow-lg { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

/* Utility: 90% white text */
.text-white-90 { color: rgba(255, 255, 255, 0.9) !important; }

/* Ensure hero inner content sits above overlay */
.hero .container { position: relative; z-index: 2; }

/* Glassmorphism card panel on hero right */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 28px;
}

/* Hero right panel container: mirror reference spacing/animation light version */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25);
}

/* Items and separators mimicking reference gradient rule */
.panel-item { position: relative; }
.panel-item p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.panel-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05) 70%, transparent 100%);
}

/* Pill-like label used in the panel */
.panel-label {
  font-size: 0.95rem;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.65rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.35rem 0.85rem 0.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

/* Bootstrap derivative: glass button
   Usage: <button class="btn glass"> ... </button>
   - Keeps Bootstrap sizing (.btn-lg, .btn-sm), disabled, and focus behaviors via CSS vars
   - Applies translucent glass look inspired by reference hero CTAs
   - Pair with .rounded-pill if you prefer Bootstrap-controlled radius instead of enforced pill */
.btn.glass {
  /* Drive Bootstrap button states via variables */
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(255, 255, 255, 0.2);
  --bs-btn-border-color: rgba(255, 255, 255, 0.3);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.3);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.5);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.45);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.7);
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.85);
  --bs-btn-disabled-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.25);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;

  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50rem; /* pill by default to match reference */
  font-weight: 600;
  position: relative;
  overflow: hidden; /* allow ripple/shine effects if added */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn.glass:active,
.btn.glass.active,
.btn.glass.show,
.btn.glass:active:focus {
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
  transition: background-color 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.btn.glass:focus-visible {
  outline: none;
  /* augment Bootstrap's focus ring with subtle white glow */
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Optional: compact secondary glass look for low-emphasis actions
   Use as: <button class="btn glass glass-secondary"> ... </button> */
.btn.glass.glass-secondary {
  --bs-btn-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-border-color: rgba(255, 255, 255, 0.25);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.3);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.55);
}

/* Custom utility: min-vh-75 (not in Bootstrap) */
.min-vh-75 { min-height: 75vh; min-height: 75svh; min-height: 75lvh; min-height: 75dvh; }

/* Footer: site-footer (reference-inspired, Bootstrap-friendly)
   Usage in markup:
   <footer class="site-footer py-5">
     <div class="container">
       <div class="row row-cols-1 row-cols-md-3 g-4 footer-content">...</div>
       <div class="footer-bottom pt-4 text-center small">...</div>
     </div>
   </footer>
*/
.site-footer {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 1px,
    rgba(96, 165, 250, 0.05) 1px,
    rgba(96, 165, 250, 0.05) 2px
  );
  pointer-events: none;
}

/* Ensure inner content sits above overlay */
.site-footer .container { position: relative; z-index: 1; }

/* Gradient heading text for footer sections */
.site-footer .footer-heading {
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* General footer text & links */
.site-footer .footer-text,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a { text-decoration: none; transition: color 0.25s ease; }
.site-footer a:hover { color: #60a5fa; }

/* Inline quick-links with subtle bullets, responsive wrapping */
.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links > li { display: inline; }
.quick-links > li + li { position: relative; }
.quick-links > li + li::before {
  content: '•';
  display: inline-block;
  margin: 0 .55rem 0 .35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85em;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .quick-links > li + li::before { margin: 0 .4rem 0 .15rem; }
}

/* Social links container spacing via Bootstrap utilities (d-flex gap-3) */

/* Footer bottom divider + color */
.footer-bottom {
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ——— Reference-inspired helpers for About section ——— */
/* Gradient heading text utility */
.heading-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle grain overlay for white sections */
.about-grain {
  position: relative;
}
.about-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%231e3a8a" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%231e40af" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') no-repeat center/cover;
  opacity: 0.3;
  pointer-events: none;
}



/* Mouse users (hover + fine pointer): underline on hover for visibility */
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover {
    text-decoration: underline !important;
    text-decoration-color: #93c5fd !important;
    text-decoration-thickness: 0.2rem !important;
    text-underline-offset: 0.15em !important;
  }
}
