/* Custom styles for Goldilock Studios */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6c8f;
}

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6e1434;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(161, 20, 59, 0.08) !important;
}

.nav-scrolled .font-serif {
    color: #6e1434 !important;
}

.nav-scrolled .text-burgundy-500 {
    color: #db3a66 !important;
}

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

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

/* Fade in animations for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery hover effects */
.gallery-item {
    cursor: pointer;
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

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

/* Hamburger animation */
.menu-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-active span:nth-child(2) {
    opacity: 0;
}
.menu-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Nav link underline animation */
.nav-link::after {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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;
    }
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #db3a66;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a1143b, #db3a66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Soft shadow utilities */
.shadow-soft {
    shadow: 0 4px 20px rgba(161, 20, 59, 0.08);
}

.shadow-soft-lg {
    box-shadow: 0 8px 40px rgba(161, 20, 59, 0.12);
}

/* Decorative line */
.decorative-line {
    position: relative;
    display: inline-block;
}

.decorative-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #db3a66, #f4a3b8);
    border-radius: 2px;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
