/* Custom Styles for YEEY AI Consulting */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #0f172a;
}

/* Animated Network Background */
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: networkFloat 20s ease-in-out infinite;
}

.network-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.03) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(147, 51, 234, 0.03) 50%, transparent 60%);
    animation: networkPulse 15s ease-in-out infinite alternate;
}

.network-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><defs><filter id="glow"><feGaussianBlur stdDeviation="3" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" stroke="%233b82f6" stroke-width="1" opacity="0.3" filter="url(%23glow)"><path d="M50,100 L150,50 L250,120 L350,80 L450,140 L550,90 L650,160 L750,110 L850,180 L950,130"/><path d="M80,300 L180,250 L280,320 L380,280 L480,340 L580,290 L680,360 L780,310 L880,380 L980,330"/><circle cx="150" cy="50" r="3"/><circle cx="350" cy="80" r="3"/><circle cx="550" cy="90" r="3"/><circle cx="750" cy="110" r="3"/><circle cx="180" cy="250" r="3"/><circle cx="380" cy="280" r="3"/><circle cx="580" cy="290" r="3"/><circle cx="780" cy="310" r="3"/></g></svg>') no-repeat center;
    background-size: contain;
    animation: networkNodes 25s linear infinite;
    opacity: 0.4;
}

/* Keyframe Animations */
@keyframes networkFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes networkPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes networkNodes {
    0% { transform: translateX(-10px); opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { transform: translateX(10px); opacity: 0.3; }
}

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

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

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
}

.animate-fade-in-up-delay {
    animation: fadeInUpDelay 1s ease-out 0.3s forwards;
    opacity: 1;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUpDelay2 1s ease-out 0.6s forwards;
    opacity: 1;
}

/* Logo Styling - removed duplicate, keeping enhanced version below */

/* Language Selector Styling */
#languageSelector, #languageSelectorMobile {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    color: white;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    min-width: 40px;
}

#languageSelector:hover, #languageSelectorMobile:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    transform: translateY(-1px);
}

#languageSelector option, #languageSelectorMobile option {
    background: #1e293b;
    color: white;
    padding: 6px;
    z-index: 1002;
}

/* Fix dropdown z-index */
.language-container {
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

/* Enhanced header logo */
#yeeyLogo {
    transition: all 0.3s ease;
    filter: brightness(1.1);
    mix-blend-mode: screen;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: auto;
    object-fit: contain;
    object-position: center;
    width: auto;
    height: auto;
    max-width: none;
    transform-origin: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    #yeeyLogo {
        max-height: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #yeeyLogo {
        max-height: 80px;
    }
}

@media (min-width: 1025px) {
    #yeeyLogo {
        max-height: 96px;
    }
}

/* High-DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #yeeyLogo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
        transform: translateZ(0);
        will-change: transform;
    }
}

#yeeyLogo:hover {
    transform: scale(1.08);
    filter: brightness(1.4);
    image-rendering: auto;
    cursor: pointer;
}

/* Logo link styling */
a:has(#yeeyLogo) {
    transition: all 0.3s ease;
}

a:has(#yeeyLogo):hover {
    transform: translateY(-2px);
}

/* Critical Warning Box - Mobile-Optimized Flash Effect */
.critical-warning-box {
    transition: all 0.3s ease;
    transform: translateZ(0);
    border-color: transparent;
    position: relative;
    z-index: 25;
}

.critical-warning-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* Warning background flash - More visible on mobile */
.warning-flash-bg {
    animation: warning-background 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes warning-background {
    0%, 100% { opacity: 0; }
    15%, 85% { opacity: 0.4; }
    50% { 
        opacity: 0.7;
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(251, 146, 60, 0.3));
    }
}

/* Warning pulse border - Enhanced visibility */
.warning-pulse-border {
    animation: warning-border 3s ease-in-out infinite;
    opacity: 0;
    border-color: transparent;
}

@keyframes warning-border {
    0%, 100% { 
        opacity: 0; 
        border-color: transparent;
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        border-color: #ef4444;
        transform: scale(1.01);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    }
}

/* Warning text flash - Better contrast */
.warning-flash-text {
    animation: warning-text 3s ease-in-out infinite;
    color: #1f2937;
}

@keyframes warning-text {
    0%, 100% { 
        color: #1f2937;
        text-shadow: none;
    }
    50% { 
        color: #dc2626;
        text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
        transform: scale(1.02);
    }
}

/* Simple Rotating Text Effect */
#rotatingText {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
}

#rotatingText.changing {
    opacity: 0.3;
}

/* Hero title container positioning */
#heroTitleContainer {
    position: relative;
    z-index: 1;
}

/* Old text-flash keyframes removed */

/* Accent stripe with enhanced glow */
.critical-stat-box .w-2.h-full {
    box-shadow: -2px 0 8px rgba(239, 68, 68, 0.2);
    animation: stripe-glow 2.5s ease-in-out infinite;
}

@keyframes stripe-glow {
    0%, 100% { box-shadow: -2px 0 8px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: -4px 0 16px rgba(239, 68, 68, 0.5); }
}

/* Pain Points Grid Enhancements */
.pain-point-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 20;
}

.pain-point-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Attention dot animation */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Pain Points Grid Enhancements */
.pain-point-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 20;
}

.pain-point-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.animate-pulse-subtle {
    animation: pulse 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Language Selector Styling */
#languageSelector {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#languageSelector:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    transform: translateY(-1px);
}

#languageSelector option {
    background: #1e293b;
    color: white;
    padding: 8px;
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
    height: 70px;
    z-index: 1000;
}

@media (min-width: 768px) {
    nav {
        height: 90px;
    }
}

@media (min-width: 1024px) {
    nav {
        height: 100px;
    }
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

/* Hero Section Fix */
section[class*="min-h-screen"] {
    min-height: 100vh;
    padding-top: 70px;
}

@media (min-width: 768px) {
    section[class*="min-h-screen"] {
        padding-top: 90px;
    }
}

@media (min-width: 1024px) {
    section[class*="min-h-screen"] {
        padding-top: 100px;
    }
}

/* Fix text clipping and ensure proper spacing */
.hero-title {
    line-height: 1.15;
    overflow: visible;
    padding-bottom: 1rem;
}

.hero-title .block {
    display: block;
    position: relative;
    z-index: 1;
}

/* Ensure gradient text has proper spacing */
.hero-title .bg-gradient-to-r {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Button Enhancements */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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;
}

button:hover::before {
    left: 100%;
}

/* Service Cards Enhancements */
.group:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

/* Glowing Text Effect */
.glow-text {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

/* Backdrop Blur Enhancement */
.backdrop-blur-custom {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 23, 42, 0.8);
}

/* Floating Elements */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-delay {
    animation: float 6s ease-in-out infinite 2s;
}

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

/* Gradient Text Animation */
.gradient-text-animate {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06d6a0, #3b82f6);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .network-bg::after {
        opacity: 0.2;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Prevent text cutoff on mobile */
    section[class*="min-h-screen"] {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Mobile text sizing */
    .text-4xl {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    /* Ensure proper spacing */
    .mt-16 {
        margin-top: 1rem;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Loading Animation */
.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 1.5s infinite;
}

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

/* Intersection Observer Animations - Fixed */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* High-performance transforms */
.gpu-acceleration {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Modern CSS Grid Enhancements */
@supports (display: grid) {
    .grid-modern {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Pricing Section Enhancements */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 400px;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
}

/* Professional Package Badge Styling */
.popular-badge {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    background-color: #10b981 !important; /* Fallback solid color */
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: badge-glow 2s ease-in-out infinite;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: absolute !important;
    z-index: 1000 !important;
}

@media (min-width: 768px) {
    .popular-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 
            0 4px 15px rgba(16, 185, 129, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 6px 25px rgba(16, 185, 129, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Professional Package Glow Effect */
.professional-glow {
    box-shadow: 
        0 0 40px rgba(16, 185, 129, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.professional-glow:hover {
    box-shadow: 
        0 0 60px rgba(16, 185, 129, 0.6),
        0 25px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-16px);
}

/* Enhanced Typography for Pricing */
.pricing-section h3, .pricing-section h4, .pricing-section h5 {
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.pricing-amount {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Responsive Pricing Cards */
@media (max-width: 1023px) {
    .pricing-card {
        min-height: 350px;
        margin-bottom: 2rem;
    }
    
    /* Reset professional package scaling on mobile/tablet */
    .professional-glow {
        transform: none !important;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .pricing-card {
        min-height: 300px;
        padding: 1.5rem !important;
        margin-top: 1rem !important;
    }
    
    /* Professional package specific mobile adjustments */
    .professional-glow {
        margin-top: 1rem !important;
        padding-top: 3rem !important;
    }
    
    .popular-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
        top: 0.5rem !important;
        background: linear-gradient(135deg, #10b981, #059669) !important;
        background-color: #10b981 !important;
    }
}

@media (min-width: 1024px) {
    .pricing-card {
        min-height: 450px;
    }
    
    /* Professional package highlight on desktop */
    .professional-glow {
        position: relative;
        z-index: 10;
    }
}

/* Package Feature Styling */
.package-feature-badge {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.package-feature-badge:hover {
    transform: scale(1.05);
}

/* Currency Styling */
.currency-usd {
    font-weight: 600;
    font-size: 0.6em;
    opacity: 0.9;
}

/* Pricing Container Spacing */
.pricing-container {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .pricing-container {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .pricing-container {
        padding: 8rem 0;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .network-bg::after {
        animation: none;
    }
    
    .professional-badge {
        animation: none;
    }
}