/* ═══════════════════════════════════════════════════
   Amigo Smart Tech — Enhancement Styles
   Stats, Testimonials, CTA, Footer, WhatsApp Float,
   Accessibility, Scroll Animations, Form Polish
   ═══════════════════════════════════════════════════ */

/* ── Global Enhancements ── */
html {
    scroll-behavior: smooth;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Accessibility: Focus States ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ee2626;
    outline-offset: 2px;
}

/* ── Form Validation Styles ── */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #e53935 !important;
    background-color: rgba(229, 57, 53, 0.03);
}
.error-message {
    font-size: 13px;
    line-height: 1.5;
}

/* ── Custom Select Styling ── */
.contact__form-wrap .form-grp select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23191D88' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* ── Custom Checkbox ── */
.contact__form-wrap form .checkbox-grp input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d0d5dd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
    vertical-align: middle;
}
.contact__form-wrap form .checkbox-grp input[type="checkbox"]:checked {
    background: #ee2626;
    border-color: #ee2626;
}
.contact__form-wrap form .checkbox-grp input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ── Button Loading Spinner ── */
.btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
}
.btn.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ── Form Success Animation ── */
.success-message.is-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.success-message.is-success::before {
    content: '\2713';
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.success-message.is-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
}

/* ── Stats Counter Section ── */
.stats-section {
    background: linear-gradient(135deg, #191D88 0%, #1a237e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(238, 38, 38, 0.08);
    pointer-events: none;
}
.stat-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: inline-block;
}
.stat-suffix {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ee2626;
    display: inline-block;
    vertical-align: top;
    margin-top: 8px;
}
.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ── Testimonials Section ── */
.testimonials-section {
    padding: 100px 0;
    background: #f8f9fc;
}
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.testimonial-stars {
    margin-bottom: 18px;
}
.testimonial-stars .fa-star,
.testimonial-stars .fa-star-half-alt {
    color: #f5a623;
    font-size: 16px;
    margin-right: 2px;
}
.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 18px;
}
.author-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #191D88;
    margin-bottom: 2px;
}
.author-info span {
    font-size: 13px;
    color: #888;
}

/* ── CTA Section ── */
.cta-section {
    padding: 40px 0;
    background: transparent;
}
.cta-inner {
    background: linear-gradient(135deg, #ee2626 0%, #c41919 100%);
    border-radius: 20px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.cta-section h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin-bottom: 0;
}
.btn-cta-white {
    background: #fff;
    color: #ee2626;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #fff;
    position: relative;
    z-index: 1;
}
.btn-cta-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Enhanced Footer ── */
.footer__top {
    padding: 80px 0 50px;
    background: #0d0f3a;
}
.footer__widget {
    margin-bottom: 30px;
}
.footer__widget-about {
    padding-right: 20px;
}
.footer-logo {
    margin-bottom: 22px;
}
.footer-logo a {
    display: inline-block;
}
.footer-logo img {
    width: 200px;
    height: auto;
    display: block;
}
.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-contact-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.footer-contact-quick a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}
.footer-contact-quick a i {
    color: #ee2626;
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.footer-contact-quick a:hover {
    color: #ee2626;
}
.footer__widget-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.footer__widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #ee2626;
    border-radius: 2px;
}
.footer__link {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__link li {
    margin-bottom: 10px;
}
.footer__link li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer__link li a:hover {
    color: #ee2626;
    padding-left: 5px;
}
.footer__contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}
.footer__contact-info li i {
    color: #ee2626;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}
.footer__contact-info li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__contact-info li a:hover {
    color: #ee2626;
}
.footer__social-two ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__social-two ul li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer__social-two ul li a:hover {
    background: #ee2626;
    color: #fff;
    transform: translateY(-3px);
}
.footer__bottom-two {
    background: #080a2e;
    padding: 20px 0;
}
.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}
.copyright-text-two p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}
.copyright-text-two a {
    color: #ee2626;
    text-decoration: none;
}

/* ── Hero H1 styling ── */
.banner__content-three h1.title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}
.banner__content-three h1.title span {
    color: #ee2626;
}

/* ── Service cards subtle gradient border on hover ── */
.card-services-type-01 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-services-type-01:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 29, 136, 0.12);
}

/* ── Tech pills hover ── */
.tech-pill {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tech-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── 404 Page Styles ── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8f9fc;
    padding: 40px 20px;
}
.error-page__content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: #191D88;
    line-height: 1;
    margin-bottom: 10px;
}
.error-page__content h1 span {
    color: #ee2626;
}
.error-page__content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}
.error-page__content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Prefers Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { transition: none; opacity: 1; transform: none; }
    .reveal-stagger > * { transition: none; opacity: 1; transform: none; }
    .whatsapp-float { animation: none; }
    .stat-card:hover, .testimonial-card:hover, .card-services-type-01:hover, .tech-pill:hover { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .stat-number { font-size: 42px; }
    .stat-suffix { font-size: 28px; }
    .cta-inner { padding: 40px 30px; text-align: center; }
    .cta-section .text-lg-end { text-align: center !important; margin-top: 20px; }
    .cta-section h2 { font-size: 26px; }
    .banner__content-three h1.title { font-size: 36px; }
}
@media (max-width: 767.98px) {
    .stats-section { padding: 50px 0; }
    .stat-card { padding: 20px 15px; }
    .stat-number { font-size: 36px; }
    .testimonials-section { padding: 60px 0; }
    .testimonial-card { margin-bottom: 20px; }
    .cta-inner { padding: 30px 20px; }
    .cta-section h2 { font-size: 22px; }
    .footer__top { padding: 50px 0 30px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .whatsapp-float .whatsapp-tooltip { display: none; }
    .banner__content-three h1.title { font-size: 28px; }
    .error-page__content h1 { font-size: 80px; }
    .error-page__content h2 { font-size: 22px; }
}
