/* Custom Styles for JRod Couture */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c9952b;
    border-radius: 5px;
}

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Apply animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

/* Image Loading Optimization */
img {
    content-visibility: auto;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Color */
::selection {
    background-color: #c9952b;
    color: #0a1128;
}

/* Custom Geometric Decorations */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

.geometric-accent.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 149, 43, 0.2), rgba(212, 168, 83, 0.1));
}

.geometric-accent.diamond {
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(201, 149, 43, 0.1), rgba(212, 168, 83, 0.05));
}

/* Glass Morphism Effect */
.glass {
    background: rgba(26, 42, 74, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 83, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #d4a853, #c9952b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Navigation Active State */
.nav-link.active {
    color: #d4a853;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Image Hover */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(212, 168, 83, 0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Form Input Focus Animation */
.input-focus-anim {
    position: relative;
}

.input-focus-anim::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a853;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.input-focus-anim:focus-within::after {
    width: 100%;
}

/* Scroll Reveal Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-navy-900,
    .bg-navy-800 {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-gray-300,
    .text-gray-400 {
        color: black !important;
    }
    
    .text-gold-400,
    .text-gold-500 {
        color: #b8860b !important;
    }
}
