/* South Texas Interpreters for the Deaf — Custom Styles */

/* Base overrides and enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #d43461;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b81d48;
}

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

/* Selection color */
::selection {
    background: #b81d48;
    color: #ffffff;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(15px) rotate(42deg); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.geo-circle {
    animation: float 8s ease-in-out infinite;
}

.geo-square {
    animation: floatReverse 10s ease-in-out infinite;
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

/* Service card tilt effect on hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar transition */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

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

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

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

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

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover zoom */
.rounded-3xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Stripe pattern performance */
.stripe-pattern {
    background-attachment: local;
}

/* Dot pattern performance */
.dot-pattern {
    background-attachment: fixed;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .geo-circle, .geo-square, .geo-triangle, .dot-pattern, .stripe-pattern {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .btn-primary {
        border: 2px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
}
