@import '_variables.css';
@import '_animations.css';
@import '_fonts.css';
@import url("https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css");

/* GENERAL STYLE */
body.light-theme {
    --text-color: var(--licorice);
    --link-color: var(--licorice-lighter);
    --hover-color: var(--fuschia);
    --hover-color-effect: var(--fuschia-lighter);
}

body {
    color: var(--text-color);
    font-family: var(--paragraph-font);
    font-size: var(--paragraphs-font-size);
}

main {
    padding-top: var(--navbar-height);
    padding-bottom: var(--footer-height);
}

h1 {
    font-family: var(--main-title-font);
    color: var(--text-color);
    text-shadow: 0px -1px var(--text-color);
    transition: text-shadow 0.5s ease-out;
    animation: float 8s ease-in-out infinite;
}

h2 {
    font-family: var(--main-title-font);
    color: var(--text-color);
    text-shadow: 0px -1px var(--text-color);
}

h5 {
    font-weight: bold;
    text-shadow: 0px -1px var(--text-color);
}

@media screen and (max-width: 575px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #quote-content {
        font-size: 1.4rem;
    }
}
@media screen and (min-width: 576px) and (max-width: 991px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    #quote-content {
        font-size: 2.5rem;
    }
}
@media screen and (min-width: 992px) {
    h1 {
        font-size: 6rem;
    }

    h2 {
        font-size: 4rem;
    }

    #quote-content {
        font-size: 3.2rem;
    }
}

h1:hover, #landing-title:hover h1 {
    text-shadow:
        3px -3px var(--text-color),
        3px -4px var(--text-color),
        6px -6px var(--text-color),
        6px -7px var(--text-color),
        9px -9px var(--hover-color),
        9px -10px var(--hover-color);
    transition: text-shadow 1s ease-out;
}

a {
    text-decoration-line: none;
}

.material-icon {
    width: auto;
    height: fit-content;
}

.clickable:hover {
    cursor: pointer;
}

.pop-button, .pop-button:active, .pop-button:hover {
    color: var(--text-color);
}

.pop-button {
    background-color: transparent;
    border: 1px solid var(--text-color);
    border-radius: 30px;
    padding: 10px 10px;
    text-align: center;
    transition-property: transform, box-shadow;
    transition-duration: 0.2s;
}

.pop-button:hover {
    box-shadow: 1px 1px var(--text-color), 2px 2px var(--text-color), 3px 3px var(--hover-color), 4px 4px var(--hover-color);
    transform: translateX(-4px) translateY(-4px);
}

.pop-button:active {
    box-shadow: none;
    transform: translateX(0) translateY(0);
}

.classic-link {
    color: var(--hover-color);
}

.classic-link:hover {
    color: var(--link-color);
}

.hidden-link {
    color: var(--text-color);
}

.hidden-link:hover {
    color: var(--text-color);
    cursor: text;
}
/* GENERAL STYLE END */

/* REPO CARDS */
.card {
    background-color: transparent;
    backdrop-filter: blur(30px);
    width: 18rem;
    border: 1px solid var(--text-color);
    transition-property: box-shadow, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    perspective: 600px;
}

.card:hover {
    box-shadow: 1px 1px var(--text-color), 2px 2px var(--hover-color);
    transform: translateX(-2px) translateY(-2px);
}

.card-img-top {
    clip-path: circle();
    max-width: 175px;
    transform-style: preserve-3d;
}

.card-title {
    text-transform: capitalize;
}

.card:hover .card-img-top, #short-presentation:hover #image-of-me {
    animation: spin-y 10s linear infinite;
}
/* REPO CARDS END */

/* ABOUT ME IMAGE */
#image-of-me {
    border: 2px solid var(--text-color);
    border-radius: 10px;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 180px;
}

/* HTMX EFFECTS */
.fade-in {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.fade-in.htmx-added {
    opacity: 0;
}
/* END HTMX EFFECTS */

/* NAVBAR */
.navbar, .navbar .dropdown-menu, #nav-expander, #footer-expander {
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}

.navbar a, .navbar button {
    color: var(--text-color);
    background-color: transparent;
}

.navbar a:hover, .navbar button:hover {
    color: var(--hover-color);
    background-color: transparent;
}

.navbar-brand:hover {
    background: linear-gradient(
        -80deg,
        var(--hover-color) 47%,
        var(--hover-color-effect) 50%,
        var(--hover-color) 53%
    );
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    --webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 1.5s linear 1 normal;
}

.navbar a:focus, .navbar button:focus {
    color: var(--hover-color);
}

.navbar .navbar-brand {
    font-family: var(--main-title-font);
    font-weight: bold;
}

@media screen and (max-width: 575px) {
    .navbar .navbar-brand {
        font-size: 24px;
    }
}

@media screen and (min-width: 576px) {
    .navbar .navbar-brand {
        font-size: 32px;
    }
}

.navbar-toggler {
    border: none;
}

.navbar img {
    width: auto;
    height: 1.2rem;
}

.dropdown-item {
    font-size: var(--paragraphs-font-size);
}
/* NAVBAR END */

/* TOOLTIP */
#mail-tooltip {
    text-align: center;
}

.visible {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
}

.not-visible {
    display: none;
}
/* TOOLTIP END */

/* QUOTE */
#quote-content {
    font-family: var(--quote-font);
}
/* QUOTE END */