/* Star Skips Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #55acee;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #339BEB;
}

/* Float animation for truck */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Slow float animation for decorative elements */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Pulse glow effect for triangles */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Slow pulse animation */
@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Slow spin animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Slow bounce animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Blob morphing animation */
@keyframes blob {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(5deg);
    }
    50% {
        transform: scale(0.95) rotate(-5deg);
    }
    75% {
        transform: scale(1.02) rotate(3deg);
    }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

/* Reverse blob animation */
@keyframes blob-reverse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(0.95) rotate(-3deg);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    75% {
        transform: scale(0.98) rotate(-2deg);
    }
}

.animate-blob-reverse {
    animation: blob-reverse 10s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Header scroll effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Custom selection color */
::selection {
    background-color: #55acee;
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #55acee;
    outline-offset: 2px;
}

/* Form input styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #55acee;
    box-shadow: 0 0 0 3px rgba(85, 172, 238, 0.2);
}

/* Custom checkbox styling */
input[type="checkbox"] {
    accent-color: #55acee;
}

/* Custom radio button indicator */
input[type="radio"]:checked + span {
    border-color: #55acee;
    background-color: #55acee;
}

input[type="radio"]:checked + span span {
    display: block !important;
}

/* FAQ accordion styles */
.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    display: block;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Chat window animation */
#chat-window {
    transform-origin: bottom right;
    animation: chatOpen 0.3s ease-out;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Chat message animation */
.chat-message {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for chat button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 172, 238, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(85, 172, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 172, 238, 0);
    }
}

#chat-toggle {
    animation: pulse 2s infinite;
}

#chat-toggle:hover {
    animation: none;
}

/* Hero section parallax effect */
#hero {
    background-attachment: fixed;
}

/* Skip size cards hover */
.skip-card {
    transition: all 0.3s ease;
}

.skip-card:hover {
    border-color: #55acee;
    box-shadow: 0 10px 40px rgba(85, 172, 238, 0.2);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #55acee 0%, #339BEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu animation */
#mobile-nav {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button animation */
#back-to-top.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

/* Form success animation */
#form-success,
#contact-success {
    animation: fadeIn 0.5s ease-out;
}

/* Image lazy loading placeholder - removed background for transparent images */

/* Print styles */
@media print {
    header,
    footer,
    #chatbot-container,
    #back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Reduced 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) {
    .bg-primary {
        background-color: #0066cc !important;
    }

    .text-primary {
        color: #0066cc !important;
    }

    .border-primary {
        border-color: #0066cc !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }
    */
}

/* Fix for iOS fixed positioning */
@supports (-webkit-touch-callout: none) {
    .fixed {
        position: sticky;
    }
}

/* Ensure proper spacing on all pages */
main {
    min-height: 100vh;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Logo background fix - blend grey background with white */
header img[alt*="Logo"] {
    mix-blend-mode: multiply;
    background-color: white;
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
