/* Unified Button Design System - Asquare Tech Lab */

/* CSS Custom Properties for easy maintenance */
:root {
    --btn-primary-bg: linear-gradient(135deg, #2B4DFF 0%, #1a1a2e 100%);
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-text-color: white;
    --btn-padding: 16px 32px;
    --btn-border-radius: 8px;
    --btn-font-size: 16px;
    --btn-font-weight: 600;
    --btn-font-family: "Plus Jakarta Sans", sans-serif;
    --btn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --btn-gap: 12px;
    --btn-shadow: 0 4px 15px rgba(43, 77, 255, 0.3);
    --btn-shadow-hover: 0 8px 25px rgba(43, 77, 255, 0.4);
    --btn-transform-hover: translateY(-2px);
}

/* Base button styles */
.btn-primary,
.btn-secondary,
.ai-btn-primary,
.ai-btn-secondary,
.hero-btn-primary,
.hero-btn-secondary,
.pricing-cta,
.final-cta-button,
.ai-contact-btn {
    color: var(--btn-text-color);
    padding: var(--btn-padding);
    border-radius: var(--btn-border-radius);
    text-decoration: none;
    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    font-family: var(--btn-font-family);
    transition: var(--btn-transition);
    display: inline-flex;
    align-items: center;
    gap: var(--btn-gap);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    box-shadow: var(--btn-shadow);
}

/* Primary button background */
.btn-primary,
.ai-btn-primary,
.hero-btn-primary,
.pricing-cta,
.final-cta-button,
.ai-contact-btn {
    background: var(--btn-primary-bg);
}

/* Secondary button background */
.btn-secondary,
.ai-btn-secondary,
.hero-btn-secondary {
    background: var(--btn-secondary-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Arrow styles for buttons */
.btn-primary .arrow,
.btn-secondary .arrow,
.ai-btn-primary .arrow,
.ai-btn-secondary .arrow,
.hero-btn-primary .arrow,
.hero-btn-secondary .arrow,
.pricing-cta .arrow,
.final-cta-button .arrow,
.ai-contact-btn .arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: 8px;
}

/* Arrow animation on hover */
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow,
.ai-btn-primary:hover .arrow,
.ai-btn-secondary:hover .arrow,
.hero-btn-primary:hover .arrow,
.hero-btn-secondary:hover .arrow,
.pricing-cta:hover .arrow,
.final-cta-button:hover .arrow,
.ai-contact-btn:hover .arrow {
    transform: translateX(4px);
}

/* External link arrow (diagonal) */
.btn-primary .arrow-external,
.btn-secondary .arrow-external,
.ai-btn-primary .arrow-external,
.ai-btn-secondary .arrow-external,
.hero-btn-primary .arrow-external,
.hero-btn-secondary .arrow-external,
.pricing-cta .arrow-external,
.final-cta-button .arrow-external,
.ai-contact-btn .arrow-external {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: 8px;
}

/* External arrow animation on hover */
.btn-primary:hover .arrow-external,
.btn-secondary:hover .arrow-external,
.ai-btn-primary:hover .arrow-external,
.ai-btn-secondary:hover .arrow-external,
.hero-btn-primary:hover .arrow-external,
.hero-btn-secondary:hover .arrow-external,
.pricing-cta:hover .arrow-external,
.final-cta-button:hover .arrow-external,
.ai-contact-btn:hover .arrow-external {
    transform: translate(2px, -2px);
}

/* Shine effect for all buttons */
.btn-primary::before,
.btn-secondary::before,
.ai-btn-primary::before,
.ai-btn-secondary::before,
.hero-btn-primary::before,
.hero-btn-secondary::before,
.pricing-cta::before,
.final-cta-button::before,
.ai-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* Hover effects for primary buttons */
.btn-primary:hover,
.ai-btn-primary:hover,
.hero-btn-primary:hover,
.pricing-cta:hover,
.final-cta-button:hover,
.ai-contact-btn:hover {
    transform: var(--btn-transform-hover);
    box-shadow: var(--btn-shadow-hover);
    color: var(--btn-text-color);
}

/* Hover effects for secondary buttons */
.btn-secondary:hover,
.ai-btn-secondary:hover,
.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--btn-text-color);
    transform: var(--btn-transform-hover);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Shine effect on hover */
.btn-primary:hover::before,
.btn-secondary:hover::before,
.ai-btn-primary:hover::before,
.ai-btn-secondary:hover::before,
.hero-btn-primary:hover::before,
.hero-btn-secondary:hover::before,
.pricing-cta:hover::before,
.final-cta-button:hover::before,
.ai-contact-btn:hover::before {
    left: 100%;
}

/* Active state */
.btn-primary:active,
.ai-btn-primary:active,
.hero-btn-primary:active,
.pricing-cta:active,
.final-cta-button:active,
.ai-contact-btn:active {
    transform: translateY(0);
    box-shadow: var(--btn-shadow);
}

.btn-secondary:active,
.ai-btn-secondary:active,
.hero-btn-secondary:active {
    transform: translateY(0);
}

/* Special styling for pricing-cta */
.pricing-cta {
    margin-bottom: 15px;
}

.pricing-cta.secondary {
    background: var(--btn-secondary-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Button with icon styles */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-with-icon i,
.btn-with-icon .icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-with-icon:hover i,
.btn-with-icon:hover .icon {
    transform: scale(1.1);
}

/* Contact Us specific button style */
.contact-btn {
    background: linear-gradient(135deg, #2B4DFF 0%, #1a1a2e 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(43, 77, 255, 0.3);
    cursor: pointer;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 77, 255, 0.4);
    color: white;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn .arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: 8px;
}

.contact-btn:hover .arrow {
    transform: translateX(4px);
}

/* Learn More button style */
.learn-more-btn {
    background: linear-gradient(135deg, #2B4DFF 0%, #1a1a2e 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(43, 77, 255, 0.3);
    cursor: pointer;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 77, 255, 0.4);
    color: white;
}

.learn-more-btn:hover::before {
    left: 100%;
}

.learn-more-btn .arrow-external {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: 8px;
}

.learn-more-btn:hover .arrow-external {
    transform: translate(2px, -2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --btn-padding: 14px 28px;
        --btn-font-size: 15px;
        --btn-gap: 10px;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .ai-btn-primary:hover,
    .ai-btn-secondary:hover,
    .hero-btn-primary:hover,
    .hero-btn-secondary:hover,
    .pricing-cta:hover,
    .final-cta-button:hover,
    .ai-contact-btn:hover,
    .contact-btn:hover,
    .learn-more-btn:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 576px) {
    :root {
        --btn-padding: 12px 24px;
        --btn-font-size: 14px;
        --btn-gap: 8px;
        --btn-border-radius: 10px;
    }
}
