/* Custom CSS for animations and additional styles */

/* Reset any unwanted borders/outlines */
html, body {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Font styling for the new font combination */
.font-heading {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 600;
}

.font-body {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 400;
}

.font-script {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
}

.font-accent {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
}

/* Tailwind Scroll Reveal Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px);
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.3);
}

.animate-flip-in {
    animation: flipIn 0.8s ease-out forwards;
    opacity: 0;
    transform: rotateY(-90deg);
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
    opacity: 0;
    transform: rotate(-180deg);
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.3);
}

.animate-elastic-in {
    animation: elasticIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.3);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-40px);
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-40px);
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(40px);
}

.animate-bounce-in-down {
    animation: bounceInDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-200px);
}

.animate-bounce-in-left {
    animation: bounceInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-200px);
}

.animate-bounce-in-right {
    animation: bounceInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(200px);
}

.animate-roll-in {
    animation: rollIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-100%) rotate(-120deg);
}

.animate-light-speed-in {
    animation: lightSpeedIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(100%) skewX(-30deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    55% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-200px);
    }
    60% {
        opacity: 1;
        transform: translateY(30px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-200px);
    }
    60% {
        opacity: 1;
        transform: translateX(30px);
    }
    80% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(200px);
    }
    60% {
        opacity: 1;
        transform: translateX(-30px);
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes rollIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(-120deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes lightSpeedIn {
    0% {
        opacity: 0;
        transform: translateX(100%) skewX(-30deg);
    }
    60% {
        opacity: 1;
        transform: translateX(-20%) skewX(10deg);
    }
    80% {
        transform: translateX(0) skewX(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

/* Animation delays for staggered effects */
.animate-delay-100 {
    animation-delay: 0.1s;
}

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

.animate-delay-300 {
    animation-delay: 0.3s;
}

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

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

.animate-delay-700 {
    animation-delay: 0.7s;
}

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

.animate-delay-900 {
    animation-delay: 0.9s;
}

.animate-delay-1000 {
    animation-delay: 1.0s;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.bg-gradient-yellow {
    background: linear-gradient(135deg, #FDE047 0%, #FACC15 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE047 50%, #F59E0B 100%);
}

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

/* Focus styles for accessibility */
.focus-ring:focus {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FDE047 0%, #FACC15 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 224, 71, 0.3);
}

/* Loading animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DC2626;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
.input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

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

/* Advanced hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-hover {
    transition: transform 0.4s ease;
    overflow: hidden;
}

.image-hover:hover {
    transform: scale(1.05);
}

.text-hover-glow {
    transition: text-shadow 0.3s ease;
}

.text-hover-glow:hover {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

/* Icon animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.icon-spin {
    transition: transform 0.3s ease;
}

.icon-spin:hover {
    animation: spin 2s linear infinite;
}

.icon-pulse {
    transition: transform 0.3s ease;
}

.icon-pulse:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #DC2626;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Typing animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #DC2626; }
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid #DC2626;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Particle effect */
@keyframes particle {
    0% {
        opacity: 1;
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #DC2626;
    border-radius: 50%;
    animation: particle 2s linear infinite;
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

/* Additional animations for interactive elements */

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    border-color: #DC2626;
}

/* Button styles */
.btn-primary:focus, .btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Accordion animation */
.accordion-content {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.accordion-content.hidden {
    max-height: 0;
    opacity: 0;
}

.accordion-content:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Enhanced hover effects */
.nav-link:hover {
    transform: translateY(-1px);
}

/* Card hover animations */
.service-card, .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Loading animation enhancements */
.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Success states */
.form-success {
    border-color: #10B981;
    background-color: #D1FAE5;
}

.form-success-message {
    color: #065F46;
    background-color: #D1FAE5;
    border: 1px solid #10B981;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Error states */
.form-error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-error-message {
    color: #991B1B;
    background-color: #FEF2F2;
    border: 1px solid #EF4444;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Contact form specific styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Map placeholder styling */
.map-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

.map-placeholder:hover {
    border-color: #DC2626;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

/* Social media hover effects */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #fff;
    border: none !important;
    outline: none !important;
}

/* FAQ styling */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #f8f9fa;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #DC2626;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .service-card:hover, .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover, .feature-card:hover {
        transform: none;
    }
}

/* Background Images */
.bg-home {
    background-image: url('background/home.jpg');
    background-size: cover;
    background-position: center center;
    border-bottom: none !important;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.bg-about {
    background-image: url('background/about us.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
}
