/* ============================================
   LINA Scribe Marketing Page - Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    --color-purple-500: #a855f7;
    --color-gray-400: #9ca3af;
    --color-gray-700: #374151;
    --color-white: #ffffff;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(15px) translateX(-15px);
    }
    66% {
        transform: translateY(-10px) translateX(10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        background-color: rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
        background-color: rgba(59, 130, 246, 0.2);
    }
}

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

@keyframes waveAnimation {
    0% {
        height: 20%;
    }
    25% {
        height: 60%;
    }
    50% {
        height: 40%;
    }
    75% {
        height: 80%;
    }
    100% {
        height: 20%;
    }
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Animations */
.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 25s ease-in-out infinite;
    animation-delay: 5s;
}

/* Navigation Styles */
#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Glow Text Effects */
.glow-text {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.glow-text-hero {
    background: linear-gradient(to right, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* Gradient Buttons */
.gradient-button {
    background: linear-gradient(135deg, #3b82f6, #a855f7, #3b82f6);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.gradient-button:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.gradient-button-large {
    background: linear-gradient(135deg, #3b82f6, #a855f7, #3b82f6);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

.gradient-button-large:hover {
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.7);
}

.gradient-badge {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Code Block Styling */
.code-block {
    background: rgba(2, 6, 23, 0.6);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    line-height: 1.8;
}

.code-comment {
    color: #6b7280;
    font-style: italic;
}

.code-keyword {
    color: #c084fc;
    font-weight: 600;
}

.code-function {
    color: #60a5fa;
}

.code-variable {
    color: #a78bfa;
}

.code-value {
    color: #34d399;
}

.code-critical {
    color: #ef4444;
    font-weight: 700;
}

/* Pulse Line Animation for Code */
.pulse-line {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pulse-line.pulse-active {
    animation: pulseGlow 1s ease-in-out;
    border-left: 3px solid #3b82f6;
}

/* Waveform Animation */
.waveform-bar {
    animation: waveAnimation 1.2s ease-in-out infinite;
    border-radius: 2px;
}

.waveform-bar:nth-child(1) {
    animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
    animation-delay: 0.4s;
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .glow-text-hero {
        font-size: 2.5rem;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 1rem;
    }
}

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

/* Selection Styling */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: white;
}

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

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

::-webkit-scrollbar-track {
    background: var(--color-slate-950);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue-500);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-blue-400);
    outline-offset: 2px;
}

/* Loading State (optional for future use) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 1000px 100%;
}

/* Pricing Section Styles */
.price-amount {
    transition: opacity 0.2s ease-in-out;
}

.currency-btn {
    color: #9ca3af;
}

.currency-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

.currency-btn:hover {
    color: #ffffff;
}

