@font-face {
    font-family: montserrat;
    src: url('../fonts/Montserrat-Regular.ttf');
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: montserrat;
}

:root {
    --panel-width: min(1000px, calc(100vw - 40px));
    --text-xs: clamp(0.75rem, 0.68rem + 0.3vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-md: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    --text-xl: clamp(1.5rem, 1.1rem + 1.7vw, 2.75rem);
}

.index-bg {
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: hidden;
    position: relative;
    z-index: 0;
}

.all-bg {
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

.index-bg::before,
.all-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
}

.index-bg::before {
    background-image: url('../img/bg-w-colour.png');
}

.all-bg::before {
    background-image: url('../img/bg-wo-colour.png');
}

.index-bg main {
    min-height: 100dvh;
    padding-bottom: 0;
}

header {
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;

    padding: 16px 24px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.nav-box a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: var(--text-sm);
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-item {
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    --spin-duration: 4s;
}

.nav-item a:hover,
.nav-item.touch-active a {
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    z-index: 5;
}

.effect-layer {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    overflow: hidden;
    padding: 2px;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.effect-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #2F00C9 20deg,
        transparent 150deg,
        #FF00F6 210deg,
        transparent 360deg
    );
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-item:hover .effect-layer::after,
.nav-item.touch-active .effect-layer::after {
    opacity: 1;
    animation: spin-effect var(--spin-duration) linear infinite;
}

.outer-glow {
    filter: blur(25px);
    opacity: 0.6;
}

.outer-glow::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 60deg,
        transparent 0deg,
        #2F00C9 20deg,
        transparent 150deg,
        #FF00F6 210deg,
        transparent 330deg
    );
    animation: none;
}

.dark-layer {
    filter: blur(4px);
}

.dark-layer::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 80deg,
        transparent 0deg,
        #12004d 30deg,
        transparent 90deg,
        #740070 210deg,
        transparent 270deg
    );
    animation: none;
}

.bright-layer {
    filter: blur(1.5px);
}

.bright-layer::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 83deg,
        transparent 0deg,
        #6849cd 20deg,
        transparent 70deg,
        #ff8afb 200deg,
        transparent 250deg
    );
    animation: none;
}

.primary-border {
    filter: blur(0.4px);
}

.primary-border::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 70deg,
        transparent 0deg,
        #2F00C9 20deg,
        transparent 80deg,
        #FF00F6 210deg,
        transparent 270deg
    );
    animation: none;
}

.nav-item:hover .outer-glow::after,
.nav-item:hover .dark-layer::after,
.nav-item:hover .bright-layer::after,
.nav-item:hover .primary-border::after,
.nav-item.touch-active .outer-glow::after,
.nav-item.touch-active .dark-layer::after,
.nav-item.touch-active .bright-layer::after,
.nav-item.touch-active .primary-border::after {
    animation: spin-effect var(--spin-duration) linear infinite;
}

@keyframes spin-effect {
    to {
        transform: rotate(360deg);
    }
}

.nav-box a.active {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    color: white;
}

.nav-box a.active:hover,
.nav-box a.active.touch-active {
    background: transparent;
}

.content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: white;
    text-align: center;
}

.profile-img {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: none;
    width: var(--profile-size);
    height: auto;
    border-radius: 20px 0 20px 0;
    object-fit: cover;
    flex-shrink: 0;
    z-index: 10;
}

.text-content {
    flex: 1;
    width: 100%;
    max-width: calc(100% - var(--profile-size) - 28px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.description {
    font-size: var(--text-sm);
    font-weight: normal;
    color: white;
    text-align: center;
}

.index-label .description:first-of-type {
    font-weight: 700;
}

.index-label {
    --profile-size: clamp(155px, 24vw, 290px);
    --profile-gap: 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    padding: 22px calc(var(--profile-size) + var(--profile-gap)) 22px 28px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.content-label {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: 50px;

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.text {
    font-size: var(--text-sm);
    font-weight: normal;
    color: white;
    text-align: center;
}

.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.blur-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.6;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.blur-glow:nth-child(1) {
  background: #2F00C9;
}

.blur-glow:nth-child(2) {
  background: #FF00F6;
}

.blur-glow:nth-child(3) {
  background: #2F00C9;
}

.blur-glow:nth-child(4) {
  background: #FF00F6;
}

#tooltip {
  position: absolute;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.75);
  color: black;
  font-size: var(--text-xs);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: 0.15s;
  z-index: 10;
}

.preview {
  position: absolute;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: rgb(255, 255, 255);
  font-size: var(--text-xs);
  border-radius: 6px;
  pointer-events: none;
  transition: 0.15s;
  z-index: 9;
}

.grid-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    text-align: left;

    align-items: start;
}

.grid-card h2 {
    color: white;
    margin-bottom: 15px;
    font-size: var(--text-lg);
}

.left, .right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 31px;
}

.mini-card > div:first-child {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card .havo {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/havo-diploma.jpeg");
    background-size: cover;
        background-repeat: no-repeat;
    background-position: center 7%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card .propedeuse {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/propedeuse.jpeg");
    background-size: cover;
        background-repeat: no-repeat;
    background-position: center 1%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card .pro1 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/portfolio.png");
    background-size: cover;
        background-repeat: no-repeat;
    background-position: center 30%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card .pro2 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/blueprint.png");
    background-size: cover;
        background-repeat: no-repeat;
    background-position: center 1%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card .pro3 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/blender.png");
    background-size: cover;
        background-repeat: no-repeat;
    background-position: center 10%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card .pro4 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/setbyeline1.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 10%;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-size: var(--text-xs);
    background-clip: padding-box, border-box;

    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-card > div:first-child .effect-layer::after {
    opacity: 1;
    animation: spin-effect 7s linear infinite;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 2px;
}

.mini-card > div:first-child .outer-glow::after,
.mini-card > div:first-child .dark-layer::after,
.mini-card > div:first-child .bright-layer::after,
.mini-card > div:first-child .primary-border::after {
    animation: spin-effect 7s linear infinite;
    border-radius: 5px;
}

ul {
    list-style: none;
    color: white;
}

ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
    font-size: var(--text-sm);
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.contact-card {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text h2 {
    color: white;
    margin-bottom: 10px;
    text-align: left;
    font-size: var(--text-lg);
}

.contact-text p {
    color: white;
    line-height: 1.6;
    text-align: left;
    font-size: var(--text-sm);
}

.email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email a {
    color: white;
    text-decoration: underline;
}

.icon {
    font-size: 24px;
    color: white;
}

.image-slider .effect-layer::after {
    opacity: 1;
    animation: spin-effect 7s linear infinite;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 2px;
}

.image-slider .outer-glow::after,
.image-slider .dark-layer::after,
.image-slider .bright-layer::after,
.image-slider .primary-border::after {
    animation: spin-effect 7s linear infinite;
    border-radius: 5px;
}

.image-slider {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide1 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/myself1.jpeg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.slide2 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/myself2.jpeg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: white;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

label {
    color: white;
    font-weight: bold;
    font-size: var(--text-sm);
}

input,
textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding: 10px 5px;
    color: white;
    font-size: var(--text-sm);
    font-family: montserrat;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom: 1px solid #FF00F6;
}

button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: var(--text-sm);
    text-align: left;
    font-family: montserrat;
}

.cv h3 {
    color: white;
    font-size: var(--text-md);
}

.cv p {
    color: white;
    margin: 5px 0 10px;
    font-size: var(--text-sm);
}

a {
    color: white;
    text-decoration: none;
}

.btn-item {
    position: relative;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    --spin-duration: 4s;
}

.glow-btn {
    position: relative;
    z-index: 10;
    padding: 12px 28px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);

    color: white;
    font-family: montserrat;
    font-size: var(--text-sm);
    font-weight: bold;
    cursor: pointer;

    transition: all 0.3s ease;
}

.btn-item:hover .glow-btn,
.btn-item.touch-active .glow-btn {
    background: rgba(255,255,255,0.1);
    padding: 12px 28px;
}

.btn-item:hover .effect-layer::after,
.btn-item.touch-active .effect-layer::after {
    opacity: 1;
    animation: spin-effect var(--spin-duration) linear infinite;
}

.btn-item:hover .outer-glow::after,
.btn-item:hover .dark-layer::after,
.btn-item:hover .bright-layer::after,
.btn-item:hover .primary-border::after,
.btn-item.touch-active .outer-glow::after,
.btn-item.touch-active .dark-layer::after,
.btn-item.touch-active .bright-layer::after,
.btn-item.touch-active .primary-border::after {
    animation: spin-effect var(--spin-duration) linear infinite;
}

.extra-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  font-family: montserrat;
  color: white;
  font-size: var(--text-sm);
  margin-top: 20px;
}

.mini-card.active .extra-text {
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}

.extra-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.extra-text .btn-item:hover .glow-btn,
.extra-text .btn-item.touch-active .glow-btn {
    background: rgba(255,255,255,0.1);
    padding: 12px 28px;
}

.extra-text .btn-item:hover .effect-layer::after,
.extra-text .btn-item.touch-active .effect-layer::after {
    opacity: 1;
    animation: spin-effect var(--spin-duration) linear infinite;
}

.extra-text .btn-item:hover .outer-glow::after,
.extra-text .btn-item:hover .dark-layer::after,
.extra-text .btn-item:hover .bright-layer::after,
.extra-text .btn-item:hover .primary-border::after,
.extra-text .btn-item.touch-active .outer-glow::after,
.extra-text .btn-item.touch-active .dark-layer::after,
.extra-text .btn-item.touch-active .bright-layer::after,
.extra-text .btn-item.touch-active .primary-border::after {
    animation: spin-effect var(--spin-duration) linear infinite;
}

@media (hover: hover) and (pointer: fine) {

    .nav-item a:hover {
        padding: 10px 22px;
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .nav-item:hover .effect-layer::after {
        opacity: 1;
        animation: spin-effect var(--spin-duration) linear infinite;
    }

    .nav-item:hover .outer-glow::after,
    .nav-item:hover .dark-layer::after,
    .nav-item:hover .bright-layer::after,
    .nav-item:hover .primary-border::after {
        animation: spin-effect var(--spin-duration) linear infinite;
    }
}

@media (max-width: 900px) {

    .grid-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .nav-box {
        gap: 15px;
        padding: 14px 18px;
    }

    .index-label {
        --profile-gap: 24px;
        padding: 20px calc(var(--profile-size) + var(--profile-gap)) 20px 24px;
        gap: 20px;
        border-radius: 32px;
    }

    .content-label {
        padding: 28px;
        border-radius: 32px;
    }

    .mini-card > div:first-child {
        min-height: 210px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-slider {
        max-width: 100%;
        height: 320px;
    }
}

@media (max-width: 768px) {

    header {
        padding: 20px 0;
    }

    .nav-box a {
        font-size: 14px;
    }

    .nav-box {
        gap: 20px;
    }

    .content {
        padding: 20px 0;
    }

    .content-label {
        border-radius: 30px;
        padding: 20px;
    }

    .blur-glow {
    width: 300px;
    height: 300px;
  }

    .index-label {
        --profile-gap: 20px;
        padding: 18px calc(var(--profile-size) + var(--profile-gap)) 18px 20px;
    }

    .mini-card > div:first-child {
        min-height: 240px;
    }

    .image-slider {
        height: 340px;
    }
}

@media (max-width: 600px) {

    .index-bg {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .index-bg main {
        min-height: calc(100dvh + 46dvh);
        padding-bottom: 46dvh;
    }
}

@media (max-width: 480px) {

    .nav-box {
        gap: 6px;
        padding: 8px 6px;
        border-radius: 18px;
    }

    .nav-box a {
        font-size: 12px;
        padding: 6px 9px;
    }

    .grid-card {
        gap: 25px;
    }

    .content {
        padding: 12px 0;
    }

    .index-label {
        --profile-size: 118px;
        --profile-gap: 10px;
        padding: 10px calc(var(--profile-size) + var(--profile-gap)) 10px 10px;
        border-radius: 18px;
    }

    .text-content {
        max-width: calc(100% - var(--profile-size) - var(--profile-gap));
    }

    .content-label {
        border-radius: 18px;
        padding: 12px;
    }

    .title {
        font-size: clamp(17px, 5vw, 21px);
    }

    .description {
        font-size: clamp(9px, 2.8vw, 11px);
    }

    .mini-card > div:first-child {
        min-height: 220px;
        padding: 28px 14px;
    }

    .image-slider {
        height: 260px;
    }
}

@media (max-width: 360px) {

    .nav-box {
        gap: 6px;
        padding: 8px 6px;
        border-radius: 18px;
    }

    .nav-box a {
        font-size: 12px;
        padding: 6px 9px;
    }

    .content {
        padding: 12px 0;
    }

    .index-label {
        --profile-size: 112px;
        --profile-gap: 8px;
        padding: 9px calc(var(--profile-size) + var(--profile-gap)) 9px 9px;
        border-radius: 16px;
    }

    .content-label {
        padding: 10px;
        border-radius: 16px;
    }

    .title {
        font-size: clamp(16px, 4.8vw, 19px);
    }

    .description {
        font-size: clamp(8.5px, 2.6vw, 10px);
    }

    .mini-card > div:first-child {
        min-height: 220px;
        padding: 28px 14px;
    }

    .image-slider {
        height: 260px;
    }
}

@media (max-height: 500px) and (max-width: 1024px) and (orientation: landscape) {

    .index-bg {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    header {
        padding: 10px 0;
    }

    .content {
        padding: 10px 0;
    }

    .index-label {
        --profile-size: clamp(96px, 18vw, 150px);
        --profile-gap: 12px;
        padding: 10px calc(var(--profile-size) + var(--profile-gap)) 10px 14px;
        border-radius: 20px;
    }

    .index-bg main {
        min-height: calc(100dvh + 72dvh);
        padding-bottom: 72dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

