/* Landing Page Styles for AI Stock Analyser */

/* ===================================
   Hero Section with Animated Gradient
   =================================== */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

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

/* ===================================
   Animations
   =================================== */

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Delayed floating animation for independent movement */
.float-animation-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s; /* Start halfway through the cycle for opposite effect */
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Check marks animation */
@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.check-icon {
    display: inline-block;
    animation: checkPop 0.5s ease;
}

/* ===================================
   Glass Morphism Cards
   =================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Feature Card Hover Effects
   =================================== */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* ===================================
   Icon Circles with Gradient
   =================================== */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .icon-circle::after {
    opacity: 1;
}

.icon-circle i {
    position: relative;
    z-index: 1;
}

/* ===================================
   Number Badges
   =================================== */
.number-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.number-badge:hover {
    transform: scale(1.1) rotate(360deg);
}

/* ===================================
   Stats Counter
   =================================== */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Glowing Button
   =================================== */
.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glow-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   Hero Image with Fading Edges
   =================================== */
.hero-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

/* Gradient fade overlay for transparent edges */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(255,255,255,0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Dark theme adjustment for fade overlay */
html[data-theme="dark"] .hero-image-container::after {
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
}

/* ===================================
   Dark Theme Adjustments
   =================================== */
html[data-theme="dark"] .glass-card {
    background: rgba(45, 45, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .feature-card {
    background-color: var(--card-bg);
}

html[data-theme="dark"] .stat-number {
    background: linear-gradient(135deg, #8b9bff, #a98eda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
