/**
 * Custom ISP Theme Stylesheet
 * Brand Visual Direction: Deep Navy (#0a192f), Modern Blue (#0d6efd), Electric Cyan (#0dcaf0), Clean White
 */

:root {
    --primary-blue: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-cyan: #0dcaf0;
    --dark-navy: #0a192f;
    --navy-light: #162a45;
    --light-bg: #f8fafc;
    --card-border: #e2e8f0;
    --card-shadow: 0 10px 30px -10px rgba(10, 25, 47, 0.06);
    --card-hover-shadow: 0 20px 40px -15px rgba(13, 110, 253, 0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 70px; /* Offset for mobile bottom bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Utilities */
.bg-navy {
    background-color: var(--dark-navy) !important;
}
.bg-navy-light {
    background-color: var(--navy-light) !important;
}
.text-cyan {
    color: var(--secondary-cyan) !important;
}
.border-radius-lg {
    border-radius: var(--radius-lg) !important;
}
.border-radius-md {
    border-radius: var(--radius-md) !important;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--dark-navy);
    color: #94a3b8;
    font-size: 0.84rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-bar a:hover {
    color: var(--secondary-cyan);
}

/* Sticky Header Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.05);
    transition: all 0.3s ease;
    padding: 12px 0;
}
.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 25px rgba(10, 25, 47, 0.1);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-navy);
    letter-spacing: -0.5px;
}
.navbar-brand span {
    color: var(--primary-blue);
}
.site-logo-img {
    height: auto;
    max-height: 120px;
    width: auto;
    object-fit: contain;
}
.nav-link {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0a192f 70%);
    color: white;
    padding: 80px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230dcaf0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    background: rgba(13, 202, 240, 0.12);
    color: var(--secondary-cyan);
    border: 1px solid rgba(13, 202, 240, 0.3);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 22px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}
.hero-card-box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 30px;
}

/* Stats Wrapper */
.stats-wrapper {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-navy);
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 32px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-blue);
}
.package-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: var(--card-hover-shadow);
}
.package-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.package-speed {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

/* Why Choose Us & Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    padding: 26px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 80px;
    right: 22px;
    background-color: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* Mobile Fixed Bottom Navigation Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-bottom-item {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.mobile-bottom-item.active, .mobile-bottom-item:hover {
    color: var(--secondary-cyan);
}
.mobile-bottom-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

/* Package Horizontal Slider Grid (Desktop & Mobile) */
#packagesGrid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    gap: 20px;
    padding: 15px 5px 30px 5px !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
    cursor: grab;
    user-select: none;
}

#packagesGrid.active-dragging {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
    scroll-behavior: auto !important;
}

/* Desktop View (>= 992px): Show exactly 4 cards visible at a time */
@media (min-width: 992px) {
    #packagesGrid > [class*='col-'] {
        flex: 0 0 calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
    }
}

/* Tablet View (768px - 991px): Show 3 cards visible at a time */
@media (min-width: 768px) and (max-width: 991px) {
    #packagesGrid > [class*='col-'] {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
    }
}

/* Mobile View (< 768px): Show 84% card width for snap swipe */
@media (max-width: 767px) {
    #packagesGrid > [class*='col-'] {
        flex: 0 0 84% !important;
        max-width: 84% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
    }
}

/* Completely Hide Scrollbar */
#packagesGrid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 50px 0 75px;
        text-align: center;
    }
    /* Mobile Bottom Sheet Modal */
    .mobile-bottom-sheet .modal-dialog {
        margin: 0;
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }
    .mobile-bottom-sheet .modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    }
}
