/* Enhanced Loading Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.fade-out {
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
}

.loader-container {
    text-align: center;
    transform: translateY(-20px);
}

.loader-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    animation: logoFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(225, 29, 72, 0.2));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(225, 29, 72, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #1e3a8a);
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hide body content until preloader finishes */
body.loading {
    overflow: hidden;
}

body.loading .main-content {
    visibility: hidden;
}

.main-content {
    visibility: visible;
    transition: visibility 0.3s ease;
}

section {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.service-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.step {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.step:nth-child(2) {
    animation-delay: 0.2s;
}

.step:nth-child(3) {
    animation-delay: 0.4s;
}

.we {
    font-weight: bold;
    font-size: 1.2rem;
    color: #3b82f6;
    display: block;
    margin-bottom: 0.5rem;
}

.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
}

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

/* Floating Animation for Hero Image */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

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

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

/* Glass Card Enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

/* Entrance Animation */
@keyframes fadeScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeScaleUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

/* Card Styles */
.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.insight-cards .card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.insight-cards .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.insight-cards .card img {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    object-fit: contain;
}

.card-text {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blue {
    border-top: 6px solid #3b82f6;
}

.red {
    border-top: 6px solid #ef4444;
}

.quote-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.quote-btn.blue {
    background: #3b82f6;
    color: white;
}

.quote-btn.red {
    background: #ef4444;
    color: white;
}

.quote-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.expand-btn {
    transition: all 0.4s ease;
    transform-origin: center;
}

.expand-btn.expanded {
    padding-left: 3rem;
    padding-right: 3rem;
    background-color: #2563eb;
    transform: scale(1.05);
}

/* FAQs */
.faq-section {
    background: linear-gradient(to right, #c3002f, #f50057);
    padding: 50px 20px;
    border-radius: 40px;
    font-family: 'Arial', sans-serif;
    color: white;
    max-width: 1000px;
    margin: 40px auto;
}

.faq-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.faq-image img {
    max-width: 300px;
    border-radius: 20px;
}

.faq-content {
    max-width: 500px;
}

.faq-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* Accordion Style */
.accordion {
    background-color: white;
    color: #c3002f;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.accordion:hover {
    background-color: #fbe5ea;
}

.panel {
    padding: 0 20px;
    background-color: transparent;
    display: none;
    overflow: hidden;
    color: white;
    font-size: 15px;
    margin-bottom: 10px;
}

.read-more-btn {
    background-color: white;
    color: #c3002f;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s ease;
}

.read-more-btn:hover {
    background-color: #f8e8ec;
}

/* Testimonials */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    color: #e11d48;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonials .card {
    display: flex;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-height: 280px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.testimonials .card:hover {
    transform: translateY(-5px);
}

.testimonials .card img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.stars {
    color: #facc15;
    margin-top: 0.5rem;
}

.cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    background: linear-gradient(to right, #e11d48, #fb7185);
    color: white;
    animation: scaleIn 1s ease forwards;
}

.cta h3 {
    font-size: 2rem;
    margin: 1rem 0;
}

.cta button {
    background: #1d4ed8;
    padding: 0.75rem 2rem;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
}

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

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

/* Social Media */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-icon.whatsapp:hover {
    color: #128C7E;
}

.social-icon.instagram:hover {
    color: #E1306C;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.twitter:hover {
    color: #1DA1F2;
}

.social-icon.phone:hover {
    color: #e11d48;
}

/* Our Best Services */
.service-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    flex-wrap: wrap;
    text-align: center;
}

.service-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-steps .card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 240px;
}

.service-steps .card img {
    width: 100%;
    height: auto;
    margin: 15px 0;
}

.service-steps .step-number {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: #e11d48;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Arrow styling */
.arrow {
    width: 50px;
    height: 50px;
    background-image: url('assets/arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive behavior */
@media (max-width: 900px) {
    .service-steps {
        flex-direction: column;
        align-items: center;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
    }

    /* Hide desktop footer on mobile */
    .footer-desktop {
        display: none;
    }
}

/* Floating Contact Menu (Mobile Only) */
.floating-contact-menu {
    display: flex;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    gap: 1.2rem;
    font-size: 1.4rem;
    z-index: 999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.floating-contact-menu a {
    color: #1f2937;
    transition: transform 0.2s ease, color 0.2s ease;
}

.floating-contact-menu a:hover {
    color: #e11d48;
    transform: scale(1.2);
}

.floating-contact-menu.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .floating-contact-menu {
        display: none;
    }
}

/* Floating WhatsApp Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.whatsapp-btn:hover::before {
    width: 100px;
    height: 100px;
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}
