/* Responsive adjustments and Reset */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Fix Bootstrap row negative margins causing horizontal scroll */
.row {
    margin-right: 0;
    margin-left: 0;
}

.row > * {
    padding-right: 15px;
    padding-left: 15px;
}

/* Base Responsive Typography */
@media (max-width: 1200px) {
    :root {
        --section-padding: 100px 0;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-heading {
        font-size: 3rem !important;
    }
    
    .site-header {
        background: rgba(255, 255, 255, 0.98);
        padding: 15px 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 24px;
        --card-gap: 24px;
    }
    
    .hero-heading {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }
    
    .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .carousel-item {
        height: auto !important;
        min-height: 400px;
    }

    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        margin-bottom: 12px;
    }
}

@media (max-width: 414px) {
    .hero-heading {
        font-size: 2rem !important;
    }
    
    :root {
        --section-padding: 50px 0;
    }
}
