/* ============================================
   Hitachi Egypt Service Center - Main Styles
   ============================================ */

/* Base Styles */
body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

/* ============================================
   Brand Colors
   ============================================ */
.bg-hitachi-red { background-color: #c91726; }
.text-hitachi-red { color: #E60012; }
.border-hitachi-red { border-color: #E60012; }
.bg-whatsapp { background-color: #25D366; }

/* ============================================
   Animations
   ============================================ */

/* Pulse Red Animation (Call Button) */
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(230, 0, 18, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 18, 0); }
}
.animate-pulse-red { animation: pulse-red 2s infinite; }

/* Floating Button Pulse */
@keyframes float-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(201, 23, 38, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 15px 50px rgba(201, 23, 38, 0.6); }
}
.floating-btn-pulse { animation: float-pulse 2s ease-in-out infinite; }

/* Floating Button Bounce */
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.floating-btn-bounce { animation: float-bounce 1.5s ease-in-out infinite; }

/* Toggle Glow Animation */
@keyframes toggle-glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(201, 23, 38, 0.4), 0 0 0 0 rgba(201, 23, 38, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(201, 23, 38, 0.6), 0 0 0 10px rgba(201, 23, 38, 0); }
}
.floating-toggle { animation: toggle-glow 2s ease-in-out infinite; }

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* ============================================
   Floating CTA Widget - Enhanced UI/UX
   ============================================ */

/* Mobile CTA Buttons */
.floating-cta-call {
    background: linear-gradient(135deg, #c91726 0%, #a01120 100%);
    box-shadow: 0 8px 32px rgba(201, 23, 38, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta-call:hover, .floating-cta-call:active {
    background: linear-gradient(135deg, #e01a2b 0%, #c91726 100%);
    box-shadow: 0 12px 40px rgba(201, 23, 38, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.floating-cta-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta-whatsapp:hover, .floating-cta-whatsapp:active {
    background: linear-gradient(135deg, #2ee077 0%, #25D366 100%);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Desktop Toggle Button */
.floating-cta-toggle {
    background: linear-gradient(135deg, #c91726 0%, #8b0f1a 100%);
    box-shadow: 0 10px 40px rgba(201, 23, 38, 0.5), 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: toggle-glow-enhanced 2s ease-in-out infinite;
}

.floating-cta-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px rgba(201, 23, 38, 0.6), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.floating-cta-toggle.active {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    animation: none;
    transform: scale(1) rotate(0);
}

@keyframes toggle-glow-enhanced {
    0%, 100% { 
        box-shadow: 0 10px 40px rgba(201, 23, 38, 0.5), 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(201, 23, 38, 0.4); 
    }
    50% { 
        box-shadow: 0 15px 50px rgba(201, 23, 38, 0.6), 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 15px rgba(201, 23, 38, 0); 
    }
}

/* Desktop CTA Options */
.cta-option-call,
.cta-option-whatsapp {
    opacity: 0;
    transform: translateY(20px) translateX(20px) scale(0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-option-call {
    background: linear-gradient(135deg, #c91726 0%, #a01120 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-option-call:hover {
    background: linear-gradient(135deg, #e01a2b 0%, #c91726 100%);
    transform: translateY(0) translateX(-8px) scale(1.05) !important;
    box-shadow: 0 15px 50px rgba(201, 23, 38, 0.5);
}

.cta-option-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-option-whatsapp:hover {
    background: linear-gradient(135deg, #2ee077 0%, #25D366 100%);
    transform: translateY(0) translateX(-8px) scale(1.05) !important;
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
}

#cta-options.active .cta-option-call,
#cta-options.active .cta-option-whatsapp {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

#cta-options.active .cta-option-call { transition-delay: 0.1s; }
#cta-options.active .cta-option-whatsapp { transition-delay: 0.2s; }

/* Notification Badge Animation */
.notification-ping {
    animation: notification-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes notification-ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* ============================================
   Dropdown Menu Styles
   ============================================ */
.group:hover .group-hover\\:rotate-180 {
    transform: rotate(180deg);
}

/* ============================================
   Hero Section Background (Homepage Only)
   ============================================ */
#hero:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-image: url('../images/1.webp');
    opacity: 0.05;
}
