/* TajirBook Custom Styles */

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

/* Custom Colors */
:root {
    --primary-color: #3BB77E;
    --secondary-color: #253D4E;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* News Flash Animation */
#news-flash {
    overflow: hidden;
    height: 20px;
}

#news-flash ul {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: newsFlash 12s infinite;
}

#news-flash ul li {
    height: 20px;
    line-height: 20px;
}

@keyframes newsFlash {
    0%, 30% {
        transform: translateY(0);
    }
    33%, 63% {
        transform: translateY(-20px);
    }
    66%, 96% {
        transform: translateY(-40px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Smooth Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Card Hover Effects */
.feature-card, .pricing-card, .step-card, .value-card {
    transition: all 0.3s ease;
}

.feature-card:hover, .pricing-card:hover, .step-card:hover, .value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Badge Styles */
.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a9d5f;
}

/* Accordion Custom Styles */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Form Input Focus */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 183, 126, 0.25);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pricing Toggle Switch */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Social Icons Hover */
.mobile-social-icon a i {
    transition: all 0.3s ease;
}

.mobile-social-icon a:hover i {
    transform: scale(1.2);
    color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    background: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #2a9d5f !important;
    transform: translateY(-5px);
}

/* Mobile Menu Enhancements */
.mobile-menu li a {
    transition: all 0.2s ease;
}

.mobile-menu li a:hover {
    color: var(--primary-color) !important;
    padding-left: 15px;
}

/* Footer Link Hover */
.footer-list li a {
    transition: all 0.2s ease;
}

.footer-list li a:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}

/* Custom Container Widths */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 28px !important;
    }
    
    .hero-content h1 {
        font-size: 36px !important;
    }
}

/* Print Styles */
@media print {
    .header-area, .footer, .back-to-top, .btn {
        display: none !important;
    }
}

/* Accessibility Improvements */
.btn:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Performance Optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Cookie Consent Banner Styles (if needed) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* Newsletter Form Styles */
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* Success/Error Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Custom Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}
