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

:root,
[data-bs-theme="light"] {
  --clock-size: 280px;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.58);
  --hero-shadow: 0 1.5rem 4rem rgba(20, 24, 40, 0.14);

  --quote-bg-icon: rgba(37, 99, 235, 0.11);
  --quote-text: rgba(15, 23, 42, 0.92);

  --hero-image: url("../../01-01/banners/1672/0941/workshop-nature-001-001-01.jpg");

  --hero-overlay-start: rgba(255, 255, 255, 0.42);
  --hero-overlay-end: rgba(219, 234, 254, 0.22);

  --hero-mask-start: rgba(255, 255, 255, 0.86);
  --hero-mask-mid: rgba(255, 255, 255, 0.58);
  --hero-mask-end: rgba(255, 255, 255, 0.08);

  --hero-title-color: rgba(15, 23, 42, 0.96);
  --hero-text-color: rgba(30, 41, 59, 0.86);
  --hero-text-shadow: 0 0.75rem 2rem rgba(255, 255, 255, 0.42);

  --hero-eyebrow-color: #0f172a;
  --hero-eyebrow-bg: rgba(255, 255, 255, 0.56);
  --hero-eyebrow-border: rgba(15, 23, 42, 0.12);

  --hero-radial-active: rgba(56, 189, 248, 0.34);
  --hero-mobile-overlay: rgba(255, 255, 255, 0.78);
}

[data-bs-theme="dark"] {
  --glass-bg: rgba(18, 22, 34, 0.58);
  --glass-border: rgba(255, 255, 255, 0.12);
  --hero-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);

  --quote-bg-icon: rgba(96, 165, 250, 0.16);
  --quote-text: rgba(248, 250, 252, 0.92);

  --hero-image: url("../../01-01/banners/1672/0941/workshop-nature-001-001-02.jpg");

  --hero-overlay-start: rgba(2, 6, 23, 0.49);
  --hero-overlay-end: rgba(15, 23, 42, 0.24);

  --hero-mask-start: rgba(2, 6, 23, 0.48);
  --hero-mask-mid: rgba(15, 23, 42, 0.22);
  --hero-mask-end: rgba(15, 23, 42, 0.18);

  --hero-title-color: #ffffff;
  --hero-text-color: rgba(255, 255, 255, 0.82);
  --hero-text-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.32);

  --hero-eyebrow-color: #dbeafe;
  --hero-eyebrow-bg: rgba(15, 23, 42, 0.26);
  --hero-eyebrow-border: rgba(255, 255, 255, 0.18);

  --hero-radial-active: rgba(96, 165, 250, 0.34);
  --hero-mobile-overlay: rgba(15, 23, 42, 0.78);
}

.md-home-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  isolation: isolate;
  box-shadow: var(--hero-shadow);

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  background:
    linear-gradient(
      120deg,
      var(--hero-overlay-start),
      var(--hero-overlay-end)
    ),
    var(--hero-image) center / cover no-repeat;
}

.md-home-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      var(--hero-mask-start) 0%,
      var(--hero-mask-mid) 44%,
      var(--hero-mask-end) 100%
    );
  mask-image: linear-gradient(
    90deg,
    black 0%,
    black 58%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    black 0%,
    black 58%,
    transparent 100%
  );
}

.md-home-hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% 40%;
  height: 480px;
  z-index: -1;
  background: radial-gradient(
    circle,
    var(--hero-radial-active),
    transparent 66%
  );
  filter: blur(16px);
  opacity: 0.95;
}

.md-home-hero-section .hero-inner {
  min-height: 80vh;
}

.md-home-hero-section .hero-content {
  max-width: 700px;
}

.md-home-hero-section .hero-eyebrow {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--hero-eyebrow-color);
  background: var(--hero-eyebrow-bg);
  border: 1px solid var(--hero-eyebrow-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 700;
}

.md-home-hero-section .hero-title {
  color: var(--hero-title-color);
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-shadow: var(--hero-text-shadow);
}

.md-home-hero-section .hero-text {
  color: var(--hero-text-color);
  max-width: 580px;
  text-shadow: var(--hero-text-shadow);
}

.md-home-hero-section .glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.md-home-hero-section .cards-panel {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.md-home-hero-section .quote-card {
  position: relative;
  min-height: 190px;
}

.md-home-hero-section .quote-card::before {
  content: "“";
  position: absolute;
  right: 1.25rem;
  bottom: -4.25rem;
  z-index: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16rem;
  line-height: 1;
  font-weight: 700;
  color: var(--quote-bg-icon);
  pointer-events: none;
  user-select: none;
}

.md-home-hero-section .quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 95%;
  color: var(--quote-text);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
  padding-bottom: 1rem;
}

.quote-card-label {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
}

.quote-card-label-eyebrow {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--quote-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem;
  font-weight: 700;
}

.md-home-hero-section .calendar-clock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.md-home-hero-section .calendar-card,
.md-home-hero-section .clock-card {
  width: 100%;
  min-height: 350px;
}

.md-home-hero-section .calendar-day {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bs-primary);
}

.md-home-hero-section .calendar-date {
  font-size: clamp(4.75rem, 10vw, 6.25rem);
  line-height: 0.88;
  font-weight: 850;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.md-home-hero-section .calendar-month-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
}

.md-home-hero-section .analog-clock {
  position: relative;
  width: min(var(--clock-size), 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.14)
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.16)
    );
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.1),
    0 1rem 2.5rem rgba(0, 0, 0, 0.14);
}

[data-bs-theme="dark"] .md-home-hero-section .analog-clock {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(18, 22, 34, 0.58),
      rgba(18, 22, 34, 0.26)
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    );
}

.md-home-hero-section .clock-number {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;

  width: 2rem;
  height: 2rem;
  margin: -1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--bs-body-color);
  transform:
    rotate(calc(var(--i) * 30deg))
    translateY(calc(var(--clock-size) / -2 + 2.2rem))
    rotate(calc(var(--i) * -30deg));
}

.md-home-hero-section .clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  z-index: 4;
  width: var(--hand-width);
  height: var(--hand-height);
  margin-left: calc(var(--hand-width) / -2);
  border-radius: 999px;
  background: var(--hand-color);
  transform-origin: bottom center;
  transform: rotate(0deg);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.16);
}

.md-home-hero-section .clock-hand.hour {
  --hand-width: 7px;
  --hand-height: 62px;
  --hand-color: var(--bs-body-color);
}


.md-home-hero-section .clock-hand.minute {
  --hand-width: 5px;
  --hand-height: 86px;
  --hand-color: var(--bs-primary);
}

.md-home-hero-section .clock-hand.second {
  --hand-width: 2px;
  --hand-height: 94px;
  --hand-color: #ef4444;
}

.md-home-hero-section .clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: 3px solid var(--bs-body-bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.2);
}

.md-home-hero-section .digital-time {
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--bs-body-bg-rgb), 0.62);
  border: 1px solid var(--bs-border-color-translucent);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/*
  Optional demo toggle.
  Remove this button if your project already has its own color-mode toggle.
*/

.md-home-hero-section .mode-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}

@media (max-width: 991.98px) {
  :root,
  [data-bs-theme="light"] {
    --clock-size: 260px;
    --hero-overlay-start: rgba(255, 255, 255, 0.72);
    --hero-overlay-end: rgba(255, 255, 255, 0.34);
    --hero-mask-start: rgba(255, 255, 255, 0.9);
    --hero-mask-mid: rgba(255, 255, 255, 0.68);
    --hero-mask-end: rgba(255, 255, 255, 0.18);
    --hero-mobile-overlay: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.7) 48%,
      rgba(255, 255, 255, 0.54) 100%
    );
  }

  [data-bs-theme="dark"] {
    --hero-overlay-start: rgba(2, 6, 23, 0.88);
    --hero-overlay-end: rgba(15, 23, 42, 0.56);
    --hero-mobile-overlay: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.84) 0%,
      rgba(15, 23, 42, 0.76) 48%,
      rgba(15, 23, 42, 0.64) 100%
    );
  }

  .md-home-hero-section,
  .md-home-hero-section .hero-inner {
    min-height: 80vh;
  }

  .md-home-hero-section::before {
    mask-image: none;
    -webkit-mask-image: none;
    background: var(--hero-mobile-overlay);
  }

  .md-home-hero-section .mode-toggle {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 1rem;
  }

  .md-home-hero-section .calendar-clock-row {
    grid-template-columns: 1fr;
  }

  .md-home-hero-section .cards-panel {
    max-width: 100%;
  }

  .md-home-hero-section .quote-card,
  .md-home-hero-section .calendar-card,
  .md-home-hero-section .clock-card {
    width: 100%;
    min-height: auto;
  }

  .md-home-hero-section .quote-card blockquote {
    max-width: 100%;
    font-size: clamp(1.4rem, 5.8vw, 2.1rem);
  }
}

@media (max-width: 575.98px) {
  :root,
  [data-bs-theme="light"] {
    --clock-size: 235px;
    --hero-overlay-start: rgba(255, 255, 255, 0.84);
    --hero-overlay-end: rgba(255, 255, 255, 0.56);
    --hero-mobile-overlay: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 46%,
      rgba(255, 255, 255, 0.66) 100%
    );
  }

  [data-bs-theme="dark"] {
    --hero-mobile-overlay: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.82) 46%,
      rgba(15, 23, 42, 0.7) 100%
    );
  }

  .md-home-hero-section {
    min-height: 100svh;
  }

  .md-home-hero-section .hero-inner {
    min-height: 100svh;
    align-content: stretch;
  }

  .md-home-hero-section .hero-title {
    letter-spacing: -0.04em;
  }

  .md-home-hero-section .mobile-full-card {
    min-height: calc((100svh - 2rem) / 3);
  }

  .md-home-hero-section .quote-card,
  .md-home-hero-section .calendar-card,
  .md-home-hero-section .clock-card {
    border-radius: 1.25rem;
  }

  .md-home-hero-section .quote-card::before {
    right: 0.75rem;
    bottom: -3.5rem;
    font-size: 13rem;
  }
}

/* webools section */

.webtools-section {
  width: 100%;
  position: relative;
}

.webtools-section .mw-900 {
  max-width: 900px;
}

.webtools-section .tool-card-link {
  display: block;
  height: 100%;
  border-radius: 1rem;
}

.webtools-section .tool-card-link:focus-visible {
  outline: none;
}

.webtools-section .tool-card {
  position: relative;
  height: 100%;
  border: 1px solid var(--tool-card-border);
  background: var(--tool-card-bg);
  box-shadow: var(--tool-card-shadow);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.webtools-section h3 {
  margin-top: 1rem;
}

.webtools-section .tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tool-accent);
  opacity: 0.95;
}

.webtools-section .tool-card-link:hover .tool-card,
.webtools-section .tool-card-link:focus-visible .tool-card {
  transform: translateY(-6px);
  box-shadow: var(--tool-card-shadow-hover);
  border-color: var(--tool-card-border-hover);
}

.webtools-section .tool-card-link:focus-visible .tool-card {
  box-shadow:
    var(--tool-card-shadow-hover),
    0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.webtools-section .tool-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 60px;
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tool-icon-color);
  background: var(--tool-icon-bg);
  border: 1px solid var(--tool-icon-border);
}

.webtools-section .tool-badge {
  background: var(--tool-badge-bg);
  color: var(--tool-badge-color);
  border: 1px solid var(--tool-badge-border);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 100%;
}

.webtools-section .tool-list {
  display: grid;
  gap: 0.75rem;
  color: var(--tool-muted);
  margin: 0;
  padding: 0;
}

.webtools-section .tool-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.webtools-section .tool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tool-bullet);
  transform: translateY(-50%);
}

.webtools-section .tool-arrow {
  font-size: 3rem;
  line-height: 1;
  color: var(--tool-arrow-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.webtools-section .tool-card-link:hover .tool-arrow,
.webtools-section .tool-card-link:focus-visible .tool-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.webtools-section .btn {
  pointer-events: none;
}

/* Light mode */
[data-bs-theme="light"] .webtools-section {
  --tool-card-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --tool-card-border: rgba(15, 23, 42, 0.08);
  --tool-card-border-hover: rgba(13, 110, 253, 0.2);
  --tool-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --tool-card-shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12);
  --tool-accent: linear-gradient(90deg, #0d6efd, rgba(13, 110, 253, 0.35));
  --tool-icon-bg: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.05));
  --tool-icon-border: rgba(13, 110, 253, 0.14);
  --tool-icon-color: #0d6efd;
  --tool-badge-bg: rgba(13, 110, 253, 0.08);
  --tool-badge-border: rgba(13, 110, 253, 0.14);
  --tool-badge-color: #0d6efd;
  --tool-muted: #5c667a;
  --tool-bullet: #0d6efd;
  --tool-arrow-color: #0d6efd;
}

/* Dark mode */
[data-bs-theme="dark"] .webtools-section {
  --tool-card-bg: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  --tool-card-border: rgba(148, 163, 184, 0.12);
  --tool-card-border-hover: rgba(59, 130, 246, 0.28);
  --tool-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --tool-card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.42);
  --tool-accent: linear-gradient(90deg, rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.22));
  --tool-icon-bg: rgba(59, 130, 246, 0.12);
  --tool-icon-border: rgba(148, 163, 184, 0.12);
  --tool-icon-color: #7cb3ff;
  --tool-badge-bg: rgba(148, 163, 184, 0.08);
  --tool-badge-border: rgba(148, 163, 184, 0.12);
  --tool-badge-color: #d7e3f4;
  --tool-muted: #94a3b8;
  --tool-bullet: #60a5fa;
  --tool-arrow-color: #8ec5ff;
}

@media (max-width: 1199.98px) {
  .webtools-section .card-body {
    padding: 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .webtools-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .webtools-section .card-body {
    padding: 1.5rem !important;
  }

  .webtools-section h2.display-5 {
    font-size: calc(1.475rem + 2.1vw);
  }

  .webtools-section .mt-auto {
    padding-top: 0.5rem;
  }

  .webtools-section .btn {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}