:root {
    color-scheme: dark;
    --bg-color: light-dark(#ffffff, #1a1a1a);
    --text-color: light-dark(#1a1a1a, #f5f5f5);
    --active-hover: light-dark(navy, white);
    --navbar-height: 7vh;
    --section-height: calc(100vh - var(--navbar-height));
    --icon-text-color: white;
    --icon-opacity-low: 0.4;
}
@font-face {
    font-family: 'Libre Franklin';
    src: url('/static/fonts/LibreFranklin-Thin.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif';
    src: url('/static/fonts/NotoSerif-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    cursor: default;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Libre Franklin", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    padding-top: var(--navbar-height);
    background-color: var(--bg-color);
    color: var(--text-color);
}
a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    &:hover {
/*        color: var(--active-hover); */
    }
}
h1 {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-size: clamp(2em, 4.5vw, 5em);
}
h2 {
    font-size: clamp(1.2em, 2vw, 2em);
}
video {
    max-width: 100%;
    max-height: 100%;
}
button {
    font-style: unset;
    padding: 1em;
    cursor: pointer;
    font-size: 1rem;
}
.navbar {
    display: flex;
    justify-content: space-between; /* push logo to left, links to right */
    align-items: center; /* vertically center items */
    row-gap: 1rem;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    padding: 1rem 2rem;
    background-color: #712cf9;
    box-shadow: 0 .5rem 1rem #00000026,inset 0 -1px #ffffff26;
}
.navbar-brand {
    display: flex;
    font-size: 1.25rem;
}
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: absolute;
    left: +100%;
    top: var(--navbar-height);
    width: 100%;
    padding: 1rem 2rem;
    background-color: #712cf9;
    transition: 0.4s ease;
    @media (width > 48em) {
        flex-direction: row;
        position: unset;
        width: auto;
    }
}
.nav-links.active {
    left: 0;
}
.nav-links a {
    display: flex;
    justify-content: center;
    transition: color 0.2s ease;
    &.active {
/*        color: var(--active-hover); */
    }
}
.navbar-toggler {
    display: flex;
    cursor: pointer;
    @media (width > 48em) {
        display: none;
    }
}
#heartBeatIcon {
    width: 1.35em;
    height: 1.35em;
    color: var(--icon-text-color);
    cursor: inherit;
    animation: pulse 5s alternate infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.15);
        opacity: var(--icon-opacity-low);
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    75% {
        transform: scale(1.15);
        opacity: var(--icon-opacity-low);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.container-main {
    display: grid;
/*    gap: 0.5rem; */
    grid-template-areas:
        "intro"
        "photo"
        "video"
        "course"
        "photo1"
        "video1"
        "course1"
        "contact"
        "footer";
    @media (width >= 700px) {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
        "intro intro intro"
        "photo video course"
        "photo1 photo1 photo1"
        "video1 video1 video1"
        "course1 course1 course1"
        "contact contact contact"
        "footer footer footer";
    }
}
.container-intro {
    grid-area: intro;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    height: var(--section-height);
    gap: 1em;
    background-image: url("/static/img/intro-mobile.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    @media (width >= 700px) {
        background-image: url("/static/img/intro.jpg");
        justify-content: center;
    }
}
.intro-banner {
    display: flex;
    padding-left: 4.5em;
    color: whitesmoke;
    p {
        font-size: clamp(1.2em, 2vw, 2em);
    }
    span {
        color: yellowgreen;
    }
}
.container-photo1 {
    grid-area: photo1;
    display: flex;
    flex-direction: column;
    height: var(--section-height);
    justify-content: center;
    align-items: center;
    background-color: firebrick;
    scroll-margin-top: var(--navbar-height);
}
.container-video1 {
    grid-area: video1;
    display: flex;
    flex-direction: column;
    height: var(--section-height);
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    scroll-margin-top: var(--navbar-height);
}
.container-course1 {
    grid-area: course1;
    display: flex;
    flex-direction: column;
    height: var(--section-height);
    justify-content: center;
    align-items: center;
    background-color: indianred;
    scroll-margin-top: var(--navbar-height);
}
.container-contact {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    height: var(--section-height);
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    scroll-margin-top: var(--navbar-height);
}
.container-footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    height: var(--section-height);
    justify-content: center;
    align-items: center;
    gap: 2em;
    background-color: #1f1f1f;
    scroll-margin-top: var(--navbar-height);
}
.container-photo {
    grid-area: photo;
}
.container-video {
    grid-area: video;
}
.container-course {
    grid-area: course;
}
.card {
    display: flex;
    flex-direction: column;
    flex: 1 1 400px;
    min-width: 0; /* Critical for allowing text to wrap */
    max-width: 500px; /* prevents card from growing too wide */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card-img {
    width: 100%;
    object-fit: cover;
}
.card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1em;
    padding: 1em;
}
.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin-top: auto; /* Pushes footer to bottom */
    @media (width >= 700px) {
        justify-content: unset;
    }
}
.contact-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    gap: 3.5em;
}
.contact-icon {
    cursor: pointer;
    width: 3.5em;
    height: 3.5em;
    color: floralwhite;
}