/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode styles */
.dark {
    background-color: #0f172a;
    color: #f1f5f9;
}

.dark nav {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: #334155 !important;
}

.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-600 {
    color: #94a3b8 !important;
}

.dark .text-gray-900 {
    color: #f1f5f9 !important;
}

.dark .text-gray-800 {
    color: #f1f5f9 !important;
}

.dark .text-gray-500 {
    color: #64748b !important;
}

.dark .text-gray-400 {
    color: #94a3b8 !important;
}

.dark .bg-white {
    background-color: #1e293b !important;
}

.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

.dark .bg-gray-100 {
    background-color: #334155 !important;
}

.dark .bg-gray-100:hover,
.dark .bg-gray-200 {
    background-color: #475569 !important;
}

.dark .bg-gray-900 {
    background-color: #020617 !important;
}

.dark .border-gray-200 {
    border-color: #334155 !important;
}

.dark .border-gray-800 {
    border-color: #1e293b !important;
}

.dark input,
.dark textarea,
.dark select {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
}

.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5) !important;
}

.dark .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
}

.dark .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.dark .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

/* Fix hero section background */
.dark .bg-gradient-to-br.from-blue-50 {
    background: linear-gradient(to bottom right, #1e293b, #0f172a, #134e4a) !important;
}

/* Fix blue badge in dark mode */
.dark .bg-blue-100 {
    background-color: #1e3a5f !important;
}

.dark .text-blue-700 {
    color: #93c5fd !important;
}

/* Fix about section gradient box */
.dark .bg-gradient-to-br.from-blue-100 {
    background: linear-gradient(to bottom right, #1e3a5f, #0f4c4c) !important;
}

/* Prevent text selection on specific elements only */
h1, h2, h3, h4, h5, h6,
nav,
.hero-section,
.pricing-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Keep form inputs selectable (users need to edit these) */
input,
textarea,
select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Proper cursor for interactive elements */
button,
a,
.faq-question {
    cursor: pointer;
}

/* Default cursor for non-interactive text */
body {
    cursor: default;
}

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

/* FAQ Animations */
.faq-question {
    cursor: pointer !important;
}

.faq-question svg {
    transition: transform 0.3s ease !important;
}

.faq-question.active svg {
    transform: rotate(180deg) !important;
}

.faq-answer {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    visibility: visible !important;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease !important;
}

.faq-answer.active {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
    visibility: visible !important;
}

/* Fade in on scroll animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Success message animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideIn 0.3s ease-out;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
