/* ===================================
   Custom Styles for SoTellUs Website
   Water-inspired design elements
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Water Text Effect */
.water-text {
    background: linear-gradient(45deg, #1e40af, #0ea5e9, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waterFlow 3s ease infinite;
}

@keyframes waterFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated Water Drops */
.water-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.water-drops::before,
.water-drops::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    animation: dropFall 4s infinite ease-in;
}

.water-drops::before {
    width: 10px;
    height: 10px;
    top: -10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.water-drops::after {
    width: 8px;
    height: 8px;
    top: -10%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 6s;
}

@keyframes dropFall {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.3);
    transform: translate(-50%, -50%);
    animation: rippleEffect 2s ease-out infinite;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1rem;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

/* Flowing Water Border Effect */
.flow-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(45deg, #1e40af, #0ea5e9, #06b6d4, #1e40af) border-box;
    background-size: 200% 200%;
    animation: flowingBorder 3s ease infinite;
}

@keyframes flowingBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e40af, #0ea5e9);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0ea5e9, #06b6d4);
}

/* Button Ripple Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    border-top-color: #1e40af;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Wave Animation */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231e40af' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: waveAnimation 10s linear infinite;
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1440px;
    }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #1e40af, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmerAnimation 3s infinite;
}

@keyframes shimmerAnimation {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Card Float Animation */
.float-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3),
        0 0 40px rgba(14, 165, 233, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3),
            0 0 40px rgba(14, 165, 233, 0.2),
            0 0 60px rgba(6, 182, 212, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.5),
            0 0 60px rgba(14, 165, 233, 0.3),
            0 0 90px rgba(6, 182, 212, 0.2);
    }
}

/* Form Focus Effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Smooth Transitions */
a,
button,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Image Zoom on Hover */
.zoom-image {
    overflow: hidden;
}

.zoom-image img {
    transition: transform 0.7s ease;
}

.zoom-image:hover img {
    transform: scale(1.1);
}

/* Section Divider */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e40af, #0ea5e9, #06b6d4, transparent);
    margin: 4rem 0;
}

/* Responsive Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .mobile-menu-enter {
        animation: slideInRight 0.3s ease-out forwards;
    }

    .mobile-menu-exit {
        animation: slideOutRight 0.3s ease-out forwards;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .water-text {
        -webkit-text-fill-color: #1e40af;
    }

    button,
    a {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #f8fafc;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e40af;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   ABOUT PAGE UNIQUE STYLES
   ======================================== */

/* About Pattern Background */
.about-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Story Section Image Effects */
.story-image {
    transition: transform 0.5s ease;
}

.story-image:hover {
    transform: scale(1.02);
}

.story-badge {
    animation: float 6s ease-in-out infinite;
}

/* Arizona Badge */
.arizona-badge {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Value Cards */
.value-card {
    opacity: 1;
}

.value-icon {
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

/* What Sets Us Apart Items */
.apart-item {
    opacity: 1;
}

.apart-icon {
    transition: all 0.3s ease;
}

.apart-item:hover .apart-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

/* Commitment Section */
.commitment-image {
    transition: transform 0.5s ease;
}

.commitment-image:hover {
    transform: scale(1.02);
}

.commitment-badge {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Credential Cards */
.credential-card {
    transition: all 0.3s ease;
    opacity: 1;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Mission Pattern */
.mission-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Service Area Items */
.service-area-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.service-area-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.15);
}

/* CTA Pattern */
.cta-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* CTA Button */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .story-badge,
    .commitment-badge,
    .arizona-badge {
        position: static;
        margin-top: 1rem;
    }
}

/* ========================================
   SERVICES PAGE UNIQUE STYLES
   ======================================== */

/* Services Hero Pattern */
.services-hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Service Navigation */
.service-nav {
    transition: all 0.3s ease;
}

.service-nav-link {
    position: relative;
    overflow: hidden;
}

.service-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.service-nav-link:hover::before {
    width: 80%;
}

/* Service Content Sections */
.service-content {
    opacity: 1;
}

/* Service Images */
.service-image {
    transition: transform 0.5s ease;
}

.service-image:hover {
    transform: scale(1.03);
}

/* Service Badges */
.service-badge {
    animation: float 6s ease-in-out infinite;
}

.service-badge:nth-child(2) {
    animation-delay: 1s;
}

/* Material Options */
.material-option {
    transition: all 0.3s ease;
    opacity: 1;
}

.material-option:hover {
    transform: translateX(10px);
    background: rgba(30, 64, 175, 0.05);
}

/* Guard Types */
.guard-type {
    transition: all 0.3s ease;
    opacity: 1;
}

.guard-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

/* Emergency Card */
.emergency-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
}

/* Maintenance Card */
.maintenance-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

/* Services CTA Pattern */
.services-cta-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Services CTA Button */
.services-cta-button {
    position: relative;
    overflow: hidden;
}

.services-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.services-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll Offset for Anchor Links */
.scroll-mt-32 {
    scroll-margin-top: 8rem;
}

/* Service Section Transitions */
section[id] {
    transition: background-color 0.3s ease;
}

/* Sticky Navigation Active State */
.service-nav-link.active {
    background-color: #1e40af;
    color: white;
}

/* List Items */
ul li {
    opacity: 1;
}

/* Info Box Styles */
.bg-accent\/10,
.bg-secondary\/10,
.bg-primary\/10 {
    transition: all 0.3s ease;
}

.bg-accent\/10:hover {
    background: rgba(6, 182, 212, 0.15);
    transform: translateX(5px);
}

.bg-secondary\/10:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateX(5px);
}

.bg-primary\/10:hover {
    background: rgba(30, 64, 175, 0.15);
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-badge {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .service-nav {
        position: relative;
        top: 0;
    }

    .scroll-mt-32 {
        scroll-margin-top: 6rem;
    }
}

/* ========================================
   CONTACT PAGE UNIQUE STYLES
   ======================================== */

/* Contact Hero Pattern */
.contact-hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Contact Method Cards */
.contact-method-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

/* Contact Icons */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-method-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact Form Container */
.contact-form-container {
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #1e40af, #0ea5e9, #06b6d4);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form-container:hover::before {
    opacity: 0.1;
}

/* Form Groups */
.form-group {
    opacity: 1;
}

/* Form Inputs */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.1);
}

/* Submit Button */
.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
    width: 400px;
    height: 400px;
}

.submit-button:active {
    transform: scale(0.98);
}

/* Why Call Cards */
.why-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Service Area Sections */
.service-area-section {
    opacity: 1;
    transition: all 0.3s ease;
}

.service-area-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-area-section span {
    transition: all 0.3s ease;
}

.service-area-section span:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.2);
}

/* FAQ Items */
.faq-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

.faq-question {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-answer.open {
    margin-top: 0.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Process Steps */
.process-step {
    opacity: 1;
}

.step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.2) rotate(360deg);
}

/* Contact CTA Pattern */
.contact-cta-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

/* Final CTA Button */
.final-cta-button {
    position: relative;
    overflow: hidden;
}

.final-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.final-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth Scroll to Form */
html {
    scroll-behavior: smooth;
}

/* Form Validation Styles */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Loading State for Submit Button */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation for Emergency Text */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.text-red-600.font-semibold {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-method-card {
        margin-bottom: 1rem;
    }

    .process-step {
        margin-bottom: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {

    .contact-method-card,
    .contact-form-container,
    .submit-button {
        box-shadow: none;
    }
}

/* Accessibility - Focus Styles */
.form-input:focus-visible,
.faq-question:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .contact-method-card,
    .why-card,
    .faq-item {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .contact-method-card,
    .form-group,
    .why-card,
    .service-area-section,
    .faq-item,
    .process-step {
        animation: none;
        opacity: 1;
    }

    .faq-answer {
        transition: none;
    }
}

/* Testimonial Cards */
.testimonial-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}