@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Syne:wght@700;800&display=swap');

html {
    overflow-y: scroll;
    /* Force vertical scrollbar always visible */
    scrollbar-color: #2e2c29 #0f0e0c;
    /* Firefox */
    color-scheme: dark;
    /* Webkit / Windows Native Dark */
}

body {
    font-family: 'Inter', sans-serif;
    overscroll-behavior-y: none;
    background-color: #0f0e0c;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Syne', sans-serif;
}

/* Custom scrollbar for brutalist feel */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f0e0c;
    border-left: 1px solid #2e2c29;
}

::-webkit-scrollbar-thumb {
    background: #2e2c29;
    border: 2px solid #0f0e0c;
    /* adds a 'gutter' around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #fcb612;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.grain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.12;
    mix-blend-mode: overlay;
}

/* -------------------------------------------------------------------------- */
/* AMBIENT BACKGROUND ANIMATION */
/* -------------------------------------------------------------------------- */

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30vw, -30vh) scale(1.5);
    }

    66% {
        transform: translate(-30vw, 20vh) scale(0.8);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 20s infinite ease-in-out alternate;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Parallax fixes: keep image vertically centered and apply offset via CSS variable */
.parallax-wrapper {
    position: relative;
    overflow: hidden
}

.parallax-wrapper .parallax-img {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    /* Combine a centered translate with a CSS variable offset */
    transform: translate3d(0, calc(-50% + var(--parallax-offset, 0px)), 0) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 120% !important;
    object-fit: cover !important;
    will-change: transform;
}

/* debug border removed */

/* Background container variant used in site-package */
.parallax-bg {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 120% !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Utilidades de delay para Tailwind (por si no las tiene compiladas) */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}