/* ============================================================================
   INDEX PAGE VISUAL ENHANCEMENTS
   "Neural Data Flow" Design System for Homepage
   
   A sophisticated tech aesthetic for the innobu homepage.
   Import this file AFTER index-styles.css to enhance the homepage.
   ============================================================================ */

/* Import Sora font for distinctive headings */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

/* ============================================================================
   CSS Custom Properties
   ============================================================================ */
:root {
    /* Typography */
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Enhanced Colors */
    --glow-primary: rgba(64, 192, 240, 0.5);
    --glow-secondary: rgba(0, 178, 169, 0.4);
    --glow-soft: rgba(64, 192, 240, 0.15);
    
    /* Animation Timing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Gradients */
    --gradient-glow: linear-gradient(135deg, var(--glow-primary), var(--glow-secondary));
    --gradient-mesh: 
        radial-gradient(ellipse at 20% 0%, rgba(64, 192, 240, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 178, 169, 0.06) 0%, transparent 50%);
}

/* ============================================================================
   HERO SECTION ENHANCEMENTS
   ============================================================================ */

.hero.header {
    position: relative;
    overflow: hidden;
    animation: heroReveal 1s var(--ease-expo) forwards;
}

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

/* Animated Grid Background */
.hero.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(64, 192, 240, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 192, 240, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

/* Glowing Border Effect */
.hero.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #40c0f0, #00b2a9, #40c0f0, transparent);
    animation: borderFlow 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes borderFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; filter: blur(1px); }
}

/* Hero Content Z-Index */
.hero.header > * {
    position: relative;
    z-index: 2;
}

/* ============================================================================
   HERO HEADLINES - GRADIENT TEXT ENHANCEMENT
   ============================================================================ */

.hero h1.gradient-text,
.hero h2.gradient-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 30%, #40c0f0 60%, #00b2a9 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 8s ease infinite;
}

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

.hero h1.gradient-text {
    animation: titleReveal 0.8s var(--ease-expo) 0.1s backwards, titleGradient 8s ease infinite;
}

.hero h2.gradient-text {
    animation: titleReveal 0.8s var(--ease-expo) 0.2s backwards, titleGradient 8s ease infinite;
}

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

/* Hero Description */
.hero .description {
    font-family: var(--font-heading);
    font-weight: 400;
    animation: descReveal 0.8s var(--ease-expo) 0.3s backwards;
}

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

/* ============================================================================
   VALUE PROPOSITION BOXES
   ============================================================================ */

.value-props-container {
    perspective: 1000px;
}

.value-prop-box {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: valuePropReveal 0.7s var(--ease-expo) backwards;
}

.value-prop-box:nth-child(1) { animation-delay: 0.4s; }
.value-prop-box:nth-child(2) { animation-delay: 0.5s; }
.value-prop-box:nth-child(3) { animation-delay: 0.6s; }

@keyframes valuePropReveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Glowing Top Line on Hover */
.value-prop-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #40c0f0, #00b2a9);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-expo);
}

.value-prop-box:hover::before {
    transform: scaleX(1);
}

/* Glow Effect on Hover */
.value-prop-box:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-soft),
        inset 0 0 30px rgba(64, 192, 240, 0.03);
}

.value-prop-box h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.3s ease;
}

.value-prop-box:hover h3 {
    text-shadow: 0 0 15px var(--glow-primary);
}

/* ============================================================================
   QUOTE CONTAINER ENHANCEMENT
   ============================================================================ */

.quote-container {
    position: relative;
    overflow: hidden;
    animation: quoteReveal 0.8s var(--ease-expo) 0.7s backwards;
}

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

.quote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #40c0f0, #00b2a9, #40c0f0);
    background-size: 100% 200%;
    animation: quoteBorderFlow 4s ease-in-out infinite;
}

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

.quote-container blockquote {
    font-family: var(--font-heading);
    font-weight: 400;
    position: relative;
}

.quote-container blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(64, 192, 240, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================================================
   BOTTOM HIGHLIGHT
   ============================================================================ */

.bottom-highlight {
    animation: highlightReveal 0.8s var(--ease-expo) 0.8s backwards;
    position: relative;
    overflow: hidden;
}

@keyframes highlightReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bottom-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 192, 240, 0.1), transparent);
    animation: shimmer 6s ease-in-out infinite;
}

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

.bottom-highlight p {
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   KI ADOPTION STATS SECTION
   ============================================================================ */

.ki-adoption-stats {
    animation: statsReveal 0.8s var(--ease-expo) forwards;
    position: relative;
}

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

/* Stats Title */
.stats-title.gradient-text {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #40c0f0 50%, #00b2a9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 6s ease infinite;
}

/* Stat Cards */
.ki-adoption-stats .stat-card {
    animation: statCardReveal 0.6s var(--ease-expo) backwards;
    position: relative;
    overflow: hidden;
}

.ki-adoption-stats .stat-card:nth-child(1) { animation-delay: 0.1s; }
.ki-adoption-stats .stat-card:nth-child(2) { animation-delay: 0.2s; }
.ki-adoption-stats .stat-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Glowing Number Effect */
.ki-adoption-stats .stat-value {
    font-family: var(--font-heading) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    animation: numberPulse 3s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(64, 192, 240, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(64, 192, 240, 0.6));
    }
}

/* Stat Label */
.ki-adoption-stats .stat-label {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Trend Indicators */
.stat-trend.trend-positive {
    animation: trendPulse 2s ease-in-out infinite;
}

@keyframes trendPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ============================================================================
   ARTICLES SECTION
   ============================================================================ */

.articles-section {
    animation: sectionReveal 0.8s var(--ease-expo) forwards;
}

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

/* Section Title */
.articles-section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Insights Intro */
.insights-intro {
    animation: introReveal 0.6s var(--ease-expo) 0.2s backwards;
}

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

/* ============================================================================
   ARTICLE CARDS ENHANCEMENT
   ============================================================================ */

.article-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #40c0f0, #00b2a9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-expo);
}

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-soft);
}

.article-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: #40c0f0;
}

/* ============================================================================
   CTA SECTION ENHANCEMENT
   ============================================================================ */

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(64, 192, 240, 0.1), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 178, 169, 0.08), transparent 50%);
    animation: ctaGlow 10s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.cta-section h2,
.cta-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* CTA Button Enhancement */
.cta-button,
.cta-section a[class*="button"] {
    font-family: var(--font-heading);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before,
.cta-section a[class*="button"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before,
.cta-section a[class*="button"]:hover::before {
    left: 100%;
}

/* ============================================================================
   INTERNAL LINKS SECTION
   ============================================================================ */

.internal-links-section a {
    font-family: var(--font-heading);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.internal-links-section a::after {
    content: '→';
    position: absolute;
    right: 15px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease-expo);
}

.internal-links-section a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.internal-links-section a:hover {
    padding-right: 35px;
    box-shadow: 0 5px 20px rgba(64, 192, 240, 0.2);
}

/* ============================================================================
   MARQUEE/TICKER ENHANCEMENT
   ============================================================================ */

.ticker-wrapper,
.marquee-wrapper {
    position: relative;
    overflow: hidden;
}

.ticker-wrapper::before,
.ticker-wrapper::after,
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.ticker-wrapper::before,
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 22, 37, 1), transparent);
}

.ticker-wrapper::after,
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(10, 22, 37, 1), transparent);
}

/* ============================================================================
   FOOTER ENHANCEMENT
   ============================================================================ */

#site-footer {
    position: relative;
}

#site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(64, 192, 240, 0.3), transparent);
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .hero.header::before {
        background-size: 30px 30px;
        opacity: 0.5;
    }
    
    .value-prop-box:hover {
        transform: translateY(-5px);
    }
    
    .ki-adoption-stats .stat-value {
        animation: none;
    }
    
    .article-card:hover {
        transform: translateY(-4px);
    }
    
    .quote-container blockquote::before {
        font-size: 2.5rem;
        top: -10px;
    }
}

@media (max-width: 480px) {
    .hero.header::before {
        display: none;
    }
    
    .hero.header::after {
        left: 5%;
        right: 5%;
    }
    
    .value-prop-box,
    .ki-adoption-stats .stat-card,
    .article-card {
        animation: simpleFade 0.5s ease forwards;
    }
    
    @keyframes simpleFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .bottom-highlight::after {
        display: none;
    }
}

/* ============================================================================
   REDUCED MOTION SUPPORT
   ============================================================================ */

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

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .hero.header::before,
    .hero.header::after,
    .bottom-highlight::after {
        display: none;
    }
    
    * {
        animation: none !important;
    }
}
