/**
 * TaxiHat Preview - Main Styles
 * Modern, Clean, Professional Design
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

.text-light-50 {
    opacity: 0.7;
}

/* Navbar Styles */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(13, 110, 253, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    will-change: transform;
    animation: movePattern 30s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50px, 50px, 0); }
}

.hero-content h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border: 5px solid #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    will-change: transform;
    animation: float 3s ease-in-out infinite;
}

.stat-card-1 {
    top: 20%;
    right: -10%;
}

.stat-card-2 {
    bottom: 15%;
    left: -10%;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -20px, 0); }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.stat-item {
    padding: 1rem;
}

.stat-item h2 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.feature-card {
    transition: var(--transition);
    overflow: hidden;
    will-change: transform;
}

.feature-card:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    transition: var(--transition);
    will-change: transform;
}

.feature-card:hover .feature-icon {
    transform: scale3d(1.1, 1.1, 1) rotate(5deg);
}

/* News Section */
.news-card {
    transition: var(--transition);
    overflow: hidden;
    will-change: transform;
}

.news-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.news-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    will-change: transform;
}

.news-card:hover img {
    transform: scale3d(1.05, 1.05, 1);
}

.news-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonial-card {
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-card .stars {
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    margin-top: 3rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.contact-info a {
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--warning-color) !important;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--warning-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    display: flex;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 1rem;
    transition: var(--transition);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.075) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stat-card-1, .stat-card-2 {
        display: none;
    }
    
    .features-section,
    .testimonials-section {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Performance optimizations for off-screen content */
.features-section,
.news-section,
.testimonials-section,
.cta-section,
.journey-section,
.nudnik-teaser-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: #fff;
}

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