* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

.container {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

section {
    overflow-x: hidden;
}

.row {
    overflow-x: hidden;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-secondary-rgb), 0.05) 100%);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 60%);
    animation: float 15s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-gradient > .row {
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.hero-content {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.hero-content h2 {
    font-size: 3rem;
    margin: 0;
    color: var(--bs-body-color);
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--color-border-rgb), 0.5);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .feature-section {
        padding: 2rem 1rem;
    }
    
    .feature-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-content {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }
    
    .hero-content img {
        width: 60px;
        height: 60px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-gradient {
        border-radius: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.35rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-text {
        font-size: 0.85rem !important;
    }
    
    .cta-box {
        padding: 1.5rem 1rem !important;
    }
    
    .cta-box h2 {
        font-size: 1.25rem;
    }
    
    .cta-box p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
