/* Custom Styles for CityRyde */

:root {
    --color-green: #10B963;
    --color-blue: #0b6ba3;
    --color-green-light: #d1fae5;
    --color-blue-light: #dbeafe;
}

* {
    scroll-behavior: smooth;
}

/* Custom Color Classes */
.text-green {
    color: #10B963 !important;
}

.text-blue {
    color: #0b6ba3 !important;
}

.bg-green {
    background-color: #10B963 !important;
}

.bg-blue {
    background-color: #0b6ba3 !important;
}

.bg-light-green {
    background-color: #d1fae5 !important;
}

.bg-light-blue {
    background-color: #dbeafe !important;
}

.bg-light-green-50 {
    background-color: #f0fdf4 !important;
}

.bg-light-blue-50 {
    background-color: #f0f9ff !important;
}

.border-green {
    border-color: #10B963 !important;
}

.border-blue {
    border-color: #0b6ba3 !important;
}

.border-light-green {
    border-color: #d1fae5 !important;
}

.border-light-blue {
    border-color: #dbeafe !important;
}

.from-green {
    --tw-gradient-from: #10B963 var(--tw-gradient-stops);
}

.to-blue {
    --tw-gradient-to: #0b6ba3;
}

.from-light-green {
    --tw-gradient-from: #d1fae5 var(--tw-gradient-stops);
}

.to-light-blue {
    --tw-gradient-to: #dbeafe;
}

.from-light-green-50 {
    --tw-gradient-from: #f0fdf4 var(--tw-gradient-stops);
}

.from-light-green.to-light-green-50 {
    background: linear-gradient(135deg, #d1fae5, #f0fdf4);
}

.hover\:text-green:hover {
    color: #10B963 !important;
}

.hover\:bg-light-green-50:hover {
    background-color: #f0fdf4 !important;
}

.hover\:border-green:hover {
    border-color: #10B963 !important;
}

.hover\:border-light-green:hover {
    border-color: #d1fae5 !important;
}

/* Accordion Styles */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-btn {
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background-color: #f3f4f6;
}

.accordion-btn i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-btn i,
.accordion-item.active .accordion-btn svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.show {
    max-height: 1000px;
    opacity: 1;
    animation: slideDown 0.3s ease;
}

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

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

/* Gradient Text */
.bg-gradient-to-r {
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tab Styles */
.tab-btn {
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #0b6ba3;
}

.tab-btn.active {
    color: #10B963 !important;
    border-bottom-color: #10B963 !important;
}

.tab-btn.active:hover {
    color: #10B963 !important;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Pricing Card Toggle */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card.hidden {
    display: none;
}

.pricing-card-premium {
    transition: all 0.3s ease;
    display: none;
}

.pricing-card-premium.visible {
    display: block;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .accordion-content.show {
        max-height: 1000px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Transitions */
a {
    transition: color 0.3s ease;
}

/* Form Validation */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Mobile Menu Support */
@media (max-width: 768px) {
    .hidden.md\:flex {
        display: none;
    }
}

/* Grid Alignment */
.grid-center {
    display: grid;
    place-items: center;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow Enhancements */
.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.shadow-medium {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Border Styles */
.border-soft {
    border-color: #f3f4f6;
}

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

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }

    body {
        background: white;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

/* Utility Classes */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Icon Animations */
.icon-rotate {
    transition: transform 0.3s ease;
}

.icon-rotate.rotate {
    transform: rotate(180deg);
}

/* Success Message */
.success-message {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
