/* Custom styles for Cell N Wheels */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
    background: #c8973e !important;
}

/* Hero parallax feel */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 0 30px rgba(200, 151, 62, 0.3);
}

/* Smooth focus for form inputs */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Gold accent line animation */
.w-8.h-px.bg-gold-500 {
    transition: width 0.3s ease;
}

/* Testimonial card hover */
.rounded-xl.shadow-sm {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rounded-xl.shadow-sm:hover {
    transform: translateY(-4px);
}

/* Subtle fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #c8973e 0%, #e0b95c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* Mobile menu slide */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple effect on hover */
a[href="tel:16307399355"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="tel:16307399355"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a[href="tel:16307399355"]:hover::after,
button[type="submit"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(90deg, #f0ebe3 25%, #e8e0d0 50%, #f0ebe3 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img[src] {
    animation: none;
    background: none;
}
