/* Custom styles to complement Tailwind CSS */

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom backdrop blur for older browsers */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Custom gradient text for better browser support */
.gradient-text {
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FIXED: Enhanced gradient text class for consistent alignment WITHOUT overflow */
.gradient-text-aligned {
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb; /* Fallback color */
    display: inline !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: auto !important;
}

/* Fallback gradient text class for better browser support */
.gradient-text-stable {
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb; /* Fallback color */
    display: inline !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Loading animation */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Button hover effects */
.btn-hover:hover {
    transform: translateY(-2px);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.service-card:hover img {
    transform: scale(1.05);
}

/* Logo specific sizing to prevent responsive overrides */
header img[alt="XENON Robotics"] {
    height: 2rem !important; /* 32px - matches h-8 */
    width: auto !important;
    max-height: 2rem !important;
    min-height: 2rem !important;
}

/* Mobile logo sizing */
@media screen and (max-width: 640px) {
    header img[alt="XENON Robotics"] {
        height: 1.5rem !important; /* 24px - matches h-6 */
        max-height: 1.5rem !important;
        min-height: 1.5rem !important;
    }
}

/* ENHANCED RESPONSIVE TEXT SIZES WITH OVERFLOW PREVENTION */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    display: block !important;
    box-sizing: border-box !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
}

.hero-description {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* FIXED: Mobile First - Extra Small Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text specific fixes for mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section titles for mobile */
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.3 !important;
    }
    
    /* Force container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* FIXED: Small Mobile Devices (481px - 640px) */
@media screen and (min-width: 481px) and (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for small mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1rem !important; /* 16px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.375rem !important; /* 22px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* FIXED: Tablet Portrait (641px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important; /* 44px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem !important; /* 52px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet landscape */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important; /* 64px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .section-padding {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Large Desktop (1280px+) */
@media screen and (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem !important; /* 72px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 3rem !important; /* 48px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.3 !important;
    }
    
    .section-padding {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* HERO TITLE OVERFLOW PREVENTION */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    /* Prevent horizontal overflow */
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Ensure proper text flow */
    display: block !important;
    box-sizing: border-box !important;
}

/* Hero container specific fixes */
.hero-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-container .hero-title {
    overflow-x: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Mobile First - Extra Small Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        /* Enhanced mobile overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text specific fixes for mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section titles for mobile */
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.3 !important;
    }
    
    /* Force container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* FIXED: Small Mobile Devices (481px - 640px) */
@media screen and (min-width: 481px) and (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for small mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1rem !important; /* 16px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.375rem !important; /* 22px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .section-padding {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* FIXED: Tablet Portrait (641px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important; /* 44px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem !important; /* 52px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet landscape */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important; /* 64px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .section-padding {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Large Desktop (1280px+) */
@media screen and (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem !important; /* 72px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 3rem !important; /* 48px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.3 !important;
    }
    
    .section-padding {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* HERO TITLE OVERFLOW PREVENTION */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    /* Prevent horizontal overflow */
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Ensure proper text flow */
    display: block !important;
    box-sizing: border-box !important;
}

/* Hero container specific fixes */
.hero-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-container .hero-title {
    overflow-x: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Mobile First - Extra Small Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        /* Enhanced mobile overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text specific fixes for mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section titles for mobile */
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.3 !important;
    }
    
    /* Force container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* FIXED: Small Mobile Devices (481px - 640px) */
@media screen and (min-width: 481px) and (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for small mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1rem !important; /* 16px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.375rem !important; /* 22px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .section-padding {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* FIXED: Tablet Portrait (641px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important; /* 44px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem !important; /* 52px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet landscape */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important; /* 64px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .section-padding {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Large Desktop (1280px+) */
@media screen and (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem !important; /* 72px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 3rem !important; /* 48px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.3 !important;
    }
    
    .section-padding {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* HERO TITLE OVERFLOW PREVENTION */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    /* Prevent horizontal overflow */
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Ensure proper text flow */
    display: block !important;
    box-sizing: border-box !important;
}

/* Hero container specific fixes */
.hero-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-container .hero-title {
    overflow-x: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Mobile First - Extra Small Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        /* Enhanced mobile overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text specific fixes for mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section titles for mobile */
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.3 !important;
    }
    
    /* Force container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* FIXED: Small Mobile Devices (481px - 640px) */
@media screen and (min-width: 481px) and (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for small mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1rem !important; /* 16px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.375rem !important; /* 22px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .hero-container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .section-padding {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* FIXED: Tablet Portrait (641px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important; /* 44px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem !important; /* 52px */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text fixes for tablet landscape */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .section-padding {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important; /* 64px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.3 !important;
    }
    
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .section-padding {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Large Desktop (1280px+) */
@media screen and (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem !important; /* 72px */
        line-height: 1 !important;
        /* Enhanced overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .hero-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-container .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.6 !important;
    }
    
    h2 {
        font-size: 3rem !important; /* 48px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.3 !important;
    }
    
    .section-padding {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* HERO TITLE OVERFLOW PREVENTION */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    /* Prevent horizontal overflow */
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Ensure proper text flow */
    display: block !important;
    box-sizing: border-box !important;
}

/* Hero container specific fixes */
.hero-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-container .hero-title {
    overflow-x: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Mobile First - Extra Small Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        /* Enhanced mobile overflow prevention */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* FIXED: Gradient text specific fixes for mobile */
    .gradient-text-aligned {
        font-size: inherit !important;
        line-height: inherit !important;
        display: inline !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section titles for mobile */
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.3 !important;
    }
    
    /* Force container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Card and section spacing */
    .card-grid {
        gap: 1rem !important;
    }
    
    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* FIXED: Small Mobile Devices (481px - 640px) */
@media screen and (min-width: 481px) and (max-width: 640px) {
    /* Add your responsive styles here if needed */
}
