/* Custom Styles for Infiniti Hair 8 */

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

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

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

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

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

/* Reveal animations - only for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a853, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #022c22;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a853, #b8860b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c9a227, #a0740a);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Glass morphism effect */
.glass {
    background: rgba(254, 253, 248, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

/* Ensure all text has proper contrast */
.text-cream-50 {
    color: #fefdf8;
}

.text-cream-200 {
    color: #faf3e0;
}

.text-cream-300 {
    color: #f5e6c8;
}

/* Background colors */
.bg-emerald-900 {
    background-color: #022c22;
}

.bg-emerald-800 {
    background-color: #064e3b;
}

.bg-emerald-800\\/50 {
    background-color: rgba(6, 78, 59, 0.5);
}

.bg-emerald-800\\/60 {
    background-color: rgba(6, 78, 59, 0.6);
}

.bg-emerald-900\\/60 {
    background-color: rgba(2, 44, 34, 0.6);
}

.bg-emerald-900\\/80 {
    background-color: rgba(2, 44, 34, 0.8);
}

.bg-emerald-900\\/95 {
    background-color: rgba(2, 44, 34, 0.95);
}

.bg-emerald-950 {
    background-color: #011a12;
}

/* Gold colors */
.text-gold-400 {
    color: #d4a853;
}

.text-gold-500 {
    color: #c9a227;
}

.text-emerald-900 {
    color: #022c22;
}

.text-emerald-700 {
    color: #065f46;
}

.text-emerald-800 {
    color: #064e3b;
}

.bg-gold-400 {
    background-color: #d4a853;
}

.bg-gold-600 {
    background-color: #b8860b;
}

/* Border colors */
.border-gold-400\\/20 {
    border-color: rgba(212, 168, 83, 0.2);
}

.border-gold-400\\/30 {
    border-color: rgba(212, 168, 83, 0.3);
}

.border-gold-400\\/50 {
    border-color: rgba(212, 168, 83, 0.5);
}

.border-cream-200\\/10 {
    border-color: rgba(250, 243, 224, 0.1);
}

.border-cream-200\\/20 {
    border-color: rgba(250, 243, 224, 0.2);
}

/* Shadow colors */
.shadow-gold-400\\/10 {
    box-shadow: 0 20px 25px -5px rgba(212, 168, 83, 0.1);
}

.shadow-gold-400\\/30 {
    box-shadow: 0 25px 50px -12px rgba(212, 168, 83, 0.3);
}

.shadow-gold-400\\/40 {
    box-shadow: 0 35px 60px -15px rgba(212, 168, 83, 0.4);
}

/* Input styles */
input::placeholder,
textarea::placeholder {
    color: rgba(245, 230, 200, 0.5);
}

/* Select styles */
select {
    appearance: none;
    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='%23d4a853' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Button transitions */
button,
a {
    transition: all 0.3s ease;
}

/* Image object-fit */
img {
    object-fit: cover;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Ensure hero images have proper aspect ratio */
.hero-image {
    aspect-ratio: 16/9;
}

/* Gallery images */
.gallery-image {
    aspect-ratio: 1/1;
}

/* Custom selection color */
::selection {
    background-color: #d4a853;
    color: #022c22;
}

::-moz-selection {
    background-color: #d4a853;
    color: #022c22;
}
