/**
 * Homepage Styles - Ultra Modern Design
 *
 * @package Service_Locksmith
 * @author Yousef T Alhayek
 * @since 1.0.0
 */

/* ==========================================================================
   Hero Section - ULTRA MODERN DESIGN
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a202c;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.92) 0%, rgba(44, 62, 80, 0.88) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: #ffffff;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    line-height: 1.65;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    list-style: none;
    padding: 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 500;
}

.hero-feature i {
    color: #FF6B35;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.4));
}

/* ========== WIDE CTA BUTTONS - ULTRA MODERN ========== */

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1.375rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    /* Debounce: 0.1s delay on exit to prevent flicker */
    transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s, background-color 0.3s ease 0.1s, border-color 0.3s ease 0.1s;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--heading-font);
}

/* Ripple Effect */
.hero-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.5s ease-out, height 0.5s ease-out;
}

.hero-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Animated Icon */
.hero-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

/* PRIMARY BUTTON - GRADIENT WITH GLOW */
.hero-btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 50%, #ffad7a 100%);
    color: #FFFFFF;
    box-shadow:
        0 8px 20px rgba(255, 107, 53, 0.3),
        0 4px 8px rgba(255, 107, 53, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.hero-btn-primary:hover {
    /* Instant entry (0s delay), reduced movement (-2px) */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(255, 107, 53, 0.4),
        0 6px 15px rgba(255, 107, 53, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hero-btn-primary:hover::after {
    opacity: 1;
}

.hero-btn-primary:active {
    transform: translateY(-1px);
}

/* SECONDARY BUTTON - GLASS MORPHISM */
.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary:hover {
    /* Instant entry (0s delay), reduced movement (-2px) */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.hero-btn-secondary:active {
    transform: translateY(-1px);
}

/* Contact Form - Premium Glassmorphism Card */
.hero-form {
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    animation: none;
}

/* Subtle glow behind the form */
.hero-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
    z-index: -1;
    animation: none;
    pointer-events: none;
}

@keyframes formFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-title {
    margin-bottom: 2rem;
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    letter-spacing: -0.02em;
}

/* Styling the generic inputs inside the hero form to match glassmorphism */
.hero-form .wpcf7-form-control-wrap input,
.hero-form .wpcf7-form-control-wrap select,
.hero-form .wpcf7-form-control-wrap textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-form,
.hero-form .wpcf7,
.hero-form .wpcf7 form,
.hero-form p,
.hero-form label,
.hero-form .wpcf7-list-item-label,
.hero-form .wpcf7-quiz-label {
    color: #FFFFFF !important;
}

.hero-form .wpcf7-form-control-wrap input::placeholder,
.hero-form .wpcf7-form-control-wrap textarea::placeholder {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.hero-form .wpcf7-form-control-wrap input::-webkit-input-placeholder,
.hero-form .wpcf7-form-control-wrap textarea::-webkit-input-placeholder {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.hero-form .wpcf7-form-control-wrap input::-moz-placeholder,
.hero-form .wpcf7-form-control-wrap textarea::-moz-placeholder {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.hero-form .wpcf7-form-control-wrap input:-ms-input-placeholder,
.hero-form .wpcf7-form-control-wrap textarea:-ms-input-placeholder {
    color: #FFFFFF !important;
}

.hero-form .wpcf7-form-control-wrap input::-ms-input-placeholder,
.hero-form .wpcf7-form-control-wrap textarea::-ms-input-placeholder {
    color: #FFFFFF !important;
}

.hero-form .wpcf7-form-control-wrap input:focus,
.hero-form .wpcf7-form-control-wrap select:focus,
.hero-form .wpcf7-form-control-wrap textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15) !important;
    outline: none;
}

/* Specific Submit Button for Hero */
.hero-form .wpcf7-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem;
}

.hero-form .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4) !important;
    background: linear-gradient(135deg, #ff8c5a 0%, var(--primary-color) 100%) !important;
}

/* ========== DECORATIVE SHAPES ========== */

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 140, 90, 0.06));
    will-change: transform;
    filter: blur(40px);
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
    animation: none;
}

.hero-shape-2 {
    width: 380px;
    height: 380px;
    bottom: -180px;
    left: -100px;
    animation: none;
}

.hero-shape-3 {
    width: 280px;
    height: 280px;
    bottom: 25%;
    right: 15%;
    animation: none;
    opacity: 0.5;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(40px, -40px) scale(1.05) rotate(5deg);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.95) rotate(-5deg);
    }
}

/* ========== SERVICES SECTION ========== */

.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Debounce: 0.1s delay on exit */
    transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s;
    text-align: center;
}

.service-card:hover {
    /* Instant entry (0s delay), reduced movement (-3px) */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-title a:hover {
    color: var(--primary-color);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.3s ease, gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
    text-decoration: none;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
}

/* Image Side - Ultra Modern */
.about-image-wrapper {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 15px rgba(0, 0, 0, 0.05);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.02);
}

/* Decorative Badge */
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 30px rgba(255, 107, 53, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.9);
    animation: none;
}

.badge-content {
    text-align: center;
    color: #FFFFFF;
}

.badge-content i {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.badge-content span {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Text Side */
.about-text-wrapper {
    padding: 1rem 0;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-extra-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #718096;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Features Grid - Modern Design */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.04);
    border-radius: 12px;
    border-left: 3px solid #FF6B35;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-feature-item:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(4px);
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1.125rem;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.25);
}

.feature-icon i {
    font-size: 1.125rem;
    line-height: 1;
}

.feature-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d3748;
}

/* Feature Icon Images - Fixed Size */
.feature-icon-image {
    width: auto !important;
    height: auto !important;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* CTA Button - Ultra Modern */
.about-cta {
    margin-top: 2rem;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 50%, #ffad7a 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    box-shadow:
        0 8px 20px rgba(255, 107, 53, 0.3),
        0 4px 8px rgba(255, 107, 53, 0.2);
    /* Debounce: 0.1s delay on exit */
    transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s;
    position: relative;
    overflow: hidden;
}

/* ... (before pseudo element omitted, managed by separate rule) ... */

.about-btn:hover {
    /* Instant entry (0s delay), reduced movement (-2px) */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(255, 107, 53, 0.4),
        0 6px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
}

.about-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.5s ease-out, height 0.5s ease-out;
}

.about-btn:hover::before {
    width: 300px;
    height: 300px;
}

.about-btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.about-btn:hover {
    /* Instant entry (0s delay), reduced movement (-2px) */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(255, 107, 53, 0.4),
        0 6px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
}

.about-btn:hover i {
    transform: translateX(4px);
}

.about-btn:active {
    transform: translateY(-1px);
}

/* Why Choose Us Section - Ultra Modern */
.why-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}

.why-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    backdrop-filter: blur(0px);
    /* Will be controlled via JS/Customizer if needed, defaults to clear */
    transition: all 0.5s ease;
}

.why-section .container {
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.why-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.why-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 107, 53, 0.08);
    /* Fallback */
    position: relative;
    overflow: hidden;
}

.why-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0.5;
    filter: blur(10px);
    z-index: -1;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    border-radius: 24px;
}

.why-icon i {
    font-size: 32px;
    transition: all 0.3s ease;
}

/* Custom Icon Image */
.why-icon-image {
    width: auto !important;
    height: auto !important;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.why-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: #1a202c;
    transition: color 0.3s ease;
}

.why-desc {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
    .why-grid {
        gap: 20px;
    }

    .why-card {
        padding: 30px 20px;
    }
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .why-card {
        padding: 35px 25px;
    }
}

/* How It Works Section */
.steps-grid {
    margin-top: 3rem;
}

.step-card {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    margin: 2rem auto 1.5rem;
    font-size: 3rem;
    color: var(--secondary-color);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--gray);
}



/* ── Premium Testimonials Section ── */
.testimonials-section {
    background-color: var(--light-bg);
    overflow: hidden;
}

/* Base Desktop Grid (3 columns) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Massive Background Quote */
.testimonial-card::before {
    content: '\f10d';
    /* FontAwesome quote-left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.testimonial-card:hover::before {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.testimonial-content {
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    flex-grow: 1;
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    color: #FFB800;
    font-size: 1.1rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-style: normal;
    line-height: 1.2;
}

.testimonial-position {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        max-width: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-btn {
        padding: 1.125rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }

    .hero-form {
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid,
    .steps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-shape {
        filter: blur(60px);
        opacity: 0.4;
    }
}

/* =========================================================================
   HOW IT WORKS SECTION - ULTRA MODERN 2x2
   ========================================================================= */

.how-it-works-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.how-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 40px;
}

/* Left Side: 2x2 Grid */
.how-steps-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.how-step-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    /* Debounce for stability */
    transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s, border-color 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.how-step-card:hover {
    /* Instant move */
    transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Step Header */
.how-step-header {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.how-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.how-step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.how-custom-icon {
    width: auto !important;
    height: auto !important;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    display: block;
}

.how-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.how-step-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Right Side: Image with Professional Container */
.how-image-side {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.how-image-container {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    width: 100%;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 10px;
    min-height: 400px;
    /* Ensure visibility */
}

/* Decorative border/shape behind image */
.how-image-container::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.5;
    background: transparent;
    /* Color set by inline PHP style */
}

.how-featured-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.how-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
}

.how-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .how-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 30px;
    }

    .how-image-side {
        order: 2;
        /* Image below grid */
    }

    .how-steps-grid-2x2 {
        order: 1;
        /* Grid first */
    }

    .how-featured-image,
    .how-image-placeholder {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .how-steps-grid-2x2 {
        gap: 15px;
    }

    .how-step-card {
        padding: 20px 15px;
    }

    .how-step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .how-step-header {
        margin-bottom: 15px;
    }

    .how-step-title {
        font-size: 1rem;
    }

    .how-step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: -10px;
    }


    /* =========================================================================
   HOW IT WORKS SECTION - ULTRA MODERN
   ========================================================================= */

    .how-it-works-section {
        position: relative;
        overflow: hidden;
        padding: 100px 0;
    }

    .how-steps-wrapper {
        position: relative;
        margin-top: 60px;
    }

    /* Connector Line */
    .how-connector-line {
        position: absolute;
        top: 50px;
        left: 10%;
        right: 10%;
        height: 3px;
        z-index: 0;
        border-radius: 4px;
        opacity: 0.5;
    }

    .how-steps-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        position: relative;
        z-index: 1;
    }

    .how-step-item {
        position: relative;
        height: 100%;
    }

    .how-step-card {
        padding: 40px 25px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s, border-color 0.3s ease;
        height: 100%;
        border-bottom: 4px solid transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .how-step-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease 0s, box-shadow 0.3s ease 0s;
    }

    /* Step Header (Number + Icon) */
    .how-step-header {
        position: relative;
        margin-bottom: 25px;
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .how-step-number {
        position: absolute;
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        border: 2px solid #fff;
    }

    .how-step-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        transition: all 0.3s ease;
    }

    .how-custom-icon {
        width: auto !important;
        height: auto !important;
        max-width: 40px;
        max-height: 40px;
        object-fit: contain;
    }

    /* Text Content */
    .how-step-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: var(--secondary-color);
    }

    .how-step-desc {
        font-size: 0.95rem;
        color: #6c757d;
        line-height: 1.6;
        margin-bottom: 0;
    }

    /* RESPONSIVE DESIGN */
    @media (max-width: 991px) {
        .how-steps-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 40px 20px;
        }

        .how-connector-line {
            display: none;
        }
    }

    @media (max-width: 576px) {
        .how-steps-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .how-steps-wrapper {
            padding-left: 20px;
        }

        .how-connector-line {
            display: block;
            width: 3px;
            height: auto;
            top: 0;
            bottom: 0;
            left: 59px;
            right: auto;
        }

        .how-step-card {
            flex-direction: row;
            text-align: left;
            padding: 20px;
            align-items: flex-start;
            gap: 20px;
        }

        .how-step-header {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            margin-bottom: 0;
        }

        .how-step-icon {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }

        .how-step-number {
            width: 24px;
            height: 24px;
            font-size: 12px;
            top: -5px;
            right: -5px;
        }

        .how-step-title {
            margin-top: 5px;
            margin-bottom: 5px;
        }
    }


    /* =========================================================================
   PERFORMANCE STATS SECTION - ULTRA MODERN
   ========================================================================= */

    .performance-section {
        position: relative;
        padding: 120px 0;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        /* Simple Parallax */
        background-repeat: no-repeat;
        background-color: #222;
        /* Dark fallback for white text */
        overflow: hidden;
    }

    .performance-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        /* Default overlay */
        z-index: 1;
    }

    .performance-section .container {
        padding-top: 0;
        /* Override */
        position: relative;
        z-index: 2;
    }

    .relative-z {
        position: relative;
        z-index: 2;
    }

    .stats-glass-container {
        background: rgba(255, 255, 255, 0.05);
        /* Increased transparency */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        padding: 60px 40px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        text-align: center;
        width: 100%;
        /* Ensure full width */
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease;
        opacity: 0;
        animation: fadeUpStats 0.8s ease-out forwards;
    }

    .stat-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .stat-item:nth-child(2) {
        animation-delay: 0.3s;
    }

    .stat-item:nth-child(3) {
        animation-delay: 0.5s;
    }

    .stat-item:nth-child(4) {
        animation-delay: 0.7s;
    }

    @keyframes fadeUpStats {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stat-item:hover {
        transform: translateY(-10px);
    }

    .stat-icon-wrapper {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
        font-size: 32px;
        transition: all 0.4s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #FF6B35;
        /* Default primary color */
    }

    .stat-item:hover .stat-icon-wrapper {
        background: #fff;
        color: #FF6B35;
        transform: rotateY(180deg);
    }

    .stat-number-wrapper {
        display: flex;
        align-items: baseline;
        justify-content: center;
        margin-bottom: 10px;
        font-family: 'Outfit', sans-serif;
        color: #fff;
    }

    .stat-number-text {
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .stat-suffix {
        font-size: 2rem;
        font-weight: 700;
        margin-left: 5px;
        color: #FF6B35;
    }

    .stat-label {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Responsive Stats */
    @media (max-width: 991px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 50px 30px;
        }
    }

    @media (max-width: 576px) {
        .stats-grid {
            grid-template-columns: 1fr;
            gap: 50px;
        }

        .stats-glass-container {
            padding: 40px 20px;
        }

        .stat-number-text {
            font-size: 3rem;
        }
    }

}

/* =========================================================================
   STATS SECTION - ULTRA MODERN REDESIGN (APPENDED)
   ========================================================================= */

.s-stats-section {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #0f172a;
    overflow: hidden;
    color: #fff;
}

.s-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Shapes */
.s-stats-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.s-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: none;
}

.s-shape-1 {
    width: 400px;
    height: 400px;
    background: #FF6B35;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.s-shape-2 {
    width: 500px;
    height: 500px;
    background: #4158d0;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes s-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.s-stats-container {
    position: relative;
    z-index: 2;
}

.s-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Glass Card */
.s-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-align: center;
}

.s-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Icon */
.s-stat-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FF6B35;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, color 0.3s ease;
}

.s-stat-card:hover .s-stat-icon-wrapper {
    transform: rotateY(180deg) scale(1.1);
    color: #fff;
    background: #FF6B35;
    border-color: #FF6B35;
}

.s-stat-custom-icon {
    width: auto !important;
    height: auto !important;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Number */
.s-stat-number-group {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
    line-height: 1;
}

.s-stat-counter,
.s-stat-suffix {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--heading-font, sans-serif);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Label */
.s-stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    transition: color 0.3s ease;
}

.s-stat-card:hover .s-stat-label {
    color: #ffffff;
}

/* Glow Effect */
.s-stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 107, 53, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.s-stat-card:hover .s-stat-glow {
    opacity: 1;
}

@media (max-width: 991px) {
    .s-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .s-stats-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .s-stat-counter {
        font-size: 3rem;
    }
}

/* Stats Icon Styling (Re-added) */
.s-stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    opacity: 1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =========================================================================
   FAQ SECTION - MODERN ACCORDION
   ========================================================================= */

.faq-section {
    padding: 100px 0;
    background-color: var(--light-bg, #f8f9fa);
    position: relative;
    overflow: hidden;
}

/* Background Decoration (Optional - subtle glow) */
.faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.03), transparent 70%);
    pointer-events: none;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-section .section-header {
    margin-bottom: 60px;
}

.faq-section .section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.faq-section .section-title {
    color: var(--secondary-color, #2C3E50);
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 53, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color, #2C3E50);
    transition: color 0.3s ease;
    outline: none;
}

.faq-question:hover {
    color: var(--primary-color, #FF6B35);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary-color, #FF6B35);
    transition: all 0.3s ease;
    background: rgba(255, 107, 53, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-color, #FF6B35);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
    background: var(--primary-color, #FF6B35);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.faq-answer {
    /* Padding is handled by the inner P or set here and animated by jQuery */
    padding: 0 30px;
    color: #666;
    line-height: 1.8;
    /* max-height and overflow hidden handled by jQuery usually, but helpful for initial state */
    display: none;
    /* Start hidden */
}

/* Ensure padding exists when visible */
.faq-answer p {
    padding-bottom: 30px;
    /* Bottom spacing */
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-question i {
    margin-left: 0;
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer p {
        padding-bottom: 20px;
    }
}

/* Service Custom Icon Image Fix */
.service-icon-img {
    max-width: 40px;
    max-height: 40px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    /* Start white (like icons) */
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-img {
    filter: none;
    /* Show original color on hover */
    transform: scale(1.1);
}

/* ==========================================================================
   Services Section (Dark Overlay Design)
   ========================================================================== */

.services-section {
    padding: 100px 0;
    background-color: var(--white);
    /* Section bg white, cards are dark */
}

/* Background Pattern (Optional) */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e1e1e1 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    /* Small gap as per design */
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: #222;
    /* Fallback */
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
    /* Slight radius */
}

.service-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

/* Overlay Layer */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay 60% */
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Content Layer */
.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Icon Styling */
.service-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
}

/* Image Icon */
.service-icon-img {
    max-width: 60px;
    max-height: 60px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Force white */
    margin-bottom: 0;
}

.service-card:hover .service-icon-img {
    filter: brightness(0) invert(1);
    /* Keep white on hover */
    transform: scale(1.1);
}

/* Title Styling */
.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.service-title a {
    color: #fff;
    text-decoration: none;
}

/* Description Styling */
.service-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* Full Link Overlay */
.service-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
}

/* Hover Effects */
.service-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   Portfolio Section (ServicePro Companion Integration)
   ========================================================================== */
.portfolio-section {
    padding: 5rem 0;
    background-color: var(--sl-light, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns on Desktop */
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    position: relative;
    border-radius: var(--sl-border-radius-lg, 16px);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--sl-box-shadow-sm);
    transition: var(--sl-transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sl-box-shadow-lg);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--sl-gray-200);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

/* Glassmorphism Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay-content,
.portfolio-card:focus .portfolio-overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    font-size: 2rem;
    color: var(--sl-white, #ffffff);
    margin-bottom: 0.75rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-hover-title {
    color: var(--sl-white, #ffffff);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Modal (Premium) */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-lightbox[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    /* Deep slate background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: zoom-out;
}

.lightbox-content-wrapper {
    position: relative;
    z-index: 100000;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-lightbox[aria-hidden="false"] .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.lightbox-image-container {
    width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    background: transparent;
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    /* Subtle glow */
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sl-white, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Lightbox Responsive Fixes */
@media (max-width: 1024px) {
    .lightbox-prev {
        left: -15px;
        /* Pull in closer for tablets */
    }

    .lightbox-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .lightbox-prev {
        left: 5px;
        /* Inside the image container bounds */
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: -45px;
        right: 0px;
        background: rgba(0, 0, 0, 0.6);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
        /* Darker background for visibility on mobile images */
        border: none;
    }
}

/* ==========================================================================
   RESPONSIVE STYLES — All Homepage Sections
   ========================================================================== */

/* ── Tablet (768px – 1023px) ─────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Hero */
    .hero-section {
        min-height: 560px;
        padding: 4rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-form {
        margin-top: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-badge {
        width: 110px;
        height: 110px;
        bottom: -15px;
        right: -10px;
    }

    /* Why Us */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    /* Stats */
    .stats-grid,
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }
}

/* ── Mobile (< 768px) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* ── Hero ── */
    .hero-section {
        min-height: auto;
        padding: 3rem 0 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }

    .hero-feature {
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.07);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.875rem;
    }

    .hero-btn {
        width: 100%;
        min-width: unset;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }

    .hero-form {
        padding: 1.5rem;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .form-title {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }

    .hero-form .wpcf7,
    .hero-form .wpcf7 form,
    .hero-form p,
    .hero-form .wpcf7-form-control-wrap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-form .wpcf7-form-control-wrap input,
    .hero-form .wpcf7-form-control-wrap select,
    .hero-form .wpcf7-form-control-wrap textarea,
    .hero-form .wpcf7-submit {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .hero-form .wpcf7-form-control-wrap input,
    .hero-form .wpcf7-form-control-wrap select,
    .hero-form .wpcf7-form-control-wrap textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .hero-form .wpcf7-submit {
        padding: 1rem !important;
        font-size: 1rem !important;
        margin-top: 0.75rem;
    }

    /* ── Services ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 1.625rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    /* ── About ── */
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .about-badge {
        width: 90px;
        height: 90px;
        bottom: -10px;
        right: -5px;
    }

    .badge-content i {
        font-size: 1.75rem;
    }

    .badge-content span {
        font-size: 0.6875rem;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .about-description,
    .about-extra-text {
        font-size: 1rem;
    }

    .about-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    /* ── Why Us ── */
    .why-section {
        padding: 3rem 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .why-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .why-card:hover {
        transform: translateY(-4px);
    }

    .why-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    /* ── Stats / Performance ── */
    .stats-grid,
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number,
    .performance-number {
        font-size: 2rem;
    }

    .stat-item,
    .performance-item {
        padding: 1.25rem 1rem;
    }

    /* ── Testimonials ── */
    .testimonials-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.25rem;
        padding-bottom: 1.5rem;
        /* Room for shadow */
        margin-top: 2rem;
        /* Break out of standard container to edge-to-edge swipe */
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
        /* Safari/Chrome */
    }

    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 2rem 1.5rem;
    }

    /* ── CTA Section ── */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-title {
        font-size: 1.625rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
    }

    .cta-buttons .btn,
    .cta-buttons a {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    /* ── Emergency / Contact Sections ── */
    .emergency-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* ── Section Headers ── */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    /* ── Portfolio Section ── */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem;
    }

    /* ── Generic grids ── */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ── Small Mobile (< 480px) ─────────────────────────────────────────────── */
@media (max-width: 479px) {

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .stats-grid,
    .performance-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .portfolio-card {
        border-radius: 12px;
    }

    .portfolio-hover-title {
        font-size: 1rem;
    }

    .stat-number,
    .performance-number {
        font-size: 1.75rem;
    }

    .why-card {
        padding: 1.25rem 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }
}
