/* =========================
   GLOBAL TRANSITIONS
========================= */

* {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

/* =========================
   BUTTON SYSTEM
========================= */

.btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* subtle surface */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    transparent
  );
  opacity: 0;
}

/* hover lift */
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.btn:hover::before {
  opacity: 1;
}

/* primary glow */
.btn.primary {
  box-shadow: 0 6px 20px rgba(143,177,206,0.2);
}

.btn.primary:hover {
  box-shadow: 0 10px 28px rgba(143,177,206,0.35);
}

/* press */
.btn:active {
  transform: scale(0.96);
}

/* =========================
   CARD SYSTEM
========================= */

.card {
  position: relative;
  overflow: hidden;
}

/* gradient edge glow */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(143,177,206,0.15),
    transparent
  );

  opacity: 0;
}

/* hover elevation */
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

/* glow on hover */
.card:hover::before {
  opacity: 1;
}

/* active (selected concept) */
.card.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 40px rgba(143,177,206,0.25);
}

/* =========================
   EXPAND SYSTEM
========================= */

.expand {
  display: inline-block;
  position: relative;
}

/* underline grow */
.expand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.expand:hover::after {
  width: 100%;
}

/* content animation */
.expand-content {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.4s ease;
}

.expand-content.open {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
}

/* =========================
   SCROLL REVEAL
========================= */

.section {
  opacity: 0;
  transform: translateY(24px);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   COUNTER (LIVE FEEL)
========================= */

#counter {
  position: relative;
}

/* pulse feedback */
#counter.updated {
  animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--accent-gold); }
  100% { transform: scale(1); }
}

/* subtle glow */
#counter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(241,222,103,0.15),
    transparent 70%
  );
  opacity: 0.3;
}

/* =========================
   GEOMETRY VISUAL
========================= */

#geometry-visual {
  position: relative;
  overflow: hidden;
}

/* animated glow field */
#geometry-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle,
    rgba(143,177,206,0.12),
    transparent 70%
  );

  animation: geoPulse 7s infinite ease-in-out;
}

@keyframes geoPulse {
  0% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.04); }
  100% { opacity: 0.2; transform: scale(1); }
}

/* =========================
   RESERVATION PANEL
========================= */

#reservationPanel {
  position: fixed;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);

  width: 340px;

  background: rgba(17,24,33,0.95);
  backdrop-filter: blur(18px);

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);

  padding: 20px;

  z-index: 20;

  transition: bottom 0.4s ease;
}

/* open state */
#reservationPanel.open {
  bottom: 30px;
}

/* =========================
   FAQ SYSTEM
========================= */

.faq-item {
  position: relative;
  overflow: hidden;
}

/* subtle hover lift */
.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

/* highlight edge */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent-blue);
  transition: height 0.3s ease;
}

.faq-item:hover::before {
  height: 100%;
}

/* =========================
   SOCIAL LINKS
========================= */

.socials a {
  position: relative;
}

/* underline grow */
.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.socials a:hover::after {
  width: 100%;
}

/* =========================
   GLOBAL FADE IN
========================= */

body {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}