/*********************************************************************************

	Template Name: CompanyFX - Custom Styles
	Description: Modern, fast-loading custom styles for CompanyFX
	Version: 2.0

**********************************************************************************/

/* ===== MODERN CTA BUTTONS ===== */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #00ab1f 0%, #00d626 100%);
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 171, 31, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 171, 31, 0.4);
    color: white !important;
    text-decoration: none;
}

.cta-secondary {
    background: linear-gradient(135deg, #333982 0%, #4a4fb5 100%);
    box-shadow: 0 4px 15px rgba(51, 57, 130, 0.3);
}

.cta-secondary:hover {
    box-shadow: 0 6px 20px rgba(51, 57, 130, 0.4);
}

.cta-outline {
    background: transparent;
    border: 2px solid #00ab1f;
    color: #00ab1f !important;
    box-shadow: none;
}

.cta-outline:hover {
    background: #00ab1f;
    color: white !important;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 25px rgba(0, 171, 31, 0.5);
}

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

/* Mobile floating CTA position */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 80px;
        right: 20px;
        font-size: 14px;
        padding: 12px 25px;
    }
}

/* ===== MODERN CARD STYLES ===== */
.service {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ===== IMPROVED FORM STYLES ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: #00ab1f;
    box-shadow: 0 0 0 0.2rem rgba(0, 171, 31, 0.15);
    outline: none;
}

.form-area {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== SECTION STYLES ===== */
.section-title h2 {
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* ===== IMPROVED NAVIGATION ===== */
.header__menu .nav-link {
    transition: all 0.3s ease;
}

.header__menu .nav-link:hover {
    color: #00ab1f !important;
}

/* ===== LAZY LOADING IMAGES ===== */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== OPTIMIZED BANNER ===== */
.banner__single__content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* ===== FEATURE BOXES ===== */
.feature {
    transition: all 0.3s ease;
}

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

.feature.active {
    background: linear-gradient(135deg, #00ab1f 0%, #00d626 100%);
}

/* ===== SERVICE BOX IMPROVEMENTS ===== */
.serviceBox {
    padding: 30px;
    border-radius: 15px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.serviceBox:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.serviceBox.orange {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
}

.serviceBox .service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.serviceBox .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.serviceBox .description {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 767px) {
    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .service {
        margin-bottom: 20px;
    }
    
    .section-padding--lg {
        padding: 50px 0;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize will-change for animations */
.cta-button,
.service,
.floating-cta {
    will-change: transform;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.cta-button:focus,
.form-control:focus {
    outline: 2px solid #00ab1f;
    outline-offset: 2px;
}

/* ===== WHATSAPP BUTTON ENHANCEMENT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 150px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== LOADING OPTIMIZATION ===== */
.page-content {
    min-height: 400px;
}

/* ===== MODERN GRADIENTS ===== */
.gradient-primary {
    background: linear-gradient(135deg, #00ab1f 0%, #00d626 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #333982 0%, #4a4fb5 100%);
}

/* ===== UTILITY CLASSES ===== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.w-100 {
    width: 100% !important;
}

/* ===== IMPROVED SPACING ===== */
.mt-5 {
    margin-top: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}
