/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fluid typography scale */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    --font-size-4xl: clamp(2.5rem, 2.1rem + 2vw, 3.5rem);
    
    /* Fluid spacing scale */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --space-2xl: clamp(3rem, 2.4rem + 3vw, 4.5rem);
    --space-3xl: clamp(4rem, 3.2rem + 4vw, 6rem);
    
    /* Container sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: var(--font-size-base);
}

.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: #e2e8f0;
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ensure images are responsive */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    display: block;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}


.hero-slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.hero-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
}

.slide-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.3;
    color: white;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-prev-btn {
    left: 15px;
}

.hero-next-btn {
    right: 15px;
}

/* Fallback for dashboard mockup (if no images load) */
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.dashboard-mockup i {
    font-size: 6rem;
    color: white;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: white;
    padding: var(--space-2xl) var(--space-xl);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    padding: var(--space-3xl) 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.benefit-item {
    text-align: center;
    padding: var(--space-xl);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: var(--space-sm);
}

.benefit-item p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: var(--space-3xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo-img {
    height: 70px;
    width: auto;
    max-width: 100%;
    margin-bottom: var(--space-xs);
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-container {
        gap: 5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-slider-container {
        max-width: 400px;
        height: 220px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Mobile Landscape / Small Tablet (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--space-xl) 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: var(--space-sm) 0;
        font-size: var(--font-size-lg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-slider-container {
        max-width: 350px;
        height: 200px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .btn {
        flex: 1;
        max-width: 200px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {

    .hero-container {
        gap: var(--space-xl);
    }
    
    .hero-slider-container {
        height: 160px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-slider-btn {
        width: 30px;
        height: 30px;
        font-size: var(--font-size-xs);
    }
    
    .hero-prev-btn {
        left: 5px;
    }
    
    .hero-next-btn {
        right: 5px;
    }
    
    .slide-overlay {
        padding: var(--space-sm);
    }
    
    .slide-overlay h4 {
        font-size: var(--font-size-sm);
    }
    
    .slide-overlay p {
        font-size: var(--font-size-xs);
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .feature-card {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .benefit-item {
        padding: var(--space-lg);
    }
    
    .footer-content {
        gap: var(--space-lg);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

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

/* Scroll-triggered animations - reduced intensity */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
}

.rotate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations - reduced delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* Background animations - reduced intensity */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.pulsing {
    animation: pulse 3s ease-in-out infinite;
}

.glowing {
    animation: glow 4s ease-in-out infinite;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading states */
body:not(.loaded) .hero-content,
body:not(.loaded) .hero-image {
    opacity: 0;
    transform: translateY(30px);
}

body.loaded .hero-content,
body.loaded .hero-image {
    transition: all 0.8s ease;
}

/* Enhanced hover effects */
.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, #059669, #10b981);
}

/* Text reveal animations */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Minimum touch target size */
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    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); }
}

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

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

/* Smooth transitions for all interactive elements */
.feature-card, .benefit-item, .btn, .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1d4ed8, #2563eb);
}

/* Utility classes for responsive design */
.hidden-mobile {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .visible-mobile {
        display: block !important;
    }
}

/* Improved focus states for accessibility */
.btn:focus,
.nav-link:focus,
.hamburger:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Better touch targets for mobile */
@media (max-width: 767px) {
    .hero-slider-btn {
        width: 44px;
        height: 44px;
        font-size: var(--font-size-sm);
    }
    
    .hero-dot {
        width: 12px;
        height: 12px;
        margin: 0 var(--space-xs);
    }
    
    .hero-prev-btn {
        left: var(--space-sm);
    }
    
    .hero-next-btn {
        right: var(--space-sm);
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container,
.nav-container,
.hero-container {
    overflow-x: hidden;
}

/* Improved text selection */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: inherit;
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.2);
    color: inherit;
}

/* Better image loading states */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slide img.loaded {
    opacity: 1;
}

/* Improved container responsiveness */
@media (max-width: 320px) {
    .container,
    .nav-container,
    .hero-container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-slider-container {
        height: 140px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .hero-container {
        gap: var(--space-lg);
    }
    
    .hero-slider-container {
        height: 120px;
        max-width: 250px;
    }
}

/* High DPI display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-slider-container {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card,
    .benefit-item {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
}
