/* Custom Styles for Star Detective Agency */

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* Dark Blue-Gray */
}

.hero-bg {
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.8)), url('../images/image1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Fallback for when image is loading */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.section-title {
    border-bottom: 2px solid #F59E0B; /* Amber */
    padding-bottom: 0.5rem;
}

.service-card, .why-us-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2), 0 4px 6px -2px rgba(245, 158, 11, 0.1);
}

/* Form Styles */
.form-input {
    background-color: #374151;
    border: 1px solid #4B5563;
    color: #F9FAFB;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Message Styles */
.message-success {
    background-color: #065F46;
    border-left: 4px solid #10B981;
    color: #D1FAE5;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}

.message-error {
    background-color: #7F1D1D;
    border-left: 4px solid #EF4444;
    color: #FEE2E2;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Hover Effects */
.btn-primary {
    background-color: #F59E0B;
    color: #1F2937;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Loading Animation for Form */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced Message Styles */
.message-container {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Enhancements */
#contact-submit-btn {
    position: relative;
    overflow: hidden;
}

#contact-submit-btn:disabled {
    cursor: not-allowed !important;
}

.submit-text, .loading-text {
    transition: opacity 0.3s ease;
}

/* Form Validation Styles */
.form-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #FCA5A5;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Animation */
.success-bounce {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Notification Enhancements */
.notification-slide-in {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.notification-slide-in.show {
    transform: translateX(0);
}

/* Hero Section Enhancements */
.hero-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(17, 24, 39, 0.9));
    z-index: 1;
}

/* Detective Theme Enhancements */
.detective-atmosphere {
    position: relative;
    overflow: hidden;
}

.detective-atmosphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* WhatsApp Button Styles */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-btn.collapsed {
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
}

.whatsapp-btn.collapsed .whatsapp-text {
    display: none;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 20px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp Chat Modal */
.whatsapp-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    width: 320px;
    max-width: calc(100vw - 40px);
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.whatsapp-modal-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-modal-body {
    padding: 20px;
    color: #333;
}

.whatsapp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-quick-msg {
    background: #F0F0F0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.whatsapp-quick-msg:hover {
    background: #E8F5E8;
    border-color: #25D366;
}

.whatsapp-send-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.whatsapp-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        min-height: 70vh;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .whatsapp-modal {
        bottom: 75px;
        right: 15px;
        width: calc(100vw - 30px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
}