/* ===== Custom Styles for NailsBySeanPham ===== */

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

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

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

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

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

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

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

/* ===== Selection ===== */
::selection {
    background: rgba(128, 0, 32, 0.6);
    color: white;
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ec6d93;
    outline-offset: 2px;
}

/* ===== Gallery Hover Overlay ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Gradient Text Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, #f9cfd9 0%, #ec6d93 50%, #df4572 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Card Hover Glow ===== */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(128, 0, 32, 0.15);
}

/* ===== Service Card Gradient Border on Hover ===== */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(236, 109, 147, 0.3), transparent);
    -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;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* ===== Image Placeholder Fallback ===== */
img {
    background: linear-gradient(135deg, #1f2937, #111827);
}

/* ===== Select Dropdown Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* ===== Mobile responsive adjustments ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-cards {
        display: none;
    }
}
