/* Custom styles for BusTruckService website */

/* Red Stripe */
.red-stripe {
    width: 100%;
    height: 10px;
    background-color: #dc3545;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #666 !important;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

.navbar-nav .nav-link.active {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    margin-left: 0.5em;
}

.services-dropdown {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    margin-top: 8px;
}

.services-dropdown .dropdown-item {
    color: #333 !important;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.services-dropdown .dropdown-item:hover,
.services-dropdown .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #dc3545 !important;
    transform: translateX(5px);
}

.services-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: #dee2e6;
}

/* Desktop hover effect */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .services-dropdown {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        border-radius: 0;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .services-dropdown .dropdown-item {
        padding: 12px 30px;
        border-bottom: 1px solid #dee2e6;
    }

    .services-dropdown .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero-section {
    /* Height determined by image */
}

.hero-section .row {
    align-items: stretch;
}

.hero-section .col-lg-6 {
    display: flex;
    flex-direction: column;
}

.hero-image {
    flex: 1;
    overflow: hidden;
    display: flex;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="truck" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M20,60 Q30,50 40,60 Q50,70 60,60 Q70,50 80,60" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23truck)"/></svg>') no-repeat center right;
    background-size: contain;
    opacity: 0.3;
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Map Container */
.map-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    visibility: hidden;
}

.map-container.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.map-container iframe {
    border-radius: 8px 8px 0 0;
}

.map-address {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.map-address p {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    background-color: #f8f9fa;
}

.main-content h2 {
    color: #333;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.main-content p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Buttons */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Contact Footer */
.contact-footer {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.contact-item h5 {
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-item i {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-item p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Footer */
footer.bg-dark {
    background-color: #2c2c2c !important;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

footer h5 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

footer ul li {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer ul li:hover {
    color: #fff;
}

footer p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.social-icons a {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content {
        text-align: center;
        padding: 40px 20px !important;
    }

    .main-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-footer .row {
        text-align: center;
    }

    .contact-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        min-height: 300px;
        object-fit: cover;
    }

    .hero-content {
        /* Height matches image on mobile */
    }

    .logo-img {
        height: 40px;
        max-width: 200px;
    }

    .map-container {
        margin-top: 15px;
    }

    .map-container iframe {
        height: 250px;
    }

    .map-address {
        padding: 12px;
    }

    .map-address p {
        font-size: 13px;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.main-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Typography improvements */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

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

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

/* Additional scroll effects */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Contact Page Styles */
.contact-section {
    background-color: #f8f9fa;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.contact-info {
    padding: 20px;
}

.contact-block {
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #dc3545;
}

.contact-detail {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-address {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-input,
.contact-textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
    background-color: white;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    background-color: #dc3545;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-submit-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Map Section */
.map-section {
    background-color: #f0f0f0 !important;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.map-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.large-map-container {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.large-map-container iframe {
    border-radius: 12px;
}

/* Responsive adjustments for contact page */
@media (max-width: 991.98px) {
    .contact-title {
        font-size: 2.5rem;
    }

    .contact-form-container {
        margin-top: 2rem;
    }

    .map-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-title {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 20px;
    }

    .contact-input,
    .contact-textarea {
        padding: 10px 14px;
    }

    .map-title {
        font-size: 1.8rem;
    }

    .large-map-container iframe {
        height: 350px;
    }
}

/* Contact detail click effects */
.contact-detail {
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-detail:hover {
    color: #dc3545;
}

/* Form validation styles */
.contact-input.is-valid,
.contact-textarea.is-valid {
    border-color: #28a745;
    background-color: #f8fff9;
}

.contact-input.is-invalid,
.contact-textarea.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contact-input.is-valid:focus,
.contact-textarea.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.contact-input.is-invalid:focus,
.contact-textarea.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Services Page Styles */
.services-hero {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('/image/photo-1619642751034-765dfdf7c58e.jpg') center/cover;
}

.services-hero-content {
    position: relative;
    height: 100%;
}

.services-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.min-vh-70 {
    min-height: 50vh;
}

.services-hero-text {
    color: white;
}

.signup-btn {
    background-color: #dc3545;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signup-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
}

.services-title {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Service Description Section */
.service-description {
    background-color: white;
}

.service-intro {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Service Details Section */
.service-details {
    background-color: #f8f9fa !important;
}

.service-image img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.service-detail-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #dc3545;
}

.dot:hover {
    background-color: #dc3545;
}

/* Solutions Section */
.solutions-section {
    background-color: white;
}

.solutions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.solutions-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.solution-card {
    padding: 30px 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-icon {
    font-size: 3rem;
    color: #dc3545;
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.solution-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Partners Section */
.partners-section {
    background-color: #f8f9fa !important;
}

.partners-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

/* Responsive adjustments for services page */
@media (max-width: 991.98px) {
    .services-title {
        font-size: 3.5rem;
    }

    .services-subtitle {
        font-size: 1.3rem;
    }

    .solutions-title {
        font-size: 2rem;
    }

    .partners-title {
        font-size: 2rem;
    }

    .service-detail-title {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .services-title {
        font-size: 2.5rem;
    }

    .services-subtitle {
        font-size: 1.1rem;
    }

    .signup-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .solutions-title {
        font-size: 1.8rem;
    }

    .partners-title {
        font-size: 1.8rem;
    }

    .service-detail-title {
        font-size: 1.8rem;
    }

    .solution-card {
        margin-bottom: 2rem;
    }

    .partner-logo {
        height: 80px;
    }

    .partner-logo img {
        max-height: 50px;
    }
}
