/* Enhanced UI/UX Elements for International-Grade Design */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color - Brand Colors */
::selection {
    background: var(--teal-turquoise);
    color: var(--background-primary);
}

::-moz-selection {
    background: var(--teal-turquoise);
    color: var(--background-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--teal-turquoise) 0%, var(--navy-blue) 100%);
    border-radius: 6px;
    border: 2px solid var(--background-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--teal-light) 0%, var(--navy-light) 100%);
}

/* Enhanced Card Styling */
.feature-card,
.service-card,
.stat-item,
.step-card {
    position: relative;
}

.feature-card::after,
.service-card::after,
.stat-item::after,
.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--teal-turquoise), var(--golden-yellow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.service-card:hover::after,
.stat-item:hover::after,
.step-card:hover::after {
    opacity: 0.6;
}

/* Accent Line for Sections */
.section-title::before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--teal-turquoise) 0%, var(--golden-yellow) 100%);
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

/* Loading Animation for Buttons */
.cta-button:active,
.btn-secondary:active {
    animation: buttonPress 0.3s ease;
}

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

/* Enhanced Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--teal-turquoise);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Subtle Background Patterns */
.features,
.services {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(77, 191, 184, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(244, 181, 66, 0.03) 0%, transparent 50%);
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--teal-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--golden-dark) 100%);
    color: var(--navy-blue);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-colored-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Icon Styling */
i {
    line-height: 1;
}

/* Improved List Styling */
ul li {
    margin-bottom: 0.5rem;
}

ul li::marker {
    color: var(--teal-turquoise);
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Hover Effects for Links */
a {
    transition: all 0.3s ease;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy-blue);
    color: var(--background-primary);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .btn-secondary {
        display: none !important;
    }
    
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    .cta-button,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-navy { color: var(--navy-blue); }
.text-teal { color: var(--teal-turquoise); }
.text-gold { color: var(--golden-yellow); }

.bg-navy { background-color: var(--navy-blue); }
.bg-teal { background-color: var(--teal-turquoise); }
.bg-gold { background-color: var(--golden-yellow); }

.shadow-navy { box-shadow: var(--shadow-colored-navy); }
.shadow-teal { box-shadow: var(--shadow-colored-teal); }
.shadow-gold { box-shadow: var(--shadow-colored-gold); }

