/* Mobile Menu Button */
.mobile-menu-btn {
    position: absolute;
    right: 0;
    top: 8;
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 180px;
    height: 100vh;
    background: #ffc107;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(110%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-sidebar.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}



.mobile-nav-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}



/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tablet & Mobile Responsive Design - 768px and below */
@media (max-width: 768px) {

    body {
        padding-top: 64px;
    }

    /* Prevent any element from stretching beyond the viewport */
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    img, video, iframe, table {
        max-width: 100%;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid, .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 45%;
        max-width: 45%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #quick-links {
        display: none;
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 400px;
    }
    
    .serving-img {
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Chatbot Mobile Styles */
    #chatbot-container {
        bottom: 15px;
        left: 15px;
    }
    
    #chatbot-window {
        position: fixed;
        bottom: 0;
        left: 10px;
        right: 10px;
        top: auto;
        width: auto;
        height: 60vh; /* Takes up 60% of screen height */
        max-height: 500px;
        border-radius: 12px 12px 0 0; /* Rounded only on top */
        z-index: 9999;
    }
    
    #chatbot-button {
        width: 55px;
        height: 55px;
    }
    
    #chatbot-header {
        padding: 15px;
        background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    }
    
    .header-info h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .header-info p {
        font-size: 12px;
        margin: 5px 0 0 0;
    }
    
    .close-btn {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
    .sidebar-close-btn{
        font-size: 2rem;
        width: 38px;
        height: 38px;
        position: absolute;
        top: 16px;
        left: 16px;
        background: #ffc107;
        color: #333;
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
    }

    
    #chatbot-messages {
        padding: 10px;
        font-size: 14px;
    }
    
    .message {
        max-width: 85%;
        margin-bottom: 12px;
    }
    
    .message.bot {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .message.user {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .quick-actions {
        gap: 6px;
        margin-top: 10px;
    }
    
    .quick-action {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 16px;
        flex: 1;
        min-width: auto;
        text-align: center;
    }
    
    #chatbot-quick-actions {
        padding: 12px 10px;
        background: white;
        border-top: 1px solid #e9ecef;
    }
    
    #chatbot-quick-actions .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }

    /* Mobile backdrop for chatbot */
    #chatbot-window::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: auto;
    }

    /* Slide up animation for mobile chatbot */
    #chatbot-window {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    #chatbot-window.open {
        transform: translateY(0);
    }
    .our-vehicle {
        padding: 60px 0;
    }
    
    .vehicle-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vehicle-image-container {
        order: -1;
        margin-bottom: 20px;
    }
    
    .vehicle-content h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .vehicle-features {
        gap: 20px;
    }
    
    .vehicle-feature {
        padding: 15px;
    }
    
    .vehicle-feature .feature-icon {
        font-size: 1.5rem;
        min-width: 30px;
    }
    
    .vehicle-cta {
        padding: 25px 20px;
    }
    .vehicle-cta .cta-btn{
        width: 100%;
        max-width: 100%;
    }
    .discover-cta .cta-btn{
        width: 100%;
        max-width: 100%;
    }
    .quick-links{
        display:none;
    }

    /* Hero image section - sub pages */
    .hero-image-section {
        margin: 24px 0;
        width: 100%;
        height: 100%;
    }

    .hero-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .hero-text-section h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .service-hero {
        padding: 40px 0;
    }

    .hero-description {
        margin: 20px 0;
        padding: 0 8px;
    }

    /* Feature cards grid - 2 columns side by side */
    .features-grid-professional {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Route cards - collapse to 1 column */
    .routes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-features h2,
    .route-info h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }


}

/* Small Mobile Devices - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .service-content, .team-content {
        padding: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .attraction-card, .beach-card {
        padding: 1.2rem;
    }
    
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }

    /* Very small screen chatbot adjustments */
    #chatbot-window {
        left: 5px;
        right: 5px;
        height: 55vh; /* Slightly smaller on very small screens */
    }
    
    #chatbot-container {
        bottom: 10px;
        left: 10px;
    }
    
    #chatbot-button {
        width: 50px;
        height: 50px;
    }
    
    .quick-action {
        font-size: 11px;
        padding: 7px 8px;
    }
    
    .header-info h3 {
        font-size: 15px;
    }
    
    .header-info p {
        font-size: 11px;
    }


     .vehicle-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 15px;
        font-size: 0.8rem;
    }
    
    .vehicle-image-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .vehicle-image {
        border-radius: 10px;
    }
    
    .vehicle-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .cta, .hero, header {
        background: #fff !important;
        color: #333 !important;
    }
    
    .nav-links, .cta-buttons {
        display: none;
    }
    
    .service-img, .team-img, .serving-img {
        background: #f5f5f5 !important;
    }
    
    .map-container iframe {
        border: 1px solid #ccc;
    }

    /* Hide mobile menu elements in print */
    .mobile-menu-btn, .mobile-sidebar, .mobile-overlay {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card, .team-card, .feature, .attraction-card, .beach-card, .faq-item {
        border: 2px solid #333;
    }
    
    .cta-btn {
        border: 2px solid #333;
    }


    
    .hamburger-line {
        background: #ffc107;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }

    /* Disable mobile menu animations for reduced motion */
    .mobile-sidebar,
    .mobile-overlay,
    .hamburger-line {
        transition: none !important;
    }
}