/* UI/UX Improvements and Final Touches */

/* Button improvements */
.btn {
    /* Remove any transform on hover */
    transform: none !important;
}

.btn:hover {
    transform: none !important;
}

/* Special button for video in hero section */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Better button states */
.btn:active {
    transform: scale(0.98) !important;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Improved hover effects without movement */
.hover-lift {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.hover-lift:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Card improvements */
.feature-card,
.robot-card,
.price-card,
.case-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover,
.robot-card:hover,
.price-card:hover,
.case-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

/* Better text contrast */
.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Improved readability */
p {
    line-height: 1.7;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Better form focus states */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: none;
}

/* Improved navigation */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Better icon alignment */
.btn i {
    margin-right: 8px;
    vertical-align: middle;
}

/* Improved stats section */
.stat-number {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better spacing for sections */
section {
    position: relative;
}

section + section {
    margin-top: -1px; /* Prevent gaps between sections */
}

/* Improved badges */
.badge {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Better footer styling */
.footer {
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Improved modal */
.modal-content {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Better loading states */
.skeleton {
    border-radius: 8px;
}

/* Improved accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 48px;
    }
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Better contrast for text on colored backgrounds */
.hero *,
.cta-section * {
    color: white;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

/* Improved price cards */
.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.price-card.featured .price-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem;
    border-radius: 15px 15px 0 0;
}

/* Better list styling */
ul li {
    position: relative;
    padding-left: 1.5rem;
}

ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Improved testimonial cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
}

/* Better gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved animations timing */
[data-animate] {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Consistent border radius */
.rounded {
    border-radius: 10px;
}

.rounded-lg {
    border-radius: 15px;
}

.rounded-xl {
    border-radius: 20px;
}

/* Better shadow utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}