/* Custom styles and overrides */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image parallax-like effect */
.hero-grid > div:nth-child(2) img {
    transition: transform 0.6s ease;
}
.hero-grid:hover > div:nth-child(2) img {
    transform: scale(1.02);
}

/* Card hover glow */
.reveal:hover {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.06);
}

/* Testimonial card hover */
#testimonials .reveal:hover {
    border-color: rgba(45, 212, 191, 0.3) !important;
}

/* CTA section gradient overlay */
.bg-teal-700 {
    position: relative;
}
.bg-teal-700::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

/* Form select arrow */
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='%2394a3b8' 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;
}

/* Subtle text shadow for hero headline */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero-grid > div:nth-child(2) img {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    #mobile-menu {
        animation: none;
    }
}
