/* Custom styles for Frank's Body Works */

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

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image-container {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 98, 58, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* Testimonial card hover */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: rgba(212, 98, 58, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 248, 243, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    animation: linkFadeIn 0.4s ease forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes linkFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 98, 58, 0.2);
    color: #6d2d20;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #d4623a !important;
    box-shadow: 0 0 0 3px rgba(212, 98, 58, 0.1) !important;
}

/* Map hover */
iframe:hover {
    filter: brightness(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .about-images {
        margin-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    nav, .floating-card, #contactForm, button {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}
