/**
 * Hero Section Styles for DiziClock
 * Advanced styling for the hero section with premium effects
 */

/* Hero Section Base Styles */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(57, 255, 20, 0.05) 50%, 
        rgba(138, 43, 226, 0.1) 100%);
}

/* Particle Canvas Styles */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Hero Content Styles */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Title Styles */
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00D4FF 0%, #39FF14 50%, #8A2BE2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

/* Hero Description */
.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dark .hero-content p {
    color: #94a3b8;
}

/* Search Bar Container */
.search-bar-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search Input Styles */
#toolSearch {
    width: 100%;
    padding: 1.25rem 1.5rem;
    padding-right: 5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    color: #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark #toolSearch {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

#toolSearch:focus {
    border-color: #00D4FF;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2), 0 8px 32px rgba(0, 212, 255, 0.2);
    outline: none;
}

#toolSearch::placeholder {
    color: #64748b;
}

.dark #toolSearch::placeholder {
    color: #94a3b8;
}

/* Search Button */
.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.search-button:active {
    transform: translateY(-50%) scale(0.98);
}

/* Search Suggestions */
#searchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.dark #searchSuggestions {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #00D4FF;
    border: 2px solid #00D4FF;
}

.cta-secondary:hover {
    background: #00D4FF;
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dark .stat-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #39FF14 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.dark .stat-label {
    color: #94a3b8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #64748b;
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.dark .scroll-indicator-mouse {
    border-color: #94a3b8;
}

.scroll-indicator-wheel {
    width: 4px;
    height: 10px;
    background: #64748b;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.dark .scroll-indicator-wheel {
    background: #94a3b8;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .search-bar-container {
        max-width: 100%;
    }
    
    #toolSearch {
        padding: 1rem 4.5rem 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .search-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    #hero {
        background: #000;
        color: #fff;
    }
    
    .hero-content h1 {
        background: #fff;
        -webkit-text-fill-color: #000;
    }
    
    #toolSearch {
        background: #fff;
        color: #000;
        border: 3px solid #000;
    }
    
    .search-button {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1 {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .scroll-indicator-wheel {
        animation: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    #particleCanvas {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    #hero {
        background: none;
        color: #000;
    }
    
    .hero-content h1 {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }
}

/* Loading States */
.hero-loading {
    position: relative;
    overflow: hidden;
}

.hero-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Accessibility */
.hero-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.hero-skip-link:focus {
    top: 6px;
}

/* Focus styles */
#toolSearch:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* Dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Performance optimizations */
.hero-content,
.stat-card,
.cta-button {
    will-change: transform;
}

/* GPU acceleration */
#particleCanvas {
    transform: translateZ(0);
    will-change: transform;
}