/* Hero Service Component Animation Styles */

/* Base styles for hero-service component */
.hero-service {
    position: relative;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    transform-origin: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure smooth animations for all child elements */
.hero-service * {
    will-change: transform, opacity, color, background-color, box-shadow;
}

/* Title styling */
.hero-service h2 {
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.hero-service h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b6239, #f39800);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.hero-service h2:hover::after {
    width: 100%;
}

/* Profile image styling */
.hero-service img {
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero-service img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(243, 152, 0, 0.1), rgba(139, 98, 57, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.hero-service img:hover::before {
    opacity: 1;
}

/* Description text styling */
.hero-service p {
    transition: all 0.3s ease;
    position: relative;
}

/* Primary button styling */
.hero-service button[alias="BTN-PRIMARY"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.hero-service button[alias="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.6s ease;
}

.hero-service button[alias="BTN-PRIMARY"]:hover::before {
    left: 100%;
}

/* Service menu items styling */
.hero-service ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-service li {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    margin: 2px 0;
}

.hero-service li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #f39800, rgba(243, 152, 0, 0.3));
    transition: width 0.3s ease;
    border-radius: 4px;
    z-index: -1;
}

.hero-service li:hover::before {
    width: 100%;
}

.hero-service li button {
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.hero-service li svg {
    transition: all 0.3s ease;
    color: #f39800;
}

/* Map frame styling */
.hero-service iframe {
    transition: all 0.4s ease;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.hero-service iframe:hover {
    border-color: #f39800;
    box-shadow: 0 5px 15px rgba(243, 152, 0, 0.2);
}

/* Access buttons styling */
.hero-service button[alias="BTN-SECONDARY"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.hero-service button[alias="BTN-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.5s ease;
}

.hero-service button[alias="BTN-SECONDARY"]:hover::before {
    left: 100%;
}

/* Loading state */
.hero-service.hero-service-loading {
    pointer-events: none;
    opacity: 0;
}

.hero-service.hero-service-loading h2 {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
}

.hero-service.hero-service-loading img {
    opacity: 0;
    transform: scale(0.8) rotateY(180deg);
}

.hero-service.hero-service-loading p {
    opacity: 0;
    transform: translateX(-30px);
}

.hero-service.hero-service-loading button[alias="BTN-PRIMARY"] {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.hero-service.hero-service-loading li {
    opacity: 0;
    transform: translateX(-20px);
}

.hero-service.hero-service-loading iframe {
    opacity: 0;
    transform: scale(0.95) rotateX(15deg);
}

.hero-service.hero-service-loading button[alias="BTN-SECONDARY"] {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
}

/* Ready state - floating animation */
.hero-service.hero-service-ready img {
    animation: profileFloat 3s ease-in-out infinite;
}

@keyframes profileFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Ripple effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(243, 152, 0, 0.3);
    pointer-events: none;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
}

/* Hover enhancements */
.hero-service:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-service img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #f39800;
    box-shadow: 0 8px 20px rgba(243, 152, 0, 0.3);
}

.hero-service button[alias="BTN-PRIMARY"]:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(243, 152, 0, 0.4);
}

.hero-service li:hover {
    transform: translateX(10px);
    background-color: rgba(243, 152, 0, 0.1);
}

.hero-service li:hover svg {
    transform: translateX(5px) scale(1.2);
    color: #e08700;
}

.hero-service button[alias="BTN-SECONDARY"]:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(243, 152, 0, 0.3);
}

/* Click effects */
.hero-service button:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-service {
        padding: 1rem;
    }
    
    .hero-service img {
        width: 100px;
        height: 100px;
    }
    
    .hero-service h2 {
        font-size: 1rem;
    }
    
    .hero-service p {
        font-size: 0.875rem;
    }
    
    .hero-service button {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-service iframe {
        height: 150px;
    }
}

@media (max-width: 640px) {
    .hero-service {
        padding: 0.75rem;
    }
    
    .hero-service img {
        width: 80px;
        height: 80px;
    }
    
    .hero-service h2 {
        font-size: 0.9rem;
    }
    
    .hero-service p {
        font-size: 0.8rem;
    }
    
    .hero-service button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-service iframe {
        height: 120px;
    }
    
    /* Reduce hover effects on mobile */
    .hero-service img:hover {
        transform: scale(1.05) rotate(2deg);
    }
    
    .hero-service li:hover {
        transform: translateX(5px);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-service,
    .hero-service * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-service h2::after,
    .hero-service img::before,
    .hero-service button::before,
    .hero-service li::before {
        display: none;
    }
    
    .hero-service.hero-service-ready img {
        animation: none;
    }
}

/* Focus states for accessibility */
.hero-service button:focus-visible,
.hero-service a:focus-visible {
    outline: 3px solid #f39800;
    outline-offset: 2px;
}

.hero-service img:focus-visible {
    outline: 3px solid #f39800;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-service {
        border: 2px solid currentColor;
    }
    
    .hero-service button {
        border: 2px solid currentColor;
    }
    
    .hero-service img {
        border: 2px solid currentColor;
    }
    
    .hero-service li:hover {
        background-color: #f0f0f0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-service {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        color: #ffffff;
    }
    
    .hero-service h2 {
        color: #f39800;
    }
    
    .hero-service p {
        color: #d1d5db;
    }
    
    .hero-service li {
        color: #d1d5db;
    }
    
    .hero-service li:hover {
        background-color: rgba(243, 152, 0, 0.2);
    }
    
    .hero-service iframe {
        border-color: #4a4a4a;
    }
}

/* Print styles */
@media print {
    .hero-service {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
        background: #fff !important;
        border: 1px solid #000 !important;
    }
    
    .hero-service::before,
    .hero-service::after,
    .hero-service *::before,
    .hero-service *::after {
        display: none !important;
    }
    
    .hero-service img {
        transform: none !important;
        border: 1px solid #000 !important;
    }
    
    .hero-service button {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    .hero-service iframe {
        display: none !important;
    }
}

/* Performance optimizations */
.hero-service img,
.hero-service button,
.hero-service li {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Text selection styling */
.hero-service ::selection {
    background: rgba(243, 152, 0, 0.2);
    color: #8b6239;
}

.hero-service ::-moz-selection {
    background: rgba(243, 152, 0, 0.2);
    color: #8b6239;
}

/* Loading spinner for delayed content */
.hero-service.hero-service-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #f39800;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth scrolling behavior */
.hero-service {
    scroll-behavior: smooth;
}

/* Additional visual enhancements */
.hero-service h3 {
    transition: all 0.3s ease;
    position: relative;
}

.hero-service h3:hover {
    color: #f39800;
    transform: translateX(5px);
}

/* Service menu header styling */
.hero-service h3[alias="TITLE-SECONDARY"] {
    background: linear-gradient(90deg, #e6e6e6, #f0f0f0);
    transition: all 0.3s ease;
}

.hero-service h3[alias="TITLE-SECONDARY"]:hover {
    background: linear-gradient(90deg, #f39800, #e08700);
    color: #ffffff;
}

/* Address text styling */
.hero-service p[alias="TEXT-CONTENT"] {
    transition: all 0.3s ease;
    position: relative;
}

.hero-service p[alias="TEXT-CONTENT"]:hover {
    color: #8b6239;
    transform: translateX(3px);
}

/* Container padding animation */
.hero-service .flex.flex-col {
    transition: all 0.3s ease;
}

.hero-service .flex.flex-col:hover {
    transform: translateY(-2px);
}

/* Map container styling */
.hero-service .bg-\[#f0f0f0\] {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.hero-service .bg-\[#f0f0f0\]:hover {
    background-color: #f39800 !important;
    transform: scale(1.02);
} 