 @font-face {
  font-family: "Ubuntu-B"; /* set name */
  src: url("./fonts/ubuntu-font-family-0.83/Ubuntu-B.ttf"); /* url of the font */
}

 @font-face {
  font-family: "Ubuntu-R"; /* set name */
  src: url("./fonts/ubuntu-font-family-0.83/Ubuntu-R.ttf"); /* url of the font */
}

:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --card: #111827;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);

  --fr-blue: #2563eb;
  --ph-red: #dc2626;
  --gold: #facc15;
  --orange: #f97316;
  --border: rgba(255, 255, 255, 0.12);

  --max-width: 1180px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Ubuntu-R";
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.20), transparent 30%),
    radial-gradient(circle at bottom, rgba(250, 204, 21, 0.10), transparent 34%),
    linear-gradient(180deg, #05070d 0%, #080b12 48%, #02030a 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
  padding: 9px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

/* HERO */

.hero {
  padding: 58px 0 38px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 360px;
  padding: clamp(26px, 5vw, 54px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(220, 38, 38, 0.125)),
    url("./images/general/banner_2x.png") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 36%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  opacity:0.125;
}

.hero p {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* SECTIONS */

.section {
  padding: 54px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

/* MAGIC PROJECT CAROUSEL */

.projects-section {
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 70px;
}

.magic-carousel {
  position: relative;
  width: 100%;
  margin-top: 10px;
  overflow: visible;
}

.fullwidth-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.magic-projects-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 32px max(86px, calc((100vw - var(--max-width)) / 2 + 62px)) 58px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.magic-projects-track::-webkit-scrollbar {
  display: none;
}

.magic-projects-track .magic-card {
  flex: 0 0 360px;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 30;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
  color: #111827;
  background:
    radial-gradient(circle at 35% 28%, #fff7ed, var(--gold) 46%, var(--orange) 78%);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.58),
    0 0 32px rgba(250, 204, 21, 0.42);
  transform: translateY(-50%);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.carousel-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: rgba(250, 204, 21, 0.12);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.8;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.08);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(250, 204, 21, 0.58);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn-left {
  left: 18px;
}

.carousel-btn-right {
  right: 18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: -18px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.magic-card {
  position: relative;
  padding: 2px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.65), rgba(249, 115, 22, 0.55), rgba(30, 58, 138, 0.45));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(250, 204, 21, 0.08);
  opacity: 0.50;
  filter: saturate(0.85) brightness(0.9);
  transition:
    box-shadow 0.28s ease,
    filter 0.28s ease,
    opacity 0.28s ease,
    background 0.28s ease;
}

.magic-card.is-clone {
  pointer-events: auto;
}

.magic-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.22),
      transparent
    );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.magic-card:hover {
  opacity: 1;
  filter: saturate(1) brightness(1);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(250, 204, 21, 0.18);
}

.magic-card:hover::before {
  opacity: 1;
}

.magic-card.is-active {
  opacity: 1;
  filter: saturate(1.08) brightness(1.04);
  background:
    linear-gradient(135deg, #facc15, #f97316 42%, #2563eb 100%);
  box-shadow:
    0 30px 88px rgba(0, 0, 0, 0.62),
    0 0 30px rgba(250, 204, 21, 0.30),
    0 0 58px rgba(249, 115, 22, 0.16);
}

.magic-card.is-active::before {
  opacity: 1;
}

.magic-card.is-active .magic-card-inner {
  border-color: rgba(250, 204, 21, 0.34);
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.20), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(180deg, #243047, #111827 54%, #05070d);
}

.magic-card.is-active .magic-card-header {
  border-color: rgba(250, 204, 21, 0.50);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.14);
}

.magic-card.is-active .magic-card-image {
  border-color: rgba(250, 204, 21, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(250, 204, 21, 0.18);
}

.magic-card-inner {
  height: 100%;
  min-height: 560px;
  border-radius: 26px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.14), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #20283a, #111827 54%, #05070d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition:
    background 0.28s ease,
    border-color 0.28s ease;
}

.magic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(250, 204, 21, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(250, 204, 21, 0.28);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.magic-card-type {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fde68a;
}

.magic-card-cost {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
}

.magic-card-image {
  position: relative;
  margin-top: 14px;
  aspect-ratio: 4 / 3;
  border-radius: 19px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(220, 38, 38, 0.22)),
    #020617;
  border: 2px solid rgba(250, 204, 21, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.34);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.magic-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 58%);
  opacity: 0.35;
  pointer-events: none;
}

.magic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.magic-card-body {
  margin-top: 14px;
  padding: 16px;
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1;
}

.magic-card-body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.magic-card-date {
  display: block;
  margin-top: 8px;
  margin-bottom: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
}

.magic-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  font-size: 0.94rem;
}

.magic-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.magic-card-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.magic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.magic-card-power {
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.64);
}

.magic-card-footer a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.30);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.magic-card-footer a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.about-card {
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.about-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border-radius: 22px;
  object-fit: cover;
  background: #111827;
  border: 2px solid rgba(250, 204, 21, 0.68);
  box-shadow:
    0 0 28px rgba(250, 204, 21, 0.22),
    0 16px 36px rgba(0, 0, 0, 0.32);
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* FOOTER */

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.24);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #fde68a;
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu a {
    font-size: 0.82rem;
    padding: 8px 11px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card {
    min-height: 420px;
    align-items: flex-end;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .projects-section {
    padding-bottom: 50px;
  }

  .magic-projects-track {
    gap: 18px;
    padding: 14px 24px 34px;
  }

  .magic-projects-track .magic-card {
    flex: 0 0 84vw;
    max-width: 330px;
  }

  .carousel-btn {
    display: none;
  }

  .magic-card,
  .magic-card.is-active {
    border-radius: 22px;
    opacity: 1;
    filter: none;
  }

  .magic-card:hover {
    transform: none;
  }

  .magic-card-inner {
    min-height: auto;
    border-radius: 20px;
    padding: 10px;
  }

  .magic-card-header {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 13px;
  }

  .magic-card-type {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .magic-card-cost {
    width: 25px;
    height: 25px;
    font-size: 0.78rem;
  }

  .magic-card-image {
    margin-top: 10px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .magic-card-body {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .magic-card-body h3 {
    font-size: 1.08rem;
  }

  .magic-card-date {
    margin-top: 6px;
    margin-bottom: 9px;
    font-size: 0.74rem;
  }

  .magic-card-body p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .magic-card-tags {
    gap: 5px;
    margin-top: 10px;
  }

  .magic-card-tags span {
    padding: 4px 7px;
    font-size: 0.65rem;
  }

  .magic-card-footer {
    margin-top: 10px;
    padding: 9px;
    border-radius: 13px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }

  .magic-card-power {
    font-size: 0.68rem;
  }

  .magic-card-footer a {
    width: 100%;
    min-height: 34px;
    font-size: 0.76rem;
  }

  .carousel-dots {
    margin-top: -8px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 20px;
  }

  .about-avatar {
    width: 105px;
    height: 105px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .page,
  .nav,
  .footer-inner {
    width: min(100% - 20px, var(--max-width));
  }

  .hero-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .section {
    padding: 42px 0;
  }

  .magic-projects-track {
    padding-left: 24px;
    padding-right: 24px;
  }

  .magic-projects-track .magic-card {
    flex-basis: 82vw;
    max-width: 310px;
  }

  .magic-card-body h3 {
    font-size: 1rem;
  }

  .magic-card-body p {
    font-size: 0.79rem;
  }
}
