/* ==========================================================================
   pixxu.net - Landing Page CSS
   Spezifische Styles für die Hauptseite
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-preview {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   TOOLS SECTION
   ========================================================================== */

.tools-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card .tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.tool-card .tool-icon.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.tool-card .tool-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0891b2 100%);
    color: white;
}

.tool-card .tool-icon.accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    color: white;
}

.tool-card .tool-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.tool-card .tool-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.tool-card .tool-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.tool-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.tool-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-tool {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Coming Soon Badge */
.coming-soon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.tool-card.disabled .btn-tool {
    background: #6b7280;
    cursor: not-allowed;
}

.tool-card.disabled .btn-tool:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: 100px 0;
    background: white;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   SCROLL PROGRESS INDICATOR
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ==========================================================================
   TYPING EFFECT
   ========================================================================== */

.hero-title.typing {
    border-right: 3px solid rgba(255, 255, 255, 0.75);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: rgba(255, 255, 255, 0.75); }
    51%, 100% { border-color: transparent; }
}

/* ==========================================================================
   PARALLAX EFFECT
   ========================================================================== */

.hero-section.parallax {
    will-change: transform;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .tool-card,
    .feature-icon,
    .btn-tool,
    .fade-in-up {
        transition: none !important;
        animation: none !important;
    }
    
    .hero-section.parallax {
        transform: none !important;
    }
    
    .tool-card:hover {
        transform: none !important;
    }
    
    .feature-icon:hover {
        transform: none !important;
    }
    
    .btn-tool:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   THEME SUPPORT (Future Dark Mode)
   ========================================================================== */

[data-preferred-theme="dark"] .tools-section {
    background: #0f172a;
}

[data-preferred-theme="dark"] .tool-card {
    background: #1e293b;
    border-color: rgba(99, 102, 241, 0.2);
}

[data-preferred-theme="dark"] .features-section {
    background: #1e293b;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .tool-card {
        padding: 2rem;
    }
    
    .tools-section,
    .features-section {
        padding: 80px 0;
    }
    
    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-card .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .tools-section,
    .features-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tools-section,
    .features-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-badge {
        width: 100%;
        text-align: center;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   DOWNLOAD COUNTER STYLES
   ========================================================================== */

.stat-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    display: block;
    font-weight: 400;
}

.download-trend {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
}

.download-trend:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trend-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Counter Animation Effects */
.stat-number {
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-number.updating {
    color: var(--success-color);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Pulse effect for new downloads */
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-number.updating {
    animation: counterPulse 0.6s ease-in-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .stat-sublabel {
        font-size: 0.7rem;
    }
    
    .download-trend {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .trend-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .download-trend {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .stat-sublabel {
        font-size: 0.65rem;
    }
}