/* Custom Styles for Central Barber Shop */

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

/* Custom Clip Path for Hero */
.clip-diagonal {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background-color: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-scrolled a {
    color: #1A1A1A;
}

.nav-scrolled .btn-primary {
    background-color: #780000;
    color: white;
}

/* Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}

.btn-primary:hover::after {
    height: 100%;
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Transitions */
#line1 {
    transform-origin: left;
}

#line2 {
    transform-origin: left;
}

#line3 {
    transform-origin: left;
}

/* Active Mobile Menu State */
.mobile-menu-open #line1 {
    transform: rotate(45deg);
}

.mobile-menu-open #line2 {
    opacity: 0;
}

.mobile-menu-open #line3 {
    transform: rotate(-45deg);
}

.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

/* Geometric Shape Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #780000;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 1px solid black;
        background: white;
        color: black;
    }
}
