@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --font-main: 'Poppins', sans-serif;
    --font-icon: 'Material Symbols Outlined';
    --color-bg: #F0F0F0;
    --color-text: #333;
    --color-white: #fff;
    --color-black: #000;
    --color-highlight: #ffc002;
    --color-dark: #111;
    --border-radius-full: 100px;
    --transition-fast: all 0.3s ease;
    --transition-slow: all 1s ease 0.1s;
    --box-shadow-light: 0 0 8px rgba(0, 0, 0, 0.1);
    --link-hover-color: #444;
    --card-bg-hover: #6c35f0;
    --scrollbar-thumb: #ccc;
    --blockquote-color: #bbb;
}


body {
    font-family: var(--font-main);
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    transition: height 0.1s;
}

header .parallax {
    position: absolute;
    top: 0;
    left: -10px;
    content: "";
    width: calc(100% + 20px);
    z-index: -1;
    filter: blur(10px) brightness(0.7);
    transition: var(--transition-fast);
}

header.shrink h1 {
    font-size: 1.2rem;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    transition: font-size 0.3s;
    text-transform: uppercase;
}

header #subtitle {
    margin: 0.3rem 0 1rem;
    transition: var(--transition-fast);
}

header .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

header .links a {
    background-color: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: var(--border-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition-slow);
}

header .links a::before,
header .links a::after {
    content: "";
    position: absolute;
    background-color: var(--color-highlight);
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius-full);
    transition: all ease 1s;
    z-index: -1;
}

header .links a::before {
    top: -300px;
    left: -300px;
}

header .links a::after {
    bottom: -300px;
    right: -300px;
}

header .links a:hover::before {
    top: -50px;
    left: 0;
}

header .links a:hover::after {
    bottom: -50px;
    right: 0;
}

header .links a .material-symbols-outlined {
    font-family: var(--font-icon);
    font-size: 20px;
    margin-right: 5px;
}

header.shrink .links a {
    background-color: transparent;
    color: var(--color-highlight);
}

header .links a:hover {
    text-decoration: none;
    background-color: #fff0;
    color: var(--link-hover-color);
}

footer {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 1rem;
}

section {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    color: var(--color-highlight);
}

iframe {
    width: 100%;
    height: 300px;
    border: none;
    margin: 1rem 0;
}

.quote {
    text-align: center;
    font-size: 20pt;
    width: 60%;
    margin: auto;
    font-style: italic;
    font-weight: bold;
    color: var(--color-highlight);
    position: relative;
}

.quote .quote-content {
    width: 0;
    overflow: hidden;
    display: inline-block;
    transition: width 2s ease;
}

.quote.readed .quote-content {
    width: 100%;
}

.quote::before,
.quote::after {
    content: "«";
    color: var(--blockquote-color);
    position: absolute;
    width: 5px;
    height: 20px;
    text-anchor: end;
    z-index: -1;
    font-size: 70px;
    font-style: normal;
    font-weight: bold;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.quote::before {
    transform: translate(-30px, -40px);
}

.quote::after {
    content: "»";
    transform: translate(-10px, -40px);
}

.quote:hover::before,
.quote:hover::after {
    opacity: 1;
}

.language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.language-selector select {
    padding: 0.5rem;
    font-family: var(--font-main);
    border-radius: var(--border-radius-full);
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.language-selector select:focus {
    color: var(--link-hover-color);
}

.bio-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: justify;
}

.bio-container img {
    max-width: 150px;
    border-radius: 50%;
    align-self: center;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.podcast-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    padding: 1rem;
    box-sizing: border-box;
    aspect-ratio: 1;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: var(--color-white);
}

.podcast-card::before {
    content: "";
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    box-shadow: inset 0 -100px 100px var(--color-black);
}

.podcast-card>* {
    z-index: 1;
    position: relative;
    user-select: none;
}

.podcast-card .play-button {
    height: 50px;
    width: 50px;
    background-color: #0009;
    color: var(--color-white);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
}

.podcast-card .play-button:hover {
    transform: scale(1.05);
}

.podcast-card .play-button::before {
    content: "■";
    font-size: 25px;
}

.podcast-card .play-button.paused::before {
    content: "▶";
    font-size: 20px;
}

.podcast-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.podcast-card audio {
    width: 100%;
    margin: 0.5rem 0;
}

.podcast-card a {
    color: var(--color-black);
    background-color: var(--color-highlight);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 2px 5px;
    border-radius: var(--border-radius-full);
    text-align: center;
    transition: var(--transition-fast);
}

.podcast-card a:hover {
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--card-bg-hover);
    transform: scale(1.05);
}

.podcast-card .player {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transition: var(--transition-fast);
    overflow: hidden;
}

.podcast-card .player:hover {
    height: 5px;
    background-color: #FFF6;
}

.podcast-card .player .player-progress {
    position: absolute;
    height: 100%;
    border-radius: var(--border-radius-full);
    background-color: var(--card-bg-hover);
}

.button {
    color: var(--color-black);
    background-color: var(--color-highlight);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: var(--border-radius-full);
    text-align: center;
    transition: var(--transition-fast);
}

.button:hover {
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--link-hover-color);
    transform: scale(1.05);
}

#book .book-content {
    display: flex;
}

#book .book-cover {
    width: 300px;
    height: auto;
    margin: 20px;
    text-align: center;
}

#book .book-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 1px 1px 5px #0003;
}

#book #title-book-description {
    text-align: justify;
    flex: 1;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    header .links {
        flex-direction: row;
        gap: 5px;
        align-items: center;
    }

    header.shrink .links a {
        font-size: 0.8rem;
        padding: 3px 5px;
        border: 1px solid;
    }

    header.shrink .links a .material-symbols-outlined {
        font-size: 12px;
    }

    header .parallax {
        width: auto;
        left: -100%;
        height: calc(100% + 100px);
    }

    .language-selector {
        top: 5px;
        right: 5px;
    }

    .language-selector select {
        padding: 0;
    }

    section {
        padding: 1rem;
    }

    iframe {
        height: 200px;
    }

    .carousel {
        gap: 0.5rem;
    }

    .podcast-card {
        flex: 0 0 85vw;
        aspect-ratio: unset;
    }

    .quote {
        width: 90%;
        font-size: 1.1rem;
    }

    .bio-container img {
        max-width: 120px;
    }

    #book .book-content {
        flex-direction: column;
        align-items: center;
    }

    #book .book-cover {
        width: 80%;
        margin: 10px 0;
    }
}