/* Enterprise CSS for Gementar Team */

:root {
    --primary-color: #e80000;
    --secondary-color: #dc3545;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #e80000, #cc0000);
    --gradient-secondary: linear-gradient(135deg, #dc3545, #c82333);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #333333);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Enterprise Navigation */
.navbar {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0;
    transition: all 0.3s ease;
    min-height: 80px;
}

.navbar .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 80px;
    padding: 0;
}

.navbar-brand {
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-collapse {
    flex-grow: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.navbar-nav {
    align-items: center;
    height: 100%;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Mobile Navigation Toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background: transparent;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
    margin: 0;
    display: flex;
    align-items: center;
    height: 40px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(232, 0, 0, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    width: 1.5em;
    height: 1.5em;
}

/* Mobile Menu Styling */
.navbar-collapse {
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
        display: block !important;
    }
    
    .navbar-collapse.show {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 400px;
    height: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
}

.logo-img {
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    height: auto !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
}

.navbar-brand .logo-container {
    max-width: 150px;
    height: 65px;
    margin: 0;
    padding: 10px 0;
    width: auto;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-img {
    height: auto !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 150px !important;
    padding: 0;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Logo in footer with white filter */
footer .logo-img {
    filter: brightness(0) invert(1);
    height: 15px !important;
    max-width: 75px !important;
    width: auto !important;
}

/* Responsive logo sizing */
@media (max-width: 991px) {
    .navbar {
        min-height: 70px;
    }
    
    .navbar .container {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }
    
    .navbar-brand .logo-container {
        max-width: 300px;
    }
    
    .navbar-brand .logo-img {
        max-width: 300px !important;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
        height: auto;
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        height: auto;
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        display: block;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
    }
    
    .navbar .container {
        min-height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .navbar-brand {
        height: 60px;
        flex: 1;
    }
    
    .navbar-brand .logo-container {
        max-width: 250px;
        height: 60px;
    }
    
    .navbar-brand .logo-img {
        max-width: 250px !important;
    }
    
    .navbar-toggler {
        height: 40px;
        margin-left: auto;
    }
    
    footer .logo-img {
        height: 12px !important;
        max-width: 60px !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        min-height: 50px;
    }
    
    .navbar .container {
        min-height: 50px;
        padding: 0 10px;
    }
    
    .navbar-brand {
        height: 50px;
    }
    
    .navbar-brand .logo-container {
        max-width: 180px;
        height: 50px;
    }
    
    .navbar-brand .logo-img {
        max-width: 180px !important;
    }
    
    .navbar-toggler {
        height: 35px;
        font-size: 1.1rem;
    }
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Enterprise Hero Section */
.hero-section {
    background: var(--gradient-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(1deg); }
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    top: 70%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Enterprise Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(232, 0, 0, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1a1a, #e80000);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232, 0, 0, 0.4);
    color: white;
}

.btn-danger {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(232, 0, 0, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1a1a, #e80000);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232, 0, 0, 0.4);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Enterprise Cards */
.card {
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
    overflow: visible;
}

.service-card:hover,
.project-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-featured-card {
    border-left: 4px solid var(--primary-color);
}

/* Enterprise Gradients */
.bg-gradient-danger {
    background: var(--gradient-primary) !important;
}

.bg-gradient-danger {
    background: var(--gradient-primary) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

/* Enterprise Sections */
section {
    padding: 6rem 0;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%) !important;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Form Controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 0, 0, 0.1);
}

/* Enterprise Footer */
footer {
    background: var(--gradient-dark) !important;
}

footer a:hover {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

/* Logo Animation */
.logo-icon {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* Enterprise Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 0;
        min-height: auto;
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .floating-cards {
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Remove shadows and outlines from service cards on mobile */
    .service-card {
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content .d-flex .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content .row .col-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px;
        padding-bottom: 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .floating-cards {
        display: none;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Remove shadows and outlines from service cards on small mobile */
    .service-card {
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .hero-content .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-content .row {
        margin-top: 1.5rem;
    }
    
    .hero-content .row .col-4 h3 {
        font-size: 1.5rem;
    }
    
    .hero-content .row .col-4 small {
        font-size: 0.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-bg-overlay {
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .logo-icon {
        animation: none;
    }
    
    /* Improve text readability on mobile */
    .hero-content p.lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Better mobile spacing */
    .hero-content .badge {
        margin-bottom: 1.5rem;
    }
    
    /* Ensure proper touch targets */
    .card a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile-specific footer improvements */
    footer .row {
        text-align: center;
    }
    
    footer .col-lg-2, footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer .d-flex {
        justify-content: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}

/* Extra small devices improvements */
@media (max-width: 576px) {
    /* Reduce hero content padding */
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Stack call-to-action buttons */
    .hero-content .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Improve card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Better mobile typography */
    .hero-content .badge {
        font-size: 0.75rem;
    }
    
    /* Optimize button sizes */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Improve section spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Better mobile navigation */
    .navbar-nav .nav-item .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

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

/* Enterprise Typography */
.display-2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fw-semibold {
    font-weight: 600;
}

/* Enhanced Shadows */
.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.shadow-xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Utility Classes */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional Mobile Improvements */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-content .row {
        text-align: center;
    }
    
    .hero-content .row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .floating-card {
        position: relative;
        display: none;
    }
    
    .service-card, .project-featured-card {
        margin-bottom: 1.5rem;
    }
    
    .col-lg-4, .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content .d-flex.flex-wrap {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content .d-flex.flex-wrap .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0.5rem;
    }
    
    .card-body p {
        font-size: 0.95rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
    
    .bg-warning .container .row {
        text-align: center;
    }
    
    .bg-warning .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .bg-gradient-danger .container .row {
        text-align: center;
    }
    
    .bg-gradient-danger .col-lg-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-content .d-flex.flex-wrap .btn {
        max-width: 280px;
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-body h4 {
        font-size: 1.25rem;
    }
    
    .card-body p {
        font-size: 0.9rem;
    }
    
    .col-lg-3.col-md-6 {
        margin-bottom: 2rem;
    }
    
    .bg-warning .display-6 {
        font-size: 1.5rem;
    }
    
    .bg-gradient-danger .display-6 {
        font-size: 1.5rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem !important;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
    }
    
    .btn-sm.rounded-circle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem;
    }
}

/* Executive Team Page Styles */
.executive-spotlight {
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: visible;
}

.executive-spotlight:hover {
    transform: translateY(-10px);
}

.executive-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: visible;
}

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

.executive-photo {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border: 4px solid #fff;
    transition: all 0.3s ease;
    border-radius: 50% !important;
}

.management-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: visible;
}

.management-card:hover {
    transform: translateY(-8px);
}

.management-photo {
    width: 140px !important;
    height: 140px !important;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    transition: all 0.3s ease;
    border-radius: 50% !important;
}

/* Button circles */
.btn.rounded-circle {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.btn-lg.rounded-circle {
    width: 50px !important;
    height: 50px !important;
}

.btn-sm.rounded-circle {
    width: 35px !important;
    height: 35px !important;
}

.management-card:hover .management-photo {
    transform: scale(1.05);
    border-color: #007bff;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.min-vh-75 {
    min-height: 75vh;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced backdrop blur */
.backdrop-blur {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile-First Utilities */
.mobile-center {
    text-align: center;
}

@media (min-width: 768px) {
    .mobile-center {
        text-align: left;
    }
}

.mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-stack {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.mobile-full-width {
    width: 100%;
}

@media (min-width: 768px) {
    .mobile-full-width {
        width: auto;
    }
}

/* Improved mobile navigation */
@media (max-width: 991px) {
    .navbar-nav .nav-item .btn.btn-danger {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Better mobile forms */
@media (max-width: 768px) {
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth transitions for mobile */
@media (max-width: 768px) {
    .card, .btn, .nav-link {
        transition: none;
    }
    
    .card:hover, .btn:hover, .nav-link:hover {
        transform: none;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .btn, .nav-link, .card a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
    
    .btn-lg {
        min-height: 48px;
    }
}

/* Desktop container padding */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix card scrollbar issues globally */
.card, .card-body, .card-header, .card-footer {
    overflow: visible !important;
}

/* Ensure no individual elements get scrollbars */
.badge, .btn, .nav-link, .executive-card, .management-card, .service-card, .project-featured-card {
    overflow: visible !important;
}

/* Prevent horizontal scroll on mobile only */
@media (max-width: 768px) {
    html {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: none;
    }

    .container, .container-fluid {
        max-width: 100%;
    }

    /* Fix Bootstrap row negative margins */
    .container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Additional mobile-specific styles */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .d-flex {
        flex-wrap: wrap;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn-lg {
        max-width: 100%;
        width: auto;
    }
    
    .badge {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .card:hover, .btn:hover, .nav-link:hover {
        transform: none !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}