/* ===== Krishna Facilities Services - Custom Styles ===== */

/* Premium Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation Classes */
.animate-float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-medium {
    animation: floatMedium 5s ease-in-out infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

/* Scroll Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(8, 77, 49, 0.2);
}

/* Root Color Variables */
:root {
    --lightBg: #f8faf9;
    --lightMint: #eaf4f0;
    --lightCream: #fdfbfa;
    --luxuryGreen: #032316;
    --luxuryGold: #e28a21;
    --luxuryGoldHover: #c77212;
    --brandEmerald: #084d31;
    --grayText: #4a554f;
    --white: #ffffff;
    --stone-800: #292524;
    --stone-600: #57534e;
    --stone-500: #78716c;
}

/* Premium Shadows */
.premium-shadow {
    box-shadow: 0 10px 30px -10px rgba(8, 77, 49, 0.08);
}

.premium-shadow-hover:hover {
    box-shadow: 0 20px 40px -15px rgba(226, 138, 33, 0.15);
    transform: translateY(-4px);
}

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

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

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

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

/* Fade In Animation for Success Message */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up.delay-200 {
    transition-delay: 0.2s;
}

.reveal-up.delay-400 {
    transition-delay: 0.4s;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Focus styles for better accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid #e28a21;
    outline-offset: 2px;
}

/* Mobile menu smooth toggle */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Active navigation link style */
.nav-link.active {
    color: #e28a21;
}

/* Selection color */
::selection {
    background-color: #e28a21;
    color: white;
}



/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 0.6s ease-out forwards;
}

/* Responsive iframe / media containers */
.media-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.media-container iframe,
.media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== CTA Section & WhatsApp Modal Styles ===== */

/* CTA Buttons */
.cta-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--luxuryGold), var(--luxuryGoldHover));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn-primary {
    background: var(--luxuryGold);
    border: 2px solid var(--luxuryGold);
    color: #fff;
}

.cta-btn-primary:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(226, 138, 33, 0.4);
}

.cta-btn-secondary {
    background: linear-gradient(135deg, var(--luxuryGreen), var(--brandEmerald));
    border: 2px solid transparent;
    color: white;
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(3, 35, 22, 0.5);
}

.cta-btn-secondary::before {
    background: linear-gradient(135deg, var(--brandEmerald), var(--luxuryGreen));
}

/* WhatsApp Enquire Button - Gold Outline Style */
.cta-btn-whatsapp {
    background: transparent !important;
    border: 2px solid var(--luxuryGold) !important;
    color: var(--luxuryGold) !important;
}

.cta-btn-whatsapp:hover {
    background: var(--luxuryGold) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(226, 138, 33, 0.4);
}

.cta-btn-whatsapp::before {
    display: none;
}

/* WhatsApp Modal Styles */
#whatsapp-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#whatsapp-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#whatsapp-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-container {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#whatsapp-modal.active .modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Modal Input Styles */
.modal-input {
    transition: all 0.2s ease;
}

.modal-input:focus {
    border-color: var(--luxuryGold) !important;
    box-shadow: 0 0 0 3px rgba(226, 138, 33, 0.15) !important;
}

.modal-input::placeholder {
    color: #a8a29e;
}

/* Select styling */
select.modal-input {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M4.5%206.5l3%203%203-3z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

select.modal-input:hover {
    border-color: var(--luxuryGold);
}

/* Close button hover */
#close-whatsapp-modal:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Form validation */
.modal-input.error,
select.modal-input.error,
textarea.modal-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: none;
}

.modal-input.error + .error-message,
select.modal-input.error + .error-message,
textarea.modal-input.error + .error-message {
    display: block;
}

/* Loading state for submit button */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Why Choose Us Section Styles ===== */
.why-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(226, 138, 33, 0.3);
    background-color: rgba(226, 138, 33, 0.1);
    color: var(--luxuryGold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.why-card {
    background-color: rgb(240, 238, 235);
    border: 1px solid rgba(226, 138, 33, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 250px;
    width: 100%;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    /* background: linear-gradient(90deg, var(--luxuryGold), transparent); */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(226, 138, 33, 0.2);
    border-color: transparent;
}

.why-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
}

.why-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(226, 138, 33, 0.15);
    border: 1px solid rgba(226, 138, 33, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--luxuryGold);
    font-size: 1.875rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    background-color: var(--luxuryGold);
    color: var(--luxuryGreen);
    border-color: var(--luxuryGold);
    transform: scale(1.05);
}

.why-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--luxuryGreen);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.why-desc {
    color: #78716c;
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 300;
    flex: 1;
}

/* Service detail page transitions */
#service-detail .reveal-up {
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (min-width: 768px) {
    .md\:text-3xl {
        font-size: 2.5rem !important;
        line-height: 2.25rem !important;
    }
}

/* Floating Contact Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.floating-phone {
    right: 24px;
    background: #e2811d;
    color: #fff;
}
.floating-whatsapp {
    left: 24px;
    background: #25D366;
    color: #fff;
}
@media (max-width: 640px) {
    .floating-btn { width: 46px; height: 46px; font-size: 1.125rem; }
    .floating-phone { right: 14px; }
    .floating-whatsapp { left: 14px; }
}
.to-white {
    --tw-gradient-to: #fff var(--tw-gradient-to-position);
}