@import url("https://fonts.cdnfonts.com/css/general-sans");

@font-face {
    font-family: "circular-web";
    src: url("public/fonts/circularweb-book.woff2") format("woff2");
}

@font-face {
    font-family: "general";
    src: url("public/fonts/general.woff2") format("woff2");
}

@font-face {
    font-family: "robert-medium";
    src: url("public/fonts/robert-medium.woff2") format("woff2");
}

@font-face {
    font-family: "robert-regular";
    src: url("public/fonts/robert-regular.woff2") format("woff2");
}

@font-face {
    font-family: "zentry";
    src: url("public/fonts/zentry-regular.woff2") format("woff2");
}

body {
    width: 100dvw;
    overflow-x: hidden;
    background-color: #dfdff0;
    font-family: "General Sans", sans-serif;
}

/* Utilities */
.border-hsla {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-hover-btn {
    position: relative;
    margin-inline-start: 2.5rem; /* ms-10 */
    cursor: pointer;
    font-family: "general";
    font-size: 0.75rem; /* text-xs */
    line-height: 1rem;
    text-transform: uppercase;
    color: #dfdff0; /* text-blue-50 */
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.nav-hover-btn::after {
    content: '';
    position: absolute;
    bottom: -0.125rem; /* -bottom-0.5 */
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: bottom right;
    transform: scaleX(0);
    background-color: #262626; /* bg-neutral-800 */
    transition: transform 300ms cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-hover-btn:hover {
    opacity: 0.75;
}

.nav-hover-btn:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
    opacity: 0.75;
}

.floating-nav {
    border-radius: 0.5rem; /* rounded-lg */
    border-width: 1px;
    background-color: black;
}

/* When navbar gains dark background on scroll, force link text to white */
.floating-nav .nav-hover-btn {
    color: #ffffff;
}

.floating-nav .nav-hover-btn::after {
    background-color: #ffffff;
}

.absolute-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mask-clip-path {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.special-font b {
    font-family: "zentry";
    font-feature-settings: "ss01" on;
}

.hero-heading {
    font-family: "zentry";
    font-size: 3rem; /* text-5xl */
    font-weight: 900; /* font-black */
    text-transform: uppercase;
    line-height: 1;
}

@media (min-width: 640px) {
    .hero-heading {
        right: 2.5rem; /* sm:right-10 */
        font-size: 4.5rem; /* sm:text-7xl */
    }
}

@media (min-width: 768px) {
    .hero-heading {
        font-size: 8rem; /* md:text-9xl */
    }
}

@media (min-width: 1024px) {
    .hero-heading {
        font-size: 12rem; /* lg:text-[12rem] */
    }
}

.about-subtext {
    position: absolute;
    bottom: -80dvh;
    left: 50%;
    width: 100%;
    max-width: 24rem; /* max-w-96 */
    transform: translateX(-50%);
    text-align: center;
    font-family: "circular-web";
    font-size: 1.125rem; /* text-lg */
}

@media (min-width: 768px) {
    .about-subtext {
        max-width: 34rem;
    }
}

.about-image {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 20;
    height: 60vh;
    width: 24rem; /* w-96 */
    transform-origin: center;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 1.5rem; /* rounded-3xl */
}

@media (min-width: 768px) {
    .about-image {
        width: 30vw;
    }
}

.animated-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* gap-1 */
    font-size: 4.5rem; /* text-7xl */
    text-transform: uppercase;
    line-height: 0.8;
    color: white;
}

@media (min-width: 640px) {
    .animated-title {
        padding-left: 8rem; /* sm:px-32 */
        padding-right: 8rem;
    }
}

@media (min-width: 768px) {
    .animated-title {
        font-size: 6rem; /* md:text-[6rem] */
    }
}

.animated-word {
    font-family: "zentry";
    font-weight: 900; /* font-black */
    opacity: 0;
    transform: translate3d(10px, 51px, -60px) rotateY(60deg) rotateX(-40deg);
    transform-origin: 50% 50% -150px !important;
    will-change: opacity, transform;
}

.bento-tilt_1 {
    position: relative;
    grid-column: span 2 / span 2;
    overflow: hidden;
    border-radius: 0.375rem; /* rounded-md */
    transition: transform 300ms ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-tilt_2 {
    position: relative;
    grid-column: span 1 / span 1;
    grid-row: span 1 / span 1;
    overflow: hidden;
    border-radius: 0.375rem; /* rounded-md */
    transition: transform 300ms ease-out;
}

.bento-title {
    font-family: "zentry";
    font-size: 2.25rem; /* text-4xl */
    font-weight: 900; /* font-black */
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .bento-title {
        font-size: 3.75rem; /* md:text-6xl */
    }
}

.story-img-container {
    position: relative;
    height: 90vh;
    width: 100%;
    filter: url("#flt_tag");
}

@media (min-width: 768px) {
    .story-img-container {
        height: 100dvh;
    }
}

.story-img-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(4% 0, 83% 21%, 100% 73%, 0% 100%);
}

@media (min-width: 768px) {
    .story-img-mask {
        left: 20%;
        top: -10%;
        width: 80%;
        height: 80%;
    }
}

.story-img-content {
    position: absolute;
    left: 2.5rem; /* left-10 */
    top: 4rem; /* top-16 */
    height: 50dvh;
    width: 100%;
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
}

@media (min-width: 768px) {
    .story-img-content {
        left: 0;
        top: 2.5rem; /* md:top-10 */
        height: 100dvh;
    }
}

@media (min-width: 1024px) {
    .story-img-content {
        left: -300px;
        top: -100px;
    }
}

.gallery-img-container {
    width: 16rem; /* size-64 */
    height: 16rem;
    overflow: hidden;
    background-color: #c4b5fd; /* bg-violet-300 */
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
}

.gallery-img-4 {
    border-radius: 0.5rem; /* rounded-lg */
}

@media (min-width: 640px) {
    .gallery-img-4 {
        width: 20rem; /* sm:size-80 */
        height: 20rem;
    }
}

@media (min-width: 768px) {
    .gallery-img-4 {
        height: 24rem; /* md:h-96 */
        width: 25rem; /* md:w-[25rem] */
    }
}

.sword-man-clip-path {
    clip-path: polygon(16% 0, 89% 15%, 75% 100%, 0 97%);
}

.contact-clip-path-1 {
    clip-path: polygon(25% 0%, 74% 0, 69% 64%, 34% 73%);
}

.contact-clip-path-2 {
    clip-path: polygon(29% 15%, 85% 30%, 50% 100%, 10% 64%);
}

.indicator-line {
    height: 4px;
    width: 1px;
    border-radius: 9999px;
    background-color: white;
    transition: all 200ms ease-in-out;
}

.indicator-line.active {
    animation: indicator-line 0.5s ease infinite;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

@keyframes indicator-line {
    0% {
        height: 4px;
        transform: translateY(0px);
    }
    50% {
        height: 16px;
        transform: translateY(-4px);
    }
    100% {
        height: 4px;
        transform: translateY(0px);
    }
}

/* Three Body Animation */
.three-body {
    --uib-size: 35px;
    --uib-speed: 0.8s;
    --uib-color: #5d3fd3;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
    position: absolute;
    height: 100%;
    width: 30%;
}

.three-body__dot:after {
    content: "";
    position: absolute;
    height: 0%;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
}

.three-body__dot:nth-child(1) {
    bottom: 5%;
    left: 0;
    transform: rotate(60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(1)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite ease-in-out;
    animation-delay: calc(var(--uib-speed) * -0.3);
}

.three-body__dot:nth-child(2) {
    bottom: 5%;
    right: 0;
    transform: rotate(-60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(2)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15) ease-in-out;
}

.three-body__dot:nth-child(3) {
    bottom: -5%;
    left: 0;
    transform: translateX(116.666%);
}

.three-body__dot:nth-child(3)::after {
    top: 0;
    left: 0;
    animation: wobble2 var(--uib-speed) infinite ease-in-out;
}

@keyframes spin78236 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wobble1 {
    0%, 100% { transform: translateY(0%) scale(1); opacity: 1; }
    50% { transform: translateY(-66%) scale(0.65); opacity: 0.8; }
}

@keyframes wobble2 {
    0%, 100% { transform: translateY(0%) scale(1); opacity: 1; }
    50% { transform: translateY(66%) scale(0.65); opacity: 0.8; }
}

/* Contact Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Contact card hover effects */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Form input focus animations */
.form-input {
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 183, 221, 0.3);
}

/* Map section animations */
.map-container {
    animation: scaleIn 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
