/* Sea and Garment LLC - Custom Styles */

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Floating animation for shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for map markers */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.marker-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.5);
    animation: pulse 2s ease-out infinite;
}

/* Custom marker styles */
.custom-marker {
    background: #3B82F6;
    border: 3px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-marker.hub {
    width: 20px;
    height: 20px;
    background: #0F172A;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 150px;
}

.popup-content {
    padding: 12px 16px;
}

.popup-content h4 {
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}

.popup-content p {
    color: #64748B;
    font-size: 14px;
}

.leaflet-popup-tip {
    background: white;
}

/* Route line animation */
@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.animated-route {
    stroke-dasharray: 10 10;
    animation: dash 3s linear infinite;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

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

/* Category card overlay */
.category-card .aspect-\[4\/3\] > svg {
    transition: transform 0.5s ease;
}

/* Process step connector */
.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.process-step:last-child::before {
    display: none;
}

@media (max-width: 1024px) {
    .process-step::before {
        display: none;
    }
}

/* Timeline connector for about page */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 48px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

@media (max-width: 1024px) {
    .timeline-item::after {
        display: none;
    }
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form validation states */
input.error,
select.error,
textarea.error {
    border-color: #ef4444;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.success,
select.success,
textarea.success {
    border-color: #10B981;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

#mobile-menu.active {
    max-height: 400px;
}

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

/* Hero text animation initial states */
.hero-subtitle,
.hero-title,
.hero-description,
.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
}

/* Stats counter */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Service option selected state */
.service-option input:checked + div {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.5s ease;
}

/* Quote form step transitions */
.form-step {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.form-step.slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
}

.form-step.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Accessibility - Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Reduce motion for accessibility */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .category-card,
    .advantage-card {
        border-width: 2px;
    }
}

/* Dark mode preparation (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later */
}