/* Custom styles for Esentrik Designs */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #152d58;
}

/* Animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, #0a1628 0%, #152d58 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 33, 64, 0.15);
}

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

.btn-primary::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;
}

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

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Text selection color */
::selection {
    background-color: #22c55e;
    color: #0a1628;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #22c55e;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    background-color: #f1f5f9;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Testimonial cards */
.testimonial-card {
    backdrop-filter: blur(10px);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Custom bullet points */
.custom-list li {
    position: relative;
    padding-left: 1.5rem;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}
