/* Grobold Font - Local */
.bg-subtle-gray{
    background-color: #F4F3F1;
}

/* ===================================
   VIDEO SECTION STYLES
   =================================== */

/* Video Container */
.video-wrapper {
    max-width: 950px;
}

/* Video Section Background */
#video-section {
    background-color: #1a1a1a;
}

#video-section .container {
    position: relative;
    z-index: 2;
}

/* Responsive Width Utility */
.responsive-width {
    width: 75%;
}

/* ===================================
   HORIZONTAL SCROLL CONTAINER
   =================================== */

/* Horizontal Scroll Container */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.scroll-container .card {
    flex: 0 0 auto;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background-color: #9ca3af;
    transform: scale(1.2);
}

.pagination-dot.active {
    background-color: #FF6900;
    width: 24px;
    border-radius: 5px;
}

/* ===================================
   FIX AOS SLIDE ANIMATIONS ON MOBILE
   =================================== */

/* Prevent horizontal overflow from AOS animations */
body {
    overflow-x: hidden !important;
}

/* Prevent horizontal overflow on containers but allow normal vertical flow */
.container,
.container-fluid {
    overflow-x: none;
}

/* Override slide-right and slide-left animations on mobile to prevent layout issues */
@media (max-width: 991px) {
    /* Replace slide animations with fade animations on tablet and mobile */
    [data-aos="slide-right"],
    [data-aos="slide-left"] {
        transform: none !important;
    }
    
    [data-aos="slide-right"][data-aos][data-aos-easing="ease"],
    [data-aos="slide-left"][data-aos][data-aos-easing="ease"] {
        transition-property: opacity !important;
    }
}

/* ===================================
   RESPONSIVE STYLES FOR FEATURE PAGES
   =================================== */

/* Tablet and Below (≤991px) */
@media (max-width: 991px) {
    /* Responsive Width */
    .responsive-width {
        width: 85%;
    }

    /* Hero Section */
    #hero-section {
        min-height: auto !important;
        padding: 4rem 0 !important;
    }

    #hero-section .display-2 {
        font-size: 2.5rem !important;
    }

    #hero-section .lead {
        font-size: 1.1rem !important;
    }

    /* All Display Headings */
    .display-4 {
        font-size: 2rem !important;
    }

    /* Section Spacing */
    section.py-5 {
        padding: 3rem 0 !important;
    }

    section.py-5 .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Text Width Constraints */
    .w-75 {
        width: 90% !important;
    }

    /* Image Carousel */
    #carousel-section-2 .position-relative {
        height: 300px !important;
    }

    /* Cards Section */
    #cards-section-4 .card {
        margin-bottom: 1rem;
    }

    /* Button Groups */
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100% !important;
    }

    /* Row Spacing on Mobile */
    .row {
        margin-bottom: 2rem;
    }

    .row .col-md-6:last-child {
        margin-top: 2rem;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* Responsive Width */
    .responsive-width {
        width: 95%;
    }

    /* Video Wrapper */
    .video-wrapper {
        width: 100% !important;
        padding: 0 0.5rem;
    }

    /* Hero Section */
    #hero-section .display-2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    #hero-section .lead {
        font-size: 1rem !important;
    }

    /* Display Headings */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    /* Lead Paragraphs */
    .lead {
        font-size: 1rem !important;
    }

    /* Section Padding */
    section.py-5 {
        padding: 2.5rem 0 !important;
    }

    section.py-5 .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Text Alignment */
    .text-center,
    .text-lg-start {
        text-align: center !important;
    }

    /* Feature List */
    .feature-list li {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Image Carousel */
    #carousel-section-2 .position-relative {
        height: 250px !important;
    }

    /* Features Scroll Container */
    .scroll-container .card {
        width: 22rem !important;
    }

    /* Cards */
    #cards-section-4 .card-body {
        padding: 1rem !important;
    }

    #cards-section-4 .card-title {
        font-size: 1rem !important;
    }

    #cards-section-4 .card-text {
        font-size: 0.875rem !important;
    }

    /* Spacing Utilities */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mt-4 {
        margin-top: 1.5rem !important;
    }

    /* Column Spacing */
    .row .col-md-6 {
        margin-bottom: 1.5rem;
    }

    .row .col-md-6:last-child {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Small Mobile (≤576px) */
@media (max-width: 576px) {
    /* Hero Section */
    #hero-section {
        padding: 8rem 0 1rem 0 !important;
    }

    #hero-section .display-2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    #hero-section .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Display Headings */
    .display-4 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Lead Paragraphs */
    .lead {
        font-size: 0.95rem !important;
        padding: 0 0.5rem !important;
    }

    /* Section Padding */
    section.py-5 {
        padding: 2rem 0 !important;
    }

    section.py-5 .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Container Padding */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Text Width */
    .w-75,
    .mx-auto {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Feature List Icons */
    .feature-list .bi {
        font-size: 1.25rem !important;
    }

    .feature-list span {
        font-size: 0.9rem !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* Image Carousel */
    #carousel-section-2 .position-relative {
        height: 200px !important;
    }

    .btn-icon {
        padding: 0.5rem !important;
    }

    /* Features Scroll Container */
    .scroll-container .card {
        width: 18rem !important;
    }

    .scroll-container .card-body {
        padding: 1.25rem !important;
    }

    .scroll-container [style*="width: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }

    /* Cards Section */
    #cards-section-4 .col-lg-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    #cards-section-4 .card {
        padding: 0.75rem !important;
    }

    #cards-section-4 .card-body {
        padding: 0.75rem !important;
    }

    #cards-section-4 .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    #cards-section-4 .card-text {
        font-size: 0.8rem !important;
    }

    #cards-section-4 .d-inline-flex {
        padding: 0.5rem !important;
    }

    #cards-section-4 .d-inline-flex i {
        font-size: 1rem !important;
    }

    /* Spacing Utilities */
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mt-4,
    .my-4 {
        margin-top: 1rem !important;
    }

    .gap-2,
    .gap-3 {
        gap: 0.5rem !important;
    }

    /* Row Gaps */
    .row.g-4 {
        --bs-gutter-y: 1rem !important;
    }

    .row.g-5 {
        --bs-gutter-y: 1.5rem !important;
    }

    /* Images */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    .rounded-5 {
        border-radius: 1rem !important;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    /* Hero Section */
    #hero-section .display-2 {
        font-size: 1.5rem !important;
    }

    /* Display Headings */
    .display-4 {
        font-size: 1.375rem !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Feature List */
    .feature-list span {
        font-size: 0.85rem !important;
    }

    /* Image Carousel */
    #carousel-section-2 .position-relative {
        height: 180px !important;
    }

    /* Card Icons */
    #cards-section-4 .d-inline-flex {
        padding: 0.4rem !important;
    }

    #cards-section-4 .d-inline-flex i {
        font-size: 0.9rem !important;
    }
}


/* Features Section - Card Images Fixed Height */
#featuresScrollContainer .card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 768px) {
    #featuresScrollContainer .card-img-top {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    #featuresScrollContainer .card-img-top {
        height: 160px;
    }
}