/* Extracted from index.html */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #030014;
    color: #ffffff;
    overflow-x: hidden;
}

/* Scroll Snap for Sections */
main {
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


.gradient-text {
    background: linear-gradient(to right, #a855f7, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100%;
    display: inline-block;
    padding-right: 0.25em;
}


.glow-border {
    position: relative;
}

.glow-border::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #a855f7, #ec4899, #f97316);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.glow-border:hover::after {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030014;
}

::-webkit-scrollbar-thumb {
    background: #4a044e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #701a75;
}

/* Animations from Hero.tsx */
.perspective-1000 {
    perspective: 1000px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}

/* Shimmer Animation for Shining Text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}

/* Auto Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Custom Cursor - Only on pages with custom-cursor-page class */
.custom-cursor-page * {
    cursor: none !important;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
}

.cursor-dot.hover {
    transform: scale(1.5);
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(236, 72, 153, 0.8);
}

.cursor-dot.click {
    transform: scale(0.5);
}

.cursor-outline.click {
    width: 50px;
    height: 50px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor-page * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Screenshot Carousel */
.screenshot-phone {
    width: 280px;
    will-change: transform, opacity;
}

.screenshot-phone img {
    user-select: none;
    -webkit-user-drag: none;
}