/* MELOWEE Landing Page - Custom Styles */
/* Copyright 2025 THIMO gUG */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* Rainbow color palette */
    --color-red: #ff6b6b;
    --color-orange: #ffd93d;
    --color-yellow: #ffeaa7;
    --color-green: #6bcf7f;
    --color-teal: #4ecdc4;
    --color-blue: #45b7d1;
    --color-purple: #a29bfe;
    --color-pink: #fd79a8;
    
    /* Grayscale */
    --color-gray-50: #f9fafb;
    --color-gray-900: #111827;
    --color-black: #000000;
    
    /* Gradients */
    --gradient-rainbow: linear-gradient(45deg, 
        var(--color-red), 
        var(--color-orange), 
        var(--color-green), 
        var(--color-teal), 
        var(--color-blue), 
        var(--color-purple)
    );
    
    --gradient-rainbow-extended: linear-gradient(45deg, 
        var(--color-red), 
        var(--color-orange), 
        var(--color-yellow), 
        var(--color-green), 
        var(--color-teal), 
        var(--color-blue), 
        var(--color-purple), 
        var(--color-pink)
    );
    
    /* Animation timings */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.8s ease;
}

/* === GLOBAL STYLES === */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CUSTOM ANIMATIONS === */
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

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

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 107, 107, 0.3),
            0 0 40px rgba(255, 107, 107, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(255, 107, 107, 0.6), 
            0 0 80px rgba(255, 107, 107, 0.3),
            0 0 120px rgba(255, 107, 107, 0.1);
    }
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* === UTILITY CLASSES === */
.gradient-text {
    background: var(--gradient-rainbow-extended);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

.gradient-text-fast {
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.rainbow-border {
    background: var(--gradient-rainbow);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    padding: 2px;
    border-radius: 12px;
}

.rainbow-border-thin {
    background: var(--gradient-rainbow);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    padding: 1px;
    border-radius: 8px;
}

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

.floating-slow {
    animation: floating 8s ease-in-out infinite;
}

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

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

.pulse-glow-fast {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.wave-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        45deg, 
        rgba(255, 107, 107, 0.05), 
        rgba(255, 217, 61, 0.05), 
        rgba(107, 207, 127, 0.05)
    );
}

.wave-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: wave 3s linear infinite;
}

.thord-glow {
    filter: drop-shadow(0 0 20px rgba(107, 207, 127, 0.5))
            drop-shadow(0 0 40px rgba(107, 207, 127, 0.3));
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* === COMPONENT STYLES === */

/* Accordion Styles */
.accordion-trigger {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.accordion-trigger:hover {
    background: rgba(55, 65, 81, 0.5);
}

.accordion-content {
    transition: all var(--transition-normal);
    max-height: 0;
    overflow: hidden;
}

.accordion-content:not(.hidden) {
    max-height: 2000px;
}

.accordion-icon {
    transition: transform var(--transition-normal);
}

/* Navigation */
nav {
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

nav.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transition: all var(--transition-normal);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #6b7280;
    color: #d1d5db;
    transition: all var(--transition-normal);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(147, 197, 253, 0.5);
}

.card-rainbow {
    position: relative;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}

.card-rainbow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-rainbow);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
}

/* Form Elements */
.form-input {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid #6b7280;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* THORD Visualization */
.thord-visualization {
    position: relative;
    width: 80px;
    height: 400px;
    margin: 0 auto;
}

.thord-blade {
    width: 16px;
    height: 320px;
    background: var(--gradient-rainbow-extended);
    background-size: 100% 800%;
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
    animation: gradientShift 4s ease infinite, floating 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(107, 207, 127, 0.5));
}

.thord-handle {
    width: 64px;
    height: 80px;
    background: linear-gradient(135deg, #374151, #1f2937);
    border-radius: 8px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #6b7280;
}

.thord-controls {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4b5563, #374151);
    border-radius: 6px;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #6b7280;
}

/* LED Animation Effects */
.led-strip {
    width: 4px;
    height: 100%;
    position: absolute;
    border-radius: 2px;
    background: var(--gradient-rainbow);
    background-size: 100% 400%;
    animation: gradientShift 2s ease infinite;
}

.led-strip:nth-child(1) { left: 2px; animation-delay: 0s; }
.led-strip:nth-child(2) { left: 8px; animation-delay: 0.1s; }
.led-strip:nth-child(3) { left: 14px; animation-delay: 0.2s; }
.led-strip:nth-child(4) { left: 20px; animation-delay: 0.3s; }
.led-strip:nth-child(5) { left: 26px; animation-delay: 0.4s; }
.led-strip:nth-child(6) { left: 32px; animation-delay: 0.5s; }
.led-strip:nth-child(7) { left: 38px; animation-delay: 0.6s; }
.led-strip:nth-child(8) { left: 44px; animation-delay: 0.7s; }

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-rainbow);
    background-size: 100% 400%;
    animation: gradientShift 8s ease infinite;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #111827;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-text {
        background-size: 300% 300%;
    }
    
    .card {
        padding: 16px;
    }
    
    .thord-visualization {
        width: 60px;
        height: 300px;
    }
    
    .thord-blade {
        width: 12px;
        height: 240px;
    }
    
    .thord-handle {
        width: 48px;
        height: 60px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .gradient-text,
    .rainbow-border,
    .floating,
    .pulse-glow,
    .wave-bg::before,
    .scroll-indicator,
    .led-strip,
    .timeline-line {
        animation: none !important;
    }
    
    .gradient-text {
        background: var(--color-blue);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .gradient-text {
        background: white;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* === PRINT STYLES === */
@media print {
    .wave-bg::before,
    .floating,
    .pulse-glow {
        animation: none !important;
    }
    
    nav,
    .scroll-indicator,
    button {
        display: none !important;
    }
    
    .gradient-text {
        background: none;
        color: #000;
        -webkit-text-fill-color: initial;
    }
}

/* === LOADING STATES === */
.loading {
    position: relative;
    overflow: hidden;
}

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

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

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-rainbow);
    border-radius: 4px;
    background-size: 100% 400%;
    animation: gradientShift 4s ease infinite;
}

::-webkit-scrollbar-thumb:hover {
    background-size: 100% 200%;
}

/* === SELECTION STYLES === */
::selection {
    background: rgba(107, 207, 127, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(107, 207, 127, 0.3);
    color: white;
}

/* === FOCUS STYLES === */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* === UTILITY OVERRIDES === */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.backdrop-blur-strong {
    backdrop-filter: blur(20px);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-image {
    height: 48px;
    width: auto;
    max-width: 200px;
    image-rendering: -webkit-optimize-contrast;
}
/* End of MELOWEE Custom Styles */