/* ============
   TEXTS
 ============== */
.text-base {
    line-height: 1.35;
    margin: 0;
    text-align: justify;
    font-family: Arial, sans-serif;
}

.text-lower {
    text-transform: lowercase;
}

.text-right {
    text-align: right;    
}

.text-gradient {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 3em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5em;
    line-height: 1;
}

.subtitle {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-color--alt);
    margin-bottom: 0.5em;
}

.typewriter {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 8px solid var(--secondary-color); /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  padding-right: 8px;
  max-width: fit-content;
}

.text-highlight {
    --duration: 1s;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    font-weight: 600 !important;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-credits {
    color: var(--light-color);
    font-size: 0.6rem;
    position: absolute;
    bottom: var(--pad-s); right: var(--pad-s);
}
.img-credits::before { content: '@ '; }

/* ============
   SECTIONS
 ============== */
.section {
    position: relative;
    z-index: 2;
}

.section-title {
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 2rem;
    width: fit-content;
}

/* Mobiles / Tablets */
@media (max-width: 992px) {
    .section {
        padding: 0 var(--pad-m);
        line-height: 0.9;
    }

    .section-title {
        font-size: 3.5rem;
    }
}
/* Desktops */
@media (min-width: 992px) {
    .section {
        padding: var(--pad-h) var(--pad-h) 0 var(--pad-h);
    }

    .section-title {
        font-size: 5rem;
    }
}

.dotted-grid {
    background: var(--grid-bg-color);
    background-image: radial-gradient(var(--grid-dots-color) 1px, transparent 0);
    background-size: 30px 30px;
    background-position: -19px -19px;
}

.parallax {
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    position: fixed;
    z-index: -1;
}

/* ============
   BUTTONS
 ============== */
.btn {
    color: var(--text-color);
    border-radius: 1024px;    
    text-decoration: none;
    font-weight: 600;
    transition: 0.15s linear;
}

/* Mobiles / Tablets */
@media (max-width: 992px) {
    .btn {
        padding: var(--pad-m);
    }
}
/* Desktops */
@media (min-width: 992px) {
    .btn {
        padding: var(--pad-s) var(--pad-m);
    }
}

.btn-outline {
    border: 1px solid currentColor;
}
.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn:not(.btn-flat):not(.btn-outline) {
    background-color: var(--tertiary-color);
}
.btn:not(.btn-flat):not(.btn-outline):hover {
    background-color: var(--tertiary-color--lighter);
}

.btn.btn-invert.btn-dark {
    border: 1px solid var(--light-color);
    background-color: transparent;
    color: var(--light-color);
}
.btn.btn-invert.btn-dark:not(.btn-outline) {
    background-color: var(--dark-color);
}

body[theme="light"] .btn.btn-invert:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}
body[theme="dark"] .btn.btn-invert:hover,
.btn.btn-invert.btn-dark:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-flat {
    background-color: transparent;
}
.btn-flat:hover {
    color: var(--text-color--alt);
}

/* ============
   CARDS
 ============== */
.card {
    --x: 0;
    color: var(--font-color);
    padding: var(--pad-m);
    border-radius: var(--radius-m);
    position: relative;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                linear-gradient(45deg, var(--primary-color), var(--secondary-color)) var(--x)/200% border-box;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    transition: 0.25s ease-out;
}
.card:hover {
    --x: 100%;
}

/* ==================
   TESTIMONIALS
 ==================== */
.testimonial {
    transform: scale(1);
    transition: transform 0.25s ease-out;
}
.testimonial:hover {
    transform: scale(1.02);
}

.testimonial-text-wrapper {
    display: flex !important;
    flex-grow: 1;
    column-gap: 0.5rem;
}

.testimonial-open, .testimonial-close { font-size: 3em; }
.testimonial-open { line-height: 0.75; }
.testimonial-close {
    align-self: end;
    line-height: 0.25;
}

.testimonial-author {
    color: var(--text-color--alt);
    font-size: 0.95rem;
    font-weight: 650;
    text-align: right;
    padding-right: var(--pad-s);
    margin-top: var(--pad-b);
}
.testimonial-author::before { content: "- "; }

/* ========
   AUDIO
 ========== */
.audio-wrapper {
    background-color: var(--bg-color--alt);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.audio-wrapper:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* 
.audio-main {
    display: flex;
    align-items: center;
    column-gap: 1rem;
} */

.audio-wrapper .audio-label {
    font-weight: bold;
}

.audio-wrapper .audio-desc {
    color: var(--text-color--alt);
    font-size: 0.8rem;
}

.audio-wrapper audio {
    width: 100%;
    margin-top: 0.5rem;
}

/* ========
   MISC
 ========== */
/* Mobiles / Tablets */
@media (max-width: 992px) {
    .drawing { display: none; }
}
/* Desktops */
@media (min-width: 992px) {
    .drawing {
        --size: 20vw;
        overflow: visible;
        width: var(--size) !important;
        height: var(--size) !important;
        color: var(--text-color);
        opacity: 0.07;
        position: absolute;
        z-index: 1;
    }
}

.circular-progress {
    --mask: 1;
    --progress: 0;
    position: relative;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--bg-color) 87%, transparent 88% 100%),
        conic-gradient(transparent calc(var(--progress) * 1%), var(--bg-color) 0);
}
.circular-progress::before {
    --mid-color: #f77138;
    content: '';
    position: absolute;
    top: 1%; left: 1%;
    width: 98%;
    height: 98%;
    border-radius: 50%;
    background: conic-gradient(var(--mid-color), 90deg, var(--primary-color), 180deg, var(--secondary-color), var(--mid-color));
    z-index: -1;
}
.circular-progress::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-color);
    z-index: 1;
    opacity: var(--mask);
}

.square {
    aspect-ratio: 1 / 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .square::before {
      float: left;
      padding-top: 100%;
      content: '';
    }

    .square::after {
      display: block;
      content: '';
      clear: both;
    }
}
