/* Custom styles to enhance Tailwind CSS */

/* Fallback styles in case Tailwind CSS fails to load */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Navigation fallback styles */
nav {
    background-color: #1e2d5f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f97316;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #f97316;
}

/* Button fallback styles */
.btn {
    background-color: #f97316;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #ea580c;
}

/* Container fallback styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero section fallback */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e2d5f 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Section fallback styles */
section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive design fallback */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Emergency fallback styles when Tailwind CSS fails to load */
.css-fallback {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background-color: #ffffff !important;
}

.css-fallback nav {
    background-color: #1e2d5f !important;
    color: white !important;
    padding: 1rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.css-fallback .hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e2d5f 100%) !important;
    color: white !important;
    padding: 4rem 2rem !important;
    text-align: center !important;
}

.css-fallback .hero-section h1 {
    font-size: 3rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    color: white !important;
}

.css-fallback .hero-section p {
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.9 !important;
}

.css-fallback .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.css-fallback .btn,
.css-fallback button {
    background-color: #f97316 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.css-fallback .btn:hover,
.css-fallback button:hover {
    background-color: #ea580c !important;
}

.css-fallback section {
    padding: 3rem 0 !important;
}

.css-fallback h2 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    color: #1e2d5f !important;
}

.css-fallback h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: #1e2d5f !important;
}

.css-fallback .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
}

.css-fallback .card {
    background: white !important;
    border-radius: 0.5rem !important;
    padding: 2rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
}

.css-fallback .text-center {
    text-align: center !important;
}

.css-fallback .hidden {
    display: none !important;
}

.css-fallback .block {
    display: block !important;
}

.css-fallback .flex {
    display: flex !important;
}

.css-fallback .items-center {
    align-items: center !important;
}

.css-fallback .justify-between {
    justify-content: space-between !important;
}

.css-fallback .space-y-4 > * + * {
    margin-top: 1rem !important;
}

.css-fallback .mb-4 {
    margin-bottom: 1rem !important;
}

.css-fallback .mt-8 {
    margin-top: 2rem !important;
}

.css-fallback .p-4 {
    padding: 1rem !important;
}

.css-fallback .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.css-fallback .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.css-fallback .text-orange-500 {
    color: #f97316 !important;
}

.css-fallback .text-white {
    color: white !important;
}

.css-fallback .bg-white {
    background-color: white !important;
}

.css-fallback .rounded-lg {
    border-radius: 0.5rem !important;
}

.css-fallback .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
    .css-fallback .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .css-fallback .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .css-fallback section {
        padding: 2rem 0 !important;
    }
    
    .css-fallback .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.pulse-slow {
    animation: pulse 2s infinite;
}

.bounce-slow {
    animation: bounce 2s infinite;
}

/* Custom button hover effects */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced mobile menu transition */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-exit {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Custom slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Testimonial dots */
.testimonial-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

.testimonial-dot.active {
    background-color: #f97316 !important;
    transform: scale(1.1);
}

/* FAQ accordion styles */
.faq-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-content.show {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Exit intent overlay */
.exit-overlay {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.exit-overlay .modal-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading spinner for iframes */
.iframe-loading {
    position: relative;
}

.iframe-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

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

/* Sticky elements */
.sticky-element {
    transition: all 0.3s ease;
}

.sticky-element:hover {
    transform: scale(1.1);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Custom input styles for forms */
.custom-input {
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Hero section background animation */
.hero-bg {
    background: linear-gradient(-45deg, #ffffff, #f9fafb, #f3f4f6, #ffffff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-orange-500 {
        background-color: #000000 !important;
    }
    
    .text-orange-500 {
        color: #000000 !important;
    }
    
    .border-orange-500 {
        border-color: #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .dark-mode-text {
        color: #ffffff;
    }
    
    .dark-mode-bg {
        background-color: #1f2937;
    }
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border-image: linear-gradient(135deg, #f97316, #ea580c) 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive image optimization */
img {
    max-width: 100%;
    height: auto;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
