/* Custom Styles for AssureX Landing Page */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Smooth animations */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hero section animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* WhatsApp button animation */
.whatsapp-btn {
    animation: float 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    animation: pulse 0.5s ease-in-out;
}

/* FAQ accordion animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-content {
    transition: max-height 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
}

/* Loading animation for forms */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E40AF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* New animations for redesigned sections */
@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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service section alternating animations */
.service-item:nth-child(odd) .service-content {
    animation: slideInLeft 0.8s ease-out;
}

.service-item:nth-child(even) .service-content {
    animation: slideInRight 0.8s ease-out;
}

/* Service images hover effects */
.service-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* FAQ cards enhanced effects */
.faq-card {
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Hero section parallax effect */
.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Contact form glass effect enhancement */
.glass-form {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Enhanced button hover effects */
.btn-primary {
    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%;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animation-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Force reset animation state when not visible */
.animate-on-scroll:not(.animation-visible) {
    opacity: 0 !important;
    transform: translateY(30px) !important;
}

.animate-on-scroll[data-animation="slide-left"]:not(.animation-visible) {
    transform: translateX(-50px) !important;
}

.animate-on-scroll[data-animation="slide-right"]:not(.animation-visible) {
    transform: translateX(50px) !important;
}

.animate-on-scroll[data-animation="scale-in"]:not(.animation-visible) {
    transform: scale(0.9) !important;
}

/* Animation variants */
.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    opacity: 1;
    transform: scale(1);
}

/* Initial states for different animations */
.animate-on-scroll[data-animation="slide-left"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="slide-right"] {
    transform: translateX(50px);
}

.animate-on-scroll[data-animation="scale-in"] {
    transform: scale(0.9);
}

/* Enhanced service image effects */
.service-image {
    transition: all 0.4s ease;
}

.service-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Staggered animations for cards */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

.animate-on-scroll[data-delay="600"] {
    transition-delay: 0.6s;
}

.animate-on-scroll[data-delay="700"] {
    transition-delay: 0.7s;
}

/* Responsive adjustments for new sections */
@media (max-width: 1024px) {
    .service-item {
        flex-direction: column;
    }
    
    .service-item:nth-child(odd) .service-content,
    .service-item:nth-child(even) .service-content {
        animation: fadeInUp 0.8s ease-out;
    }
}

@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
    }
    
    .glass-form {
        backdrop-filter: blur(10px);
    }
    
    /* Reduce animation intensity on mobile */
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    .animate-on-scroll[data-animation="slide-left"],
    .animate-on-scroll[data-animation="slide-right"] {
        transform: translateY(20px);
    }
    
    /* WhatsApp button mobile adjustments */
    .whatsapp-btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 9999 !important;
    }
    
    .whatsapp-btn i {
        font-size: 1.4rem !important;
    }
    
    /* Ensure containers don't overflow */
    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Blog Section Styles */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    line-height: 1.75;
}

.prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1.5rem;
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

/* Blog Modal Styles */
#blogModal .prose {
    max-width: none;
}

#blogModal .prose h3 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
}

#blogModal .prose p {
    color: #374151;
    line-height: 1.75;
}

#blogModal .prose ul li {
    margin-bottom: 0.5rem;
}

#blogModal .prose blockquote {
    border-left: 4px solid #1E40AF;
    background: #eff6ff;
    font-style: italic;
}

/* Blog Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Blog Modal Animation */
#blogModal {
    backdrop-filter: blur(4px);
}

#blogModal > div > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Blog Layout */
@media (max-width: 1024px) {
    .blog-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section .grid {
        grid-template-columns: 1fr;
    }
    
    #blogModal .max-w-4xl {
        max-width: 95vw;
    }
    
    #blogModal .p-6 {
        padding: 1rem;
    }
}

/* Social Media Icons Styles */
.social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::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;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Specific social media brand colors */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
}

/* Animation for social icons */
@keyframes socialPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.social-icon:hover {
    animation: socialPulse 0.6s ease-in-out;
} 