/* Custom Styles for RSM Painting */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #171717;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Hide Scrollbar for Gallery */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Animations */
.from-left {
    opacity: 0;
    transform: translateX(-100px);
    animation: slide-in-left 0.8s ease-out forwards;
}

.from-right {
    opacity: 0;
    transform: translateX(100px);
    animation: slide-in-right 0.8s ease-out forwards;
}

@keyframes slide-in-left {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-grid-item {
    animation: fade-scale 0.6s ease-out forwards;
}

@keyframes fade-scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D Effects */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

/* Custom Cursor Trail */

.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8), transparent);
    pointer-events: none;
    z-index: 9996;
    transition: opacity 0.3s;
}
#custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* Input Glow */
.glow-input {
    position: relative;
}

.glow-input::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #6b0f0f, #d4af37, #6b0f0f);
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
}

/* Page Transition */
.page-transition {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.page-transition.active {
    transform: translateY(0);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: inherit;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: -0.02em;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shine Effect */

.shine-text {
    background-size: 200% auto;
    background-position: -200% center;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shine-text 10s linear infinite;
}

.shine-pink {
    background-image: linear-gradient(
        120deg,
        #ec4899,
        #f472b6,
        #ffffff,
        #201b49,
        #ec4899
    );
}
.shine-gold {
    background-image: linear-gradient(
        120deg,
        #d4af37,
        #2c256b,
        #ffffff,
        #facc15,
        #d4af37
    );
}

.shine-blue {
    background-image: linear-gradient(
        120deg,
        #1e2acf,
        #eae9f3,
        #ffffff,
        #6a6a97,
        #636fd8
    );
}


@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

/* delay biar gak barengan */
.shine-text:nth-child(1)::before {
    animation-delay: 0s;
}

.shine-text:nth-child(2)::before {
    animation-delay: 2s;
}

/* animasi jalan */
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

