/* Custom styles for Bashir Haircutz */

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

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fffef8;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* Default state: always visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 254, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Button hover effects */
a {
    text-decoration: none;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 254, 248, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(22, 101, 52, 0.1);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid #166534;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu button animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-line.active:nth-child(2) {
    opacity: 0;
}

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Form styles */
input, textarea {
    border: 2px solid #dcfce7;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #166534;
    outline: none;
}

/* Success message animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideIn 0.3s ease-out;
}
