/* c:\xampp\htdocs\nkrroadlines\assets\css\style.css */
@import url('theme.css');

/* ==========================================================================
   Public Website Styles - NKR ROADLINES TMS
   ========================================================================== */

/* Sticky & Fixed Navigation */
#mainNav, .navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    width: 100%;
    z-index: 1040 !important;
    background-color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(12, 31, 63, 0.08);
}

#mainNav.scrolled, .navbar.sticky-top.scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(12, 31, 63, 0.12) !important;
    border-bottom: 2px solid #c8a415;
}

#mainNav .navbar-brand img {
    transition: all 0.3s ease;
}

#mainNav.scrolled .navbar-brand img {
    height: 44px !important;
    max-height: 44px !important;
}

#mainNav.scrolled .navbar-brand h1 {
    font-size: 1.2rem !important;
}

#mainNav.scrolled .navbar-brand p {
    font-size: 0.62rem !important;
}

.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: transparent;
    transition: var(--transition);
    padding: 15px 0;
}

.navbar-custom.scrolled {
    background-color: var(--primary);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-custom .navbar-brand img {
    height: 40px;
    transition: var(--transition);
}

.navbar-custom .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .btn-custom {
    background-color: var(--secondary);
    color: var(--text-light);
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    border: none;
}

.navbar-custom .btn-custom:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.hero .floating-stats {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-around;
    z-index: 10;
    animation: slideIn 1.5s ease;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Styles & Reveal Animations */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Section & Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-card);
    border: 4px solid var(--secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Cards */
.service-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(12, 31, 63, 0.25);
}

.service-card i {
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover h4,
.service-card:hover .card-title {
    color: #ffffff !important;
}

.service-card:hover p,
.service-card:hover .card-text,
.service-card:hover .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.service-card:hover a,
.service-card:hover .text-primary {
    color: #e6c84a !important;
}

.service-card:hover a i {
    color: #e6c84a !important;
    transform: translateX(4px);
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #c8a415, #e6c84a) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(200, 164, 21, 0.45);
}

.service-card:hover .icon-wrapper i {
    color: #ffffff !important;
}

/* Fleet Showcase */
.fleet-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary);
    padding: 8px 25px;
    border-radius: 30px;
    margin: 0 5px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

.fleet-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.fleet-item img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.fleet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.fleet-item:hover .fleet-overlay {
    opacity: 1;
}

.fleet-item:hover img {
    transform: scale(1.1);
}

.fleet-overlay h4, .fleet-overlay p {
    color: var(--text-light);
}

/* Statistics Counter */
.statistics {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0;
}

.statistics h2 {
    color: var(--text-light);
}

.counter-box {
    text-align: center;
}

.counter-box i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.counter-num {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.testimonial-card .quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    opacity: 0.3;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Contact Section */
.contact-info-card {
    background: var(--primary);
    color: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-info-card i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

/* Booking Form Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-indicator {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.step-indicator.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-light);
}

.step-indicator.completed {
    border-color: var(--success);
    background: var(--success);
    color: var(--text-light);
}

/* Tracking Page */
.tracking-timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: var(--border-color);
}

.tracking-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.tracking-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.tracking-item.active .tracking-icon {
    border-color: var(--primary);
    color: var(--primary);
}

.tracking-item.completed .tracking-icon {
    border-color: var(--success);
    background: var(--success);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aabf;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #a0aabf;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}

#backToTop:hover {
    background: var(--secondary);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Loading Spinner */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9)), url('../images/header-bg.jpg') center/cover;
    padding: 120px 0 60px;
    color: var(--text-light);
    text-align: center;
}

.page-header h1 {
    color: var(--text-light);
}

/* Login/Register Card */
.auth-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 30px;
    text-align: center;
}

.auth-body {
    padding: 40px;
}

/* Customer Portal Sidebar */
.customer-sidebar {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.customer-sidebar .nav-link {
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.customer-sidebar .nav-link:hover,
.customer-sidebar .nav-link.active {
    background: var(--primary);
    color: var(--text-light);
}

/* Print Styles */
@media print {
    .navbar-custom, .footer, .whatsapp-btn, #backToTop {
        display: none !important;
    }
    body {
        background: white;
    }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .hero .floating-stats {
        flex-direction: column;
        width: 95%;
        bottom: -150px;
    }
    .stat-item {
        margin-bottom: 20px;
    }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
}
