/* ===== Custom Styles for Emt Glass & Wrap ===== */

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }
    
    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }
    
    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
}

/* ===== Hero Asymmetric Layout ===== */
#hero .lg\:order-1 {
    margin-top: -60px;
}

#hero .lg\:order-2 {
    margin-top: 80px;
}

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid rgba(5, 150, 105, 0.08);
}

.service-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
}

/* ===== Form Styling ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* ===== Mobile menu animation ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Button ripple effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

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