/* Animated Hero Banner Styles */
/* 
 * To use Inter font locally:
 * 1. Download Inter font from: https://fonts.google.com/specimen/Inter
 * 2. Place font files in: templates/YOUR_TEMPLATE/fonts/
 * 3. Add @font-face declarations below or in your template's CSS
 */

/* Inter font @font-face declarations removed to prevent 404 errors
 * Fonts are not available on the server, so using system font fallbacks instead
 * The CSS already includes fallback fonts: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
 */

.animated-hero-wrapper {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.animated-hero-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 450px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Video Background Styles */
.animated-hero-banner.has-video-background {
    background: none !important;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-video-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Hero Content Container - max-width 1600px */
.hero-content-container {
    position: relative;
    z-index: 10;
    max-width: 1600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Background Pattern */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
    animation: patternPulse 8s ease-in-out infinite, patternMove 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes patternPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes patternMove {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 3;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

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

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    flex: 0 1 auto;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    animation: fadeSlideDown 1s ease-out;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge::before {
    content: '●';
    color: #0ea5e9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Hero Title */
.hero-title {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 18px;
    animation: fadeSlideUp 1.2s ease-out, titleFloat 4s ease-in-out infinite 2s;
    text-shadow: 0 2px 20px rgba(14, 165, 233, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 30%, #38bdf8 60%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 2s ease infinite, textGlow 3s ease-in-out infinite;
    background-size: 300% 300%;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.8));
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #475569;
    line-height: 1.5;
    max-width: 650px;
    margin-bottom: 28px;
    animation: fadeSlideUp 1.4s ease-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-subtitle strong {
    font-weight: 700;
    color: #1e293b;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeSlideUp 1.6s ease-out;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow:
        0 8px 30px rgba(14, 165, 233, 0.3),
        0 2px 8px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 50px rgba(14, 165, 233, 0.5),
        0 4px 16px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
    color: #ffffff !important;
}

.btn-primary .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(14, 165, 233, 0.3) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(14, 165, 233, 0.5) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0284c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.btn-secondary:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 1) !important;
    color: #0284c7 !important;
}

/* Feature Stats */
.feature-stats {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeSlideLeft 1.8s ease-out;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0;
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.12),
        0 2px 8px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(14, 165, 233, 0.3),
            rgba(56, 189, 248, 0.3),
            rgba(14, 165, 233, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before {
    opacity: 1;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-10px) translateY(-4px) rotateY(5deg);
    box-shadow:
        0 16px 48px rgba(14, 165, 233, 0.25),
        0 4px 16px rgba(14, 165, 233, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 1);
}

.stat-icon {
    font-size: 38px;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.25));
    animation: iconPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    transition: color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-item:hover .stat-value {
    color: #0284c7;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Decorative Elements */
.deco-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 12s ease-in-out infinite, rotate 20s linear infinite;
    z-index: 4;
    pointer-events: none;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(-35px, 35px) scale(0.9) rotate(240deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.deco-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent);
    top: -150px;
    left: 10%;
}

.deco-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent);
    bottom: -100px;
    right: 15%;
    animation-delay: 4s;
}

.deco-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

/* Particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(14, 165, 233, 0.6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 4px rgba(14, 165, 233, 0.5);
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-500px) translateX(40px);
        opacity: 0;
    }
}

.snowflake {
    position: absolute;
    color: rgba(56, 189, 248, 0.8);
    font-size: 20px;
    animation: snowfall linear infinite;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

@keyframes snowfall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

.breeze-wave {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    animation: breezeFloat 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breezeFloat {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-400px, -80px) scale(1.8);
        opacity: 0;
    }
}

.particles-container,
.snowflakes-container,
.breeze-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

/* Responsive Design */
/* Large Desktop (1920px+) - Full width banner */
@media (min-width: 1921px) {
    .animated-hero-banner {
        max-width: 1900px;
    }
}

/* Desktop (1600px - 1920px) */
@media (max-width: 1920px) {
    .animated-hero-wrapper {
        max-width: 100%;
    }
    
    .animated-hero-banner {
        max-width: 100%;
    }
}

/* Large Laptop (1400px - 1600px) */
@media (max-width: 1600px) {
    .animated-hero-banner {
        padding: 50px 20px;
    }
    
    .hero-content-container {
        gap: 50px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-content {
        max-width: 650px;
    }
    
    .stat-item {
        min-width: 240px;
        padding: 18px 28px;
    }
}

/* Laptop (1200px - 1400px) */
@media (max-width: 1400px) {
    .animated-hero-banner {
        padding: 50px 20px;
    }
    
    .hero-content-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .stat-item {
        min-width: 220px;
        padding: 18px 26px;
    }
}

/* Tablet Landscape / Small Laptop (992px - 1200px) */
@media (max-width: 1200px) {
    .animated-hero-banner {
        flex-direction: column;
        justify-content: center;
        height: auto !important;
        min-height: auto;
        padding: 60px 20px;
    }
    
    .hero-content-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
    }
    
    .hero-cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .feature-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .stat-item {
        min-width: 200px;
        flex: 0 1 calc(33.333% - 12px);
        max-width: 300px;
    }
}

/* Tablet Portrait (768px - 992px) */
@media (max-width: 992px) {
    .animated-hero-banner {
        padding: 50px 20px;
        min-height: auto !important;
    }
    
    .hero-content-container {
        gap: 40px;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 7px 18px;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 17px;
        max-width: 600px;
    }
    
    .hero-cta-group {
        gap: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 15px 32px;
        font-size: 15px;
    }
    
    .feature-stats {
        gap: 14px;
    }
    
    .stat-item {
        min-width: 180px;
        flex: 0 1 calc(50% - 7px);
        padding: 18px 24px;
    }
    
    .stat-icon {
        font-size: 34px;
    }
    
    .stat-value {
        font-size: 15px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Mobile Landscape / Small Tablet (576px - 768px) */
@media (max-width: 768px) {
    .animated-hero-banner {
        padding: 45px 15px;
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-content-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-badge {
        font-size: 9px;
        padding: 6px 16px;
        margin-bottom: 18px;
    }
    
    .hero-title {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 28px;
        font-size: 15px;
    }
    
    .feature-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .feature-stats::-webkit-scrollbar {
        display: none;
    }
    
    .stat-item {
        min-width: 0;
        flex: 0 0 calc(33.333% - 6px);
        padding: 12px 10px;
        scroll-snap-align: start;
    }
    
    .stat-item:hover {
        transform: translateY(-2px);
        rotate: none;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 9px;
        margin-top: 2px;
    }
    
    /* Reduce animations on mobile for performance */
    .deco-element {
        opacity: 0.2;
    }
    
    .bg-pattern,
    .grid-overlay {
        opacity: 0.5;
    }
}

/* Mobile Portrait (480px - 576px) */
@media (max-width: 576px) {
    .animated-hero-banner {
        padding: 40px 12px;
    }
    
    .hero-content-container {
        gap: 25px;
    }
    
    .hero-badge {
        font-size: 9px;
        padding: 6px 14px;
        margin-bottom: 16px;
        letter-spacing: 0.8px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 14px;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .btn-primary .arrow {
        font-size: 16px;
    }
    
    .feature-stats {
        gap: 6px;
    }
    
    .stat-item {
        padding: 10px 8px;
        gap: 8px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .animated-hero-banner {
        padding: 35px 10px;
    }
    
    .hero-content-container {
        gap: 20px;
    }
    
    .hero-badge {
        font-size: 8px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .feature-stats {
        gap: 5px;
    }
    
    .stat-item {
        padding: 8px 6px;
        gap: 6px;
    }
    
    .stat-icon {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 7px;
    }
}

/* Extra Small Mobile (< 320px) */
@media (max-width: 320px) {
    .animated-hero-banner {
        padding: 30px 12px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .stat-item {
        padding: 10px 12px;
    }
}

/* Container-aware responsive adjustments */
.container .animated-hero-wrapper,
.opc-Container .animated-hero-wrapper {
    max-width: 100%;
}

.container .animated-hero-banner,
.opc-Container .animated-hero-banner {
    max-width: 100%;
}

/* Ensure banner doesn't overflow on small screens */
@media (max-width: 768px) {
    .animated-hero-wrapper {
        overflow-x: hidden;
    }
    
    .animated-hero-banner {
        overflow-x: hidden;
    }
    
    /* Improve touch targets on mobile */
    .btn-primary,
    .btn-secondary {
        -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
        touch-action: manipulation;
    }
    
    .stat-item {
        -webkit-tap-highlight-color: rgba(14, 165, 233, 0.1);
    }
}

/* Text overflow protection */
.hero-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-value {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
    .hero-title br {
        display: block;
    }
    
    .hero-title .gradient-text {
        display: inline-block;
        max-width: 100%;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 992px) and (orientation: landscape) {
    .animated-hero-banner {
        min-height: auto !important;
        padding: 40px 30px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .feature-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 1 calc(33.333% - 10px);
        min-width: 150px;
    }
}

