/* ====================================
   REWIND ASSOCIATES - PROFESSIONAL CLEAN THEME
   ==================================== */

/* ====================================
   1. CSS VARIABLES & RESETS
   ==================================== */
:root {
    --primary: #032a45;
    --primary-light: #333333;
    --accent: #FF6B35;
    --dark: #0A0A0A;
    --gray: #666666;
    --gray-light: #999999;
    --gray-bg: #F8F8F8;
    --white: #FFFFFF;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* CSS Background  */

.bg-main-blue {
    background-color: #032a45 !important;
}

.btn-outline-mian-white {
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

.btn-outline-mian-white:hover {
    background: #ffffff !important;
    color: var(--primary) !important;
}

.btn-outline-mian-blue {
    background: #032a45 !important;
    border: 1px solid #032a45 !important;
    color: #ffffff !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

/* ====================================
   2. TYPOGRAPHY WITH CUSTOM FONTS
   ==================================== */

/* Using Inter Font Family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray);
    background: var(--white);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Better text rendering */
body,
h1, h2, h3, h4, h5, h6, p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved button text */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Form labels */
.form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Navigation */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====================================
   3. NAVIGATION
   ==================================== */
.navbar {
    padding: 0.8rem 0;
    background: var(--white);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    height: 45px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    opacity: 0.8;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.nav-link:hover {
    color: var(--gray) !important;
}

/* ====================================
   4. BUTTONS
   ==================================== */
.btn {
    font-size: 14px;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    transition: var(--transition);
    border: none;
    text-transform: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #0173bb;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #e55a2b;
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 15px;
}

/* ====================================
   5. HERO SECTION - FIXED CENTERING
   ==================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Video Background Container */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Video Styling */
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Fallback Background Image */
.hero-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark Overlay - FIXED */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Content - FIXED CENTERING */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-content .row {
    width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content .col-lg-10,
.hero-content .col-xl-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Scroll Indicator - FIXED */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--white);
    transform: translateX(-50%) scale(1.1);
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ====================================
   RESPONSIVE HERO SECTION
   ==================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-section {
        height: 80vh;
        max-height: 750px;
    }

    .hero-section h1 {
        font-size: 4rem;
    }

    .hero-section .lead {
        font-size: 1.4rem;
        max-width: 750px;
    }
}

/* Desktop (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .hero-section {
        height: 85vh;
        min-height: 500px;
        max-height: 700px;
    }

    .hero-section h1 {
        font-size: 3.2rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
        max-width: 650px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-section {
        height: 85vh;
        min-height: 500px;
        max-height: 650px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .hero-section .lead {
        font-size: 1.15rem;
        max-width: 90%;
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 24px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .hero-section {
        height: 80vh;
        min-height: 480px;
        max-height: 600px;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero-section .lead {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-section .d-flex {
        padding: 0 1rem;
        width: 100%;
    }

    .hero-section .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 14px;
    }

    .scroll-indicator {
        bottom: 25px;
        font-size: 22px;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .hero-section {
        height: 80vh;
        min-height: 450px;
        max-height: 550px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-section .d-flex {
        flex-direction: row;
        gap: 0.75rem !important;
    }

    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Very Small Mobile (< 400px) */
@media (max-width: 399px) {
    .hero-section {
        height: 80vh;
        min-height: 420px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media (min-width: 1920px) {
    .hero-section {
        height: 65vh;
        max-height: 800px;
    }

    .hero-section h1 {
        font-size: 4.5rem;
    }

    .hero-section .lead {
        font-size: 1.5rem;
        max-width: 800px;
    }
}


/* ====================================
   STACKED IMAGES LAYOUT
   ==================================== */
.image-stack-wrapper {
    position: relative;
    height: 550px;
    width: 100%;
}

/* Main Large Image */
.image-stack-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 380px;
    z-index: 3;
    animation: fadeInLeft 1s ease;
}

.image-stack-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid var(--white);
}

/* Small Image 1 - Bottom Right */
.image-stack-small-1 {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 50%;
    height: 280px;
    z-index: 4;
    animation: fadeInRight 1s ease 0.3s backwards;
}

.image-stack-small-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid var(--white);
}

/* Small Image 2 - Top Right */
.image-stack-small-2 {
    position: absolute;
    top: 50px;
    right: 10%;
    width: 45%;
    height: 200px;
    z-index: 2;
    animation: fadeInDown 1s ease 0.6s backwards;
}

.image-stack-small-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 6px solid var(--white);
    opacity: 0.9;
}

/* Decorative Badge */
.image-stack-badge {
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.8s ease 0.9s backwards;
}

.badge-content {
    text-align: center;
    color: var(--white);
}

.badge-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
    line-height: 1;
}

.badge-content p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Stacked Images */
@media (max-width: 991px) {
    .image-stack-wrapper {
        height: 500px;
        margin-bottom: 2rem;
    }

    .image-stack-main {
        width: 75%;
        height: 320px;
    }

    .image-stack-small-1 {
        width: 55%;
        height: 240px;
        bottom: 60px;
    }

    .image-stack-small-2 {
        width: 48%;
        height: 180px;
        top: 40px;
    }

    .image-stack-badge {
        width: 100px;
        height: 100px;
        left: 12%;
    }

    .badge-content h3 {
        font-size: 2rem;
    }

    .badge-content p {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .image-stack-wrapper {
        height: 450px;
    }

    .image-stack-main {
        width: 80%;
        height: 280px;
    }

    .image-stack-small-1 {
        width: 60%;
        height: 200px;
        bottom: 50px;
    }

    .image-stack-small-2 {
        width: 50%;
        height: 150px;
        top: 30px;
        right: 5%;
    }

    .image-stack-badge {
        width: 90px;
        height: 90px;
        left: 10%;
        bottom: 10px;
    }

    .badge-content h3 {
        font-size: 1.75rem;
    }

    .badge-content p {
        font-size: 9px;
    }
}

@media (max-width: 575px) {
    .image-stack-wrapper {
        height: 380px;
    }

    .image-stack-main {
        width: 85%;
        height: 240px;
    }

    .image-stack-small-1 {
        width: 65%;
        height: 160px;
        bottom: 40px;
    }

    .image-stack-small-2 {
        width: 55%;
        height: 120px;
        top: 20px;
    }

    .image-stack-badge {
        width: 80px;
        height: 80px;
    }

    .badge-content h3 {
        font-size: 1.5rem;
    }

    .badge-content p {
        font-size: 8px;
    }
}

/* ====================================
   STACKED IMAGES LAYOUT - ABOUT PAGE (REVERSED)
   ==================================== */
.image-stack-wrapper-about {
    position: relative;
    height: 550px;
    width: 100%;
}

/* Main Large Image - RIGHT SIDE */
.image-stack-main-about {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 380px;
    z-index: 3;
    animation: fadeInRight 1s ease;
}

.image-stack-main-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid var(--white);
}

/* Small Image 1 - Bottom Left */
.image-stack-small-1-about {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 50%;
    height: 280px;
    z-index: 4;
    animation: fadeInLeft 1s ease 0.3s backwards;
}

.image-stack-small-1-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid var(--white);
}

/* Small Image 2 - Top Left */
.image-stack-small-2-about {
    position: absolute;
    top: 50px;
    left: 10%;
    width: 45%;
    height: 200px;
    z-index: 2;
    animation: fadeInDown 1s ease 0.6s backwards;
}

.image-stack-small-2-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 6px solid var(--white);
    opacity: 0.9;
}

/* Decorative Badge - Right Side */
.image-stack-badge-about {
    position: absolute;
    bottom: 0;
    right: 15%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, #0173bb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.8s ease 0.9s backwards;
}

.image-stack-badge-about .badge-content {
    text-align: center;
    color: var(--white);
}

.image-stack-badge-about .badge-content i {
    color: var(--white);
    opacity: 0.9;
}

.image-stack-badge-about .badge-content p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

/* Icon Circle for Highlights */
.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--gray-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.icon-circle:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Responsive - About Page Stacked Images */
@media (max-width: 991px) {
    .image-stack-wrapper-about {
        height: 500px;
        margin-bottom: 2rem;
    }

    .image-stack-main-about {
        width: 75%;
        height: 320px;
    }

    .image-stack-small-1-about {
        width: 55%;
        height: 240px;
        bottom: 60px;
    }

    .image-stack-small-2-about {
        width: 48%;
        height: 180px;
        top: 40px;
    }

    .image-stack-badge-about {
        width: 100px;
        height: 100px;
        right: 12%;
    }

    .image-stack-badge-about .badge-content i {
        font-size: 2rem;
    }

    .image-stack-badge-about .badge-content p {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .image-stack-wrapper-about {
        height: 450px;
    }

    .image-stack-main-about {
        width: 80%;
        height: 280px;
    }

    .image-stack-small-1-about {
        width: 60%;
        height: 200px;
        bottom: 50px;
    }

    .image-stack-small-2-about {
        width: 50%;
        height: 150px;
        top: 30px;
        left: 5%;
    }

    .image-stack-badge-about {
        width: 90px;
        height: 90px;
        right: 10%;
        bottom: 10px;
    }

    .image-stack-badge-about .badge-content i {
        font-size: 1.75rem;
        margin-bottom: 0.25rem !important;
    }

    .image-stack-badge-about .badge-content p {
        font-size: 9px;
    }

    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .image-stack-wrapper-about {
        height: 380px;
    }

    .image-stack-main-about {
        width: 85%;
        height: 240px;
    }

    .image-stack-small-1-about {
        width: 65%;
        height: 160px;
        bottom: 40px;
    }

    .image-stack-small-2-about {
        width: 55%;
        height: 120px;
        top: 20px;
    }

    .image-stack-badge-about {
        width: 80px;
        height: 80px;
    }

    .image-stack-badge-about .badge-content i {
        font-size: 1.5rem;
    }

    .image-stack-badge-about .badge-content p {
        font-size: 8px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ====================================
   6. PAGE HEADER WITH BACKGROUND
   ==================================== */
.page-header-bg {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

/* ====================================
   7. SECTIONS
   ==================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 3rem;
}

.bg-light {
    background: var(--gray-bg) !important;
}

/* ====================================
   8. CARDS
   ==================================== */
.card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    height: 300px;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.card-img-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* ====================================
   9. ICON BOXES
   ==================================== */
.icon-box {
    width: 80px;
    height: 80px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--gray-bg);
    color: var(--primary);
}

/* ====================================
   10. EQUIPMENT CATALOG
   ==================================== */
.equipment-sidebar {
    position: sticky;
    top: 120px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: block;
    padding: 1rem;
    background: var(--gray-bg);
    border-radius: 0;
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.category-item:hover .badge,
.category-item.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
}

.category-name {
    font-weight: 500;
    font-size: 15px;
}

/* Equipment Cards */
.equipment-card {
    transition: var(--transition);
    overflow: hidden;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.equipment-card-img {
    position: relative;
    height: 250px;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.equipment-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-card-img img {
    transform: scale(1.1);
}

/* List View Styles */
.equipment-list-view .equipment-card {
    display: flex;
    flex-direction: row;
    height: 200px;
}

.equipment-list-view .equipment-card-img {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
}

.equipment-list-view .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* ====================================
   EQUIPMENT GRID/LIST VIEW TOGGLE
   ==================================== */

/* Grid View - 3 COLUMNS DEFAULT */
#equipmentGrid {
    transition: all 0.3s ease;
}

#equipmentGrid:not(.list-view) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

#equipmentGrid:not(.list-view)>div {
    width: 100% !important;
}

/* Hide list-only elements in grid view */
#equipmentGrid:not(.list-view) .equipment-meta,
#equipmentGrid:not(.list-view) .equipment-specs-preview {
    display: none !important;
}

/* List View - Full Width with Details */
#equipmentGrid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#equipmentGrid.list-view>div {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
}

#equipmentGrid.list-view .equipment-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 220px;
}

#equipmentGrid.list-view .equipment-card-img {
    width: 280px;
    min-width: 280px;
    height: 220px;
    flex-shrink: 0;
    padding: 2rem;
}

#equipmentGrid.list-view .equipment-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

#equipmentGrid.list-view .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    flex-grow: 1;
}

#equipmentGrid.list-view .equipment-header h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#equipmentGrid.list-view .short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

/* Equipment Meta - List View Only */
#equipmentGrid.list-view .equipment-meta {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

#equipmentGrid.list-view .availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: #28a745;
}

#equipmentGrid.list-view .availability-badge i {
    font-size: 8px;
}

#equipmentGrid.list-view .equipment-kit-count {
    font-size: 13px;
}

/* Specs Preview - List View Only */
#equipmentGrid.list-view .equipment-specs-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#equipmentGrid.list-view .spec-item-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

#equipmentGrid.list-view .spec-item-preview i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Button Layout in List View */
#equipmentGrid.list-view .equipment-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#equipmentGrid.list-view .btn-view-details {
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
    padding: 0.65rem 1rem;
}

#equipmentGrid.list-view .btn-add-cart {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Grid View Button Layout */
#equipmentGrid:not(.list-view) .btn-view-details {
    flex-grow: 1;
}

#equipmentGrid:not(.list-view) .btn-add-cart {
    width: auto;
    padding: 0.375rem 0.75rem;
}

/* View Toggle Buttons */
.view-toggle-btn {
    transition: var(--transition);
}

.view-toggle-btn.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

/* Responsive Grid Columns */
@media (max-width: 1199px) {
    #equipmentGrid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #equipmentGrid:not(.list-view) {
        grid-template-columns: 1fr;
    }

    #equipmentGrid.list-view .equipment-card {
        flex-direction: column;
        min-height: auto;
    }

    #equipmentGrid.list-view .equipment-card-img {
        width: 100%;
        height: 200px;
    }

    #equipmentGrid.list-view .card-body {
        padding: 1.5rem;
    }

    #equipmentGrid.list-view .btn-view-details {
        flex-grow: 1;
        max-width: none;
    }

    #listView {
        display: none !important;
    }
}

/* ====================================
   11. CATEGORY CARDS (HOMEPAGE)
   ==================================== */
.category-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(0%);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    transition: var(--transition);
}

.category-content {
    color: var(--white);
}

.category-content h4 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.category-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.category-card:hover img {
    transform: scale(1.05);
}

/* ====================================
   12. STATS SECTION
   ==================================== */
.stats-section {
    /* background: var(--primary); */
    color: var(--white);
    padding: 6rem 0;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ====================================
   13. PROCESS STEPS
   ==================================== */
.step-number {
    width: 70px;
    height: 70px;
    font-size: 24px;
    font-weight: 700;
    background: var(--gray-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step {
    text-align: center;
}

.process-step h5 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 15px;
}

/* ====================================
   14. TESTIMONIALS
   ==================================== */
.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonial-card .lead {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.7;
}

.rating i {
    color: #FFC107;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-light);
}

.carousel-indicators button {
    width: 40px;
    height: 3px;
    border-radius: 0;
    background: var(--gray-light);
}

.carousel-indicators button.active {
    background: var(--primary);
}

/* ====================================
   15. SHOPPING CART SIDEBAR
   ==================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--gray-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-header small {
    color: var(--gray);
    font-size: 13px;
}

.cart-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.cart-close:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--gray-bg);
    margin-bottom: 1rem;
    animation: slideInRight 0.4s ease;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-details p {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 0;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--gray-bg);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.cart-empty i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 0.5s ease;
}


/* ====================================
   17. FORMS
   ==================================== */
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--primary);
    padding: 0.875rem 1rem;
    font-size: 15px;
    transition: var(--transition);
    border-radius: 0;
}

.form-control:focus,
.form-select:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.form-control::placeholder {
    color: var(--gray-light);
}

/* ====================================
   18. MODALS
   ==================================== */
.modal-content {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--gray-bg);
}

.modal-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

/* ====================================
   19. ACCORDION
   ==================================== */
.accordion-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0.5rem;
    border-radius: 0;
}

.accordion-button {
    background: var(--gray-bg);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    background: var(--white);
    color: var(--gray);
    font-size: 14px;
}

/* ====================================
   20. FOOTER
   ==================================== */
footer {
    background: var(--primary);
    color: var(--white);
    border-top: none;
}

footer h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

footer a:hover {
    color: var(--white) !important;
}

.social-links a {
    width: 20px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ====================================
   21. ANIMATIONS
   ==================================== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ====================================
   22. RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .equipment-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .page-header-bg {
        min-height: 250px;
    }

    /* List view disable on mobile */
    .equipment-list-view .equipment-card {
        display: block;
        height: auto;
    }

    .equipment-list-view .equipment-card-img {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .category-card {
        height: 350px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .equipment-card-img {
        height: 200px;
        padding: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .scroll-top {
        bottom: 20px;
        right: 85px;
        width: 50px;
        height: 50px;
    }
}

/* ====================================
   23. UTILITIES
   ==================================== */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

[data-animate] {
    will-change: transform, opacity;
}


/* ====================================
   PACKAGE CAROUSEL STYLING - DOTS ONLY
   ==================================== */

#packagesCarousel {
    position: relative;
    user-select: none;
    cursor: grab;
}

#packagesCarousel:active {
    cursor: grabbing;
}

/* Smooth fade transition */
#packagesCarousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#packagesCarousel.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Hide all arrow controls */
#packagesCarousel .carousel-control-prev,
#packagesCarousel .carousel-control-next {
    display: none !important;
}

/* Carousel Indicators (Dots) */
#packagesCarousel .carousel-indicators {
    position: relative;
    margin-top: 3rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#packagesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: 2px solid transparent;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

#packagesCarousel .carousel-indicators button:hover {
    background-color: #9ca3af;
    transform: scale(1.2);
}

#packagesCarousel .carousel-indicators button.active {
    background-color: var(--primary);
    width: 32px;
    border-radius: 6px;
    border-color: var(--primary);
}

/* Smooth Transitions */
#packagesCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Disable text selection during drag */
#packagesCarousel.dragging * {
    user-select: none;
    pointer-events: none;
}

/* Progress Bar Animation */
#packagesCarousel .carousel-indicators::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, #0173bb 100%);
    animation: progressBar 5s linear infinite;
    border-radius: 2px;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 80%; }
}

/* Pause animation on hover */
#packagesCarousel:hover .carousel-indicators::after {
    animation-play-state: paused;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    #packagesCarousel .carousel-indicators {
        margin-top: 2rem;
    }
    
    #packagesCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    #packagesCarousel .carousel-indicators button.active {
        width: 26px;
    }
}

@media (max-width: 576px) {
    #packagesCarousel .carousel-indicators {
        gap: 8px;
        margin-top: 1.5rem;
    }
    
    #packagesCarousel .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    #packagesCarousel .carousel-indicators button.active {
        width: 20px;
    }
}

/* ====================================
   FAQ PAGE STYLES
   ==================================== */

/* FAQ Search */
.input-group-lg .form-control {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.input-group-lg .input-group-text {
    padding: 1rem 1.5rem;
}

/* FAQ Category Cards */
.faq-category-card {
    display: block;
    transition: var(--transition);
}

.faq-category-card:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.faq-category-card:hover .faq-icon {
    transform: scale(1.1);
}

/* FAQ Section Icon */
.faq-section-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Accordion Items */
.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.faq-item.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.faq-item .accordion-button {
    background: var(--white);
    color: var(--primary);
    font-size: 1.05rem;
    padding: 1.5rem 1.75rem;
    border: none;
    box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) {
    background: var(--gray-bg);
    color: var(--primary);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-item .accordion-button::after {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    background-size: 1.5rem;
}

.faq-item .accordion-body {
    background: var(--white);
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
    padding: 1.5rem 1.75rem;
    padding-left: 4rem;
}

/* No Results Message */
.no-results-message {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-item .accordion-button {
        font-size: 0.95rem;
        padding: 1.25rem 1.5rem;
    }
    
    .faq-item .accordion-body {
        padding: 1.25rem 1.5rem;
        padding-left: 1.5rem;
    }
    
    .faq-section-icon {
        width: 60px;
        height: 60px;
    }
    
    .faq-section-icon i {
        font-size: 1.5rem !important;
    }
}

/* Text Truncation Utilities */

.truncate-1-line {
  display: -webkit-box;
  -webkit-line-clamp: 1;      /* limits text to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* limits text to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* limits text to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ====================================
   MOBILE HORIZONTAL SCROLL FIX
   ==================================== */

/* Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure all containers stay within viewport */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix Bootstrap row overflow */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.row > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Fix hero section on mobile */
@media (max-width: 991px) {
    .hero-section {
        overflow: hidden;
        width: 100vw;
        max-width: 100%;
    }

    .hero-bg-wrapper,
    .hero-bg-video,
    .hero-bg-fallback {
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix navbar overflow */
@media (max-width: 991px) {
    .navbar {
        overflow-x: hidden;
    }

    .navbar-collapse {
        max-width: 100%;
    }
}

/* Fix page header */
.page-header-bg {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix footer on mobile */
footer {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

footer .container {
    max-width: 100%;
}

/* Fix modals on mobile */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

/* Fix cart sidebar on mobile */
@media (max-width: 991px) {
    .cart-sidebar {
        max-width: 100%;
    }
}

/* Fix carousel on mobile */
#packagesCarousel,
#testimonia lCarousel {
    overflow: hidden;
    max-width: 100%;
}

.carousel-inner {
    overflow: hidden;
}

/* Fix images exceeding viewport */
img {
    max-width: 100%;
    height: auto;
}

/* Fix embedded content */
iframe,
embed,
object,
video {
    max-width: 100%;
}

/* Fix tables on mobile */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Specific mobile fixes for sections */
@media (max-width: 767px) {
    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    section .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }

    /* Fix equipment grid */
    #equipmentGrid {
        width: 100%;
        max-width: 100%;
    }

    /* Fix portfolio grid */
    .portfolio-item {
        width: 100%;
        max-width: 100%;
    }

    /* Fix stats section */
    .stats-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix button groups that might overflow */
    .d-flex.gap-3 {
        flex-wrap: wrap;
        max-width: 100%;
    }

    /* Fix long text that doesn't wrap */
    h1, h2, h3, h4, h5, h6, p, a, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Fix horizontal scrolling in cards */
    .card {
        max-width: 100%;
        overflow-x: hidden;
    }

    .card-body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Very small mobile devices */
@media (max-width: 375px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Reduce button padding on very small screens */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 14px;
    }

    /* Fix badge overflow */
    .badge {
        font-size: 10px;
        padding: 0.25rem 0.5rem;
    }
}

/* Fix for elements with negative margins */
@media (max-width: 991px) {
    [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

/* Fix whatsapp float button position */
@media (max-width: 767px) {
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }

    .scroll-top {
        right: 15px;
        bottom: 80px;
    }
}

/* Ensure no element causes horizontal scroll */
* {
    max-width: 100%;
}

/* Allow specific elements to be wider */
html,
body,
.page-header-bg,
.hero-section,
footer,
.navbar {
    max-width: 100vw;
}