/* CodeIgniter site overrides */

/* Desktop: mobile overlay must stay hidden until opened */
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-overlay {
    display: flex;
  }
}

/* Fixed header readability on dark pages */
.site-header {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  background: rgba(2, 6, 23, 0.95);
}

/* Preparing page: center content in viewport */
.subpage-hero.is-preparing {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.subpage-hero.is-preparing .subpage-hero-container {
  width: 100%;
}

/* Portfolio image placeholders (when pf_*.png assets are unavailable) */
.pf-img-box.pf-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #030712;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.pf-img-box.pf-img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.35), transparent 50%);
  pointer-events: none;
}

.pf-img-box.pf-img-exhibition {
  background-image: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.pf-img-box.pf-img-convention {
  background-image: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.pf-img-box.pf-img-jobfair {
  background-image: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
}

.pf-img-box.pf-img-solution {
  background-image: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #0f172a 100%);
}

.pf-img-box.pf-img-exhibition::after,
.pf-img-box.pf-img-convention::after,
.pf-img-box.pf-img-jobfair::after,
.pf-img-box.pf-img-solution::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.pf-img-box.pf-img-exhibition::after {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.pf-img-box.pf-img-convention::after {
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.pf-img-box.pf-img-jobfair::after {
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.pf-img-box.pf-img-solution::after {
  box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.25);
}

/* Hero background fallback */
.hero-bg-image.hero-bg-fallback {
  background-image: linear-gradient(135deg, #020617 0%, #0f2744 45%, #020617 100%);
}

/* Portfolio filter links (server-side) */
.portfolio-filters .filter-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0;
}

/* Contact form feedback */
.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.form-alert p {
  margin: 0 0 6px;
}

.form-alert p:last-child {
  margin-bottom: 0;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.file-uploader .drop-zone {
  position: relative;
}

.file-uploader .drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Contact complete page */
.contact-complete-section {
  padding: 120px 0 80px;
}

.contact-complete-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.contact-complete-card h1 {
  margin: 20px 0 12px;
  font-size: 1.75rem;
}

.contact-complete-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.contact-complete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Case study detail page */
.case-study-page-section {
  padding: 120px 0 80px;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 20px;
}

.case-back-link:hover {
  color: #00f5a0;
}

.case-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 12px 0 20px;
}

.case-testimonial {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 3px solid #00f5a0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

.case-study-cta {
  margin-top: 40px;
  text-align: center;
}

#privacy-modal.open {
  display: flex;
}
