/* ===== Base ===== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ===== Loading Screen ===== */
#loading-screen {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.loading-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading {
  overflow: hidden;
}
.loading-logo {
  animation: loading-pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 146, 43, 0.45));
}
@keyframes loading-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.loading-bar-track {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff922b, #e8590c);
  animation: loading-fill 3s ease forwards;
}
@keyframes loading-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ===== Header ===== */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(28, 43, 58, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===== Hero Neon Effects ===== */

/* Checkerboard grid pattern overlay */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, transparent 85%);
}

/* Rising bubbles */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(77,171,247,0.15) 60%, rgba(77,171,247,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.25);
  animation-name: bubble-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  50% { transform: translateY(-50vh) translateX(15px) scale(1.05); }
  90% { opacity: 0.5; }
  100% {
    transform: translateY(-105vh) translateX(-10px) scale(0.9);
    opacity: 0;
  }
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  animation: orb-float 10s ease-in-out infinite;
}
.hero-glow-orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,146,43,0.55), transparent 70%);
  top: 8%; left: 8%;
  animation-duration: 12s;
}
.hero-glow-orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(77,171,247,0.45), transparent 70%);
  bottom: 10%; right: 10%;
  animation-duration: 14s;
  animation-delay: -3s;
}
.hero-glow-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,89,12,0.5), transparent 70%);
  top: 45%; right: 22%;
  animation-duration: 9s;
  animation-delay: -5s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-fade-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-fade-in 0.9s ease forwards;
}
.hero-fade-line-2 { animation-delay: 0.25s; }
.hero-fade-line-3 { animation-delay: 0.5s; }
@keyframes hero-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.neon-text {
  position: relative;
  display: inline-block;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 146, 43, 0.9),
    0 0 16px rgba(255, 146, 43, 0.85),
    0 0 34px rgba(232, 89, 12, 0.75),
    0 0 60px rgba(232, 89, 12, 0.5);
  animation: neon-flicker 2.6s ease-in-out infinite, hero-fade-in 0.9s ease forwards;
  animation-delay: 0s, 0.5s;
}
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% {
    text-shadow:
      0 0 6px rgba(255, 146, 43, 0.9),
      0 0 16px rgba(255, 146, 43, 0.85),
      0 0 34px rgba(232, 89, 12, 0.75),
      0 0 60px rgba(232, 89, 12, 0.5);
  }
  20%, 22%, 55% {
    text-shadow: none;
  }
}

/* ===== Section background patterns ===== */
.section-bg-pattern {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.section-bg-pattern-light {
  opacity: 0.06;
}

/* ===== Floating circles (dark sections) ===== */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: float-updown 8s ease-in-out infinite;
}
.floating-circle-a {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,146,43,0.18), transparent 70%);
  top: 10%; left: 6%;
  animation-duration: 9s;
}
.floating-circle-b {
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(77,171,247,0.16), transparent 70%);
  bottom: 12%; right: 10%;
  animation-duration: 11s;
  animation-delay: -2s;
}
.floating-circle-c {
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255,146,43,0.15), transparent 70%);
  top: 55%; right: 30%;
  animation-duration: 7s;
  animation-delay: -4s;
}

/* ===== Floating circles (light sections) ===== */
.floating-circle-light-a {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,89,12,0.10), transparent 70%);
  top: 6%; right: 8%;
  animation-duration: 10s;
}
.floating-circle-light-b {
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(28,126,214,0.08), transparent 70%);
  bottom: 8%; left: 6%;
  animation-duration: 12s;
  animation-delay: -3s;
}
.floating-circle-light-c {
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(232,89,12,0.09), transparent 70%);
  top: 8%; left: 10%;
  animation-duration: 9s;
}
.floating-circle-light-d {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(28,126,214,0.08), transparent 70%);
  bottom: 10%; right: 12%;
  animation-duration: 13s;
  animation-delay: -5s;
}
.floating-circle-light-e {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,146,43,0.12), transparent 70%);
  top: 40%; left: 45%;
  animation-duration: 10.5s;
  animation-delay: -1.5s;
}
@keyframes float-updown {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(15px); }
}

/* Photo-based section background (e.g. local section) with more visible transparency */
.section-bg-pattern-photo {
  opacity: 0.16;
}

/* ===== Marquee Bars ===== */
.marquee-bar {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #ff6a00, #ff9500, #ff6a00);
  background-size: 200% 100%;
  animation: marquee-bg-shift 6s linear infinite;
  border-top: 2px solid rgba(0,0,0,0.15);
  border-bottom: 2px solid rgba(0,0,0,0.15);
  padding: 0.9rem 0;
  box-shadow: 0 0 24px rgba(255, 106, 0, 0.55), inset 0 0 30px rgba(255,255,255,0.15);
}
@keyframes marquee-bg-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 3rem;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee-track-reverse {
  animation-name: marquee-scroll-reverse;
  animation-duration: 30s;
}
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 1.5rem;
}
.marquee-item i {
  color: #fff;
  font-size: 1rem;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@media (max-width: 640px) {
  .marquee-item { font-size: 0.9rem; padding: 0 1rem; }
}

/* ===== CTA pulse ===== */
.cta-pulse {
  animation: cta-pulse 2.2s ease-out infinite;
}
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(232, 89, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0); }
}

/* ===== Service cards ===== */
.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 14px rgba(28, 43, 58, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(232, 89, 12, 0.12);
  border-color: rgba(232, 89, 12, 0.25);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff922b, #e8590c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ===== Why it matters cards ===== */
.matter-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.matter-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255, 146, 43, 0.4);
  transform: translateY(-4px);
}
.matter-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.quote-callout {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 146, 43, 0.35);
  border-radius: 1.25rem;
  padding: 2.25rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Difference section ===== */
.diff-item {
  background: #ffffff;
  border: 1px solid #ffd8ac;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.diff-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(232, 89, 12, 0.1);
}
.diff-item i {
  font-size: 1.5rem;
  color: #e8590c;
  margin-bottom: 0.75rem;
  display: block;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28,43,58,0.08);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(28,43,58,0.92), rgba(28,43,58,0.15));
  color: #fff;
  padding: 1.25rem 1.25rem 1rem;
}
.gallery-item figcaption h4 {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.gallery-item figcaption p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* ===== Local badge ===== */
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

/* ===== Process ===== */
.process-step {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 14px rgba(28,43,58,0.04);
  position: relative;
}
.process-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fff1e6;
  color: #e8590c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.process-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #e8590c;
  margin-bottom: 0.5rem;
}

/* ===== Contact ===== */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #eef0f3;
}
.contact-info-card i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8590c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-image-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 14px rgba(28, 43, 58, 0.06);
  min-height: 200px;
}
.contact-image-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.contact-image-card:hover img {
  transform: scale(1.05);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c2b3a;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dfe3e8;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #e8590c;
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.12);
}
textarea.form-input { resize: vertical; min-height: 140px; }

/* Floating button pulse */
#floating-call {
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(232, 89, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Admin page ===== */
.admin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dfe3e8;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-input:focus {
  outline: none;
  border-color: #e8590c;
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.12);
}
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-신규 { background: #fff1e6; color: #e8590c; }
.status-확인중 { background: #e7f5ff; color: #1c7ed6; }
.status-완료 { background: #ebfbee; color: #2b8a3e; }
