@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap");

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --preload-color-background: #09090b;
    --preload-color-foreground: #ffffff;
    --preload-color-accent: #8b5cf6;
    --preload-gap: 36px;
    --preload-icon-size: 96px;
    --preload-font: 600 1.2rem 'Outfit', sans-serif;
    --preload-title: 'FRAPPE DIGITAL LAB';
    --preload-spinner-size: 40px;
    --preload-spinner-width: 3px;
}

body {
    background-color: #09090b;
    color: #fff;
    font-family: "Outfit", sans-serif;
    overflow: hidden;
}

/* PRELOADER */
#app-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--preload-gap);
    justify-content: center;
    align-items: center;
    background: var(--preload-color-background);
    color: var(--preload-color-foreground);
    font: var(--preload-font);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
}

#app-preloader .preloader-logo {
    width: var(--preload-icon-size);
    height: var(--preload-icon-size);
    color: var(--preload-color-accent);
    filter: opacity(0);
    animation: preloader-logo-anim .6s .3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#app-preloader .preloader-title:before {
    content: var(--preload-title);
    filter: opacity(0);
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    animation: preloader-title-anim .6s .5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#app-preloader .preloader-spinner {
    position: fixed;
    bottom: var(--preload-gap);
    left: calc(50vw - calc(var(--preload-spinner-size) / 2));
    width: var(--preload-spinner-size);
    height: var(--preload-spinner-size);
    animation: preloader-spinner .6s linear infinite;
}

#app-preloader .preloader-spinner .preloader-spinner-icon {
    width: var(--preload-spinner-size);
    height: var(--preload-spinner-size);
    stroke: var(--preload-color-accent);
    stroke-width: var(--preload-spinner-width);
    stroke-dasharray: 314%, 314%;
    animation: preloader-spinner-icon-anim 1.2s linear infinite alternate;
}

@keyframes preloader-logo-anim {
    0% {
        filter: opacity(0);
        transform: translateY(-20px) scale(0.9);
    }

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

@keyframes preloader-title-anim {
    0% {
        filter: opacity(0);
        letter-spacing: 8px;
    }

    100% {
        filter: opacity(1);
        letter-spacing: 4px;
    }
}

@keyframes preloader-spinner {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloader-spinner-icon-anim {
    0% {
        stroke-dasharray: 0%, 314%;
    }

    100% {
        stroke-dasharray: 314%, 314%;
    }
}

/* SECTIONS & OBSERVER SCROLL */
section {
    height: 100%;
    width: 100%;
    top: 0;
    position: fixed;
    visibility: hidden;
}

section .outer,
section .inner {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}

section .bg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
}

/* HOME SECTION */
.home {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: #0a0a0d;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.home>img,
.robot-hero {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: 100%;
    max-width: 580px;
    z-index: 5;
    mix-blend-mode: screen;
    animation: float-horizontal 8s ease-in-out infinite;
}

@keyframes float-horizontal {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-30px) translateY(-5px);
    }
}


.home-content {
    position: absolute;
    left: 8%;
    font-family: "Outfit", sans-serif;
    width: min(540px, 100%);
    color: #fff;
    z-index: 5;
}

.home-content>h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-note-icon {
    color: #a78bfa;
    font-size: 2.8rem;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.home-content>p {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 35px;
}

/* BACKGROUND TEXT SCROLL */
.scroll {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-x: hidden;
    scrollbar-width: none;
    width: 100%;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.scroll p {
    font-family: "Outfit", sans-serif;
    font-size: 9.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.scroll p:nth-child(1) {
    animation: scrolling-rtl 35s infinite linear;
    margin-bottom: 240px;
}

.scroll p:nth-child(2) {
    animation: scrolling-ltr 35s infinite linear;
}

@keyframes scrolling-rtl {
    0% {
        transform: translateX(50%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrolling-ltr {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(50%);
    }
}

/* BUTTONS / LINKS */
.links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.links li {
    list-style-type: none;
}

.links li a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.links li a .icon {
    color: #e4e4e7;
    font-size: 1.4rem;
}

.links li a:hover {
    background-color: #8b5cf6;
    border-color: #a78bfa;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.links li a:hover .icon {
    color: #fff;
    animation: slide-icon 0.8s ease 1;
}

@keyframes slide-icon {
    49% {
        transform: translateX(-18px);
        opacity: 0;
    }

    50% {
        transform: translateX(18px);
    }

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

.mouse-move {
    position: absolute;
    max-width: 50px;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mouse-move 1.8s ease-in-out infinite;
    opacity: 0.6;
    z-index: 10;
}

@keyframes mouse-move {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* CONTENT (SWIPER) SECTION */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: #08080a;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}

.swiper {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 60px;
}

.swiper-slide {
    display: grid;
    grid-template-rows: auto 1fr;
    max-width: 330px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: border-color 0.3s ease;
}

.swiper-slide:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Outfit", sans-serif;
    text-align: center;
}

.title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.title p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swiper-pagination {
    --swiper-pagination-color: #8b5cf6;
    --swiper-pagination-bullet-inactive-color: #4b5563;
    --swiper-pagination-bullet-size: 8px;
    --swiper-pagination-bullet-horizontal-gap: 6px;
}

/* INFO SECTION */
.info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
    min-height: 100vh;
    font-family: "Outfit", sans-serif;
    background: #09090b;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
}

.info img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.15));
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.info img:hover {
    transform: scale(1.03) rotate(1deg);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    background: rgba(20, 20, 25, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    width: min(540px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.info-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 40%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.info-content p {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: #a1a1aa;
    text-align: left;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.tag-container span {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.tag-container span:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* RESPONSIVE STYLING */
@media (max-width: 1400px) {
    .home>img {
        max-width: 480px;
    }

    .scroll p {
        font-size: 7.5rem;
    }
}

@media (max-width: 1100px) {
    .home>img {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 450px;
        margin-top: 40px;
    }

    .home {
        flex-direction: column;
        justify-content: center;
        padding: 100px 40px;
    }

    .home-content {
        position: relative;
        left: auto;
        width: 100%;
    }

    .info {
        flex-direction: column;
        gap: 50px;
        padding: 100px 40px;
    }

    .info img {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .home-content>h1 {
        font-size: 2.4rem;
    }

    .scroll p {
        font-size: 5rem;
    }

    .info-content h1 {
        font-size: 2rem;
    }

    .info-content {
        padding: 24px;
    }
}

/* FOOTER */
.site-footer {
    background: #050505;
    padding: 40px 20px;
    text-align: center;
    font-family: "Outfit", sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 50;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    color: #71717a;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8b5cf6;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .modal-overlay {
        pointer-events: none;
    }
}

.modal-content {
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: "Outfit", sans-serif;
    color: #fff;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    color: #a1a1aa;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Modifying cursor for slider items */
.swiper-slide {
    cursor: pointer;
}