/* Page Load Animation */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Image Loading Skeleton */
.portfolio-image,
.about-main-img,
.hero-phone-mockup {
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(37, 99, 235, 0.05) 0%,
        rgba(37, 99, 235, 0.15) 50%,
        rgba(37, 99, 235, 0.05) 100%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img {
    transition: opacity 0.5s ease-in-out;
}

img.loading {
    opacity: 0.3;
}

img.loaded {
    opacity: 1;
}

/* Smooth Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

/* Trust Badges Section */
.trust-badges {
    padding: 30px 0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .trust-badges {
        padding: 25px 0;
    }
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trust-badge {
    text-align: center;
    padding: 25px 18px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .trust-badge {
        padding: 20px 15px;
    }
}

.trust-badge:hover {
    background: var(--light-secondary);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    border-color: var(--primary-color);
}

.trust-badge i {
    font-size: 42px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.trust-badge h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trust-badge p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Industries Section */
.industries-section {
    background: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.industry-card {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .industry-card {
        padding: 25px;
    }
}

.industry-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.industry-card i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: block;
}

.industry-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.industry-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.industry-card ul {
    list-style: none;
    padding: 0;
}

.industry-card ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.industry-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Form improvements */
.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
}

.info-card small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: floatBounce 2s infinite ease-in-out;
}

.whatsapp-float i {
    font-size: 32px;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.float-text {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .float-text {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1);
    }
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(30, 41, 59, 0.98);
    border: 3px solid #25D366;
    border-radius: 25px;
    padding: 35px;
    backdrop-filter: blur(20px);
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.3);
    -webkit-animation: popupSlideIn 0.5s ease;
    animation: popupSlideIn 0.5s ease;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 25px;
    }
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: pulse 2s infinite;
}

.popup-icon i {
    font-size: 40px;
    color: white;
}

.popup-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.popup-content p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.popup-highlight {
    background: rgba(37, 211, 102, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    margin: 20px 0;
}

.popup-highlight strong {
    color: var(--whatsapp-green);
}

.btn-popup-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-popup-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-popup-whatsapp i {
    font-size: 24px;
}

.popup-later {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.popup-later:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h3 {
        font-size: 16px;
        padding-right: 20px;
    }

    .faq-question,
    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .popup-content {
        padding: 30px 25px;
    }

    .popup-content h3 {
        font-size: 22px;
    }

    .btn-popup-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .float-text {
        display: none;
    }
}
