/* Custom styles for Bling Me Studio */

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

/* Selection color */
::selection {
    background-color: rgba(192, 38, 75, 0.3);
    color: #fde8ef;
}

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

::-webkit-scrollbar-track {
    background: #0a0f1a;
}

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

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

/* Reveal animations - progressive enhancement, only applied by JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Service card hover glow */
.group:hover .group-hover\:bg-burgundy-600\/30 {
    background-color: rgba(192, 38, 75, 0.3);
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
.menu-open #bar1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #c0264b;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c0264b !important;
    box-shadow: 0 0 0 3px rgba(192, 38, 75, 0.15);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
}

/* Subtle gradient border effect */
.gradient-border {
    position: relative;
    background: #0a0f1a;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(192, 38, 75, 0.3), transparent, rgba(192, 38, 75, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
