/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
    width: 0px;
}

/* ============================================
   GRADIENT BUTTON ANIMATION
   ============================================ */
.button-custom {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s ease;
    background: radial-gradient(65.28% 65.28% at 50% 100%, rgba(251, 191, 36, 0.8) 0%, rgba(251, 191, 36, 0) 100%), linear-gradient(0deg, #ea580c, #ea580c);
    border-radius: 9999px;
    border: none;
    padding: 10px 24px;
    min-height: 44px;
}

.button-custom:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.6),
                0 0 50px rgba(249, 115, 22, 0.4),
                0 8px 32px rgba(249, 115, 22, 0.3);
}

.button-custom::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(177.95deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 9999px;
    transition: all 0.5s ease-in-out;
    z-index: 0;
}

.button-custom::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: radial-gradient(65.28% 65.28% at 50% 100%, rgba(251, 191, 36, 0.8) 0%, rgba(251, 191, 36, 0) 100%), linear-gradient(0deg, #ea580c, #ea580c);
    border-radius: 9999px;
    transition: all 0.5s ease-in-out;
    z-index: 0;
}

.button-custom:hover .inner svg.icon {
    transform: translateX(2px);
}

.inner {
    z-index: 2;
    gap: 6px;
    position: relative;
    width: 100%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.inner svg.icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    stroke: white;
    fill: none;
}

/* ============================================
   PARTICLE ANIMATION INSIDE BUTTON
   ============================================ */
.points_wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.points_wrapper .point {
    bottom: -10px;
    position: absolute;
    animation: floating-points infinite ease-in-out;
    pointer-events: none;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 9999px;
}

@keyframes floating-points {
    0% { transform: translateY(0); }
    85% { opacity: 0; }
    100% { transform: translateY(-55px); opacity: 0; }
}

.points_wrapper .point:nth-child(1) { left: 10%; opacity: 1; animation-duration: 2.35s; animation-delay: 0.2s; }
.points_wrapper .point:nth-child(2) { left: 30%; opacity: 0.7; animation-duration: 2.5s; animation-delay: 0.5s; }
.points_wrapper .point:nth-child(3) { left: 25%; opacity: 0.8; animation-duration: 2.2s; animation-delay: 0.1s; }
.points_wrapper .point:nth-child(4) { left: 44%; opacity: 0.6; animation-duration: 2.05s; }
.points_wrapper .point:nth-child(5) { left: 50%; opacity: 1; animation-duration: 1.9s; }
.points_wrapper .point:nth-child(6) { left: 75%; opacity: 0.5; animation-duration: 1.5s; animation-delay: 1.5s; }
.points_wrapper .point:nth-child(7) { left: 88%; opacity: 0.9; animation-duration: 2.2s; animation-delay: 0.2s; }

/* ============================================
   FALLING BEAMS ANIMATION
   ============================================ */
@keyframes beam-fall {
    0% { transform: translateY(-100%); opacity: 0; }
    5% { opacity: 0.5; }
    50% { opacity: 1; }
    95% { opacity: 0.5; }
    100% { transform: translateY(120vh); opacity: 0; }
}

.animate-beam-1 { animation: beam-fall 6s linear infinite; animation-delay: 0s; }
.animate-beam-2 { animation: beam-fall 8s linear infinite; animation-delay: 2s; }
.animate-beam-3 { animation: beam-fall 7s linear infinite; animation-delay: 4s; }

/* ============================================
   CARD STACK TRANSITIONS
   ============================================ */
.card-stack-item {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, z-index 0s;
}

/* ============================================
   SCROLL FADE-IN ANIMATIONS
   ============================================ */
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

.animate-on-scroll {
    animation-play-state: paused !important;
}

.animate-on-scroll.animate {
    animation-play-state: running !important;
}

/* ============================================
   FONT DECLARATIONS
   ============================================ */
.font-instrument-serif {
    font-family: 'Instrument Serif', serif !important;
}

/* ============================================
   BORDER GRADIENT UTILITIES
   ============================================ */
[style*="--border-gradient"]::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--border-radius-before, inherit);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: var(--border-gradient);
    pointer-events: none;
}

/* ============================================
   3D TRANSFORM UTILITIES
   ============================================ */
.perspective-none { perspective: none !important; }
.perspective-dramatic { perspective: 100px !important; }
.perspective-near { perspective: 300px !important; }
.perspective-normal { perspective: 500px !important; }
.perspective-midrange { perspective: 800px !important; }
.perspective-distant { perspective: 1200px !important; }
.transform-style-preserve-3d { transform-style: preserve-3d !important; }
.transform-style-flat { transform-style: flat !important; }
