/* Animation */

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-left {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-right {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header animation */
@keyframes fade-up {
    0% {
        transform: translateY(-50px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes delayed {
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes beat {
    to {
        font-size: 18px;
    }
}

*:hover {
    transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}


a:hover {
    text-decoration: underline;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    animation: delayed 2s ease forwards;
    animation-delay: 2s;
}


header .navbar.animate {
    animation: fade-up 0.3s ease-in;
}

#home {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
}

/* ToolTip */

.tooltip {
    line-height: 1rem;
    border-radius: .5rem !important;
}

.tooltip-inner {
    line-height: 1rem;
}

.tooltip .tooltip-arrow {
    visibility: hidden !important;
}

/* hero */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero h1,
.hero h2,
.hero a {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(calc(var(--base-font-size) * 2.5),
            10vw,
            calc(var(--base-font-size) * 1.618 * 8));

}

.hero h2 {
    font-size: clamp(calc(var(--base-font-size) * 1),
            2.5vw,
            calc(var(--base-font-size) * 1.618));
    color: var(--text-color-dm-80);
    font-weight: 300;

}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 9rem;
        text-align: left;
    }

    .hero h2 {
        display: none
    }

    .jump {
        display: none
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/hero.jpg') no-repeat center center/cover;
    z-index: 0;
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* #hero {
    background: url('/images/hero.jpg') no-repeat center center/cover;
    background-color: black;
    min-height: 100vh;
    line-height: 2rem;
    max-width: 100%;
    overflow: hidden;
}

#hero .content.animate {
    animation: fade-left 1s ease-out;
}

#hero h1 {
    animation: slide-bck-center 0.45s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
    font-size: clamp(40px, 8vw, calc(var(--base-font-size) * 8));
    color: #fff !important;
}

#hero h2 {
    animation: slide-back-center 0.45s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
    font-size: clamp(40px, 8vw, calc(var(--base-font-size) * 2));
    color: #fff !important;
    opacity: 0.5;
} */

.material-icons {
    color: #fff;
}

/* about me */
#about h3 {
    color: var(--text-secondary-color) !important;
}

#about .image img {
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    transition: box-shadow 0.3s;
    padding: 0;
    border: 0;
}

#about .image img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
}

#about ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0px 10px;
    padding: 0px;
    margin: 20px 0px 0px;
    overflow: hidden;
    list-style: none;
}

#about ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#about ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

#about .content {
    font-weight: 500;
    opacity: 0.9 !important;
    line-height: 1.7rem !important;
}

#about a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#about a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0.5;
}

#about a:hover::after,
#about a:focus::after,
#about a:active::after {
    width: 100%;
}

/* contact */

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    font-family: system-ui, sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    display: inline-block;
    margin: auto;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #dbdbdb;
}

/* reCAPTCHA margin */
.g-recaptcha {
    margin-bottom: 1.5rem;
}

/* Responsive layout */
@media (max-width: 480px) {
    form {
        padding: 1.5rem;
    }

    input,
    textarea,
    button {
        font-size: 1rem;
    }
}

/*Bento */
.bento {
    background-color: var(--alt-background-color);
    border-radius: var(--bento-radius);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 140px;
}

.alt-bg {
    background-color: var(--alt-background-color);
}

.dark-bg {
    background-color: var(--dark-background-color);
}