/* Hero Section - New Modern SEO-friendly Design (May 2025) */

/* Hero Container */
.hero-container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    padding: 1rem 1rem;
    /* Mobile-first approach - stack on smaller screens by default */
    flex-direction: column;
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeInLeft 0.8s ease-out both;
    /* Center text on mobile for better readability */
    text-align: center;
    /* Ensure content is fully visible on small screens */
    width: 100%;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Slightly smaller base size for mobile */
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Add SEO-friendly highlight */
    color: var(--text-color);
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--gray-color);
    max-width: 540px;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
    line-height: 1.6;
    /* Center paragraph on mobile */
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats Display - Mobile Optimization */
.hero-stats {
    display: flex;
    gap: 1rem; /* Smaller gap for mobile */
    margin-bottom: 2rem;
    animation: fadeInLeft 0.8s ease-out 0.3s both;
    /* Center stats on mobile */
    justify-content: center;
    /* Allow wrapping on very small screens */
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Add minimum width for better mobile layout */
    min-width: 80px;
    padding: 0.5rem;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Download buttons - Mobile optimization */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem; /* Smaller gap for mobile */
    animation: fadeInLeft 0.8s ease-out 0.4s both;
    /* Center buttons on mobile */
    justify-content: center;
    /* Stack buttons on very small screens */
    flex-direction: column;
    align-items: center;
}

/* Individual download button mobile adjustment */
.download-btn {
    /* Ensure full width on very small screens */
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* Hero Image Section - Mobile Optimization */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    animation: fadeInRight 0.8s ease-out 0.4s both;
    /* Ensure full width on mobile */
    width: 100%;
}

/* App Display Container - Mobile adjustments */
.app-display-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    /* Reduce height on mobile */
    height: auto;
    min-height: 400px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* Add padding for touch area */
    padding: 1rem;
}

/* Main App Display - Mobile optimization */
.app-main-display {
    position: relative;
    z-index: 5; /* Higher z-index to stay on top */
    transform-style: preserve-3d;
    /* Ensure width constraints on mobile */
    width: 100%;
    display: flex;
    justify-content: center;
}

.app-frame {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.main-app-screen {
    border-radius: 26px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(29, 185, 84, 0.15);
    border: 2px solid rgba(29, 185, 84, 0.3);
    transition: all 0.4s ease;
    /* Responsive sizing */
    width: clamp(220px, 80vw, 300px);
    height: auto;
    max-width: 100%;
    transform-origin: center center;
    filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.3));
    /* Add alt text description in content property for SEO */
    content: attr(alt);
}

/* Feature Indicators - Mobile touch optimization */
.feature-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.feature-indicator {
    position: absolute;
    pointer-events: auto;
    z-index: 6; /* Above main screen */
    /* Increase touch target area */
    padding: 10px;
    margin: -10px;
}

.indicator-dot {
    width: clamp(16px, 5vw, 24px); /* Larger on mobile for touch */
    height: clamp(16px, 5vw, 24px);
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(29, 185, 84, 0.7);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.feature-indicator:hover .indicator-dot,
.feature-indicator:focus .indicator-dot {
    transform: scale(1.3);
}

/* Make tooltips more touch-friendly */
.indicator-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    visibility: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--secondary-color);
    /* Better z-index stacking */
    z-index: 10;
    /* Prevent overflow on small screens */
    max-width: 200px;
    white-space: normal;
}

/* Multiple Main Images - Z-index layering system for side images */
.multi-main-images {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2; /* Behind main screen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-layer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.background-layer {
    z-index: 1;
    transform: translateX(-160px) scale(0.85) rotate(-50deg);
    opacity: 0.8;
    filter: blur(0.3px);
    animation: backgroundFloat 4s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foreground-layer {
    z-index: 3;
    transform: translateX(150px) scale(1.05) rotate(45deg);
    filter: drop-shadow(0 0 15px rgba(29, 185, 84, 0.4));
    animation: foregroundFloat 3.5s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-screen-bg, .app-screen-fg {
    border-radius: 26px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(29, 185, 84, 0.15);
    border: 2px solid rgba(29, 185, 84, 0.3);
    transition: all 0.5s ease;
    width: 280px;
    height: 560px;
    max-width: 100%;
    transform-origin: center center;
    display: block;
    object-fit: cover;
}

.app-screen-bg {
    opacity: 0.85;
    filter: grayscale(0.2) brightness(0.95) contrast(0.9);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(29, 185, 84, 0.1);
}

.app-screen-fg {
    filter: drop-shadow(0 0 12px rgba(29, 185, 84, 0.4)) 
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(29, 185, 84, 0.2);
}

/* Hover effects for layered images */
.multi-main-images:hover .background-layer {
    transform: translateX(-130px) scale(0.75) rotate(-35deg);
    opacity: 0.6;
    filter: blur(1px);
}

.multi-main-images:hover .foreground-layer {
    transform: translateX(120px) scale(1.15) rotate(35deg);
    filter: drop-shadow(0 0 25px rgba(29, 185, 84, 0.6));
}

/* Enhanced animations for multi-main-images */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Smaller gap on mobile */
    position: absolute;
    bottom: -30px; /* Move up on mobile */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    /* Add justified center alignment */
    justify-content: center;
    /* Add max width for mobile */
    max-width: 320px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5px 10px; /* Smaller padding on mobile */
    font-size: 11px; /* Smaller font on mobile */
    font-weight: 600;
    color: var(--light-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Mobile badges - Enhanced styling */
.mobile-badges {
    display: flex;
    margin-top: 1.5rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    /* Add animation for SEO emphasis */
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Enhanced animations for multi-main-images */
@keyframes layerFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-8px) rotateY(2deg);
    }
    50% {
        transform: translateY(-5px) rotateY(-1deg);
    }
    75% {
        transform: translateY(-10px) rotateY(1deg);
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateX(-160px) scale(0.85) rotate(-50deg);
    }
    50% {
        transform: translateX(-165px) scale(0.83) rotate(-52deg);
    }
}

@keyframes foregroundFloat {
    0%, 100% {
        transform: translateX(150px) scale(1.05) rotate(45deg);
    }
    50% {
        transform: translateX(155px) scale(1.07) rotate(47deg);
    }
}

/* Apply animations to layers */
.background-layer {
    animation: backgroundFloat 4s ease-in-out infinite;
}

.foreground-layer {
    animation: foregroundFloat 3.5s ease-in-out infinite;
}

/* Enhanced depth and separation effects */
.multi-main-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.05) 70%);
    z-index: 2;
    pointer-events: none;
}

/* Add subtle glow between images for better separation */
.background-layer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(29, 185, 84, 0.08), transparent);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.6;
}

.foreground-layer::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(-45deg, rgba(29, 185, 84, 0.12), transparent);
    border-radius: 35px;
    z-index: -1;
    opacity: 0.8;
}

/* Mobile optimization for multi-main-images */
@media only screen and (max-width: 599px) {
    .multi-main-images {
        display: none; /* Hide on very small screens to improve performance */
    }
    
    .app-main-display {
        /* Ensure main display is visible on mobile */
        z-index: 5;
    }
}

/* RESPONSIVE BREAKPOINTS - Mobile First Approach */

/* Small tablets and large phones (600px and up) */
@media only screen and (min-width: 600px) {
    .hero-container {
        padding: 1rem 1rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .download-buttons {
        flex-direction: row;
    }
    
    .download-btn {
        width: auto;
        max-width: none;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .feature-tags {
        max-width: 400px;
        bottom: -40px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .app-display-container {
        min-height: 500px;
    }    /* Enable multi-main-images on small tablets */
    .multi-main-images {
        display: flex;
    }
    
    .background-layer {
        transform: translateX(-45px) scale(0.88) rotate(-12deg);
    }
    
    .foreground-layer {
        transform: translateX(40px) scale(1.02) rotate(10deg);
    }
}

/* Medium devices (768px and up) */
@media only screen and (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        padding: 1rem 1rem;
    }
    
    .hero-content {
        text-align: left;
        padding: 0;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .download-buttons {
        justify-content: flex-start;
    }
    
    .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }
    
    .feature-screen {
        transform: scale(0.9);
    }
    
    .feature-screen.left {
        left: -110px;
    }
    
    .feature-screen.right {
        right: -110px;
    }
    
    /* Hide mobile badges, show desktop badges on larger screens */
    .mobile-badges {
        display: none;
    }
}

/* Large devices (992px and up) */
@media only screen and (min-width: 992px) {
    .multi-main-images {
        display: flex;
    }
    
    .main-image-layer {
        transform: scale(1);
    }    .background-layer {
        transform: translateX(-60px) scale(0.92) rotate(-15deg);
        opacity: 0.9;
    }
    
    .foreground-layer {
        transform: translateX(55px) scale(1.08) rotate(12deg);
    }
    
    .app-display-container {
        min-height: 600px;
        perspective: 1200px;
    }
      /* Enhanced hover effects on larger screens */
    .multi-main-images:hover .background-layer {
        transform: translateX(-85px) scale(0.8) rotate(-15deg);
        opacity: 0.4;
        filter: blur(2px);
    }
    
    .multi-main-images:hover .foreground-layer {
        transform: translateX(75px) scale(1.2) rotate(10deg);
        filter: drop-shadow(0 0 35px rgba(29, 185, 84, 0.8));
    }
}

/* Extra touch area for mobile devices */
@media (pointer: coarse) {
    .feature-indicator {
        padding: 15px;
        margin: -15px;
    }
    
    .indicator-dot {
        width: 24px;
        height: 24px;
    }
}

/* High contrast mode enhancements for accessibility */
@media (prefers-contrast: high) {
    .hero-title {
        text-shadow: none;
    }
    
    .text-highlight {
        color: var(--secondary-color);
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
    }
    
    .indicator-dot {
        border: 2px solid white;
    }
    
    .feature-tag {
        background: var(--secondary-color);
        color: black;
        border: 2px solid white;
    }
    
    .main-app-screen {
        border: 3px solid white;
    }
}

/* Print styles */
@media print {
    .hero-container {
        display: block;
    }
    
    .hero-content {
        max-width: 100%;
    }
      .hero-image,
    .multi-main-images,
    .feature-indicators,
    .feature-tags,
    .download-buttons {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-image,
    .download-buttons,
    .hero-stats,
    .feature-indicators,
    .feature-tags,
    .mobile-badges {
        animation: none !important;
        transition: none !important;
    }
    
    .app-frame {
        animation: none !important;
    }
    
    .indicator-dot {
        animation: none !important;
    }
}

/* Add SEO schema support with microdata classes */
.seo-app-name,
.seo-app-description,
.seo-app-platform,
.seo-app-category {
    display: none;
}
