/* Custom CSS for SoundAI - Dark Purple Theme */

:root {
    /* Color Palette matching the app interface */
    --purple-primary: #8B5CF6;
    --purple-secondary: #A78BFA;
    --purple-dark: #7C3AED;
    --dark-bg: #0F0F0F;
    --dark-secondary: #1A1A1A;
    --dark-card: #1E1E1E;
    --text-light: #F8F9FA;
    --text-muted: #9CA3AF;
    --border-color: #374151;
}

/* Brand Styling */
.brand-name {
    font-family: 'Space Mono', monospace !important;
    color: var(--purple-primary) !important;
    font-weight: 700;
}

.brand-logo {
    height: 32px;
    width: auto;
}

.footer-logo {
    height: 24px;
    width: auto;
}

/* Base Styles */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Custom Background Classes */
.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}

.bg-dark-secondary {
    background-color: var(--dark-secondary) !important;
}

.bg-dark-card {
    background-color: var(--dark-card) !important;
}

/* Text Colors */
.text-purple {
    color: var(--purple-primary) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Button Styles */
.btn-purple {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    border: none;
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-outline-purple {
    border: 2px solid var(--purple-primary);
    color: var(--purple-primary);
    background: transparent;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background-color: var(--purple-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Navigation */
.navbar-dark .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--purple-primary) !important;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23374151" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-features {
    margin: 2rem 0;
}

.hero-features i {
    width: 20px;
    height: 20px;
}

/* Sound Interface Mockup */
.hero-visual {
    position: relative;
    z-index: 1;
}

.sound-interface-mockup {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.5;
}

.mockup-dots span:first-child {
    background-color: #EF4444;
    opacity: 1;
}

.mockup-dots span:nth-child(2) {
    background-color: #F59E0B;
    opacity: 1;
}

.mockup-dots span:last-child {
    background-color: #10B981;
    opacity: 1;
}

.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.mockup-input {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
}

.typing-animation {
    position: relative;
}

.typing-animation::after {
    content: '|';
    color: var(--purple-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.waveform-container {
    margin: 20px 0;
    text-align: center;
}

.waveform {
    width: 100%;
    height: 60px;
}

.mockup-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Feature Cards */
.feature-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

/* Sound Cards */
.sound-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sound-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.sound-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 12px;
}

.sound-header h5 {
    flex: 1;
    margin-right: 12px;
}

.badge.bg-purple {
    background-color: var(--purple-primary) !important;
}

.mini-waveform {
    height: 30px;
    display: flex;
    align-items: end;
    width: 100%;
    margin: 0;
    padding: 0;
}

.waveform-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.waveform-bars span {
    width: 4px;
    background: var(--purple-primary);
    border-radius: 1px;
    animation: wave 2s ease-in-out infinite;
    transition: all 0.2s ease;
}

.waveform-clickable {
    cursor: pointer;
}

.waveform-clickable:hover .waveform-bars span {
    background: var(--purple-secondary);
}

.hidden-audio {
    display: none;
}

.playing .waveform-bars span {
    animation: wave-playing 0.5s ease-in-out infinite alternate;
}

.btn-purple.playing {
    /* Keep same purple background, just add subtle glow effect */
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

.btn-purple.playing:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
}

/* Contact Form Styles */
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    background-color: var(--dark-bg);
    color: white;
}

.contact-form .form-control::placeholder {
    color: #6c757d;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-cta {
    border: 1px solid var(--purple);
}

/* Ensure success messages stay visible - override Bootstrap animations */
.alert {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.alert.fade {
    opacity: 1 !important;
}

.alert.show {
    opacity: 1 !important;
}

/* Prevent Bootstrap JS from auto-hiding alerts */
.alert:not(.alert-dismissible) {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
}

@keyframes wave-playing {
    0% { 
        opacity: 0.7; 
        transform: scaleY(1);
    }
    100% { 
        opacity: 1; 
        transform: scaleY(1.2);
    }
}

.waveform-bars span:nth-child(1) { height: 15%; animation-delay: 0s; }
.waveform-bars span:nth-child(2) { height: 35%; animation-delay: 0.05s; }
.waveform-bars span:nth-child(3) { height: 55%; animation-delay: 0.1s; }
.waveform-bars span:nth-child(4) { height: 75%; animation-delay: 0.15s; }
.waveform-bars span:nth-child(5) { height: 95%; animation-delay: 0.2s; }
.waveform-bars span:nth-child(6) { height: 65%; animation-delay: 0.25s; }
.waveform-bars span:nth-child(7) { height: 85%; animation-delay: 0.3s; }
.waveform-bars span:nth-child(8) { height: 45%; animation-delay: 0.35s; }
.waveform-bars span:nth-child(9) { height: 25%; animation-delay: 0.4s; }
.waveform-bars span:nth-child(10) { height: 70%; animation-delay: 0.45s; }
.waveform-bars span:nth-child(11) { height: 90%; animation-delay: 0.5s; }
.waveform-bars span:nth-child(12) { height: 40%; animation-delay: 0.55s; }
.waveform-bars span:nth-child(13) { height: 60%; animation-delay: 0.6s; }
.waveform-bars span:nth-child(14) { height: 30%; animation-delay: 0.65s; }
.waveform-bars span:nth-child(15) { height: 50%; animation-delay: 0.7s; }
.waveform-bars span:nth-child(16) { height: 80%; animation-delay: 0.75s; }
.waveform-bars span:nth-child(17) { height: 20%; animation-delay: 0.8s; }
.waveform-bars span:nth-child(18) { height: 65%; animation-delay: 0.85s; }
.waveform-bars span:nth-child(19) { height: 45%; animation-delay: 0.9s; }
.waveform-bars span:nth-child(20) { height: 85%; animation-delay: 0.95s; }
.waveform-bars span:nth-child(21) { height: 35%; animation-delay: 1s; }
.waveform-bars span:nth-child(22) { height: 75%; animation-delay: 1.05s; }
.waveform-bars span:nth-child(23) { height: 55%; animation-delay: 1.1s; }
.waveform-bars span:nth-child(24) { height: 25%; animation-delay: 1.15s; }
.waveform-bars span:nth-child(25) { height: 70%; animation-delay: 1.2s; }
.waveform-bars span:nth-child(26) { height: 40%; animation-delay: 1.25s; }
.waveform-bars span:nth-child(27) { height: 60%; animation-delay: 1.3s; }
.waveform-bars span:nth-child(28) { height: 90%; animation-delay: 1.35s; }
.waveform-bars span:nth-child(29) { height: 30%; animation-delay: 1.4s; }
.waveform-bars span:nth-child(30) { height: 50%; animation-delay: 1.45s; }
.waveform-bars span:nth-child(31) { height: 80%; animation-delay: 1.5s; }
.waveform-bars span:nth-child(32) { height: 20%; animation-delay: 1.55s; }
.waveform-bars span:nth-child(33) { height: 65%; animation-delay: 1.6s; }
.waveform-bars span:nth-child(34) { height: 45%; animation-delay: 1.65s; }
.waveform-bars span:nth-child(35) { height: 75%; animation-delay: 1.7s; }
.waveform-bars span:nth-child(36) { height: 35%; animation-delay: 1.75s; }
.waveform-bars span:nth-child(37) { height: 55%; animation-delay: 1.8s; }
.waveform-bars span:nth-child(38) { height: 25%; animation-delay: 1.85s; }
.waveform-bars span:nth-child(39) { height: 70%; animation-delay: 1.9s; }
.waveform-bars span:nth-child(40) { height: 10%; animation-delay: 1.95s; }
.waveform-bars span:nth-child(41) { height: 60%; animation-delay: 2s; }
.waveform-bars span:nth-child(42) { height: 30%; animation-delay: 0.02s; }
.waveform-bars span:nth-child(43) { height: 80%; animation-delay: 0.07s; }
.waveform-bars span:nth-child(44) { height: 45%; animation-delay: 0.12s; }
.waveform-bars span:nth-child(45) { height: 70%; animation-delay: 0.17s; }
.waveform-bars span:nth-child(46) { height: 25%; animation-delay: 0.22s; }
.waveform-bars span:nth-child(47) { height: 90%; animation-delay: 0.27s; }
.waveform-bars span:nth-child(48) { height: 40%; animation-delay: 0.32s; }
.waveform-bars span:nth-child(49) { height: 65%; animation-delay: 0.37s; }
.waveform-bars span:nth-child(50) { height: 15%; animation-delay: 0.42s; }
.waveform-bars span:nth-child(51) { height: 85%; animation-delay: 0.47s; }
.waveform-bars span:nth-child(52) { height: 50%; animation-delay: 0.52s; }
.waveform-bars span:nth-child(53) { height: 75%; animation-delay: 0.57s; }
.waveform-bars span:nth-child(54) { height: 35%; animation-delay: 0.62s; }
.waveform-bars span:nth-child(55) { height: 95%; animation-delay: 0.67s; }
.waveform-bars span:nth-child(56) { height: 20%; animation-delay: 0.72s; }
.waveform-bars span:nth-child(57) { height: 55%; animation-delay: 0.77s; }
.waveform-bars span:nth-child(58) { height: 80%; animation-delay: 0.82s; }
.waveform-bars span:nth-child(59) { height: 45%; animation-delay: 0.87s; }
.waveform-bars span:nth-child(60) { height: 5%; animation-delay: 0.92s; }

@keyframes wave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Pricing Card */
.pricing-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 40px 32px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    background: var(--dark-card) !important;
    border: 2px solid var(--purple-primary) !important;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.price {
    display: flex;
    align-items: baseline;
    margin: 20px 0;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price .amount {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    font-size: 1.25rem;
    margin-left: 8px;
}

.pricing-features {
    margin: 30px 0;
}

.pricing-features ul li {
    padding: 8px 0;
}

.pricing-features i {
    width: 20px;
    height: 20px;
}

/* Use Cases */
.use-case {
    text-align: center;
    padding: 20px;
}

.use-case i {
    width: 48px;
    height: 48px;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.testimonial-content i {
    width: 32px;
    height: 32px;
}

/* CTA Section */
.cta-buttons {
    margin: 30px 0;
}

.cta-features .badge {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    .sound-interface-mockup {
        margin-top: 40px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .price .amount {
        font-size: 3rem;
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

/* Focus States for Accessibility */
.btn:focus,
.btn-purple:focus,
.btn-outline-purple:focus {
    outline: 2px solid var(--purple-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --purple-primary: #A78BFA;
        --text-muted: #D1D5DB;
        --border-color: #6B7280;
    }
}

/* Creator Cards */
.creator-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.creator-card:hover::before {
    transform: scaleX(1);
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.creator-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.creator-icon i {
    width: 24px;
    height: 24px;
    color: white !important;
}

.creator-icon svg {
    width: 24px;
    height: 24px;
    color: white !important;
    stroke: white !important;
    fill: none !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
