/* Custom styles for Legacy Cutz Barber Academy */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom gradient backgrounds */
.gradient-coral {
    background: linear-gradient(135deg, #ff7676 0%, #ff5252 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1a2028 0%, #2a333d 100%);
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    footer {
        display: none;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

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

/* Improve image loading */
img {
    loading: lazy;
    decoding: async;
}

/* Custom selection color */
::selection {
    background-color: #ff7676;
    color: white;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7676, #ff5252);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5252, #f03e3e);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Soft shadow utility */
.shadow-soft {
    shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Text gradient utility */
.text-gradient {
    background: linear-gradient(135deg, #ff7676, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
