@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Proxima Nova", "Inter", system-ui, sans-serif;
  --glass-light: rgba(255, 255, 255, 0.14);
  --text: #eef4ff;
  --text-soft: #d7deee;
  --heading: #ffffff;
  --accent: #ff9a6b;
  --accent-soft: rgba(255, 154, 107, 0.25);
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(20, 28, 45, 0.18);
  --shadow-hover: 0 30px 65px rgba(20, 28, 45, 0.26);
  --menu-radius: clamp(80px, 10vw, 120px);
  --menu-bubble-size: clamp(64px, 6vw, 82px);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  position: relative;
  background: #1a1f3a;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 170, 120, 0.25), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(255, 120, 180, 0.22), transparent 30%),
    radial-gradient(circle at 50% 75%, rgba(120, 160, 255, 0.18), transparent 35%),
    linear-gradient(
      180deg,
      #1a1f3a 0%,
      #2a2f55 25%,
      #4a3b6b 45%,
      #8c4a6d 65%,
      #ff8a5b 85%,
      #ffd2a8 100%
    );
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.glass,
body.path-projects .block-page-title-block,
.projects-page .view-header {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, rgba(40, 30, 60, 0.55), rgba(30, 25, 50, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(29px) saturate(155%);
  -webkit-backdrop-filter: blur(29px) saturate(155%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 20px 50px rgba(20, 28, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 34px 10px rgba(255, 255, 255, 0.18);
}

.glass::before,
body.path-projects .block-page-title-block::before,
.projects-page .view-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.10) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 8%, transparent 92%, rgba(255, 255, 255, 0.10) 100%);
  pointer-events: none;
}

.glass::after,
body.path-projects .block-page-title-block::after,
.projects-page .view-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.14),
    rgba(255, 154, 107, 0.18) 20%,
    rgba(255, 120, 180, 0.12) 35%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.glass::before,
.glass::after,
.projects-page .views-row::before,
.projects-page .views-row::after,
body.path-projects .block-page-title-block::before,
body.path-projects .block-page-title-block::after,
.projects-page .view-header::before,
.projects-page .view-header::after {
  border-radius: inherit;
  will-change: opacity, background;
  transform: translateZ(0);
}

.glass:hover::after,
.projects-page .views-row:hover::after,
body.path-projects .block-page-title-block:hover::after,
.projects-page .view-header:hover::after {
  opacity: 1;
}

body.path-projects .block-page-title-block {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto 32px;
  padding: 28px 32px;
}

body.path-projects .page-title,
body.path-projects h1.title,
body.path-projects .block-page-title-block h1,
body.path-projects main h1:first-of-type,
.projects-page .view-header,
.projects-page .view-header h1,
.projects-page .view-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--heading) !important;
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

/* Floating radial menu */

.floating-home-menu {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
}

.floating-home-button {
  position: relative;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  cursor: pointer;
  border-radius: 999px;
  color: var(--heading);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, rgba(40, 30, 60, 0.55), rgba(30, 25, 50, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 20px 50px rgba(20, 28, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.floating-home-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.10) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 8%, transparent 92%, rgba(255, 255, 255, 0.10) 100%);
  pointer-events: none;
}

.floating-home-button:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 154, 107, 0.38);
  color: var(--accent);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.14),
    0 28px 60px rgba(20, 28, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px 6px rgba(255, 154, 107, 0.16);
}

.floating-home-button__icon {
  position: absolute;
  z-index: 1;
  font-size: 1.5rem;
  line-height: 1;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.floating-home-button__icon--close {
  opacity: 0;
  transform: scale(0.7) rotate(-90deg);
}

.floating-home-menu.is-open .floating-home-button__icon--home {
  opacity: 0;
  transform: scale(0.7) rotate(90deg);
}

.floating-home-menu.is-open .floating-home-button__icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.floating-home-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  pointer-events: none;
}

.floating-home-action {
  position: relative;
  z-index: 2;
  width: var(--menu-bubble-size);
  height: var(--menu-bubble-size);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  border-radius: 999px;
  color: var(--heading);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, rgba(40, 30, 60, 0.55), rgba(30, 25, 50, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.12),
    0 16px 40px rgba(20, 28, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.floating-home-action span {
  width: 70px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.floating-home-menu.is-open .floating-home-actions {
  pointer-events: auto;
}

.floating-home-menu.is-open .floating-home-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-home-action:hover {
  transform: translateY(-4px) scale(1.05);
  color: var(--accent);
  border-color: rgba(255, 154, 107, 0.38);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.14),
    0 20px 48px rgba(20, 28, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 20px 6px rgba(255, 154, 107, 0.14);
}

.floating-home-menu.is-open .floating-home-action:nth-child(1) {
  transition-delay: 0.04s;
}

.floating-home-menu.is-open .floating-home-action:nth-child(2) {
  transition-delay: 0.08s;
}

.floating-home-menu.is-open .floating-home-action:nth-child(3) {
  transition-delay: 0.12s;
}

.floating-home-menu.is-open .floating-home-action:nth-child(4) {
  transition-delay: 0.16s;
}

@media (max-width: 700px) {
  .floating-home-menu {
    left: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .floating-home-button {
    width: 52px;
    height: 52px;
  }

  .floating-home-button__icon {
    font-size: 1.35rem;
  }

  .floating-home-actions {
    gap: 10px;
    flex-wrap: wrap;
    max-width: calc(100vw - 32px);
  }

  .floating-home-action span {
    width: 58px;
    font-size: 0.78rem;
  }
}

@media (max-width: 500px) {
  :root {
    --menu-bubble-size: 72px;
  }
}
