/* Custom styles that complement Tailwind */

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 63, 0.2);
    color: #1a1a22;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Custom focus ring for coral buttons */
.btn-coral:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .float-1, .float-2, .float-3 {
        animation: none !important;
    }
    
    .coral-pulse {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #back-to-top, .btn-coral::before {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-coral {
        border: 2px solid ButtonText;
    }
}

/* Ensure form inputs have proper touch targets on mobile */
@media (max-width: 640px) {
    input, textarea, select, button {
        font-size: 16px;
    }
}

/* Subtle hover effects for cards */
.card-lift {
    will-change: transform;
}

/* Coral gradient button shine effect */
.btn-coral::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 ease;
    pointer-events: none;
}

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

/* Ensure all text has proper contrast */
.text-charcoal-400 {
    color: #7d7d8c;
}

.text-charcoal-500 {
    color: #5c5c6b;
}

.text-charcoal-600 {
    color: #4a4a56;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
