/* Apple-inspired base styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for Safari */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Selection styling */
::selection {
    background: rgba(0, 122, 255, 0.7);
    color: inherit;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Prevent text selection on UI elements */
button, .bento-card {
    user-select: none;
}

/* Image loading optimization */
img {
    content-visibility: auto;
}

/* Site theme variables and layout */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent-end: #8B5CF6;
    --accent-gradient: linear-gradient(90deg, var(--primary) 0%, var(--accent-end) 100%);
    --accent-gradient-hover: linear-gradient(90deg, var(--primary-dark) 0%, #7C3AED 100%);
    --secondary: #666666;
    --light: #F8F9FA;
    --dark: #1A1A1A;
    --border: #E5E5E5;
    --card-bg: #FFFFFF;
    --radius: 16px;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FFFFFF;
    color: #333333;
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn-primary {
    
    background: linear-gradient(90deg, var(--primary) 0%, #8B5CF6 100%);
    color: white;
    border-radius: var(--radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.18);
}

.btn-primary:hover {
    background-image: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 102, 255, 0.24);
}

.btn-secondary {
    background-image: linear-gradient(#FFFFFF, #FFFFFF), var(--accent-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--primary);
    border-radius: var(--radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.12);
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #D1D1D1;
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.nav-link {
    color: #666666;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

.heading-1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.heading-3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag {
    display: inline-block;
    background-color: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card {
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 45px;
    width: 2px;
    height: 100%;
    background-color: var(--border);
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(90deg, var(--primary) 0%, #8B5CF6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-card {
    padding: 2rem;
    height: 100%;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-link {
    color: #999999;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

@media (max-width: 768px) {
    .heading-1 {
        font-size: 2.5rem;
    }

    .heading-2 {
        font-size: 2rem;
    }

    .heading-3 {
        font-size: 1.5rem;
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
