/* Additional Custom Styles for The Evie Edit Website */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Enhanced focus styles for accessibility */
*:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background-color: #F4E4D6;
    color: #2D3748;
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Custom form styling */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #6B7280;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    font-size: 12px;
    color: #D4AF37;
}

/* Portfolio image hover effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Service card enhancements */
.service-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F4E4D6, #D4AF37);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero section enhancements */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu enhancements */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Contact form enhancements */
.contact-form input,
.contact-form textarea {
    border: 2px solid transparent;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: white;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Social media icon enhancements */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Footer enhancements */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F4E4D6;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000 !important;
    }
    
    .bg-gray-50 {
        background: #fff !important;
    }
    
    .border-gray-300 {
        border-color: #000 !important;
    }
}

/* Slideshow animations */
.slide-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-text {
    animation: slideIn 0.6s ease-out 0.3s both;
}

/* Slideshow hover effects */
.slide-dot:hover {
    transform: scale(1.2);
}

#prev-slide:hover,
#next-slide:hover {
    transform: translateY(-50%) scale(1.1);
}

/* CTA Button Animations */
.cta-button-primary,
.cta-button-secondary {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.cta-button-primary::before,
.cta-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button-primary:hover::before,
.cta-button-secondary:hover::before {
    left: 100%;
}

.cta-button-primary:active,
.cta-button-secondary:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Pulsing animation for primary button */
.cta-button-primary {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(244, 228, 214, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(244, 228, 214, 0.6);
    }
}

/* Shimmer effect on hover */
.cta-button-primary:hover,
.cta-button-secondary:hover {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Fresha Button Animations */
.fresha-button {
    animation: fresha-pulse 2s infinite;
    background-size: 200% 200%;
    position: relative;
}

.fresha-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc, #8b5cf6);
    border-radius: 8px;
    z-index: -1;
    animation: fresha-border-glow 3s linear infinite;
    opacity: 0.7;
}

@keyframes fresha-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 8px 30px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.8), 0 12px 40px rgba(168, 85, 247, 0.6);
    }
}

@keyframes fresha-border-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fresha-button:hover {
    animation: fresha-shimmer 0.6s ease-in-out, fresha-hover-glow 0.6s ease-in-out;
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
}

@keyframes fresha-shimmer {
    0% {
        background-position: left center;
    }
    100% {
        background-position: right center;
    }
}

@keyframes fresha-hover-glow {
    0% {
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.8), 0 12px 40px rgba(168, 85, 247, 0.6);
    }
    100% {
        box-shadow: 0 12px 40px rgba(139, 92, 246, 1), 0 16px 50px rgba(168, 85, 247, 0.8);
    }
}

.fresha-button:active {
    transform: translateY(0) scale(0.98);
    animation: fresha-press 0.2s ease-out;
}

@keyframes fresha-press {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 40px rgba(139, 92, 246, 1), 0 16px 50px rgba(168, 85, 247, 0.8);
    }
    50% {
        transform: translateY(2px) scale(0.98);
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6), 0 8px 30px rgba(168, 85, 247, 0.4);
    }
    100% {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.8), 0 12px 40px rgba(168, 85, 247, 0.6);
    }
}

/* Services CTA Button Animations */
.services-cta-button {
    animation: services-pulse 2.5s infinite;
    background-size: 200% 200%;
}

@keyframes services-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 4px 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.8), 0 8px 25px rgba(212, 175, 55, 0.6);
    }
}

.services-cta-button:hover {
    animation: services-shimmer 0.8s ease-in-out;
    background-position: right center;
}

@keyframes services-shimmer {
    0% {
        background-position: left center;
    }
    100% {
        background-position: right center;
    }
}

.services-cta-button:active {
    transform: translateY(0) scale(0.98);
    animation: services-press 0.2s ease-out;
}

@keyframes services-press {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(0px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(0.98);
    }
}

/* Feature card animations */
.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

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