/* ===== UI ENHANCEMENTS ===== */

/* Improved Hero Section */
.bray-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

body.dark-mode .bray-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

/* Enhanced Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

/* Improved Stats Section */
.bray-stats-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bray-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.stats-grid {
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Enhanced AI Section */
.ai-showcase-section {
    position: relative;
    overflow: hidden;
}

.ai-showcase-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -50px);
    }
}

/* Improved Card Hover Effects */
.ai-feature-card,
.financial-card,
.portfolio-item,
.blog-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ai-feature-card::after,
.financial-card::after,
.portfolio-item::after,
.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s;
}

.ai-feature-card:hover::after,
.financial-card:hover::after,
.portfolio-item:hover::after,
.blog-card:hover::after {
    left: 100%;
}

.ai-feature-card:hover,
.financial-card:hover,
.portfolio-item:hover,
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Process Steps */
.process-step {
    position: relative;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

.step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: rotate(360deg) scale(1.2);
}

/* Improved Industry Cards */
.industry-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.industry-icon {
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary);
}

/* Enhanced Pricing Calculator */
.pricing-calculator {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

body.dark-mode .pricing-calculator {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.service-card-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.service-card-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.service-card-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Footer */
.bray-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

.footer-links a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Improved Dark Mode Toggle */
.dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.dark-mode-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* Enhanced Navigation */
.bray-nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .bray-nav {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

.bray-nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.bray-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.bray-nav-links a:hover::after,
.bray-nav-links a.active::after {
    width: 100%;
}

/* Floating CTA Enhancement */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cta-btn:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    animation: none;
}

.cta-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.cta-phone {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Improved Section Spacing */
.bray-section {
    padding: 100px 0;
    position: relative;
}

/* Enhanced Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .bray-hero {
        min-height: 70vh;
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .bray-section {
        padding: 60px 0;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .cta-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Accessibility Improvements */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Loading Animation for Images */
.portfolio-image,
.blog-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image::before,
.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced Typography */
.section-eyebrow {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Add subtle animations to important elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Form Input Enhancements */
.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}